@nexlylab/widget 1.32.18 → 1.34.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.
Files changed (68) hide show
  1. package/dist/INSTALL.txt +1 -1
  2. package/dist/runtime/{1.32.18/chunks/ClickToLoadEmbed-BLIUFZOn-BwY-LAJ8.js → 1.34.0/chunks/ClickToLoadEmbed-BNWVfZ1y-DuTZcv6f.js} +2 -2
  3. package/dist/runtime/{1.32.18/chunks/PanelInfoVideo-BNVzih9J-BrU-Qlul.js → 1.34.0/chunks/PanelInfoVideo-Di7qwhV_-qpxDXdLm.js} +2 -2
  4. package/dist/runtime/{1.32.18/chunks/allowed-elements-BXnLJV1S-C-_lr2zm.js → 1.34.0/chunks/allowed-elements-C0OfX2zF-DIBV8lKu.js} +2 -2
  5. package/dist/runtime/{1.32.18/chunks/assistant-link-components-DUrLEPUB-DKaQavIJ.js → 1.34.0/chunks/assistant-link-components-DtT0biCl-jR32KHTm.js} +2 -2
  6. package/dist/runtime/{1.32.18/chunks/assistant-link-policy-DHB-k1Aa-Cc-yj-a-.js → 1.34.0/chunks/assistant-link-policy-B77YPf4E-By6jpR50.js} +2 -2
  7. package/dist/runtime/{1.32.18/chunks/block-rating-D7hR2gTc-CoiP5C2K.js → 1.34.0/chunks/block-rating-uD_0LK-1-CQMNokIy.js} +2 -2
  8. package/dist/runtime/{1.32.18/chunks/external-url-qbs1SznX-CJQjg_od.js → 1.34.0/chunks/external-url-Bx_GTDOx-rLiy7c9v.js} +2 -2
  9. package/dist/runtime/{1.32.18/chunks/index-BtkNePSj-CiRb-0NX.js → 1.34.0/chunks/index--7VB9nyF-BoVmvEOm.js} +2 -2
  10. package/dist/runtime/{1.32.18/chunks/index-OcrS6o5Y-bdo5pwX-.js → 1.34.0/chunks/index-66kR66X--CzwqZYRk.js} +2 -2
  11. package/dist/runtime/{1.32.18/chunks/index-kAGaGinD-Dm9kbc85.js → 1.34.0/chunks/index-67cmm3Si-Bhh8_8Oh.js} +2 -2
  12. package/dist/runtime/{1.32.18/chunks/index-DiZcd1hz-H31PHMqm.js → 1.34.0/chunks/index-7wlPUbYV-Deg8QEW2.js} +2 -2
  13. package/dist/runtime/{1.32.18/chunks/index-B3DeMFo7-BbdAbuAw.js → 1.34.0/chunks/index-B80p2HRD-BHvEiO2X.js} +3 -3
  14. package/dist/runtime/{1.32.18/chunks/index-DuPFNKhZ-_M0CWPEY.js → 1.34.0/chunks/index-BHphkqVW-CEIHlemy.js} +2 -2
  15. package/dist/runtime/{1.32.18/chunks/index-7N5M1HdS-DAdxCQyi.js → 1.34.0/chunks/index-BIeasoH0-BlFXtfQb.js} +2 -2
  16. package/dist/runtime/{1.32.18/chunks/index-99heIIoH-QeFj7CR9.js → 1.34.0/chunks/index-BPwttNii-f3F4IxQ5.js} +2 -2
  17. package/dist/runtime/{1.32.18/chunks/index-l8Oxwea3-Aqz1AnQ5.js → 1.34.0/chunks/index-BTgHOj2W-D6H0juMn.js} +2 -2
  18. package/dist/runtime/{1.32.18/chunks/index-PxSB6BA6-DFxY6dqO.js → 1.34.0/chunks/index-BfGmnBJ0-BOltxOU-.js} +2 -2
  19. package/dist/runtime/{1.32.18/chunks/index-CYeJYTiB-BLxOZxZv.js → 1.34.0/chunks/index-BjNWgAJk-B-pT4hKt.js} +2 -2
  20. package/dist/runtime/{1.32.18/chunks/index-CZ-JrY2X-TEMHje2B.js → 1.34.0/chunks/index-BlY9hgA--pCzSL4DD.js} +2 -2
  21. package/dist/runtime/{1.32.18/chunks/index-C1Fa-E3e-ZRnEJoQe.js → 1.34.0/chunks/index-BmajLlTC-qsVnaLmo.js} +2 -2
  22. package/dist/runtime/{1.32.18/chunks/index-DaW9uf4--pkywvGDF.js → 1.34.0/chunks/index-BtBJMXR--DWm0RYZF.js} +2 -2
  23. package/dist/runtime/{1.32.18/chunks/index-CF37rhgu-BcW8HKb8.js → 1.34.0/chunks/index-Bz-3E3Sa-B9PuY2Gx.js} +2 -2
  24. package/dist/runtime/{1.32.18/chunks/index-qN6oEHVu-C_0Ll4qr.js → 1.34.0/chunks/index-CM2ok1Hp-k8zxZkfU.js} +2 -2
  25. package/dist/runtime/{1.32.18/chunks/index-COfQIa8G-D6wzHiS0.js → 1.34.0/chunks/index-CMdx7oFx-bh6F7tw3.js} +2 -2
  26. package/dist/runtime/{1.32.18/chunks/index-D1YmJ3gf-3B-eE3K7.js → 1.34.0/chunks/index-COobDdoM-BZw4n83V.js} +2 -2
  27. package/dist/runtime/{1.32.18/chunks/index-DAICBUgn-DBhSkJ7i.js → 1.34.0/chunks/index-CQCPJl3S-CV5ZiVsD.js} +2 -2
  28. package/dist/runtime/{1.32.18/chunks/index-BKZyJMr2-oy07dUaV.js → 1.34.0/chunks/index-CSsAPgvv-qK4w7DnX.js} +4 -4
  29. package/dist/runtime/{1.32.18/chunks/index-oxM4Cgtc-R_xuAEQV.js → 1.34.0/chunks/index-CXm6d9l1-BmIQ-NmU.js} +2 -2
  30. package/dist/runtime/{1.32.18/chunks/index-D96sEJQ6-Dp5AxBD4.js → 1.34.0/chunks/index-CZcU6ylZ-Bt7j8evJ.js} +2 -2
  31. package/dist/runtime/{1.32.18/chunks/index-BKrM_uoq-CABL-0v-.js → 1.34.0/chunks/index-Ce73FsEJ-Ce0fEutJ.js} +2 -2
  32. package/dist/runtime/{1.32.18/chunks/index-C5RVj6y1-DUgMllqN.js → 1.34.0/chunks/index-Cf3qMIwZ-PMvqlUvO.js} +2 -2
  33. package/dist/runtime/{1.32.18/chunks/index-CSRoJRaW-CoI3p0S7.js → 1.34.0/chunks/index-CqSCG8MM-Yl3jEGAx.js} +2 -2
  34. package/dist/runtime/{1.32.18/chunks/index-COTfVuju-DQBGsPwB.js → 1.34.0/chunks/index-CzfX3ctc-qH_mrcVT.js} +2 -2
  35. package/dist/runtime/{1.32.18/chunks/index-BZO9Qaiw-DP0QKkgf.js → 1.34.0/chunks/index-DBhWCUM5-DpMzyqHN.js} +2 -2
  36. package/dist/runtime/{1.32.18/chunks/index-CCEWGjHV-BTsOZg4v.js → 1.34.0/chunks/index-DT9H1y9L-DladDuuj.js} +4 -4
  37. package/dist/runtime/{1.32.18/chunks/index-E59S8-Gw-CovGUxIZ.js → 1.34.0/chunks/index-DbY1AG4s-C-OyGFef.js} +4 -4
  38. package/dist/runtime/{1.32.18/chunks/index-Bf_npmqm-C1BzRUwZ.js → 1.34.0/chunks/index-Ddxqdy4M-CDVtcfdt.js} +2 -2
  39. package/dist/runtime/{1.32.18/chunks/index-Dw7QeZq3-Dr1V6OGz.js → 1.34.0/chunks/index-DmV2pHdJ-Dtq7n928.js} +2 -2
  40. package/dist/runtime/{1.32.18/chunks/index-Cd1-jHFp-Za3SKEQp.js → 1.34.0/chunks/index-DnWzIgAa-DlTfKZaL.js} +2 -2
  41. package/dist/runtime/{1.32.18/chunks/index-BX6ig9BJ-Dsa9X9U7.js → 1.34.0/chunks/index-Dnqtxtmw-CgO1smBF.js} +2 -2
  42. package/dist/runtime/{1.32.18/chunks/index-Ce9TuEzb-C3bBvEcm.js → 1.34.0/chunks/index-Dw35VwDs-DX50C5MZ.js} +2 -2
  43. package/dist/runtime/{1.32.18/chunks/index--xfG4CIn-DbuSZfeK.js → 1.34.0/chunks/index-Dydy8_XR-F9_TzvkO.js} +2 -2
  44. package/dist/runtime/{1.32.18/chunks/index-cCAzBYyN-W1lJrIDD.js → 1.34.0/chunks/index-FHHrEvNZ-VW9D8cgC.js} +2 -2
  45. package/dist/runtime/{1.32.18/chunks/index-BauMKr5c-BpgnWlB8.js → 1.34.0/chunks/index-RyI_7m1j-CavFmRiD.js} +2 -2
  46. package/dist/runtime/1.34.0/chunks/index-TJEJpVI7-CqZ9_vG_.js +2 -0
  47. package/dist/runtime/1.34.0/chunks/index-Va_2P_Gg-Kzu4aFqn.js +6 -0
  48. package/dist/runtime/{1.32.18/chunks/index-BIGVEl9--CSQQTbsg.js → 1.34.0/chunks/index-_wovirve-BzpgdoE8.js} +2 -2
  49. package/dist/runtime/{1.32.18/chunks/index-CV2tGt-4-C9wFr7fa.js → 1.34.0/chunks/index-kmVVSAKR-BlRhWcs1.js} +2 -2
  50. package/dist/runtime/{1.32.18/chunks/index-DATkkw3P-VhJcCfAC.js → 1.34.0/chunks/index-xV27oZEe-ErDxRmJu.js} +2 -2
  51. package/dist/runtime/{1.32.18/chunks/index.modern-CioVZ357-BA5NTOmY.js → 1.34.0/chunks/index.modern-CioVZ357-nfRNslCS.js} +2 -2
  52. package/dist/runtime/1.34.0/nexly.js +61 -0
  53. package/dist/v1.js +4 -4
  54. package/package.json +1 -1
  55. package/dist/runtime/1.32.18/chunks/index-rblri-2U-I68tb-d3.js +0 -2
  56. package/dist/runtime/1.32.18/chunks/index-xx1GG5d1-CW29F9vY.js +0 -6
  57. package/dist/runtime/1.32.18/nexly.js +0 -61
  58. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/PanelVideoOverlay-BY__oBYV-B8OPC1xh.js +0 -0
  59. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/_commonjsHelpers-C6fGbg64-BC8KDfbh.js +0 -0
  60. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/accent-legibility-BJF2VO5n-CDPQ7suO.js +0 -0
  61. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/block-helpers-Cg_zAqG6-DnN2COvk.js +0 -0
  62. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/index-BPDIV1BN-DINkyYvc.js +0 -0
  63. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/index-BcsmWDTX-Dw9WA5Ac.js +0 -0
  64. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/index-C262wwK4-DpyhuXqd.js +0 -0
  65. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/index-DMQkz1bV-BuMYksln.js +0 -0
  66. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/index-DZADUAKv-DPfvWVuj.js +0 -0
  67. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/inert-assistant-components-B6Cx9pG5-DWb6n3Yq.js +0 -0
  68. /package/dist/runtime/{1.32.18 → 1.34.0}/chunks/use-deferred-rating-XlgCUwcY-DDVOwURi.js +0 -0
@@ -1,2 +1,2 @@
1
- import{j as e,Q as i}from"../nexly.js";const n={slug:"dashboard-overview",name:"Dashboard Overview",version:"1.0.0",category:"content",configSchema:{},defaultConfig:{},dataContract:{serviceSlug:null,inputSchema:{type:"object",properties:{}}},fields:[],sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main"]};function r({i18n:a}){const s=a?.t??(t=>t);return e.jsx(i,{blockType:"dashboard-overview",children:e.jsxs("div",{className:"es-widget__dash",children:[e.jsx("div",{className:"es-widget__panel-header",children:e.jsx("div",{className:"es-widget__panel-header-left",children:e.jsx("h2",{className:"es-widget__panel-header-title",children:s("dashboard.title")})})}),e.jsx("div",{className:"es-widget__dash-content",children:e.jsx("p",{className:"es-widget__dash-empty",children:s("dashboard.select_tab")})})]})})}export{r as Component,n as manifest};
2
- //# sourceMappingURL=index-D96sEJQ6-Dp5AxBD4.js.map
1
+ import{j as e,e as i}from"../nexly.js";const n={slug:"dashboard-overview",name:"Dashboard Overview",version:"1.0.0",category:"content",configSchema:{},defaultConfig:{},dataContract:{serviceSlug:null,inputSchema:{type:"object",properties:{}}},fields:[],sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main"]};function r({i18n:a}){const s=a?.t??(t=>t);return e.jsx(i,{blockType:"dashboard-overview",children:e.jsxs("div",{className:"es-widget__dash",children:[e.jsx("div",{className:"es-widget__panel-header",children:e.jsx("div",{className:"es-widget__panel-header-left",children:e.jsx("h2",{className:"es-widget__panel-header-title",children:s("dashboard.title")})})}),e.jsx("div",{className:"es-widget__dash-content",children:e.jsx("p",{className:"es-widget__dash-empty",children:s("dashboard.select_tab")})})]})})}export{r as Component,n as manifest};
2
+ //# sourceMappingURL=index-CZcU6ylZ-Bt7j8evJ.js.map
@@ -1,2 +1,2 @@
1
- import{r as h,j as e,Q as g,o as M}from"../nexly.js";import{C as L}from"./block-rating-D7hR2gTc-CoiP5C2K.js";const A={slug:"social-insights",name:"Social Insights",version:"1.0.0",category:"data",requiredService:"social-insights",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},proMode:{type:"boolean",default:!1},maxEvents:{type:"number",default:2},showCrmPlan:{type:"boolean",default:!0},showConversationTips:{type:"boolean",default:!1}}},defaultConfig:{readAloudEnabled:!1,proMode:!1,maxEvents:2,showCrmPlan:!0,showConversationTips:!1},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"social-insights",inputSchema:{type:"object",properties:{eventIntelligence:{type:"object",properties:{scoredEvents:{type:"array",items:{type:"object",properties:{eventName:{type:"string"},conversionScore:{type:"number"}}}},recommendedEvent:{type:"object",properties:{eventName:{type:"string"},missionGoal:{type:"string"}}}}},eventMissionBrief:{type:"object",properties:{conversationOpeners:{type:"array",items:{type:"string"}},qualificationQuestions:{type:"array",items:{type:"string"}},positioningStatement:{type:"string"}}},crmExecutionPlan:{type:"object",properties:{leadPipelineStructure:{type:"string"},recommendedDailyOutreachVolume:{type:"number"},messageTemplates:{type:"object",properties:{firstContact:{type:"string"},followup48h:{type:"string"}}}}},weeklySocialStrategy:{type:"object",properties:{mainObjectiveThisWeek:{type:"string"},numericTarget:{type:"string"}}}}},previewDataOverride:{eventIntelligence:{scoredEvents:[{eventName:"Seoul Tech & Crypto Meetup",category:"Networking",conversionScore:92,whyRelevant:"High density of crypto-curious professionals matching your target profile.",targetProfile:"Tech professionals aged 28–42",priorityLevel:"high"},{eventName:"Gangnam Business Luncheon",category:"Business Networking",conversionScore:74,whyRelevant:"Established entrepreneurs with disposable income open to investment opportunities.",targetProfile:"SME owners and executives",priorityLevel:"medium"},{eventName:"Online MLM Success Webinar",category:"Industry",conversionScore:61,whyRelevant:"Pre-qualified audience already interested in network marketing.",targetProfile:"MLM beginners and career changers",priorityLevel:"medium"}],recommendedEvent:{eventName:"Seoul Tech & Crypto Meetup",missionGoal:"Connect with 5 warm prospects and set 2 follow-up calls",contactsTarget:5,followupTarget:2}},eventMissionBrief:{conversationOpeners:["What brings you to the crypto/tech space?","Have you been following the recent Bitcoin surge?"],qualificationQuestions:["Are you currently looking for passive income opportunities?","What's your experience with network marketing?"],positioningStatement:"I help people build financial freedom through crypto-backed network marketing.",whatNotToSay:["Don't mention specific income figures in the first meeting."]},crmExecutionPlan:{leadPipelineStructure:"Prospect → First Contact → Follow-up (48h) → Meeting → Close",recommendedDailyOutreachVolume:8,followupIntervalsHours:48,messageTemplates:{firstContact:"Hi [Name], great meeting you at the Seoul meetup! I'd love to share something exciting with you — when's a good time for a 15-min call?",followup48h:"Hi [Name], just following up on my message. I have some insights about [topic we discussed] that I think you'll find valuable.",postEventMessage:"Thanks for connecting at [event]! Let me know if you're open to exploring what I mentioned."}},weeklySocialStrategy:{mainObjectiveThisWeek:"Qualify 10 new prospects from event pipeline",numericTarget:"10 new prospects, 3 follow-up calls",structureAlignmentGoal:"Focus on right leg to balance binary structure",riskMitigationFocus:"Avoid cap waste by ensuring team volume is distributed evenly"}}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"proMode",type:"toggle",label:"Pro mode (full strategy details)",default:!1,group:"Display"},{id:"maxEvents",type:"range",label:"Max events shown",default:2,min:1,max:5,step:1,group:"Display"},{id:"showCrmPlan",type:"toggle",label:"Show CRM outreach plan",default:!0,group:"Display"},{id:"showConversationTips",type:"toggle",label:"Show conversation tips (pro)",default:!1,group:"Display"}],events:{emits:[{name:"social:eventSelected",description:"User selected an event to attend"},{name:"social:templateCopied",description:"User copied a message template"},{name:"chat:draft",description:"Seed the chat composer with a draft message + quick-reply chips"}],listens:[{name:"social:refresh",description:"Force refresh social insights"}]},supportedPlacements:["main","sidebar"]},j={high:0,medium:1,low:2};function v({text:s,prefix:a,onCopy:l,t:o}){const[t,d]=h.useState(!1),p=h.useRef(null),u=h.useCallback(()=>{l(s),d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),1200)},[l,s]);return h.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),e.jsxs("div",{className:`es-si__copyable${t?" es-si__copyable--copied":""}`,onClick:u,role:"button",tabIndex:0,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),u())},"aria-label":o(t?"social_insights.copied":"social_insights.tap_to_copy"),title:o("social_insights.tap_to_copy"),children:[a&&e.jsx("span",{className:"es-si__copyable-prefix",children:a}),e.jsx("span",{className:"es-si__copyable-text",children:s})]})}function P({total:s,high:a,medium:l,t:o}){return e.jsxs("div",{className:"es-si__stats",children:[e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n",children:s}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_events")})]}),e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n es-si__stat-n--high",children:a}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_high")})]}),e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n es-si__stat-n--medium",children:l}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_medium")})]})]})}function I({card:s,selected:a,onSelect:l,t:o}){return e.jsxs("div",{className:`es-si__row${a?" es-si__row--active":""}`,onClick:l,role:"button",tabIndex:0,"aria-pressed":a,onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),l())},children:[e.jsx("span",{className:`es-si__dot es-si__dot--${s.priorityLevel}`,role:"img","aria-label":o(`social_insights.priority_${s.priorityLevel}`)}),e.jsxs("div",{className:"es-si__row-body",children:[e.jsx("div",{className:"es-si__row-name",children:s.eventName}),e.jsx("div",{className:"es-si__row-why",children:s.whyThisEventMatters})]}),e.jsx("span",{className:"es-si__row-go","aria-hidden":"true",children:o("social_insights.focus_cta")})]})}function D({card:s,onCopy:a,onTalkToGaio:l,hasChatView:o,t}){const d=s.conversationOpeners?.[0];return e.jsxs("div",{className:"es-si__focus",children:[e.jsxs("div",{className:"es-si__focus-tag",children:[e.jsx("span",{"aria-hidden":"true",children:"★"})," ",t("social_insights.focus_play")," ·"," ",e.jsx("span",{className:"es-si__focus-cat",children:s.category})]}),e.jsx("div",{className:"es-si__focus-name",children:s.eventName}),e.jsx("div",{className:"es-si__focus-profile",children:s.targetProfile}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"👁"})," ",t("social_insights.spot_them")]}),e.jsx("div",{className:"es-si__detail-text es-si__detail-text--muted",children:s.howToSpotThem}),d&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",t("social_insights.best_opener")]}),e.jsx(v,{text:d,onCopy:a,t})]}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"🌉"})," ",t("social_insights.bridge")]}),e.jsx(v,{text:s.bridgeLine,onCopy:a,t}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"📩"})," ",t("social_insights.followup_48h")]}),e.jsx(v,{text:s.followUp48h,onCopy:a,t}),e.jsxs("div",{className:"es-si__focus-warn",children:[e.jsx("div",{className:"es-si__detail-label es-si__detail-label--warn",children:t("social_insights.do_not_say")}),e.jsx("div",{className:"es-si__detail-text",children:s.doNotSay})]}),o&&e.jsx("div",{className:"es-si__gaio-row",children:e.jsxs("button",{type:"button",className:"es-si__gaio-link","aria-label":t("social_insights.gaio.aria",{event:s.eventName}),onClick:()=>l(s),children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",t("social_insights.talk_to_gaio")]})})]})}function F({data:s,actions:a,metadata:l,i18n:o,baseUrl:t,externalContext:d,auth:p,previewMode:u}){const i=o?.t??(n=>n),_=s,b=s.promptLogId,w=d?.apiKey??"",N=d?.hasChatView===!0,[y,k]=h.useState(0),C=h.useCallback(n=>{navigator.clipboard?.writeText(n).catch(()=>{}),a.emit("social:templateCopied",{text:n})},[a]),S=h.useCallback(n=>{const c=n.eventName;a.emit("chat:draft",{message:i("social_insights.gaio_draft",{event:c,why:n.whyThisEventMatters}),autoSend:!1,quickChips:[{label:i("social_insights.gaio.chip.plan"),message:i("social_insights.gaio.chip.plan_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.opener"),message:i("social_insights.gaio.chip.opener_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.target"),message:i("social_insights.gaio.chip.target_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.other"),message:"",autoSend:!1}]})},[a,i]);if(!_.events&&!s.error)return e.jsx(g,{blockType:"social-insights",children:e.jsx("div",{className:"es-block__body",children:e.jsx("div",{className:"es-si__loading",children:l?.dataQuality==="none"?i("social_insights.sign_in_prompt"):i("social_insights.gathering_events")})})});if(s.error)return e.jsx(g,{blockType:"social-insights",error:M(s.error)});const r=[..._.events??[]].sort((n,c)=>j[n.priorityLevel]-j[c.priorityLevel]),m=_.quietWeek,T=r.filter(n=>n.priorityLevel==="high").length,E=r.filter(n=>n.priorityLevel==="medium").length,x=y<r.length?y:0,f=r[x];return e.jsx(g,{blockType:"social-insights",children:e.jsxs("div",{className:"es-block__body",children:[e.jsx(L,{promptLogId:b,baseUrl:t,apiKey:w,jwt:p?.jwt,previewMode:u,t:i}),r.length>0&&e.jsx(P,{total:r.length,high:T,medium:E,t:i}),r.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"es-si__section-head",children:[e.jsx("span",{className:"es-si__section-title",children:i("social_insights.ranked_events")}),e.jsx("span",{className:"es-si__section-hint",children:i("social_insights.tap_to_focus")})]}),e.jsx("div",{className:"es-si__list",role:"list","aria-label":i("social_insights.ranked_events"),children:r.map((n,c)=>e.jsx(I,{card:n,selected:c===x,onSelect:()=>k(c),t:i},`${n.eventName}-${c}`))}),f&&e.jsx(D,{card:f,onCopy:C,onTalkToGaio:S,hasChatView:N,t:i})]}),r.length===0&&m&&e.jsxs("div",{className:"es-si__quiet-week",children:[e.jsx("div",{className:"es-si__quiet-week-headline",children:m.headline}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.downline_focus")}),e.jsx("div",{className:"es-si__detail-text",children:m.downlineActivationTarget})]}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.warm_network_action")}),e.jsx("div",{className:"es-si__detail-text",children:m.warmNetworkAction})]}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.online_conversation")}),e.jsx("div",{className:"es-si__detail-text",children:m.onlineConversationPrompt})]})]}),_.complianceNote&&(r.length>0||m)&&e.jsxs("div",{className:"es-si__compliance",role:"note",children:[e.jsx("span",{className:"es-si__compliance-icon","aria-hidden":"true",children:"⚠"}),e.jsxs("span",{className:"es-si__compliance-text",children:[e.jsxs("span",{className:"es-si__compliance-label",children:[i("social_insights.compliance_label"),":"]})," ",_.complianceNote]})]})]})})}export{F as Component,A as manifest};
2
- //# sourceMappingURL=index-BKrM_uoq-CABL-0v-.js.map
1
+ import{r as h,j as e,e as g,l as M}from"../nexly.js";import{C as L}from"./block-rating-uD_0LK-1-CQMNokIy.js";const A={slug:"social-insights",name:"Social Insights",version:"1.0.0",category:"data",requiredService:"social-insights",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},proMode:{type:"boolean",default:!1},maxEvents:{type:"number",default:2},showCrmPlan:{type:"boolean",default:!0},showConversationTips:{type:"boolean",default:!1}}},defaultConfig:{readAloudEnabled:!1,proMode:!1,maxEvents:2,showCrmPlan:!0,showConversationTips:!1},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"social-insights",inputSchema:{type:"object",properties:{eventIntelligence:{type:"object",properties:{scoredEvents:{type:"array",items:{type:"object",properties:{eventName:{type:"string"},conversionScore:{type:"number"}}}},recommendedEvent:{type:"object",properties:{eventName:{type:"string"},missionGoal:{type:"string"}}}}},eventMissionBrief:{type:"object",properties:{conversationOpeners:{type:"array",items:{type:"string"}},qualificationQuestions:{type:"array",items:{type:"string"}},positioningStatement:{type:"string"}}},crmExecutionPlan:{type:"object",properties:{leadPipelineStructure:{type:"string"},recommendedDailyOutreachVolume:{type:"number"},messageTemplates:{type:"object",properties:{firstContact:{type:"string"},followup48h:{type:"string"}}}}},weeklySocialStrategy:{type:"object",properties:{mainObjectiveThisWeek:{type:"string"},numericTarget:{type:"string"}}}}},previewDataOverride:{eventIntelligence:{scoredEvents:[{eventName:"Seoul Tech & Crypto Meetup",category:"Networking",conversionScore:92,whyRelevant:"High density of crypto-curious professionals matching your target profile.",targetProfile:"Tech professionals aged 28–42",priorityLevel:"high"},{eventName:"Gangnam Business Luncheon",category:"Business Networking",conversionScore:74,whyRelevant:"Established entrepreneurs with disposable income open to investment opportunities.",targetProfile:"SME owners and executives",priorityLevel:"medium"},{eventName:"Online MLM Success Webinar",category:"Industry",conversionScore:61,whyRelevant:"Pre-qualified audience already interested in network marketing.",targetProfile:"MLM beginners and career changers",priorityLevel:"medium"}],recommendedEvent:{eventName:"Seoul Tech & Crypto Meetup",missionGoal:"Connect with 5 warm prospects and set 2 follow-up calls",contactsTarget:5,followupTarget:2}},eventMissionBrief:{conversationOpeners:["What brings you to the crypto/tech space?","Have you been following the recent Bitcoin surge?"],qualificationQuestions:["Are you currently looking for passive income opportunities?","What's your experience with network marketing?"],positioningStatement:"I help people build financial freedom through crypto-backed network marketing.",whatNotToSay:["Don't mention specific income figures in the first meeting."]},crmExecutionPlan:{leadPipelineStructure:"Prospect → First Contact → Follow-up (48h) → Meeting → Close",recommendedDailyOutreachVolume:8,followupIntervalsHours:48,messageTemplates:{firstContact:"Hi [Name], great meeting you at the Seoul meetup! I'd love to share something exciting with you — when's a good time for a 15-min call?",followup48h:"Hi [Name], just following up on my message. I have some insights about [topic we discussed] that I think you'll find valuable.",postEventMessage:"Thanks for connecting at [event]! Let me know if you're open to exploring what I mentioned."}},weeklySocialStrategy:{mainObjectiveThisWeek:"Qualify 10 new prospects from event pipeline",numericTarget:"10 new prospects, 3 follow-up calls",structureAlignmentGoal:"Focus on right leg to balance binary structure",riskMitigationFocus:"Avoid cap waste by ensuring team volume is distributed evenly"}}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"proMode",type:"toggle",label:"Pro mode (full strategy details)",default:!1,group:"Display"},{id:"maxEvents",type:"range",label:"Max events shown",default:2,min:1,max:5,step:1,group:"Display"},{id:"showCrmPlan",type:"toggle",label:"Show CRM outreach plan",default:!0,group:"Display"},{id:"showConversationTips",type:"toggle",label:"Show conversation tips (pro)",default:!1,group:"Display"}],events:{emits:[{name:"social:eventSelected",description:"User selected an event to attend"},{name:"social:templateCopied",description:"User copied a message template"},{name:"chat:draft",description:"Seed the chat composer with a draft message + quick-reply chips"}],listens:[{name:"social:refresh",description:"Force refresh social insights"}]},supportedPlacements:["main","sidebar"]},j={high:0,medium:1,low:2};function v({text:s,prefix:a,onCopy:l,t:o}){const[t,d]=h.useState(!1),p=h.useRef(null),u=h.useCallback(()=>{l(s),d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),1200)},[l,s]);return h.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),e.jsxs("div",{className:`es-si__copyable${t?" es-si__copyable--copied":""}`,onClick:u,role:"button",tabIndex:0,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),u())},"aria-label":o(t?"social_insights.copied":"social_insights.tap_to_copy"),title:o("social_insights.tap_to_copy"),children:[a&&e.jsx("span",{className:"es-si__copyable-prefix",children:a}),e.jsx("span",{className:"es-si__copyable-text",children:s})]})}function P({total:s,high:a,medium:l,t:o}){return e.jsxs("div",{className:"es-si__stats",children:[e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n",children:s}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_events")})]}),e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n es-si__stat-n--high",children:a}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_high")})]}),e.jsxs("div",{className:"es-si__stat",children:[e.jsx("div",{className:"es-si__stat-n es-si__stat-n--medium",children:l}),e.jsx("div",{className:"es-si__stat-l",children:o("social_insights.stat_medium")})]})]})}function I({card:s,selected:a,onSelect:l,t:o}){return e.jsxs("div",{className:`es-si__row${a?" es-si__row--active":""}`,onClick:l,role:"button",tabIndex:0,"aria-pressed":a,onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),l())},children:[e.jsx("span",{className:`es-si__dot es-si__dot--${s.priorityLevel}`,role:"img","aria-label":o(`social_insights.priority_${s.priorityLevel}`)}),e.jsxs("div",{className:"es-si__row-body",children:[e.jsx("div",{className:"es-si__row-name",children:s.eventName}),e.jsx("div",{className:"es-si__row-why",children:s.whyThisEventMatters})]}),e.jsx("span",{className:"es-si__row-go","aria-hidden":"true",children:o("social_insights.focus_cta")})]})}function D({card:s,onCopy:a,onTalkToGaio:l,hasChatView:o,t}){const d=s.conversationOpeners?.[0];return e.jsxs("div",{className:"es-si__focus",children:[e.jsxs("div",{className:"es-si__focus-tag",children:[e.jsx("span",{"aria-hidden":"true",children:"★"})," ",t("social_insights.focus_play")," ·"," ",e.jsx("span",{className:"es-si__focus-cat",children:s.category})]}),e.jsx("div",{className:"es-si__focus-name",children:s.eventName}),e.jsx("div",{className:"es-si__focus-profile",children:s.targetProfile}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"👁"})," ",t("social_insights.spot_them")]}),e.jsx("div",{className:"es-si__detail-text es-si__detail-text--muted",children:s.howToSpotThem}),d&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",t("social_insights.best_opener")]}),e.jsx(v,{text:d,onCopy:a,t})]}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"🌉"})," ",t("social_insights.bridge")]}),e.jsx(v,{text:s.bridgeLine,onCopy:a,t}),e.jsxs("div",{className:"es-si__detail-label",children:[e.jsx("span",{"aria-hidden":"true",children:"📩"})," ",t("social_insights.followup_48h")]}),e.jsx(v,{text:s.followUp48h,onCopy:a,t}),e.jsxs("div",{className:"es-si__focus-warn",children:[e.jsx("div",{className:"es-si__detail-label es-si__detail-label--warn",children:t("social_insights.do_not_say")}),e.jsx("div",{className:"es-si__detail-text",children:s.doNotSay})]}),o&&e.jsx("div",{className:"es-si__gaio-row",children:e.jsxs("button",{type:"button",className:"es-si__gaio-link","aria-label":t("social_insights.gaio.aria",{event:s.eventName}),onClick:()=>l(s),children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",t("social_insights.talk_to_gaio")]})})]})}function F({data:s,actions:a,metadata:l,i18n:o,baseUrl:t,externalContext:d,auth:p,previewMode:u}){const i=o?.t??(n=>n),_=s,b=s.promptLogId,w=d?.apiKey??"",N=d?.hasChatView===!0,[y,k]=h.useState(0),C=h.useCallback(n=>{navigator.clipboard?.writeText(n).catch(()=>{}),a.emit("social:templateCopied",{text:n})},[a]),S=h.useCallback(n=>{const c=n.eventName;a.emit("chat:draft",{message:i("social_insights.gaio_draft",{event:c,why:n.whyThisEventMatters}),autoSend:!1,quickChips:[{label:i("social_insights.gaio.chip.plan"),message:i("social_insights.gaio.chip.plan_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.opener"),message:i("social_insights.gaio.chip.opener_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.target"),message:i("social_insights.gaio.chip.target_msg",{event:c}),autoSend:!0},{label:i("social_insights.gaio.chip.other"),message:"",autoSend:!1}]})},[a,i]);if(!_.events&&!s.error)return e.jsx(g,{blockType:"social-insights",children:e.jsx("div",{className:"es-block__body",children:e.jsx("div",{className:"es-si__loading",children:l?.dataQuality==="none"?i("social_insights.sign_in_prompt"):i("social_insights.gathering_events")})})});if(s.error)return e.jsx(g,{blockType:"social-insights",error:M(s.error)});const r=[..._.events??[]].sort((n,c)=>j[n.priorityLevel]-j[c.priorityLevel]),m=_.quietWeek,T=r.filter(n=>n.priorityLevel==="high").length,E=r.filter(n=>n.priorityLevel==="medium").length,x=y<r.length?y:0,f=r[x];return e.jsx(g,{blockType:"social-insights",children:e.jsxs("div",{className:"es-block__body",children:[e.jsx(L,{promptLogId:b,baseUrl:t,apiKey:w,jwt:p?.jwt,previewMode:u,t:i}),r.length>0&&e.jsx(P,{total:r.length,high:T,medium:E,t:i}),r.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"es-si__section-head",children:[e.jsx("span",{className:"es-si__section-title",children:i("social_insights.ranked_events")}),e.jsx("span",{className:"es-si__section-hint",children:i("social_insights.tap_to_focus")})]}),e.jsx("div",{className:"es-si__list",role:"list","aria-label":i("social_insights.ranked_events"),children:r.map((n,c)=>e.jsx(I,{card:n,selected:c===x,onSelect:()=>k(c),t:i},`${n.eventName}-${c}`))}),f&&e.jsx(D,{card:f,onCopy:C,onTalkToGaio:S,hasChatView:N,t:i})]}),r.length===0&&m&&e.jsxs("div",{className:"es-si__quiet-week",children:[e.jsx("div",{className:"es-si__quiet-week-headline",children:m.headline}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.downline_focus")}),e.jsx("div",{className:"es-si__detail-text",children:m.downlineActivationTarget})]}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.warm_network_action")}),e.jsx("div",{className:"es-si__detail-text",children:m.warmNetworkAction})]}),e.jsxs("div",{className:"es-si__detail-section",children:[e.jsx("div",{className:"es-si__detail-label",children:i("social_insights.online_conversation")}),e.jsx("div",{className:"es-si__detail-text",children:m.onlineConversationPrompt})]})]}),_.complianceNote&&(r.length>0||m)&&e.jsxs("div",{className:"es-si__compliance",role:"note",children:[e.jsx("span",{className:"es-si__compliance-icon","aria-hidden":"true",children:"⚠"}),e.jsxs("span",{className:"es-si__compliance-text",children:[e.jsxs("span",{className:"es-si__compliance-label",children:[i("social_insights.compliance_label"),":"]})," ",_.complianceNote]})]})]})})}export{F as Component,A as manifest};
2
+ //# sourceMappingURL=index-Ce73FsEJ-Ce0fEutJ.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,j as e,Q as m}from"../nexly.js";const f={slug:"faq",name:"FAQ",version:"1.0.0",category:"content",requiredService:"knowledge-search",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},limit:{type:"number",default:10}}},defaultConfig:{readAloudEnabled:!1,limit:10},dataContract:{serviceSlug:"knowledge-search",inputSchema:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{question:{type:"string"},answer:{type:"string"},category:{type:"string"}}}},total:{type:"number"}},required:["items"]},previewDataOverride:{items:[{question:"What is your return policy?",answer:"We accept returns within 30 days of purchase.",category:"Returns"},{question:"How long does shipping take?",answer:"Standard shipping takes 3-5 business days.",category:"Shipping"},{question:"Do you offer international shipping?",answer:"Yes, we ship to over 50 countries worldwide.",category:"Shipping"},{question:"How do I track my order?",answer:"You will receive a tracking link via email once your order ships.",category:"Orders"},{question:"Can I change or cancel my order?",answer:"Orders can be modified or cancelled within 1 hour of placement.",category:"Orders"}],total:5}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"limit",type:"range",label:"Number of FAQs",default:10,min:1,max:50,step:1,group:"Content"}],events:{emits:[{name:"faq:itemExpanded",description:"User expanded a FAQ item"},{name:"faq:itemCollapsed",description:"User collapsed a FAQ item"}],listens:[{name:"faq:refresh",description:"Reload FAQ content from service"}]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main","sidebar"]};function g({data:n,config:o,i18n:l}){const d=l?.t??(a=>a),t=n.items??o.items??[],[r,c]=i.useState(null),p=i.useCallback(a=>{c(s=>s===a?null:a)},[]);return e.jsx(m,{blockType:"faq",children:e.jsxs("div",{className:"es-block__body",children:[t.length===0&&e.jsx("div",{className:"es-block__empty",children:d("faq.empty")}),t.map((a,s)=>e.jsxs("div",{className:"es-faq__item",children:[e.jsxs("button",{className:"es-faq__question",onClick:()=>p(s),type:"button",children:[e.jsx("span",{children:a.question}),e.jsx("span",{className:"es-faq__chevron",children:r===s?"▲":"▼"})]}),r===s&&e.jsx("div",{className:"es-faq__answer",children:a.answer})]},s))]})})}export{g as Component,f as manifest};
2
- //# sourceMappingURL=index-C5RVj6y1-DUgMllqN.js.map
1
+ import{r as i,j as e,e as m}from"../nexly.js";const f={slug:"faq",name:"FAQ",version:"1.0.0",category:"content",requiredService:"knowledge-search",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},limit:{type:"number",default:10}}},defaultConfig:{readAloudEnabled:!1,limit:10},dataContract:{serviceSlug:"knowledge-search",inputSchema:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{question:{type:"string"},answer:{type:"string"},category:{type:"string"}}}},total:{type:"number"}},required:["items"]},previewDataOverride:{items:[{question:"What is your return policy?",answer:"We accept returns within 30 days of purchase.",category:"Returns"},{question:"How long does shipping take?",answer:"Standard shipping takes 3-5 business days.",category:"Shipping"},{question:"Do you offer international shipping?",answer:"Yes, we ship to over 50 countries worldwide.",category:"Shipping"},{question:"How do I track my order?",answer:"You will receive a tracking link via email once your order ships.",category:"Orders"},{question:"Can I change or cancel my order?",answer:"Orders can be modified or cancelled within 1 hour of placement.",category:"Orders"}],total:5}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"limit",type:"range",label:"Number of FAQs",default:10,min:1,max:50,step:1,group:"Content"}],events:{emits:[{name:"faq:itemExpanded",description:"User expanded a FAQ item"},{name:"faq:itemCollapsed",description:"User collapsed a FAQ item"}],listens:[{name:"faq:refresh",description:"Reload FAQ content from service"}]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main","sidebar"]};function g({data:n,config:o,i18n:l}){const d=l?.t??(a=>a),t=n.items??o.items??[],[r,c]=i.useState(null),p=i.useCallback(a=>{c(s=>s===a?null:a)},[]);return e.jsx(m,{blockType:"faq",children:e.jsxs("div",{className:"es-block__body",children:[t.length===0&&e.jsx("div",{className:"es-block__empty",children:d("faq.empty")}),t.map((a,s)=>e.jsxs("div",{className:"es-faq__item",children:[e.jsxs("button",{className:"es-faq__question",onClick:()=>p(s),type:"button",children:[e.jsx("span",{children:a.question}),e.jsx("span",{className:"es-faq__chevron",children:r===s?"▲":"▼"})]}),r===s&&e.jsx("div",{className:"es-faq__answer",children:a.answer})]},s))]})})}export{g as Component,f as manifest};
2
+ //# sourceMappingURL=index-Cf3qMIwZ-PMvqlUvO.js.map
@@ -1,2 +1,2 @@
1
- import{j as t,H as Pt,r as Q,Y as Vt}from"../nexly.js";import{x as _t,w as Rt}from"./accent-legibility-BJF2VO5n-CDPQ7suO.js";const It={slug:"gaio-dark",name:"GAIO Template Theme",version:"1.2.0",slots:["header","main","sidebar","footer"],cssVariables:{"--ai-bg":"#0F0F0F","--ai-bg-elevated":"#141414","--ai-bg-card":"#161616","--ai-bg-input":"#141414","--ai-bg-sidebar":"#121212","--ai-bg-footer":"#000000","--ai-fg":"#F5F5F5","--ai-fg-secondary":"#D1D5DB","--ai-muted":"#6B7280","--ai-muted-dim":"#4B5563","--ai-border":"#2a2a2a","--ai-border-subtle":"#1e1e1e","--ai-accent":"#C9A84C","--ai-accent-fg":"#0F0F0F","--ai-accent-hover":"#B8953F","--ai-accent-subtle":"rgba(201, 168, 76, 0.1)","--ai-accent-on-subtle":"#C9A84C","--ai-accent-on-subtle-strong":"#C9A84C","--ai-accent-border":"#6F5E2E","--ai-user-bubble":"#C9A84C","--ai-user-bubble-fg":"#0F0F0F","--ai-assistant-bubble":"#1a1a1a","--ai-assistant-bubble-fg":"#F5F5F5","--ai-shadow":"0 20px 60px -15px rgba(0, 0, 0, 0.7)","--ai-scrollbar":"#C9A84C","--ai-success":"#34D399","--ai-warning":"#FBBF24","--ai-error":"#F87171","--ai-info":"#6091BA","--ai-panel-width":"440px","--ai-panel-height":"720px","--ai-button-size":"80px","--ai-transition":"0.3s cubic-bezier(0.4, 0, 0.2, 1)","--ai-z-index":"999999","--es-color-surface":"#0F0F0F","--es-color-surface-elevated":"#1A1A1A","--es-color-surface-hover":"#2A2A2A","--es-color-on-surface":"#F5F5F5","--es-color-on-surface-muted":"#9CA3AF","--es-color-primary":"#C9A84C","--es-color-on-primary":"#0F0F0F","--es-color-primary-muted":"rgba(201, 168, 76, 0.1)","--es-color-primary-on-muted":"#C9A84C","--es-color-border":"#2a2a2a","--es-color-control-border":"#6B7280","--es-color-error":"#D27070","--es-color-success":"#5A9E6F","--es-color-on-success":"#0F0F0F","--es-color-interactive":"#E8D48B"},structure:{header:{id:"header",label:"Header",accepts:!0},sidebar:{id:"sidebar",label:"Sidebar Navigation",accepts:!1},main:{id:"main",label:"Main Content",accepts:!0},footer:{id:"footer",label:"Footer",accepts:!0}},defaultViews:[],requiredServices:["chat-bot","crypto-intel","event-scraper","venue-discovery"],description:"Premium dark theme with gold accents. Designed for crypto, fintech, and luxury e-commerce.",author:"E-Commerce Studio",planTierRequired:"free",packageName:"@ecommerce-studio/theme-gaio-dark",panels:[{id:"dashboard",name:"Dashboard",icon:"dashboard",order:0},{id:"coaching",name:"Coaching",icon:"coaching",order:1},{id:"discover",name:"Discover",icon:"discover",order:2},{id:"chat",name:"GAIO",icon:"chat",order:3},{id:"market",name:"Market",icon:"market",order:4},{id:"profile",name:"Profile",icon:"profile",order:5}],sidebarPosition:"right",options:[{id:"accentColor",type:"color",label:"Accent color",default:"#C9A84C",group:"Colors",cssVariable:"--ai-accent"},{id:"bgColor",type:"color",label:"Background",default:"#0F0F0F",group:"Colors",cssVariable:"--ai-bg"},{id:"textColor",type:"color",label:"Text color",default:"#F5F5F5",group:"Colors",cssVariable:"--ai-fg"},{id:"borderColor",type:"color",label:"Border color",default:"#2a2a2a",group:"Colors",cssVariable:"--ai-border"},{id:"panelWidth",type:"range",label:"Panel width",default:440,min:320,max:600,step:10,group:"Layout",cssVariable:"--ai-panel-width"},{id:"panelHeight",type:"range",label:"Panel height",default:720,min:480,max:900,step:10,group:"Layout",cssVariable:"--ai-panel-height"},{id:"initialOpen",type:"toggle",label:"Start open",default:!1,group:"Behavior"},{id:"position",type:"select",label:"Position",default:"bottom-right",group:"Layout",options:[{label:"Bottom Right",value:"bottom-right"},{label:"Bottom Left",value:"bottom-left"}]},{id:"sidebarPosition",type:"select",label:"Sidebar position",default:"right",group:"Layout",options:[{label:"Right",value:"right"},{label:"Left",value:"left"},{label:"Bottom",value:"bottom"},{label:"Hidden",value:"hidden"}]}],supports:{customCss:!0,customJs:!1,darkMode:!0,rtl:!1,views:!0}},Ot="http://www.w3.org/2000/svg",gt=27,vt=38,bt=53,Lt=38,J=1800,Tt=6400,qt=1800,Mt=J+Tt,Gt=Mt+qt,H=Gt+60;function wt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function $t(r){return Math.max(0,Math.min(1,r))}function c(r,i,s){const d=document.createElementNS(Ot,r);if(i)for(const e in i){const f=i[e];f!==void 0&&d.setAttribute(e,f)}return s&&s.forEach(e=>d.appendChild(e)),d}function st(r,i){const s=c("text",r);return s.textContent=i,s}function Yt(r){const i=r.querySelector('[data-owl="props"]');if(!i||i.childNodes.length)return;const s=e=>c("path",{d:"M0 2.2 C -1 0 -4 0.4 -4 3 C -4 5.4 0 7.4 0 7.4 C 0 7.4 4 5.4 4 3 C 4 0.4 1 0 0 2.2 Z",fill:e}),d=e=>c("path",{d:"M0 -4 L1.2 -1.2 L4 -1 L1.8 1 L2.4 3.8 L0 2.2 L-2.4 3.8 L-1.8 1 L-4 -1 L-1.2 -1.2 Z",fill:e});i.appendChild(c("g",{"data-owl":"glasses",opacity:"0"},[c("circle",{cx:"27",cy:"38",r:"11",fill:"#BAE6FD",opacity:"0.22"}),c("circle",{cx:"53",cy:"38",r:"11",fill:"#BAE6FD",opacity:"0.22"}),c("circle",{cx:"27",cy:"38",r:"12.5",fill:"none",stroke:"#1F2937","stroke-width":"2"}),c("circle",{cx:"53",cy:"38",r:"12.5",fill:"none",stroke:"#1F2937","stroke-width":"2"}),c("path",{d:"M39.5 37 Q40 34.5 40.5 37",stroke:"#1F2937","stroke-width":"2",fill:"none"}),c("path",{d:"M14.5 37 L6 33",stroke:"#1F2937","stroke-width":"2",fill:"none","stroke-linecap":"round"}),c("path",{d:"M65.5 37 L74 33",stroke:"#1F2937","stroke-width":"2",fill:"none","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"book",opacity:"0"},[c("path",{d:"M40 60 L22 57 Q20 57 20 59 L20 71 Q20 73 22 73 L40 74 Z",fill:"#FEF3C7",stroke:"#B45309","stroke-width":"1"}),c("path",{d:"M40 60 L58 57 Q60 57 60 59 L60 71 Q60 73 58 73 L40 74 Z",fill:"#FFF7ED",stroke:"#B45309","stroke-width":"1"}),c("line",{x1:"40",y1:"60",x2:"40",y2:"74",stroke:"#B45309","stroke-width":"1"}),c("line",{x1:"24",y1:"62",x2:"36",y2:"63.5",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"24",y1:"65",x2:"36",y2:"66.5",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"24",y1:"68",x2:"34",y2:"69.3",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"44",y1:"63.5",x2:"56",y2:"62",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"44",y1:"66.5",x2:"56",y2:"65",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"46",y1:"69.3",x2:"56",y2:"68",stroke:"#9CA3AF","stroke-width":"0.8"})])),i.appendChild(c("g",{"data-owl":"robot",opacity:"0"},[c("line",{x1:"86",y1:"40",x2:"86",y2:"34",stroke:"#64748B","stroke-width":"1.5"}),c("circle",{cx:"86",cy:"32.5",r:"1.8",fill:"#38BDF8"}),c("rect",{x:"78",y:"39",width:"16",height:"14",rx:"3",fill:"#CBD5E1",stroke:"#64748B","stroke-width":"1"}),c("circle",{"data-owl":"robot-eye-l",cx:"83",cy:"46",r:"2",fill:"#0EA5E9"}),c("circle",{"data-owl":"robot-eye-r",cx:"89",cy:"46",r:"2",fill:"#0EA5E9"}),c("rect",{x:"82",y:"50",width:"8",height:"1.6",rx:"0.8",fill:"#64748B"}),c("rect",{x:"80",y:"53.5",width:"12",height:"8",rx:"2",fill:"#94A3B8",stroke:"#64748B","stroke-width":"0.8"})])),i.appendChild(c("g",{"data-owl":"chat-bubble",opacity:"0",transform:"translate(50, 22) scale(0)"},[c("path",{d:"M2 -4 L1 2 L9 -4 Z",fill:"#FFFFFF"}),c("rect",{x:"0",y:"-20",width:"27",height:"16",rx:"5",fill:"#FFFFFF",stroke:"#E5E7EB","stroke-width":"0.6"}),c("line",{x1:"5",y1:"-14.5",x2:"21",y2:"-14.5",stroke:"#CBD5E1","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"5",y1:"-10",x2:"16",y2:"-10",stroke:"#CBD5E1","stroke-width":"2","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"phone",opacity:"0"},[c("rect",{x:"30",y:"50",width:"20",height:"30",rx:"4",fill:"#111827",stroke:"#374151","stroke-width":"1"}),c("rect",{x:"37",y:"51.6",width:"6",height:"1.4",rx:"0.7",fill:"#374151"}),c("clipPath",{id:"owl-phone-screen-clip"},[c("rect",{x:"32",y:"54",width:"16",height:"22",rx:"1.5"})]),c("g",{"clip-path":"url(#owl-phone-screen-clip)"},[c("rect",{x:"32",y:"54",width:"16",height:"22",fill:"#0EA5E9",opacity:"0.85"}),c("g",{"data-owl":"phone-feed"},[c("line",{x1:"34",y1:"58",x2:"46",y2:"58",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.9"}),c("line",{x1:"34",y1:"62",x2:"43",y2:"62",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.75"}),c("line",{x1:"34",y1:"66",x2:"46",y2:"66",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.6"}),c("line",{x1:"34",y1:"70",x2:"42",y2:"70",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.5"}),c("line",{x1:"34",y1:"74",x2:"45",y2:"74",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.4"})])])])),i.appendChild(c("g",{"data-owl":"headband",opacity:"0"},[c("path",{d:"M14 27 Q40 19 66 27 L66 31 Q40 23 14 31 Z",fill:"#EF4444"}),c("path",{d:"M15 29 L5 26",stroke:"#EF4444","stroke-width":"2.6","stroke-linecap":"round"}),c("path",{d:"M15 31 L6 32",stroke:"#EF4444","stroke-width":"2.6","stroke-linecap":"round"}),c("line",{x1:"32",y1:"23.6",x2:"32",y2:"26.6",stroke:"#FCA5A5","stroke-width":"1"}),c("line",{x1:"40",y1:"22.8",x2:"40",y2:"25.8",stroke:"#FCA5A5","stroke-width":"1"}),c("line",{x1:"48",y1:"23.6",x2:"48",y2:"26.6",stroke:"#FCA5A5","stroke-width":"1"})])),i.appendChild(c("g",{"data-owl":"motion",opacity:"0"},[c("line",{x1:"2",y1:"40",x2:"12",y2:"40",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"0",y1:"48",x2:"11",y2:"48",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"3",y1:"56",x2:"12",y2:"56",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"})])),i.appendChild(c("circle",{"data-owl":"sweat",cx:"63",cy:"34",r:"2.4",fill:"#38BDF8",opacity:"0"})),i.appendChild(c("g",{"data-owl":"social",opacity:"0"},[c("g",{"data-owl":"social-1",transform:"translate(20, 30)"},[s("#FB7185")]),c("g",{"data-owl":"social-2",transform:"translate(60, 26)"},[d("#FCD34D")]),c("g",{"data-owl":"social-3",transform:"translate(40, 18)"},[s("#F472B6")]),c("g",{"data-owl":"social-4",transform:"translate(70, 40)"},[c("circle",{cx:"0",cy:"0",r:"4.5",fill:"#34D399"}),c("path",{d:"M-2 0 L-0.6 1.6 L2.2 -1.6",stroke:"#FFFFFF","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"})])])),i.appendChild(c("g",{"data-owl":"sleep-eyes",opacity:"0"},[c("circle",{cx:"27",cy:"38",r:"15",fill:"url(#owl-body-grad)"}),c("circle",{cx:"53",cy:"38",r:"15",fill:"url(#owl-body-grad)"}),c("path",{d:"M19 37 Q27 43 35 37",stroke:"#5C4413","stroke-width":"1.8",fill:"none","stroke-linecap":"round"}),c("path",{d:"M45 37 Q53 43 61 37",stroke:"#5C4413","stroke-width":"1.8",fill:"none","stroke-linecap":"round"}),c("path",{d:"M19 37 Q18 35.5 17 35.5",stroke:"#5C4413","stroke-width":"1",fill:"none","stroke-linecap":"round"}),c("path",{d:"M61 37 Q62 35.5 63 35.5",stroke:"#5C4413","stroke-width":"1",fill:"none","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"zzz",opacity:"0"},[st({"data-owl":"zzz-1",x:"57",y:"27","font-size":"6","font-weight":"700",fill:"#93C5FD","font-family":"sans-serif"},"z"),st({"data-owl":"zzz-2",x:"62",y:"20","font-size":"8","font-weight":"700",fill:"#7DD3FC","font-family":"sans-serif"},"Z"),st({"data-owl":"zzz-3",x:"69",y:"12","font-size":"10","font-weight":"700",fill:"#BAE6FD","font-family":"sans-serif"},"Z")])),i.appendChild(c("g",{"data-owl":"notes",opacity:"0"},[st({"data-owl":"note-1",x:"12",y:"30","font-size":"10",fill:"#5EEAD4","font-family":"sans-serif"},"♪"),st({"data-owl":"note-2",x:"64",y:"26","font-size":"9",fill:"#F472B6","font-family":"sans-serif"},"♫"),st({"data-owl":"note-3",x:"40",y:"12","font-size":"8",fill:"#FCD34D","font-family":"sans-serif"},"♪")])),i.appendChild(c("circle",{"data-owl":"cold-glow",cx:"40",cy:"42",r:"44",fill:"none",stroke:"#38BDF8","stroke-width":"3",opacity:"0"})),i.appendChild(c("g",{"data-owl":"frost",opacity:"0"},[c("g",{"data-owl":"flake-1",transform:"translate(14, 24)"},[d("#E0F2FE")]),c("g",{"data-owl":"flake-2",transform:"translate(66, 22)"},[d("#BAE6FD")]),c("g",{"data-owl":"flake-3",transform:"translate(40, 14)"},[d("#E0F2FE")])]))}function Ht(r){const i=s=>r.querySelector(s);return{svg:r,pupilL:i('[data-owl="pupil-l"]'),pupilR:i('[data-owl="pupil-r"]'),eyelidL:i('[data-owl="eyelid-top-l"]'),eyelidR:i('[data-owl="eyelid-top-r"]'),highlightL:i('[data-owl="highlight-l"]'),highlightR:i('[data-owl="highlight-r"]'),blushL:i('[data-owl="blush-l"]'),blushR:i('[data-owl="blush-r"]'),mouth:i('[data-owl="mouth"]'),glasses:i('[data-owl="glasses"]'),book:i('[data-owl="book"]'),robot:i('[data-owl="robot"]'),robotEyeL:i('[data-owl="robot-eye-l"]'),robotEyeR:i('[data-owl="robot-eye-r"]'),chatBubble:i('[data-owl="chat-bubble"]'),phone:i('[data-owl="phone"]'),phoneFeed:i('[data-owl="phone-feed"]'),headband:i('[data-owl="headband"]'),motion:i('[data-owl="motion"]'),sweat:i('[data-owl="sweat"]'),social:i('[data-owl="social"]'),socialItems:[1,2,3,4].map(s=>i(`[data-owl="social-${s}"]`)),sleepEyes:i('[data-owl="sleep-eyes"]'),zzz:i('[data-owl="zzz"]'),zzzItems:[1,2,3].map(s=>i(`[data-owl="zzz-${s}"]`)),notes:i('[data-owl="notes"]'),noteItems:[1,2,3].map(s=>i(`[data-owl="note-${s}"]`)),coldGlow:i('[data-owl="cold-glow"]'),frost:i('[data-owl="frost"]'),frostItems:[1,2,3].map(s=>i(`[data-owl="flake-${s}"]`))}}function Ut(r,i){const s=(d,e,f)=>d?.setAttribute(e,f);s(r.pupilL,"r","6.5"),s(r.pupilL,"cx",String(gt)),s(r.pupilL,"cy",String(vt)),s(r.pupilR,"r","6.5"),s(r.pupilR,"cx",String(bt)),s(r.pupilR,"cy",String(Lt)),s(r.highlightL,"r","4"),s(r.highlightR,"r","4"),s(r.eyelidL,"transform","translate(0, 0)"),s(r.eyelidR,"transform","translate(0, 0)"),s(r.blushL,"opacity","0.2"),s(r.blushR,"opacity","0.2"),s(r.mouth,"d","M35 55Q40 58 45 55"),s(r.mouth,"opacity","0.25"),s(r.mouth,"stroke-width","1.2"),r.svg.style.transform="",r.chatBubble&&r.chatBubble.setAttribute("transform","translate(50, 22) scale(0)"),r.phoneFeed&&r.phoneFeed.setAttribute("transform",""),["glasses","book","robot","chatBubble","phone","headband","motion","sweat","social","sleepEyes","zzz","notes","coldGlow","frost"].forEach(d=>{const e=r[d];e&&e.setAttribute("opacity","0")}),["glasses","book","phone","robot"].forEach(d=>{const e=r[d];e&&e.setAttribute("transform","")}),i&&(i.style.transform="")}function jt(r){if(!r.eyelidL||!r.eyelidR)return;const i=150,s=performance.now();function d(e){const f=Math.min((e-s)/i,1),S=(f<.5?wt(f*2):wt((1-f)*2))*12;r.eyelidL.setAttribute("transform",`translate(0, ${S})`),r.eyelidR.setAttribute("transform",`translate(0, ${S})`),f<1?requestAnimationFrame(d):(r.eyelidL.setAttribute("transform","translate(0, 0)"),r.eyelidR.setAttribute("transform","translate(0, 0)"))}requestAnimationFrame(d)}const zt=["sleeping","reading","ai-chat","jogging","social","phone","dancing","eye-rolling","freezing","zoom-in","thinking","whisper","warning"];function Jt(r,i,s,d){const e=Ht(r);let f=0,S=!1;const N=performance.now(),Z=()=>{S||(S=!0,f&&cancelAnimationFrame(f),Ut(e,i),d?.())},O=()=>Z(),l=(n,o,u)=>n?.setAttribute(o,u),_=n=>n<J?wt($t(n/J)):n<Mt?1:1-wt($t((n-Mt)/qt));function B(n){function o(u){if(S)return;const j=u-N;if(n(j)){O();return}f=requestAnimationFrame(o)}f=requestAnimationFrame(o)}switch(s){case"sleeping":{B(n=>{const o=_(n);return l(e.sleepEyes,"opacity",String(o)),e.svg.style.transform=`translateY(${Math.sin(n/750)*1.6*o}px) rotate(${-6*o}deg)`,l(e.zzz,"opacity",String(o)),e.zzzItems.forEach((u,j)=>{if(!u)return;const D=(n+j*700)%2100/2100;u.setAttribute("opacity",String(Math.sin(D*Math.PI)*o)),u.setAttribute("transform",`translate(${D*5}, ${-D*8})`)}),n>H});break}case"reading":{let n=!1,o=!1,u=!1;B(j=>{const D=_(j);e.glasses&&(e.glasses.setAttribute("opacity",String(D)),e.glasses.setAttribute("transform",`translate(0, ${-9*(1-D)})`)),e.book&&(e.book.setAttribute("opacity",String(D)),e.book.setAttribute("transform",`translate(0, ${10*(1-D)})`));const q=4*D;return l(e.pupilL,"cy",String(38+q)),l(e.pupilR,"cy",String(38+q)),e.svg.style.transform=`rotate(${Math.sin(j/700)*2*D}deg)`,!n&&j>J+700&&(n=!0,jt(e)),!o&&j>J+2600&&(o=!0,jt(e)),!u&&j>J+4500&&(u=!0,jt(e)),j>H});break}case"ai-chat":{B(n=>{const o=_(n);e.robot&&(e.robot.setAttribute("opacity",String(o)),e.robot.setAttribute("transform",`translate(${(1-o)*14}, 0)`));const u=Math.floor(n/640)%2;if(e.chatBubble){const j=u===0?o:0;e.chatBubble.setAttribute("opacity",String(j)),e.chatBubble.setAttribute("transform",`translate(50, 22) scale(${j})`)}if(e.robotEyeL&&e.robotEyeR){const j=2+(u===1?Math.abs(Math.sin(n/80)):0)*o;e.robotEyeL.setAttribute("r",String(j)),e.robotEyeR.setAttribute("r",String(j))}return e.svg.style.transform=`rotate(${Math.sin(n/300)*3*o}deg)`,n>H});break}case"jogging":{B(n=>{const o=_(n);if(l(e.headband,"opacity",String(o)),e.svg.style.transform=`translateY(${-Math.abs(Math.sin(n/90))*6*o}px) rotate(${Math.sin(n/90)*3*o}deg)`,l(e.motion,"opacity",String((.4+.6*Math.abs(Math.sin(n/70)))*o)),e.sweat){const u=n/700%1;e.sweat.setAttribute("opacity",String((1-u)*o)),e.sweat.setAttribute("cy",String(34+u*12))}return l(e.blushL,"opacity",String(.15+.25*o)),l(e.blushR,"opacity",String(.15+.25*o)),n>H});break}case"social":{const n=[[20,30],[60,26],[40,18],[70,40]];B(o=>{const u=_(o);return l(e.social,"opacity",String(u)),e.socialItems.forEach((j,D)=>{if(!j)return;const q=(o+D*320)%1300/1300,[C,w]=n[D]??[0,0],R=Math.sin(q*Math.PI);j.setAttribute("transform",`translate(${C}, ${w-q*18}) scale(${.7+R*.5})`),j.setAttribute("opacity",String(R*u))}),e.svg.style.transform=`translateY(${Math.sin(o/220)*-2*u}px)`,l(e.blushL,"opacity",String(.2+.25*u)),l(e.blushR,"opacity",String(.2+.25*u)),o>H});break}case"phone":{B(n=>{const o=_(n);e.phone&&(e.phone.setAttribute("opacity",String(o)),e.phone.setAttribute("transform",`translate(0, ${12*(1-o)})`));const u=5*o;return l(e.pupilL,"cy",String(38+u)),l(e.pupilR,"cy",String(38+u)),e.phoneFeed&&e.phoneFeed.setAttribute("transform",`translate(0, ${-(n/1400*22%22)})`),l(e.blushL,"opacity","0.15"),l(e.blushR,"opacity","0.15"),n>H});break}case"dancing":{B(n=>{const o=_(n),u=n/300;return e.svg.style.transform=`translateY(${-Math.abs(Math.sin(u*2))*4*o}px) rotate(${Math.sin(u)*11*o}deg)`,l(e.blushL,"opacity",String(.2+.3*o)),l(e.blushR,"opacity",String(.2+.3*o)),l(e.mouth,"d","M34 55Q40 60 46 55"),l(e.mouth,"opacity",String(.4*o)),l(e.mouth,"stroke-width","1.5"),l(e.notes,"opacity",String(o)),e.noteItems.forEach((j,D)=>{if(!j)return;const q=(n+D*400)%1200/1200;j.setAttribute("opacity",String(Math.sin(q*Math.PI)*o)),j.setAttribute("transform",`translate(${Math.sin(q*Math.PI*2)*3}, ${-q*14})`)}),n>H});break}case"eye-rolling":{B(n=>{const o=_(n),u=-Math.PI/2+n/1100*Math.PI*2,j=3.4*o;return l(e.pupilL,"cx",String(gt+Math.cos(u)*j)),l(e.pupilL,"cy",String(vt+Math.sin(u)*j)),l(e.pupilR,"cx",String(bt+Math.cos(u)*j)),l(e.pupilR,"cy",String(Lt+Math.sin(u)*j)),e.svg.style.transform=`rotate(${Math.sin(n/1100)*4*o}deg)`,l(e.mouth,"d","M35 56 L45 56"),l(e.mouth,"opacity",String(.35*o)),l(e.mouth,"stroke-width","1.3"),n>H});break}case"freezing":{const n=[[14,24],[66,22],[40,14]];B(o=>{const u=_(o),j=5*u;l(e.eyelidL,"transform",`translate(0, ${j})`),l(e.eyelidR,"transform",`translate(0, ${j})`);const D=6.5-2.6*u;return l(e.pupilL,"r",String(D)),l(e.pupilR,"r",String(D)),l(e.coldGlow,"opacity",String((.15+.25*Math.abs(Math.sin(o/500)))*u)),l(e.frost,"opacity",String(u)),e.frostItems.forEach((q,C)=>{if(!q)return;const[w,R]=n[C]??[0,0],I=(o/1600+C*.33)%1;q.setAttribute("transform",`translate(${w+Math.sin(o/400+C)*2}, ${R+I*10}) rotate(${o/20+C*60})`),q.setAttribute("opacity",String(Math.sin(I*Math.PI)*.9*u))}),l(e.mouth,"d","M35 56 L45 56"),l(e.mouth,"opacity",String(.08+.28*u)),l(e.mouth,"stroke-width","1.3"),e.svg.style.transform=`rotate(${Math.sin(o/900)*1.5*u}deg)`,o>H});break}case"zoom-in":{B(n=>{const o=_(n);i&&(i.style.transform=`scale(${1+.75*o})`);const u=6.5+3.2*o;l(e.pupilL,"r",String(u)),l(e.pupilR,"r",String(u));const j=4+1.6*o;l(e.highlightL,"r",String(j)),l(e.highlightR,"r",String(j));const D=Math.sin(n/260)*2.2*o,q=Math.cos(n/330)*1.6*o;return l(e.pupilL,"cx",String(gt+D)),l(e.pupilL,"cy",String(vt+q)),l(e.pupilR,"cx",String(bt+D)),l(e.pupilR,"cy",String(Lt+q)),l(e.blushL,"opacity",String(.2+.15*o)),l(e.blushR,"opacity",String(.2+.15*o)),n>H});break}case"thinking":{B(n=>{const o=_(n);e.svg.style.transform=`rotate(${-12*o}deg)`;const u=Math.sin(n/1300)*1.8*o;return l(e.pupilL,"cx",String(gt+u)),l(e.pupilR,"cx",String(bt+u)),l(e.pupilL,"cy",String(38-3.5*o)),l(e.pupilR,"cy",String(38-3.5*o)),l(e.pupilL,"r",String(6.5-1*o)),l(e.pupilR,"r",String(6.5-1*o)),n>H});break}case"whisper":{B(n=>{const o=_(n);e.svg.style.transform=`scale(${1+.05*o})`,l(e.pupilL,"r",String(6.5+2*o)),l(e.pupilR,"r",String(6.5+2*o));const u=n>J+500&&n<J+950||n>J+2400&&n<J+2850;return l(e.eyelidR,"transform",`translate(0, ${u?9:0})`),l(e.blushL,"opacity",String(.2+.3*o)),l(e.blushR,"opacity",String(.2+.3*o)),n>H});break}case"warning":{B(n=>{const o=_(n);e.svg.style.transform=`rotate(${Math.sin(n/80)*5*o}deg)`;const u=5*o;return l(e.eyelidL,"transform",`translate(0, ${u})`),l(e.eyelidR,"transform",`translate(0, ${u})`),l(e.blushL,"opacity","0.1"),l(e.blushR,"opacity","0.1"),n>H});break}default:O()}return Z}const Xt="http://www.w3.org/2000/svg",kt=(()=>{const r=[-58,-50,-42,-34,-26,-18,-10,-2,6,14],i=[34,40,46,50,52,52,50,46,40,33];return r.map((s,d)=>({angle:s,len:i[d]??33,rx:-5+d*(10/(r.length-1)),ry:-13+Math.abs(d-4.5)*.5}))})(),Kt=[{angle:-46,len:20,rx:-9,ry:-2},{angle:-33,len:22,rx:-6,ry:-3},{angle:-20,len:23,rx:-3,ry:-4},{angle:-8,len:22,rx:0,ry:-4},{angle:4,len:20,rx:3,ry:-3},{angle:16,len:17,rx:6,ry:-2}],te=[{angle:-28,len:15,rx:-7,ry:3},{angle:-12,len:17,rx:-4,ry:4},{angle:3,len:17,rx:-1,ry:4.5},{angle:18,len:15,rx:2,ry:4},{angle:33,len:12,rx:5,ry:3}];function ee(r,i){return`M0 0 C ${-i} ${-r*.28} ${-i*.9} ${-r*.72} 0 ${-r} C ${i*.9} ${-r*.72} ${i} ${-r*.28} 0 0 Z`}function re(r){const i=r.querySelector('[data-owl="wing-l"]');if(!i||i.childNodes.length)return;const s=(e,f)=>{const S=document.createElementNS(Xt,e);for(const N in f)S.setAttribute(N,f[N]);return S},d=(e,f,S,N)=>{const Z=s("path",{d:ee(e,f),fill:S,stroke:"#8B6914","stroke-width":"0.7","stroke-linejoin":"round"});return N?[Z,s("path",{d:`M0 -3 L0 ${-(e-4)}`,stroke:"#7A6220","stroke-width":"0.5",fill:"none",opacity:"0.4"})]:[Z]};kt.forEach((e,f)=>{const S=s("g",{"data-owl":`wing-feather-${f+1}`,transform:`translate(${e.rx}, ${e.ry}) rotate(0)`});d(e.len,4.2,"url(#owl-feather-grad)",!0).forEach(N=>S.appendChild(N)),i.appendChild(S)}),Kt.forEach(e=>{const f=s("g",{transform:`translate(${e.rx}, ${e.ry}) rotate(${e.angle})`});d(e.len,4.6,"url(#owl-feather-grad)",!0).forEach(S=>f.appendChild(S)),i.appendChild(f)}),te.forEach(e=>{const f=s("g",{transform:`translate(${e.rx}, ${e.ry}) rotate(${e.angle})`});d(e.len,4.4,"url(#owl-feather-grad-dark)",!1).forEach(S=>f.appendChild(S)),i.appendChild(f)})}function m(r,i,s,d,e,f){const S=-s*(r.x-i),N=-d*r.v,Z=(S+N)/e;return{x:r.x+r.v*f,v:r.v+Z*f}}function ot(r,i,s=.3){return Math.abs(r.v)<s&&Math.abs(r.x-i)<s}function U(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function ie(r){return 1+2.70158*(r-1)**3+1.70158*(r-1)**2}const St=27,Bt=38,Et=53,Dt=38,oe=3.5;function ae(r){const i=D=>r.querySelector(D),s=i('[data-owl="pupil-l"]'),d=i('[data-owl="pupil-r"]'),e=i('[data-owl="eyelid-top-l"]'),f=i('[data-owl="eyelid-top-r"]'),S=i('[data-owl="highlight-l"]'),N=i('[data-owl="highlight-r"]'),Z=i('[data-owl="glow"]'),O=i('[data-owl="eureka-symbol"]'),l=i('[data-owl="exclamation"]'),_=i('[data-owl="blush-l"]'),B=i('[data-owl="blush-r"]'),n=i('[data-owl="mouth"]');if(!s||!d||!e||!f||!S||!N||!Z||!O||!l||!_||!B||!n)return null;const o=[];for(let D=1;D<=7;D++){const q=i(`[data-owl="ray-${D}"]`);q&&o.push(q)}const u=i('[data-owl="wing-l"]'),j=u?Array.from(u.children).slice(0,kt.length):[];return{svg:r,pupilL:s,pupilR:d,eyelidL:e,eyelidR:f,highlightL:S,highlightR:N,glow:Z,eureka:O,exclamation:l,blushL:_,blushR:B,mouth:n,rays:o,wingL:u,wingStaticL:i('[data-owl="wing-static-l"]'),chatBubble:i('[data-owl="chat-bubble"]'),notifDot:i('[data-owl="notif-dot"]'),wingFeathers:j}}function Wt(r,i,s,d,e){const f=r.getBoundingClientRect(),S=f.left+d/80*f.width,N=f.top+e/80*f.height,Z=i-S,O=s-N,l=Math.sqrt(Z*Z+O*O);if(l===0)return{x:0,y:0};const _=Math.min(l,300)/300*oe;return{x:Z/l*_,y:O/l*_}}function se(r,i,s,d=!1){r.pupilL.setAttribute("r","6.5"),r.pupilL.setAttribute("cx",String(St)),r.pupilL.setAttribute("cy",String(Bt)),r.pupilR.setAttribute("r","6.5"),r.pupilR.setAttribute("cx",String(Et)),r.pupilR.setAttribute("cy",String(Dt)),r.highlightL.setAttribute("r","4"),r.highlightL.setAttribute("cx","22"),r.highlightL.setAttribute("cy","33"),r.highlightR.setAttribute("r","4"),r.highlightR.setAttribute("cx","48"),r.highlightR.setAttribute("cy","33"),r.eyelidL.setAttribute("transform","translate(0, 0)"),r.eyelidR.setAttribute("transform","translate(0, 0)"),s.set(r.svg,{lx:0,ly:0,rx:0,ry:0}),r.svg.style.transform="",r.glow.setAttribute("opacity","0"),r.eureka.setAttribute("opacity","0"),r.eureka.setAttribute("transform","translate(58, -6)"),r.exclamation.setAttribute("opacity","0"),r.exclamation.setAttribute("transform","translate(-6, 6)"),r.blushL.setAttribute("opacity","0.2"),r.blushR.setAttribute("opacity","0.2"),r.mouth.setAttribute("d","M35 55Q40 58 45 55"),r.mouth.setAttribute("opacity","0.25"),r.mouth.setAttribute("stroke-width","1.2"),r.rays.forEach(e=>e.setAttribute("opacity","0")),r.wingL?.setAttribute("opacity","0"),r.wingL?.setAttribute("transform","translate(21, 59) scale(0)"),r.wingStaticL?.setAttribute("opacity","1"),r.chatBubble?.setAttribute("opacity","0"),r.chatBubble?.setAttribute("transform","translate(50, 22) scale(0)"),r.notifDot?.setAttribute("opacity",d?"1":"0"),r.notifDot?.setAttribute("r","5"),i&&(i.style.transform="")}function ne(r,i){const s=Q.useRef(new Set),d=Q.useRef(0),e=Q.useRef(!1),f=Q.useRef(null),S=Q.useRef(!1),N=Q.useRef(!1),Z=Q.useRef(null),O=Q.useRef(new WeakMap),l=Q.useRef(0),_=Q.useCallback(C=>{const w=s.current;if(C)w.add(C),re(C),S.current&&!N.current&&C.querySelector('[data-owl="notif-dot"]')?.setAttribute("opacity","1");else for(const R of w)R.isConnected||w.delete(R)},[]),B=Q.useCallback(()=>{const C=[];for(const w of s.current){const R=ae(w);R&&C.push(R)}return C},[]),n=Q.useCallback(()=>{const C=performance.now();function w(R){const I=Math.min((R-C)/150,1),y=(I<.5?U(I*2):U((1-I)*2))*12;for(const a of B())a.eyelidL.setAttribute("transform",`translate(0, ${y})`),a.eyelidR.setAttribute("transform",`translate(0, ${y})`);if(I<1)requestAnimationFrame(w);else for(const a of B())a.eyelidL.setAttribute("transform","translate(0, 0)"),a.eyelidR.setAttribute("transform","translate(0, 0)")}requestAnimationFrame(w)},[B]),o=Q.useCallback(()=>{const C=B();for(const w of C)w.glow.setAttribute("opacity","0.3"),w.blushL.setAttribute("opacity","0.4"),w.blushR.setAttribute("opacity","0.4");setTimeout(()=>{for(const w of B())w.glow.setAttribute("opacity","0"),w.blushL.setAttribute("opacity","0.2"),w.blushR.setAttribute("opacity","0.2")},500)},[B]),u=Q.useCallback(C=>{if(f.current&&(f.current(),f.current=null),e.current||B().length===0)return;if(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){o();return}e.current=!0;const w=performance.now(),R=y=>{for(const a of B()){const h=a.svg.closest(".gaio-theme__button");y(a,h)}},I=()=>{for(const y of B()){const a=y.svg.closest(".gaio-theme__button");se(y,a,O.current,S.current)}N.current=!1,e.current=!1};if(C==="eureka"){let y=function(z){const F=.016666666666666666,X=z-w;if(b===0&&X>300&&(b=1),b===1&&X>1100&&(b=2),b===2&&X>2400&&(b=3),b===0&&(a=m(a,.7,180,16,1,F),h=m(h,-10,160,10,1.2,F),k=m(k,1.1,250,6,.6,F),g=m(g,0,180,8,.8,F)),b===1&&(a=m(a,1.2,200,10,.8,F),h=m(h,5,220,10,1,F),p=m(p,.55,200,7,1,F),L=m(L,1.18,250,5,.6,F),A=m(A,.55,160,10,1,F),v=m(v,-6,180,7,.7,F),x=m(x,1.15,220,5,.5,F),M=m(M,1,200,8,1,F),k=m(k,.9,100,12,1,F),g=m(g,-2,80,10,1,F)),b===2){const W=(X-1100)/1300;h={x:Math.sin(W*Math.PI*5)*4*(1-W),v:0},a=m(a,1.1,100,12,1,F),A=m(A,.6,80,10,1,F),p=m(p,.25,50,10,1,F),L=m(L,1.06,100,10,1,F),v={x:-6+Math.sin(W*Math.PI*3)*2.5,v:0},x=m(x,1,80,10,1,F),M=m(M,.6,60,10,1,F),k=m(k,0,100,8,1,F)}b===3&&(a=m(a,1,90,14,1,F),h=m(h,0,70,12,1,F),p=m(p,0,50,10,1,F),L=m(L,1,70,12,1,F),x=m(x,0,100,10,1,F),v=m(v,12,50,10,1,F),k=m(k,0,80,10,1,F),A=m(A,.2,50,10,1,F),M=m(M,0,60,10,1,F));const T=6.5*a.x,K=String(Math.max(2.5,T)),E=String(4*Math.max(.4,a.x*.65)),G=`rotate(${h.x}deg)`,nt=String(Math.max(0,p.x)),lt=`scale(${L.x})`,P=Math.max(0,x.x),Y=String(Math.min(1,P)),ht=`translate(58, ${v.x}) scale(${P})`,ut=Math.max(0,k.x),tt=String(Math.min(1,ut)),At=`translate(-6, ${g.x}) scale(${ut})`,pt=String(A.x),ft=(b===1||b===2)&&P>.3;if(ft&&($+=.1),R((W,at)=>{if(W.pupilL.setAttribute("r",K),W.pupilR.setAttribute("r",K),W.highlightL.setAttribute("r",E),W.highlightR.setAttribute("r",E),W.svg.style.transform=G,W.glow.setAttribute("opacity",nt),at&&(at.style.transform=lt),W.eureka.setAttribute("opacity",Y),W.eureka.setAttribute("transform",ht),W.exclamation.setAttribute("opacity",tt),W.exclamation.setAttribute("transform",At),ft?W.rays.forEach((et,Ft)=>{const xt=.2+.8*Math.abs(Math.sin($+Ft*.9));et.setAttribute("opacity",String(xt*Math.min(1,P)))}):W.rays.forEach(et=>et.setAttribute("opacity","0")),W.blushL.setAttribute("opacity",pt),W.blushR.setAttribute("opacity",pt),b===1||b===2){const et=Math.min(1,(X-300)/600);W.mouth.setAttribute("d",`M34 55Q40 ${58+et*3} 46 55`),W.mouth.setAttribute("opacity","0.4"),W.mouth.setAttribute("stroke-width","1.5")}else b===3&&(W.mouth.setAttribute("d","M35 55Q40 58 45 55"),W.mouth.setAttribute("opacity","0.25"),W.mouth.setAttribute("stroke-width","1.2"))}),b===3&&ot(a,1)&&ot(h,0)&&ot(p,0)&&ot(L,1)&&ot(x,0)&&ot(k,0)&&ot(A,.2,.05)){I();return}d.current=requestAnimationFrame(y)},a={x:1,v:0},h={x:0,v:0},p={x:0,v:0},L={x:1,v:0},v={x:18,v:0},x={x:0,v:0},g={x:12,v:0},k={x:0,v:0},A={x:.2,v:0},M={x:0,v:0},b=0,$=0;d.current=requestAnimationFrame(y);return}if(C==="notification"){let y=function(K){const E=K-w;let G;E<g?G=U(T(E/g)):E<$?G=1:G=1-U(T((E-$)/M));const nt=v*G,lt=a[0]+(h[0]-a[0])*G,P=a[1]+(h[1]-a[1])*G,Y=`scale(${1+.18*G})`,ht=String(.2+.2*G),ut=String(Math.max(0,1-G*1.6));let tt;if(E<g)tt=p*U(T(E/g));else if(E<b){const V=(E-g)/k;tt=p+Math.sin(V*Math.PI*4)*9}else if(E<$){const V=U(T((E-b)/A));tt=p+(L-p)*V}else{const V=U(T((E-$)/M));tt=L*(1-V)}const At=`translate(${lt}, ${P}) rotate(${tt}) scale(${Math.max(0,nt)})`,pt=String(Math.max(0,G)),ft=kt.map((V,rt)=>{let it,ct=0;if(E<g)it=U(T((E-rt*16)/(g*.72)));else if(E<b){it=1;const dt=(E-g)/k;ct=Math.sin(dt*Math.PI*4-rt*.55)*7*(1-dt*.3)}else if(E<$){it=1;const dt=(E-b)/A;ct=Math.sin((1-dt)*Math.PI*2-rt*.4)*3*(1-dt)}else it=1-U(T((E-$-(X-1-rt)*14)/(M*.72)));const yt=V.angle*(x+(1-x)*it)+ct;return`translate(${V.rx}, ${V.ry}) rotate(${yt})`});let W=0,at=0;if(E>=b&&E<$)W=ie(T((E-b)/300)),at=T((E-b)/170);else if(E>=$){const V=U(T((E-$)/(M*.6)));W=1-V,at=1-V}const et=String(Math.max(0,at)),Ft=`translate(50, 22) scale(${Math.max(0,W)})`,xt=E>=z&&S.current?T((E-z)/F):0,Qt=String(xt),Zt=String(5+Math.sin(xt*Math.PI)*1.6);if(R((V,rt)=>{rt&&(rt.style.transform=Y),V.blushL.setAttribute("opacity",ht),V.blushR.setAttribute("opacity",ht),V.wingStaticL?.setAttribute("opacity",ut),V.wingL?.setAttribute("opacity",pt),V.wingL?.setAttribute("transform",At),V.wingFeathers.forEach((it,ct)=>{const yt=ft[ct];yt&&it.setAttribute("transform",yt)}),V.chatBubble?.setAttribute("opacity",et),V.chatBubble?.setAttribute("transform",Ft),E>=z&&(V.notifDot?.setAttribute("opacity",Qt),V.notifDot?.setAttribute("r",Zt))}),E>z+F+60){I();return}d.current=requestAnimationFrame(y)};N.current=!0;const a=[21,59],h=[13,55],p=-48,L=-72,v=1.6,x=.2,g=520,k=660,A=480,M=620,b=g+k,$=b+A,z=$+M,F=260,X=kt.length,T=K=>Math.max(0,Math.min(1,K));d.current=requestAnimationFrame(y);return}if(C==="attention"){let y=function(p){const L=.016666666666666666,v=p-w;a=m(a,4.5,240,14,1,L),h=m(h,v<500?.4:0,180,10,1,L);const x=4+Math.sin(v/150)*1.5,g=String(Math.max(2.5,a.x)),k=String(x),A=String(Math.max(0,h.x));if(R(M=>{M.pupilL.setAttribute("r",g),M.pupilR.setAttribute("r",g),M.highlightL.setAttribute("r",k),M.highlightR.setAttribute("r",k),M.glow.setAttribute("opacity",A)}),v>1500){I();return}d.current=requestAnimationFrame(y)},a={x:6.5,v:0},h={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="important"){let y=function(L){const v=.016666666666666666,x=L-w,g=x<1100;a=m(a,g?0:12,220,9,.7,v),h=m(h,x<350?1.2:g?1:0,240,8,.6,v),p=m(p,x<500?.25:0,160,10,1,v);const k=Math.max(0,h.x),A=String(Math.min(1,k)),M=`translate(-6, ${a.x}) scale(${k})`,b=String(Math.max(0,p.x));if(R($=>{$.exclamation.setAttribute("opacity",A),$.exclamation.setAttribute("transform",M),$.glow.setAttribute("opacity",b)}),x>1500){I();return}d.current=requestAnimationFrame(y)},a={x:12,v:0},h={x:0,v:0},p={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="success"){let y=function(L){const v=.016666666666666666,x=L-w;a=m(a,x<400?-8:0,220,11,1,v),h=m(h,x<1500?.55:.2,120,12,1,v),p=m(p,x<1500?.3:0,120,12,1,v);const g=4+Math.sin(x/180)*1,k=`translateY(${a.x}px)`,A=String(g),M=String(h.x),b=String(Math.max(0,p.x)),$=x<1700;if(R(z=>{z.svg.style.transform=k,z.highlightL.setAttribute("r",A),z.highlightR.setAttribute("r",A),z.blushL.setAttribute("opacity",M),z.blushR.setAttribute("opacity",M),z.glow.setAttribute("opacity",b),$&&(z.mouth.setAttribute("d","M34 55Q40 60 46 55"),z.mouth.setAttribute("opacity","0.4"),z.mouth.setAttribute("stroke-width","1.5"))}),x>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:.2,v:0},p={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="thinking"){let y=function(L){const v=.016666666666666666,x=L-w,g=x<1500;a=m(a,g?-12:0,200,13,1,v),h=m(h,g?34.5:38,200,13,1,v),p=m(p,g?5.5:6.5,200,13,1,v);const k=`rotate(${a.x}deg)`,A=String(h.x),M=String(Math.max(2.5,p.x));if(R(b=>{b.svg.style.transform=k,b.pupilL.setAttribute("cy",A),b.pupilR.setAttribute("cy",A),b.pupilL.setAttribute("r",M),b.pupilR.setAttribute("r",M)}),x>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:38,v:0},p={x:6.5,v:0};d.current=requestAnimationFrame(y);return}if(C==="warning"){let y=function(p){const L=.016666666666666666,v=p-w;let x=0;v<350?x=-5:v<700?x=5:v<1050?x=-3:x=0,a=m(a,x,260,12,1,L),h=m(h,v<1600?8:0,200,13,1,L);const g=`rotate(${a.x}deg)`,k=`translate(0, ${h.x})`;if(R(A=>{A.svg.style.transform=g,A.eyelidL.setAttribute("transform",k),A.eyelidR.setAttribute("transform",k),A.blushL.setAttribute("opacity","0.1"),A.blushR.setAttribute("opacity","0.1")}),v>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="greeting"){let y=function(v){const x=.016666666666666666,g=v-w;let k=10;g>400&&g<800?k=-5:g>=800&&(k=0),a=m(a,k,220,12,1,x),h=m(h,g<1100?.25:.2,120,12,1,x),!p&&g>200&&(p=!0,n()),!L&&g>500&&(L=!0,n());const A=`rotate(${a.x}deg)`,M=String(h.x);if(R(b=>{b.svg.style.transform=A,b.blushL.setAttribute("opacity",M),b.blushR.setAttribute("opacity",M)}),g>1500){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:.15,v:0},p=!1,L=!1;d.current=requestAnimationFrame(y);return}if(C==="celebrate"){let y=function(a){const h=a-w,p=Math.min(h/2e3,1),L=p*360,v=Math.sin(p*Math.PI)*.6,x=.15+Math.sin(p*Math.PI)*.45,g=1+Math.sin(p*Math.PI)*.1,k=`rotate(${L}deg)`,A=String(Math.max(0,v)),M=String(x),b=`scale(${g})`;if(R(($,z)=>{$.svg.style.transform=k,$.glow.setAttribute("opacity",A),$.blushL.setAttribute("opacity",M),$.blushR.setAttribute("opacity",M),z&&(z.style.transform=b)}),h>2e3){I();return}d.current=requestAnimationFrame(y)};d.current=requestAnimationFrame(y);return}if(C==="whisper"){let y=function(v){const x=.016666666666666666,g=v-w,k=g<1500;a=m(a,k?1.05:1,200,14,1,x),h=m(h,k?8.5:6.5,200,14,1,x);const A=g>500&&g<1100;L=m(L,A?9:0,220,13,1,x),p=m(p,g<700?.5:g<1500?.3:.2,120,12,1,x);const M=`scale(${a.x})`,b=String(Math.max(2.5,h.x)),$=`translate(0, ${L.x})`,z=String(p.x);if(R(F=>{F.svg.style.transform=M,F.pupilL.setAttribute("r",b),F.pupilR.setAttribute("r",b),F.eyelidR.setAttribute("transform",$),F.blushL.setAttribute("opacity",z),F.blushR.setAttribute("opacity",z)}),g>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:1,v:0},h={x:6.5,v:0},p={x:.15,v:0},L={x:0,v:0};d.current=requestAnimationFrame(y);return}e.current=!1},[B,n,o]),j=Q.useCallback(C=>{if(S.current=C,!(C&&N.current))for(const w of B())w.notifDot?.setAttribute("opacity",C?"1":"0"),w.notifDot?.setAttribute("r","5")},[B]);Q.useEffect(()=>{const C=O.current;function w(y){Z.current={x:y.clientX,y:y.clientY}}function R(){if(!e.current&&!f.current){const y=Z.current;for(const a of B()){const h=C.get(a.svg)??{lx:0,ly:0,rx:0,ry:0};let p=0,L=0,v=0,x=0;if(y){const g=Wt(a.svg,y.x,y.y,St,Bt),k=Wt(a.svg,y.x,y.y,Et,Dt);p=g.x,L=g.y,v=k.x,x=k.y}h.lx+=(p-h.lx)*.12,h.ly+=(L-h.ly)*.12,h.rx+=(v-h.rx)*.12,h.ry+=(x-h.ry)*.12,C.set(a.svg,h),a.pupilL.setAttribute("cx",String(St+h.lx)),a.pupilL.setAttribute("cy",String(Bt+h.ly)),a.pupilR.setAttribute("cx",String(Et+h.rx)),a.pupilR.setAttribute("cy",String(Dt+h.ry)),a.highlightL.setAttribute("cx",String(22+h.lx*.4)),a.highlightL.setAttribute("cy",String(33+h.ly*.4)),a.highlightR.setAttribute("cx",String(48+h.rx*.4)),a.highlightR.setAttribute("cy",String(33+h.ry*.4))}}l.current=requestAnimationFrame(R)}document.addEventListener("mousemove",w),l.current=requestAnimationFrame(R);const I=setInterval(()=>{e.current||n()},2500+Math.random()*2500);return()=>{document.removeEventListener("mousemove",w),cancelAnimationFrame(l.current),clearInterval(I),d.current&&cancelAnimationFrame(d.current),e.current=!1}},[r,B,n]);const D=i?.enabled??!1,q=Math.max(3e3,i?.intervalMs??1e4);return Q.useEffect(()=>{if(!D||s.current.size===0||typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;for(const w of s.current)Yt(w);const C=setInterval(()=>{if(e.current||f.current)return;const w=[...s.current].filter(a=>a.isConnected);if(w.length===0)return;const R=zt[Math.floor(Math.random()*zt.length)]??"sleeping",I=()=>{f.current=null;for(const a of w)O.current.set(a,{lx:0,ly:0,rx:0,ry:0})},y=w.map((a,h)=>{const p=a.closest(".gaio-theme__button");return Jt(a,p,R,h===0?I:void 0)});f.current=()=>{for(const a of y)a();I()}},q);return()=>{clearInterval(C),f.current&&(f.current(),f.current=null)}},[r,D,q]),{registerSvg:_,react:u,setNotifBadge:j}}const le=["notification","attention","eureka","important","success","thinking","warning","greeting","celebrate","whisper"];function ce({owl:r}){return typeof window<"u"&&new URLSearchParams(window.location.search).get("owlDebug")!=="1"?null:t.jsxs("div",{"data-testid":"owl-debug-panel",style:{position:"fixed",bottom:90,right:16,zIndex:9999,background:"rgba(0,0,0,0.8)",borderRadius:8,padding:8,display:"flex",flexDirection:"column",gap:4},children:[le.map(i=>t.jsx("button",{type:"button",onClick:()=>{r.react(i),i==="notification"&&r.setNotifBadge(!0)},style:{color:"white",background:"#333",border:"1px solid #555",borderRadius:4,padding:"4px 8px",cursor:"pointer",fontSize:12},children:i},i)),t.jsx("button",{type:"button",onClick:()=>r.setNotifBadge(!1),style:{color:"white",background:"#5a1f1f",border:"1px solid #555",borderRadius:4,padding:"4px 8px",cursor:"pointer",fontSize:12},children:"clear dot"})]})}function Nt({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),t.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),t.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),t.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function de({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M4 14h6v6"}),t.jsx("path",{d:"M20 10h-6V4"}),t.jsx("path",{d:"M14 10l7-7"}),t.jsx("path",{d:"M3 21l7-7"})]})}function he({size:r=18,className:i}){return t.jsx("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ct({size:r=64,className:i,svgRef:s}){return t.jsxs("svg",{ref:s,className:i,width:r,height:r,viewBox:"0 0 80 80",fill:"none","aria-hidden":"true",style:{overflow:"visible",transformOrigin:"40px 42px"},children:[t.jsx("circle",{"data-owl":"glow",cx:"40",cy:"42",r:"44",fill:"none",stroke:"#FCD34D",strokeWidth:"3",opacity:"0"}),t.jsxs("g",{"data-owl":"eureka-symbol",opacity:"0",transform:"translate(58, -6)",children:[t.jsx("ellipse",{cx:"10",cy:"8",rx:"8",ry:"9",fill:"#FDE68A"}),t.jsx("ellipse",{cx:"10",cy:"7",rx:"5.5",ry:"6",fill:"#FEF9C3",opacity:"0.7"}),t.jsx("path",{d:"M7.5 9C8 6 9 5 10 7C11 5 12 6 12.5 9",stroke:"#F59E0B",strokeWidth:"1",fill:"none",strokeLinecap:"round"}),t.jsx("rect",{x:"6",y:"16.5",width:"8",height:"2",rx:"1",fill:"#F59E0B"}),t.jsx("rect",{x:"6.5",y:"18.5",width:"7",height:"1.5",rx:"0.75",fill:"#D97706"}),t.jsx("rect",{x:"7",y:"20",width:"6",height:"1.2",rx:"0.6",fill:"#B45309"}),t.jsx("circle",{cx:"10",cy:"22",r:"1",fill:"#92400E"}),t.jsx("line",{"data-owl":"ray-1",x1:"10",y1:"-4",x2:"10",y2:"-1.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-2",x1:"20",y1:"3",x2:"17.5",y2:"4.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-3",x1:"20",y1:"13",x2:"17.5",y2:"11.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-4",x1:"0",y1:"3",x2:"2.5",y2:"4.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-5",x1:"0",y1:"13",x2:"2.5",y2:"11.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-6",x1:"18",y1:"-1",x2:"16",y2:"1",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-7",x1:"2",y1:"-1",x2:"4",y2:"1",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"})]}),t.jsxs("g",{"data-owl":"exclamation",opacity:"0",transform:"translate(-6, 6)",children:[t.jsx("rect",{x:"3",y:"0",width:"5",height:"14",rx:"2.5",fill:"#F59E0B"}),t.jsx("circle",{cx:"5.5",cy:"18",r:"2.5",fill:"#F59E0B"})]}),t.jsx("path",{d:"M16 18Q20 4 28 20Z",fill:"#C9A84C",opacity:.7}),t.jsx("path",{d:"M64 18Q60 4 52 20Z",fill:"#C9A84C",opacity:.7}),t.jsx("path",{d:"M18 17Q21 8 25 19Z",fill:"#D4B85C",opacity:.4}),t.jsx("path",{d:"M62 17Q59 8 55 19Z",fill:"#D4B85C",opacity:.4}),t.jsx("path",{d:"M19 12Q20 6 22 14Z",fill:"#8B6914",opacity:.6}),t.jsx("path",{d:"M61 12Q60 6 58 14Z",fill:"#8B6914",opacity:.6}),t.jsx("path",{d:"M20 8Q20.5 5 21.5 10Z",fill:"#5C4413",opacity:.5}),t.jsx("path",{d:"M60 8Q59.5 5 58.5 10Z",fill:"#5C4413",opacity:.5}),t.jsx("circle",{cx:20.5,cy:6,r:.8,fill:"#2DD4BF",opacity:.2}),t.jsx("circle",{cx:59.5,cy:6,r:.8,fill:"#2DD4BF",opacity:.2}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",fill:"url(#owl-body-grad)"}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",stroke:"#A8893A",strokeWidth:"1.5",fill:"none",opacity:.35}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",fill:"url(#owl-body-shade)",opacity:.2}),t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"owl-body-grad",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"#D4B85C"}),t.jsx("stop",{offset:"50%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#A8893A"})]}),t.jsxs("radialGradient",{id:"owl-belly-grad",cx:"50%",cy:"45%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FEF9C3",stopOpacity:.35}),t.jsx("stop",{offset:"60%",stopColor:"#F5E6B8",stopOpacity:.2}),t.jsx("stop",{offset:"100%",stopColor:"#C9A84C",stopOpacity:0})]}),t.jsxs("radialGradient",{id:"owl-body-shade",cx:"50%",cy:"40%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"transparent"}),t.jsx("stop",{offset:"70%",stopColor:"transparent"}),t.jsx("stop",{offset:"100%",stopColor:"#8B7500"})]}),t.jsxs("radialGradient",{id:"owl-iris-grad-l",cx:"45%",cy:"42%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"50%",stopColor:"#2DD4BF"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("radialGradient",{id:"owl-iris-grad-r",cx:"45%",cy:"42%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"50%",stopColor:"#2DD4BF"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("linearGradient",{id:"owl-feather-grad",x1:"0",y1:"1",x2:"0",y2:"0",children:[t.jsx("stop",{offset:"0%",stopColor:"#9A7D2E"}),t.jsx("stop",{offset:"55%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#ECD684"})]}),t.jsxs("linearGradient",{id:"owl-feather-grad-dark",x1:"0",y1:"1",x2:"0",y2:"0",children:[t.jsx("stop",{offset:"0%",stopColor:"#5C4A18"}),t.jsx("stop",{offset:"70%",stopColor:"#8B7028"}),t.jsx("stop",{offset:"100%",stopColor:"#B8993E"})]}),t.jsx("filter",{id:"owl-wing-shadow",x:"-35%",y:"-35%",width:"170%",height:"170%",children:t.jsx("feDropShadow",{dx:"0",dy:"1",stdDeviation:"0.9",floodColor:"#2E230A",floodOpacity:"0.5"})})]}),t.jsx("ellipse",{cx:"40",cy:"52",rx:"14",ry:"16",fill:"url(#owl-belly-grad)"}),t.jsx("path",{d:"M33 48Q40 52 47 48",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.18}),t.jsx("path",{d:"M31 52Q40 57 49 52",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.15}),t.jsx("path",{d:"M32 56Q40 61 48 56",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.12}),t.jsx("ellipse",{cx:"40",cy:"38",rx:"24",ry:"18",stroke:"#D4A800",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("ellipse",{cx:"40",cy:"38",rx:"20",ry:"15",stroke:"#D4A800",strokeWidth:"0.5",fill:"none",opacity:"0.1"}),t.jsx("path",{d:"M13 28Q20 21 30 27",stroke:"#5C4413",strokeWidth:"3.2",strokeLinecap:"round",fill:"none",opacity:.25}),t.jsx("path",{d:"M67 28Q60 21 50 27",stroke:"#5C4413",strokeWidth:"3.2",strokeLinecap:"round",fill:"none",opacity:.25}),t.jsx("path",{d:"M13 27Q20 20 30 26",stroke:"#A8893A",strokeWidth:"2.8",strokeLinecap:"round",fill:"none",opacity:.65}),t.jsx("path",{d:"M67 27Q60 20 50 26",stroke:"#A8893A",strokeWidth:"2.8",strokeLinecap:"round",fill:"none",opacity:.65}),t.jsx("path",{d:"M15 26Q21 21 28 25",stroke:"#D4B85C",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:.4}),t.jsx("path",{d:"M65 26Q59 21 52 25",stroke:"#D4B85C",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:.4}),t.jsx("circle",{cx:"27",cy:"38",r:"15",fill:"#0D9488",opacity:.08}),t.jsx("circle",{cx:"27",cy:"38",r:"14",fill:"white",opacity:.97}),t.jsx("circle",{cx:"27",cy:"38",r:"14",stroke:"#8B7500",strokeWidth:"1.2",fill:"none",opacity:.25}),t.jsx("circle",{cx:"27",cy:"38",r:"12",fill:"url(#owl-iris-grad-l)",opacity:.9}),t.jsx("circle",{cx:"27",cy:"38",r:"10",stroke:"#0F766E",strokeWidth:"0.4",fill:"none",opacity:.2}),t.jsx("circle",{cx:"27",cy:"38",r:"8.5",stroke:"#134E4A",strokeWidth:"0.3",fill:"none",opacity:.12}),t.jsx("circle",{"data-owl":"pupil-l",cx:"27",cy:"38",r:"6.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"27",cy:"38",r:"6.5",stroke:"#0D9488",strokeWidth:"0.5",fill:"none",opacity:.3}),t.jsx("circle",{"data-owl":"highlight-l",cx:"22",cy:"33",r:"4",fill:"white",opacity:"0.95"}),t.jsx("circle",{cx:"31",cy:"42",r:"2",fill:"white",opacity:"0.5"}),t.jsx("circle",{cx:"23",cy:"35",r:"1",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M16 44Q27 48 38 44",stroke:"#C5B200",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("circle",{cx:"53",cy:"38",r:"15",fill:"#0D9488",opacity:.08}),t.jsx("circle",{cx:"53",cy:"38",r:"14",fill:"white",opacity:.97}),t.jsx("circle",{cx:"53",cy:"38",r:"14",stroke:"#8B7500",strokeWidth:"1.2",fill:"none",opacity:.25}),t.jsx("circle",{cx:"53",cy:"38",r:"12",fill:"url(#owl-iris-grad-r)",opacity:.9}),t.jsx("circle",{cx:"53",cy:"38",r:"10",stroke:"#0F766E",strokeWidth:"0.4",fill:"none",opacity:.2}),t.jsx("circle",{cx:"53",cy:"38",r:"8.5",stroke:"#134E4A",strokeWidth:"0.3",fill:"none",opacity:.12}),t.jsx("circle",{"data-owl":"pupil-r",cx:"53",cy:"38",r:"6.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"53",cy:"38",r:"6.5",stroke:"#0D9488",strokeWidth:"0.5",fill:"none",opacity:.3}),t.jsx("circle",{"data-owl":"highlight-r",cx:"48",cy:"33",r:"4",fill:"white",opacity:"0.95"}),t.jsx("circle",{cx:"57",cy:"42",r:"2",fill:"white",opacity:"0.5"}),t.jsx("circle",{cx:"49",cy:"35",r:"1",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M42 44Q53 48 64 44",stroke:"#C5B200",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("clipPath",{id:"owl-eye-clip-l",children:t.jsx("circle",{cx:"27",cy:"38",r:"14"})}),t.jsx("rect",{"data-owl":"eyelid-top-l",x:"13",y:"14",width:"28",height:"16",fill:"#C9A84C",opacity:"0.2",clipPath:"url(#owl-eye-clip-l)"}),t.jsx("clipPath",{id:"owl-eye-clip-r",children:t.jsx("circle",{cx:"53",cy:"38",r:"14"})}),t.jsx("rect",{"data-owl":"eyelid-top-r",x:"39",y:"14",width:"28",height:"16",fill:"#C9A84C",opacity:"0.2",clipPath:"url(#owl-eye-clip-r)"}),t.jsx("ellipse",{"data-owl":"blush-l",cx:"14",cy:"47",rx:"5",ry:"2.5",fill:"#FB7185",opacity:"0.15"}),t.jsx("ellipse",{"data-owl":"blush-r",cx:"66",cy:"47",rx:"5",ry:"2.5",fill:"#FB7185",opacity:"0.15"}),t.jsx("path",{d:"M36 49Q40 57 44 49Q40 52 36 49Z",fill:"#E8A000"}),t.jsx("path",{d:"M36 49Q40 57 44 49",stroke:"#B45309",strokeWidth:"0.8",fill:"none",opacity:"0.4"}),t.jsx("circle",{cx:"38",cy:"51",r:"0.6",fill:"#B45309",opacity:"0.3"}),t.jsx("circle",{cx:"42",cy:"51",r:"0.6",fill:"#B45309",opacity:"0.3"}),t.jsx("path",{"data-owl":"mouth",d:"M35 55Q40 58 45 55",stroke:"#C5B200",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.3"}),t.jsxs("g",{"data-owl":"wing-static-l",children:[t.jsx("path",{d:"M12 45Q5 53 11 65",stroke:"#8B6914",strokeWidth:"2.5",fill:"none",opacity:.3,strokeLinecap:"round"}),t.jsx("path",{d:"M13 46Q7 54 12 64",stroke:"#D4A800",strokeWidth:"2",fill:"none",opacity:.35,strokeLinecap:"round"}),t.jsx("path",{d:"M14 48Q9 55 13 62",stroke:"#5C4413",strokeWidth:"1",fill:"none",opacity:.2,strokeLinecap:"round"}),t.jsx("path",{d:"M14 50Q10 56 13 60",stroke:"#2DD4BF",strokeWidth:"0.8",fill:"none",opacity:.08,strokeLinecap:"round"})]}),t.jsx("path",{d:"M68 45Q75 53 69 65",stroke:"#8B6914",strokeWidth:"2.5",fill:"none",opacity:.3,strokeLinecap:"round"}),t.jsx("path",{d:"M67 46Q73 54 68 64",stroke:"#D4A800",strokeWidth:"2",fill:"none",opacity:.35,strokeLinecap:"round"}),t.jsx("path",{d:"M66 48Q71 55 67 62",stroke:"#5C4413",strokeWidth:"1",fill:"none",opacity:.2,strokeLinecap:"round"}),t.jsx("path",{d:"M66 50Q70 56 67 60",stroke:"#2DD4BF",strokeWidth:"0.8",fill:"none",opacity:.08,strokeLinecap:"round"}),t.jsx("path",{d:"M35 72Q38 76 40 72",stroke:"#D4A800",strokeWidth:"1",fill:"none",opacity:"0.2",strokeLinecap:"round"}),t.jsx("path",{d:"M40 72Q42 76 45 72",stroke:"#D4A800",strokeWidth:"1",fill:"none",opacity:"0.2",strokeLinecap:"round"}),t.jsx("path",{d:"M28 69Q30 74 33 70Q31 74 34 70Q33 74 36 69",stroke:"#E8A000",strokeWidth:"1.3",fill:"none",opacity:"0.5",strokeLinecap:"round"}),t.jsx("path",{d:"M44 69Q47 74 49 70Q48 74 50 70Q50 74 52 69",stroke:"#E8A000",strokeWidth:"1.3",fill:"none",opacity:"0.5",strokeLinecap:"round"}),t.jsx("path",{d:"M18 36Q15 40 18 44",stroke:"#8B6914",strokeWidth:"0.8",fill:"none",opacity:.25}),t.jsx("path",{d:"M62 36Q65 40 62 44",stroke:"#8B6914",strokeWidth:"0.8",fill:"none",opacity:.25}),t.jsx("path",{d:"M18 37Q16 40 18 43",stroke:"#2DD4BF",strokeWidth:"0.5",fill:"none",opacity:.08}),t.jsx("path",{d:"M62 37Q64 40 62 43",stroke:"#2DD4BF",strokeWidth:"0.5",fill:"none",opacity:.08}),t.jsx("g",{"data-owl":"props"}),t.jsx("g",{"data-owl":"wing-l",opacity:"0",transform:"translate(21, 59) scale(0)",filter:"url(#owl-wing-shadow)"}),t.jsxs("g",{"data-owl":"chat-bubble",opacity:"0",transform:"translate(50, 22) scale(0)",filter:"url(#owl-wing-shadow)",children:[t.jsx("path",{d:"M2 -4 L1 2 L9 -4 Z",fill:"#FFFFFF"}),t.jsx("rect",{x:"0",y:"-20",width:"27",height:"16",rx:"5",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:"0.6"}),t.jsx("line",{x1:"5",y1:"-14.5",x2:"21",y2:"-14.5",stroke:"#CBD5E1",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("line",{x1:"5",y1:"-10",x2:"16",y2:"-10",stroke:"#CBD5E1",strokeWidth:"2",strokeLinecap:"round"})]}),t.jsx("circle",{"data-owl":"notif-dot",cx:"62",cy:"14",r:"5",fill:"#EF4444",stroke:"#FFFFFF",strokeWidth:"1.5",opacity:"0"})]})}function ue({size:r=24,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),t.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function pe({size:r=24,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),t.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),t.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),t.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}function fe({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),t.jsx("polyline",{points:"12 5 19 12 12 19"})]})}function xe({icon:r,size:i=24}){const s=Vt(r);return s?t.jsx(s,{size:i}):t.jsx(pe,{size:i})}const mt={"--es-color-surface":"#FFFFFF","--es-color-surface-elevated":"#F3F4F6","--es-color-surface-hover":"#E5E7EB","--es-color-on-surface":"#111827","--es-color-on-surface-muted":"#4B5563","--es-color-primary":"#8A6A1E","--es-color-on-primary":"#FFFFFF","--es-color-primary-muted":"rgba(120, 92, 26, 0.08)","--es-color-primary-on-muted":"#785C1A","--es-color-border":"#E5E7EB","--es-color-control-border":"#6B7280","--es-color-error":"#AD2C26","--es-color-success":"#00672B","--es-color-on-success":"#FFFFFF","--es-color-interactive":"#92400E","--es-shadow-sm":"0 1px 3px rgba(0, 0, 0, 0.1)","--es-shadow-md":"0 4px 12px rgba(0, 0, 0, 0.15)","--ai-bg":"#FFFFFF","--ai-bg-elevated":"#F9FAFB","--ai-bg-card":"#F3F4F6","--ai-bg-input":"#F9FAFB","--ai-bg-sidebar":"#F3F4F6","--ai-bg-footer":"#F9FAFB","--ai-fg":"#111827","--ai-fg-secondary":"#374151","--ai-muted":"#6B7280","--ai-muted-dim":"#9CA3AF","--ai-border":"#E5E7EB","--ai-border-subtle":"#F3F4F6","--ai-card":"#F3F4F6","--ai-accent":"#8A6A1E","--ai-accent-fg":"#FFFFFF","--ai-accent-hover":"#6F5518","--ai-accent-subtle":"rgba(130, 100, 28, 0.08)","--ai-accent-on-subtle":"#82641C","--ai-accent-on-subtle-strong":"#795D1A","--ai-accent-border":"#AA925B","--ai-shadow":"0 20px 60px -15px rgba(0, 0, 0, 0.12)","--ai-placeholder":"#9CA3AF","--ai-icon-muted":"#9CA3AF","--ai-scrollbar":"#D1D5DB","--ai-error":"#AD2C26","--ai-success":"#00672B","--ai-warning":"#9C5300","--ai-user-bubble":"#8A6A1E","--ai-user-bubble-fg":"#FFFFFF","--ai-assistant-bubble":"#F3F4F6","--ai-assistant-bubble-fg":"#111827","--ai-code-bg":"rgba(0, 0, 0, 0.05)"},ye=Object.fromEntries((It.options??[]).filter(r=>r.type==="color"&&typeof r.cssVariable=="string").map(r=>[r.cssVariable,String(r.default).trim().toLowerCase()]));function ge(r){if(!r)return mt;const i=Object.entries(r).filter(([d,e])=>{const f=ye[d];return f!==void 0&&String(e).trim().toLowerCase()!==f});if(i.length===0)return mt;const s={...mt};for(const[d]of i)delete s[d];return s}function be(r,i){const s=(O,l)=>{const _=r[O];return typeof _=="string"&&Rt(_)?_:l},d=i==="light"?{accent:"#8A6A1E",primary:"#8A6A1E",bg:"#FFFFFF",card:"#F3F4F6",elevated:"#F3F4F6"}:{accent:"#C9A84C",primary:"#C9A84C",bg:"#0F0F0F",card:"#161616",elevated:"#1A1A1A"},e={ai:["--ai-bg","--ai-bg-elevated","--ai-bg-card","--ai-bg-input","--ai-bg-sidebar","--ai-bg-footer"],es:["--es-color-surface","--es-color-surface-elevated","--es-color-surface-hover"]},f=i==="light"?{...mt}:{...It.cssVariables},S=(O,l)=>{const _=new Set([l]);for(const B of e[O]){const n=r[B]??f[B];typeof n=="string"&&Rt(n)&&_.add(n)}return[..._]},N=_t({accent:s("--ai-accent",d.accent),surface:S("ai",s("--ai-bg-card",d.card)),backdrop:s("--ai-bg",d.bg),tintAlpha:i==="light"?.08:.1,mode:i}),Z=_t({accent:s("--es-color-primary",d.primary),surface:S("es",s("--es-color-surface-elevated",d.elevated)),backdrop:s("--es-color-surface",d.bg),tintAlpha:i==="light"?.08:.1,mode:i});return{"--ai-accent-subtle":N.tint,"--ai-accent-on-subtle":N.onTint,"--ai-accent-on-subtle-strong":N.onStrongTint,"--ai-accent-border":N.boundary,"--es-color-primary-muted":Z.tint,"--es-color-primary-on-muted":Z.onTint}}function ke({brandName:r="GAIO",logoUrl:i,userName:s,headerQuote:d,headerQuoteAuthor:e,onFullscreenToggle:f,fullscreen:S,position:N="bottom-right",sidebarPosition:Z="right",initialOpen:O=!1,views:l=[],activeView:_="",onViewChange:B=()=>{},children:n=null,cssVariables:o,unreadCount:u=0,onSettingsClick:j,footerLabel:D,footerTitle:q,footerUpdated:C,footerDotCount:w=4,footerActiveDot:R=0,onFooterAction:I,version:y,t:a,colorScheme:h,builderMode:p=!1,owlIdleLife:L=!1,owlIdleLifeIntervalMs:v,onOpenChange:x,panelReadAloudControl:g}){const k=Pt(h),[A,M]=Q.useState(O||p),[b,$]=Q.useState(!1),z=ne(!0,{enabled:L&&!p&&!A,intervalMs:v}),F=Q.useRef(u);Q.useEffect(()=>{const P=F.current;F.current=u,u>P&&!A&&!p&&z.react("notification"),z.setNotifBadge(u>0)},[u,A,p]);const X=Q.useCallback(()=>{M(P=>{const Y=!P;return x?.(Y),Y})},[x]),T=Q.useCallback(()=>{M(!1),$(!1),x?.(!1)},[x]),K=Q.useCallback(()=>{$(P=>!P)},[]),E=N==="bottom-left",G=Q.useMemo(()=>{const P={...o??{},...k==="light"?ge(o):{}};return{...P,...be(P,k==="light"?"light":"dark"),...p?{width:"100%",height:"100%"}:{}}},[o,k,p]),nt=p?{position:"relative",bottom:"auto",right:"auto",left:"auto",width:"100%",height:"100%",maxHeight:"100%",borderRadius:0,opacity:1,transform:"none",pointerEvents:"auto",visibility:"visible"}:void 0,lt=["gaio-theme",k==="light"&&"gaio-theme--light",k==="dark"&&"gaio-theme--dark"].filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:lt,style:G,children:[!p&&t.jsx("button",{type:"button",className:["gaio-theme__button",E&&"gaio-theme__button--left",A&&"gaio-theme__button--hidden"].filter(Boolean).join(" "),onClick:X,"aria-label":a?.("floating.open_widget")??"Open chat widget",tabIndex:A?-1:0,"aria-hidden":A,children:t.jsx(Ct,{size:54,svgRef:z.registerSvg})}),t.jsxs("div",{className:["gaio-theme__panel",E&&!p&&"gaio-theme__panel--left",(A||p)&&"gaio-theme__panel--open",b&&!p&&"gaio-theme__panel--expanded"].filter(Boolean).join(" "),style:nt,role:"dialog","aria-label":a?.("chat.widget_aria")??"Chat widget","aria-hidden":p?!1:!A,children:[t.jsxs("header",{className:"gaio-theme__header",children:[t.jsxs("div",{className:"gaio-theme__header-brand",children:[t.jsx("div",{className:"gaio-theme__header-owl",children:i?t.jsx("img",{className:"gaio-theme__header-logo",src:i,alt:""}):t.jsx(Ct,{size:40,svgRef:z.registerSvg})}),t.jsxs("div",{className:"gaio-theme__header-info",children:[t.jsx("h1",{className:"gaio-theme__brand-name",children:r}),t.jsx("p",{className:"gaio-theme__brand-tagline",children:a?.("header.brand_tagline")??"Your Guide AI Owl"}),s&&t.jsx("p",{className:"gaio-theme__brand-user",children:s})]})]}),d&&t.jsxs("div",{className:"gaio-theme__header-quote",children:[t.jsx("p",{className:"gaio-theme__header-quote-text",children:d}),e&&t.jsx("span",{className:"gaio-theme__header-quote-author",children:e})]}),t.jsxs("div",{className:"gaio-theme__header-actions",children:[g,f&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn",onClick:f,"aria-label":a?.(S?"header.exit_fullscreen":"header.enter_fullscreen")??(S?"Exit fullscreen":"Enter fullscreen"),children:t.jsx(Nt,{size:18})}),!p&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn gaio-theme__header-btn--expand",onClick:K,"aria-pressed":b,"aria-label":b?a?.("header.collapse")??"Collapse":a?.("header.expand")??"Expand",children:b?t.jsx(de,{size:18}):t.jsx(Nt,{size:18})}),!p&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn",onClick:T,"aria-label":a?.("header.close_widget")??"Close widget",children:t.jsx(he,{size:20})})]})]}),t.jsxs("div",{className:["gaio-theme__body",Z==="left"&&"gaio-theme__body--sidebar-left",Z==="bottom"&&"gaio-theme__body--sidebar-bottom",Z==="hidden"&&"gaio-theme__body--sidebar-hidden"].filter(Boolean).join(" "),children:[t.jsx("main",{className:"gaio-theme__content",style:{containerName:"es-slot",containerType:"inline-size"},children:n}),t.jsxs("aside",{className:"gaio-theme__sidebar",role:"tablist","aria-label":a?.("nav.widget_aria")??"Widget navigation",children:[t.jsx("div",{className:"gaio-theme__sidebar-tabs",children:l.map(P=>{const Y=_===P.slug;return t.jsxs("button",{type:"button",role:"tab","aria-selected":Y,tabIndex:Y?0:-1,className:["gaio-theme__sidebar-tab",Y&&"gaio-theme__sidebar-tab--active"].filter(Boolean).join(" "),onClick:()=>B(P.slug),children:[P.slug==="chat"||P.icon==="owl"?t.jsx(Ct,{size:26,svgRef:z.registerSvg}):t.jsx(xe,{icon:P.icon,size:24}),t.jsx("span",{className:"gaio-theme__sidebar-tab-label",children:P.label})]},P.slug)})}),t.jsx("div",{className:"gaio-theme__sidebar-settings",children:t.jsx("button",{type:"button",className:"gaio-theme__sidebar-settings-btn","aria-label":a?.("menu.settings")??"Settings",onClick:j,children:t.jsx(ue,{size:20})})})]})]}),t.jsx("footer",{className:"gaio-theme__footer",children:t.jsxs("div",{className:"gaio-theme__footer-inner",children:[t.jsxs("div",{className:"gaio-theme__footer-text",children:[D?t.jsxs("div",{className:"gaio-theme__footer-fade",children:[t.jsxs("p",{className:"gaio-theme__footer-label",children:[D,w>0&&t.jsx("span",{className:"gaio-theme__footer-dots",children:Array.from({length:w}).map((P,Y)=>t.jsx("span",{className:`gaio-theme__footer-dot${Y===R?" gaio-theme__footer-dot--active":""}`},Y))})]}),q&&t.jsx("p",{className:"gaio-theme__footer-title",children:q})]}):"",C&&t.jsx("p",{className:"gaio-theme__footer-updated",children:C}),y&&t.jsxs("p",{className:"gaio-theme__footer-version",children:["v",y]})]}),I&&t.jsx("button",{type:"button",className:"gaio-theme__footer-action-btn",onClick:I,"aria-label":a?.("nav.go_to_section")??"Go to section",children:t.jsx(fe,{size:18})})]})})]})]}),t.jsx(ce,{owl:z})]})}function Ae({size:r=80,className:i}){return t.jsxs("svg",{width:r,height:r,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,"aria-hidden":"true",children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"owl-body",x1:"20",y1:"10",x2:"60",y2:"70",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0%",stopColor:"#D4B85C"}),t.jsx("stop",{offset:"50%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#A8893A"})]}),t.jsxs("linearGradient",{id:"owl-eye-l",cx:"0.5",cy:"0.3",r:"0.5",gradientUnits:"objectBoundingBox",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("linearGradient",{id:"owl-eye-r",cx:"0.5",cy:"0.3",r:"0.5",gradientUnits:"objectBoundingBox",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]})]}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"22",ry:"26",fill:"url(#owl-body)"}),t.jsx("path",{d:"M22 22 L18 8 L28 18 Z",fill:"#C9A84C"}),t.jsx("path",{d:"M18 8 L20 14",stroke:"#3a3a3a",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M58 22 L62 8 L52 18 Z",fill:"#C9A84C"}),t.jsx("path",{d:"M62 8 L60 14",stroke:"#3a3a3a",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("circle",{cx:"30",cy:"36",r:"10",fill:"#1a1a1a"}),t.jsx("circle",{cx:"50",cy:"36",r:"10",fill:"#1a1a1a"}),t.jsx("circle",{cx:"30",cy:"36",r:"8",fill:"url(#owl-eye-l)"}),t.jsx("circle",{cx:"50",cy:"36",r:"8",fill:"url(#owl-eye-r)"}),t.jsx("circle",{cx:"30",cy:"36",r:"4.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"50",cy:"36",r:"4.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"27",cy:"33",r:"2",fill:"white",opacity:"0.7"}),t.jsx("circle",{cx:"47",cy:"33",r:"2",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M37 44 L40 50 L43 44",fill:"#E8A000"}),t.jsx("circle",{cx:"22",cy:"42",r:"4",fill:"#E8A0A0",opacity:"0.15"}),t.jsx("circle",{cx:"58",cy:"42",r:"4",fill:"#E8A0A0",opacity:"0.15"}),t.jsx("ellipse",{cx:"40",cy:"56",rx:"10",ry:"8",fill:"#B8953F",opacity:"0.3"})]})}export{Ae as OwlIcon,ke as ThemeShell,It as manifest};
2
- //# sourceMappingURL=index-CSRoJRaW-CoI3p0S7.js.map
1
+ import{j as t,T as Pt,r as Q,o as Vt}from"../nexly.js";import{x as _t,w as Rt}from"./accent-legibility-BJF2VO5n-CDPQ7suO.js";const It={slug:"gaio-dark",name:"GAIO Template Theme",version:"1.2.0",slots:["header","main","sidebar","footer"],cssVariables:{"--ai-bg":"#0F0F0F","--ai-bg-elevated":"#141414","--ai-bg-card":"#161616","--ai-bg-input":"#141414","--ai-bg-sidebar":"#121212","--ai-bg-footer":"#000000","--ai-fg":"#F5F5F5","--ai-fg-secondary":"#D1D5DB","--ai-muted":"#6B7280","--ai-muted-dim":"#4B5563","--ai-border":"#2a2a2a","--ai-border-subtle":"#1e1e1e","--ai-accent":"#C9A84C","--ai-accent-fg":"#0F0F0F","--ai-accent-hover":"#B8953F","--ai-accent-subtle":"rgba(201, 168, 76, 0.1)","--ai-accent-on-subtle":"#C9A84C","--ai-accent-on-subtle-strong":"#C9A84C","--ai-accent-border":"#6F5E2E","--ai-user-bubble":"#C9A84C","--ai-user-bubble-fg":"#0F0F0F","--ai-assistant-bubble":"#1a1a1a","--ai-assistant-bubble-fg":"#F5F5F5","--ai-shadow":"0 20px 60px -15px rgba(0, 0, 0, 0.7)","--ai-scrollbar":"#C9A84C","--ai-success":"#34D399","--ai-warning":"#FBBF24","--ai-error":"#F87171","--ai-info":"#6091BA","--ai-panel-width":"440px","--ai-panel-height":"720px","--ai-button-size":"80px","--ai-transition":"0.3s cubic-bezier(0.4, 0, 0.2, 1)","--ai-z-index":"999999","--es-color-surface":"#0F0F0F","--es-color-surface-elevated":"#1A1A1A","--es-color-surface-hover":"#2A2A2A","--es-color-on-surface":"#F5F5F5","--es-color-on-surface-muted":"#9CA3AF","--es-color-primary":"#C9A84C","--es-color-on-primary":"#0F0F0F","--es-color-primary-muted":"rgba(201, 168, 76, 0.1)","--es-color-primary-on-muted":"#C9A84C","--es-color-border":"#2a2a2a","--es-color-control-border":"#6B7280","--es-color-error":"#D27070","--es-color-success":"#5A9E6F","--es-color-on-success":"#0F0F0F","--es-color-interactive":"#E8D48B"},structure:{header:{id:"header",label:"Header",accepts:!0},sidebar:{id:"sidebar",label:"Sidebar Navigation",accepts:!1},main:{id:"main",label:"Main Content",accepts:!0},footer:{id:"footer",label:"Footer",accepts:!0}},defaultViews:[],requiredServices:["chat-bot","crypto-intel","event-scraper","venue-discovery"],description:"Premium dark theme with gold accents. Designed for crypto, fintech, and luxury e-commerce.",author:"E-Commerce Studio",planTierRequired:"free",packageName:"@ecommerce-studio/theme-gaio-dark",panels:[{id:"dashboard",name:"Dashboard",icon:"dashboard",order:0},{id:"coaching",name:"Coaching",icon:"coaching",order:1},{id:"discover",name:"Discover",icon:"discover",order:2},{id:"chat",name:"GAIO",icon:"chat",order:3},{id:"market",name:"Market",icon:"market",order:4},{id:"profile",name:"Profile",icon:"profile",order:5}],sidebarPosition:"right",options:[{id:"accentColor",type:"color",label:"Accent color",default:"#C9A84C",group:"Colors",cssVariable:"--ai-accent"},{id:"bgColor",type:"color",label:"Background",default:"#0F0F0F",group:"Colors",cssVariable:"--ai-bg"},{id:"textColor",type:"color",label:"Text color",default:"#F5F5F5",group:"Colors",cssVariable:"--ai-fg"},{id:"borderColor",type:"color",label:"Border color",default:"#2a2a2a",group:"Colors",cssVariable:"--ai-border"},{id:"panelWidth",type:"range",label:"Panel width",default:440,min:320,max:600,step:10,group:"Layout",cssVariable:"--ai-panel-width"},{id:"panelHeight",type:"range",label:"Panel height",default:720,min:480,max:900,step:10,group:"Layout",cssVariable:"--ai-panel-height"},{id:"initialOpen",type:"toggle",label:"Start open",default:!1,group:"Behavior"},{id:"position",type:"select",label:"Position",default:"bottom-right",group:"Layout",options:[{label:"Bottom Right",value:"bottom-right"},{label:"Bottom Left",value:"bottom-left"}]},{id:"sidebarPosition",type:"select",label:"Sidebar position",default:"right",group:"Layout",options:[{label:"Right",value:"right"},{label:"Left",value:"left"},{label:"Bottom",value:"bottom"},{label:"Hidden",value:"hidden"}]}],supports:{customCss:!0,customJs:!1,darkMode:!0,rtl:!1,views:!0}},Ot="http://www.w3.org/2000/svg",gt=27,vt=38,bt=53,Lt=38,J=1800,Tt=6400,qt=1800,Mt=J+Tt,Gt=Mt+qt,H=Gt+60;function wt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function $t(r){return Math.max(0,Math.min(1,r))}function c(r,i,s){const d=document.createElementNS(Ot,r);if(i)for(const e in i){const f=i[e];f!==void 0&&d.setAttribute(e,f)}return s&&s.forEach(e=>d.appendChild(e)),d}function st(r,i){const s=c("text",r);return s.textContent=i,s}function Yt(r){const i=r.querySelector('[data-owl="props"]');if(!i||i.childNodes.length)return;const s=e=>c("path",{d:"M0 2.2 C -1 0 -4 0.4 -4 3 C -4 5.4 0 7.4 0 7.4 C 0 7.4 4 5.4 4 3 C 4 0.4 1 0 0 2.2 Z",fill:e}),d=e=>c("path",{d:"M0 -4 L1.2 -1.2 L4 -1 L1.8 1 L2.4 3.8 L0 2.2 L-2.4 3.8 L-1.8 1 L-4 -1 L-1.2 -1.2 Z",fill:e});i.appendChild(c("g",{"data-owl":"glasses",opacity:"0"},[c("circle",{cx:"27",cy:"38",r:"11",fill:"#BAE6FD",opacity:"0.22"}),c("circle",{cx:"53",cy:"38",r:"11",fill:"#BAE6FD",opacity:"0.22"}),c("circle",{cx:"27",cy:"38",r:"12.5",fill:"none",stroke:"#1F2937","stroke-width":"2"}),c("circle",{cx:"53",cy:"38",r:"12.5",fill:"none",stroke:"#1F2937","stroke-width":"2"}),c("path",{d:"M39.5 37 Q40 34.5 40.5 37",stroke:"#1F2937","stroke-width":"2",fill:"none"}),c("path",{d:"M14.5 37 L6 33",stroke:"#1F2937","stroke-width":"2",fill:"none","stroke-linecap":"round"}),c("path",{d:"M65.5 37 L74 33",stroke:"#1F2937","stroke-width":"2",fill:"none","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"book",opacity:"0"},[c("path",{d:"M40 60 L22 57 Q20 57 20 59 L20 71 Q20 73 22 73 L40 74 Z",fill:"#FEF3C7",stroke:"#B45309","stroke-width":"1"}),c("path",{d:"M40 60 L58 57 Q60 57 60 59 L60 71 Q60 73 58 73 L40 74 Z",fill:"#FFF7ED",stroke:"#B45309","stroke-width":"1"}),c("line",{x1:"40",y1:"60",x2:"40",y2:"74",stroke:"#B45309","stroke-width":"1"}),c("line",{x1:"24",y1:"62",x2:"36",y2:"63.5",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"24",y1:"65",x2:"36",y2:"66.5",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"24",y1:"68",x2:"34",y2:"69.3",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"44",y1:"63.5",x2:"56",y2:"62",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"44",y1:"66.5",x2:"56",y2:"65",stroke:"#9CA3AF","stroke-width":"0.8"}),c("line",{x1:"46",y1:"69.3",x2:"56",y2:"68",stroke:"#9CA3AF","stroke-width":"0.8"})])),i.appendChild(c("g",{"data-owl":"robot",opacity:"0"},[c("line",{x1:"86",y1:"40",x2:"86",y2:"34",stroke:"#64748B","stroke-width":"1.5"}),c("circle",{cx:"86",cy:"32.5",r:"1.8",fill:"#38BDF8"}),c("rect",{x:"78",y:"39",width:"16",height:"14",rx:"3",fill:"#CBD5E1",stroke:"#64748B","stroke-width":"1"}),c("circle",{"data-owl":"robot-eye-l",cx:"83",cy:"46",r:"2",fill:"#0EA5E9"}),c("circle",{"data-owl":"robot-eye-r",cx:"89",cy:"46",r:"2",fill:"#0EA5E9"}),c("rect",{x:"82",y:"50",width:"8",height:"1.6",rx:"0.8",fill:"#64748B"}),c("rect",{x:"80",y:"53.5",width:"12",height:"8",rx:"2",fill:"#94A3B8",stroke:"#64748B","stroke-width":"0.8"})])),i.appendChild(c("g",{"data-owl":"chat-bubble",opacity:"0",transform:"translate(50, 22) scale(0)"},[c("path",{d:"M2 -4 L1 2 L9 -4 Z",fill:"#FFFFFF"}),c("rect",{x:"0",y:"-20",width:"27",height:"16",rx:"5",fill:"#FFFFFF",stroke:"#E5E7EB","stroke-width":"0.6"}),c("line",{x1:"5",y1:"-14.5",x2:"21",y2:"-14.5",stroke:"#CBD5E1","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"5",y1:"-10",x2:"16",y2:"-10",stroke:"#CBD5E1","stroke-width":"2","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"phone",opacity:"0"},[c("rect",{x:"30",y:"50",width:"20",height:"30",rx:"4",fill:"#111827",stroke:"#374151","stroke-width":"1"}),c("rect",{x:"37",y:"51.6",width:"6",height:"1.4",rx:"0.7",fill:"#374151"}),c("clipPath",{id:"owl-phone-screen-clip"},[c("rect",{x:"32",y:"54",width:"16",height:"22",rx:"1.5"})]),c("g",{"clip-path":"url(#owl-phone-screen-clip)"},[c("rect",{x:"32",y:"54",width:"16",height:"22",fill:"#0EA5E9",opacity:"0.85"}),c("g",{"data-owl":"phone-feed"},[c("line",{x1:"34",y1:"58",x2:"46",y2:"58",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.9"}),c("line",{x1:"34",y1:"62",x2:"43",y2:"62",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.75"}),c("line",{x1:"34",y1:"66",x2:"46",y2:"66",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.6"}),c("line",{x1:"34",y1:"70",x2:"42",y2:"70",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.5"}),c("line",{x1:"34",y1:"74",x2:"45",y2:"74",stroke:"#FFFFFF","stroke-width":"1.4",opacity:"0.4"})])])])),i.appendChild(c("g",{"data-owl":"headband",opacity:"0"},[c("path",{d:"M14 27 Q40 19 66 27 L66 31 Q40 23 14 31 Z",fill:"#EF4444"}),c("path",{d:"M15 29 L5 26",stroke:"#EF4444","stroke-width":"2.6","stroke-linecap":"round"}),c("path",{d:"M15 31 L6 32",stroke:"#EF4444","stroke-width":"2.6","stroke-linecap":"round"}),c("line",{x1:"32",y1:"23.6",x2:"32",y2:"26.6",stroke:"#FCA5A5","stroke-width":"1"}),c("line",{x1:"40",y1:"22.8",x2:"40",y2:"25.8",stroke:"#FCA5A5","stroke-width":"1"}),c("line",{x1:"48",y1:"23.6",x2:"48",y2:"26.6",stroke:"#FCA5A5","stroke-width":"1"})])),i.appendChild(c("g",{"data-owl":"motion",opacity:"0"},[c("line",{x1:"2",y1:"40",x2:"12",y2:"40",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"0",y1:"48",x2:"11",y2:"48",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"}),c("line",{x1:"3",y1:"56",x2:"12",y2:"56",stroke:"#93C5FD","stroke-width":"2","stroke-linecap":"round"})])),i.appendChild(c("circle",{"data-owl":"sweat",cx:"63",cy:"34",r:"2.4",fill:"#38BDF8",opacity:"0"})),i.appendChild(c("g",{"data-owl":"social",opacity:"0"},[c("g",{"data-owl":"social-1",transform:"translate(20, 30)"},[s("#FB7185")]),c("g",{"data-owl":"social-2",transform:"translate(60, 26)"},[d("#FCD34D")]),c("g",{"data-owl":"social-3",transform:"translate(40, 18)"},[s("#F472B6")]),c("g",{"data-owl":"social-4",transform:"translate(70, 40)"},[c("circle",{cx:"0",cy:"0",r:"4.5",fill:"#34D399"}),c("path",{d:"M-2 0 L-0.6 1.6 L2.2 -1.6",stroke:"#FFFFFF","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"})])])),i.appendChild(c("g",{"data-owl":"sleep-eyes",opacity:"0"},[c("circle",{cx:"27",cy:"38",r:"15",fill:"url(#owl-body-grad)"}),c("circle",{cx:"53",cy:"38",r:"15",fill:"url(#owl-body-grad)"}),c("path",{d:"M19 37 Q27 43 35 37",stroke:"#5C4413","stroke-width":"1.8",fill:"none","stroke-linecap":"round"}),c("path",{d:"M45 37 Q53 43 61 37",stroke:"#5C4413","stroke-width":"1.8",fill:"none","stroke-linecap":"round"}),c("path",{d:"M19 37 Q18 35.5 17 35.5",stroke:"#5C4413","stroke-width":"1",fill:"none","stroke-linecap":"round"}),c("path",{d:"M61 37 Q62 35.5 63 35.5",stroke:"#5C4413","stroke-width":"1",fill:"none","stroke-linecap":"round"})])),i.appendChild(c("g",{"data-owl":"zzz",opacity:"0"},[st({"data-owl":"zzz-1",x:"57",y:"27","font-size":"6","font-weight":"700",fill:"#93C5FD","font-family":"sans-serif"},"z"),st({"data-owl":"zzz-2",x:"62",y:"20","font-size":"8","font-weight":"700",fill:"#7DD3FC","font-family":"sans-serif"},"Z"),st({"data-owl":"zzz-3",x:"69",y:"12","font-size":"10","font-weight":"700",fill:"#BAE6FD","font-family":"sans-serif"},"Z")])),i.appendChild(c("g",{"data-owl":"notes",opacity:"0"},[st({"data-owl":"note-1",x:"12",y:"30","font-size":"10",fill:"#5EEAD4","font-family":"sans-serif"},"♪"),st({"data-owl":"note-2",x:"64",y:"26","font-size":"9",fill:"#F472B6","font-family":"sans-serif"},"♫"),st({"data-owl":"note-3",x:"40",y:"12","font-size":"8",fill:"#FCD34D","font-family":"sans-serif"},"♪")])),i.appendChild(c("circle",{"data-owl":"cold-glow",cx:"40",cy:"42",r:"44",fill:"none",stroke:"#38BDF8","stroke-width":"3",opacity:"0"})),i.appendChild(c("g",{"data-owl":"frost",opacity:"0"},[c("g",{"data-owl":"flake-1",transform:"translate(14, 24)"},[d("#E0F2FE")]),c("g",{"data-owl":"flake-2",transform:"translate(66, 22)"},[d("#BAE6FD")]),c("g",{"data-owl":"flake-3",transform:"translate(40, 14)"},[d("#E0F2FE")])]))}function Ht(r){const i=s=>r.querySelector(s);return{svg:r,pupilL:i('[data-owl="pupil-l"]'),pupilR:i('[data-owl="pupil-r"]'),eyelidL:i('[data-owl="eyelid-top-l"]'),eyelidR:i('[data-owl="eyelid-top-r"]'),highlightL:i('[data-owl="highlight-l"]'),highlightR:i('[data-owl="highlight-r"]'),blushL:i('[data-owl="blush-l"]'),blushR:i('[data-owl="blush-r"]'),mouth:i('[data-owl="mouth"]'),glasses:i('[data-owl="glasses"]'),book:i('[data-owl="book"]'),robot:i('[data-owl="robot"]'),robotEyeL:i('[data-owl="robot-eye-l"]'),robotEyeR:i('[data-owl="robot-eye-r"]'),chatBubble:i('[data-owl="chat-bubble"]'),phone:i('[data-owl="phone"]'),phoneFeed:i('[data-owl="phone-feed"]'),headband:i('[data-owl="headband"]'),motion:i('[data-owl="motion"]'),sweat:i('[data-owl="sweat"]'),social:i('[data-owl="social"]'),socialItems:[1,2,3,4].map(s=>i(`[data-owl="social-${s}"]`)),sleepEyes:i('[data-owl="sleep-eyes"]'),zzz:i('[data-owl="zzz"]'),zzzItems:[1,2,3].map(s=>i(`[data-owl="zzz-${s}"]`)),notes:i('[data-owl="notes"]'),noteItems:[1,2,3].map(s=>i(`[data-owl="note-${s}"]`)),coldGlow:i('[data-owl="cold-glow"]'),frost:i('[data-owl="frost"]'),frostItems:[1,2,3].map(s=>i(`[data-owl="flake-${s}"]`))}}function Ut(r,i){const s=(d,e,f)=>d?.setAttribute(e,f);s(r.pupilL,"r","6.5"),s(r.pupilL,"cx",String(gt)),s(r.pupilL,"cy",String(vt)),s(r.pupilR,"r","6.5"),s(r.pupilR,"cx",String(bt)),s(r.pupilR,"cy",String(Lt)),s(r.highlightL,"r","4"),s(r.highlightR,"r","4"),s(r.eyelidL,"transform","translate(0, 0)"),s(r.eyelidR,"transform","translate(0, 0)"),s(r.blushL,"opacity","0.2"),s(r.blushR,"opacity","0.2"),s(r.mouth,"d","M35 55Q40 58 45 55"),s(r.mouth,"opacity","0.25"),s(r.mouth,"stroke-width","1.2"),r.svg.style.transform="",r.chatBubble&&r.chatBubble.setAttribute("transform","translate(50, 22) scale(0)"),r.phoneFeed&&r.phoneFeed.setAttribute("transform",""),["glasses","book","robot","chatBubble","phone","headband","motion","sweat","social","sleepEyes","zzz","notes","coldGlow","frost"].forEach(d=>{const e=r[d];e&&e.setAttribute("opacity","0")}),["glasses","book","phone","robot"].forEach(d=>{const e=r[d];e&&e.setAttribute("transform","")}),i&&(i.style.transform="")}function jt(r){if(!r.eyelidL||!r.eyelidR)return;const i=150,s=performance.now();function d(e){const f=Math.min((e-s)/i,1),S=(f<.5?wt(f*2):wt((1-f)*2))*12;r.eyelidL.setAttribute("transform",`translate(0, ${S})`),r.eyelidR.setAttribute("transform",`translate(0, ${S})`),f<1?requestAnimationFrame(d):(r.eyelidL.setAttribute("transform","translate(0, 0)"),r.eyelidR.setAttribute("transform","translate(0, 0)"))}requestAnimationFrame(d)}const zt=["sleeping","reading","ai-chat","jogging","social","phone","dancing","eye-rolling","freezing","zoom-in","thinking","whisper","warning"];function Jt(r,i,s,d){const e=Ht(r);let f=0,S=!1;const N=performance.now(),Z=()=>{S||(S=!0,f&&cancelAnimationFrame(f),Ut(e,i),d?.())},O=()=>Z(),l=(n,o,u)=>n?.setAttribute(o,u),_=n=>n<J?wt($t(n/J)):n<Mt?1:1-wt($t((n-Mt)/qt));function B(n){function o(u){if(S)return;const j=u-N;if(n(j)){O();return}f=requestAnimationFrame(o)}f=requestAnimationFrame(o)}switch(s){case"sleeping":{B(n=>{const o=_(n);return l(e.sleepEyes,"opacity",String(o)),e.svg.style.transform=`translateY(${Math.sin(n/750)*1.6*o}px) rotate(${-6*o}deg)`,l(e.zzz,"opacity",String(o)),e.zzzItems.forEach((u,j)=>{if(!u)return;const D=(n+j*700)%2100/2100;u.setAttribute("opacity",String(Math.sin(D*Math.PI)*o)),u.setAttribute("transform",`translate(${D*5}, ${-D*8})`)}),n>H});break}case"reading":{let n=!1,o=!1,u=!1;B(j=>{const D=_(j);e.glasses&&(e.glasses.setAttribute("opacity",String(D)),e.glasses.setAttribute("transform",`translate(0, ${-9*(1-D)})`)),e.book&&(e.book.setAttribute("opacity",String(D)),e.book.setAttribute("transform",`translate(0, ${10*(1-D)})`));const q=4*D;return l(e.pupilL,"cy",String(38+q)),l(e.pupilR,"cy",String(38+q)),e.svg.style.transform=`rotate(${Math.sin(j/700)*2*D}deg)`,!n&&j>J+700&&(n=!0,jt(e)),!o&&j>J+2600&&(o=!0,jt(e)),!u&&j>J+4500&&(u=!0,jt(e)),j>H});break}case"ai-chat":{B(n=>{const o=_(n);e.robot&&(e.robot.setAttribute("opacity",String(o)),e.robot.setAttribute("transform",`translate(${(1-o)*14}, 0)`));const u=Math.floor(n/640)%2;if(e.chatBubble){const j=u===0?o:0;e.chatBubble.setAttribute("opacity",String(j)),e.chatBubble.setAttribute("transform",`translate(50, 22) scale(${j})`)}if(e.robotEyeL&&e.robotEyeR){const j=2+(u===1?Math.abs(Math.sin(n/80)):0)*o;e.robotEyeL.setAttribute("r",String(j)),e.robotEyeR.setAttribute("r",String(j))}return e.svg.style.transform=`rotate(${Math.sin(n/300)*3*o}deg)`,n>H});break}case"jogging":{B(n=>{const o=_(n);if(l(e.headband,"opacity",String(o)),e.svg.style.transform=`translateY(${-Math.abs(Math.sin(n/90))*6*o}px) rotate(${Math.sin(n/90)*3*o}deg)`,l(e.motion,"opacity",String((.4+.6*Math.abs(Math.sin(n/70)))*o)),e.sweat){const u=n/700%1;e.sweat.setAttribute("opacity",String((1-u)*o)),e.sweat.setAttribute("cy",String(34+u*12))}return l(e.blushL,"opacity",String(.15+.25*o)),l(e.blushR,"opacity",String(.15+.25*o)),n>H});break}case"social":{const n=[[20,30],[60,26],[40,18],[70,40]];B(o=>{const u=_(o);return l(e.social,"opacity",String(u)),e.socialItems.forEach((j,D)=>{if(!j)return;const q=(o+D*320)%1300/1300,[C,w]=n[D]??[0,0],R=Math.sin(q*Math.PI);j.setAttribute("transform",`translate(${C}, ${w-q*18}) scale(${.7+R*.5})`),j.setAttribute("opacity",String(R*u))}),e.svg.style.transform=`translateY(${Math.sin(o/220)*-2*u}px)`,l(e.blushL,"opacity",String(.2+.25*u)),l(e.blushR,"opacity",String(.2+.25*u)),o>H});break}case"phone":{B(n=>{const o=_(n);e.phone&&(e.phone.setAttribute("opacity",String(o)),e.phone.setAttribute("transform",`translate(0, ${12*(1-o)})`));const u=5*o;return l(e.pupilL,"cy",String(38+u)),l(e.pupilR,"cy",String(38+u)),e.phoneFeed&&e.phoneFeed.setAttribute("transform",`translate(0, ${-(n/1400*22%22)})`),l(e.blushL,"opacity","0.15"),l(e.blushR,"opacity","0.15"),n>H});break}case"dancing":{B(n=>{const o=_(n),u=n/300;return e.svg.style.transform=`translateY(${-Math.abs(Math.sin(u*2))*4*o}px) rotate(${Math.sin(u)*11*o}deg)`,l(e.blushL,"opacity",String(.2+.3*o)),l(e.blushR,"opacity",String(.2+.3*o)),l(e.mouth,"d","M34 55Q40 60 46 55"),l(e.mouth,"opacity",String(.4*o)),l(e.mouth,"stroke-width","1.5"),l(e.notes,"opacity",String(o)),e.noteItems.forEach((j,D)=>{if(!j)return;const q=(n+D*400)%1200/1200;j.setAttribute("opacity",String(Math.sin(q*Math.PI)*o)),j.setAttribute("transform",`translate(${Math.sin(q*Math.PI*2)*3}, ${-q*14})`)}),n>H});break}case"eye-rolling":{B(n=>{const o=_(n),u=-Math.PI/2+n/1100*Math.PI*2,j=3.4*o;return l(e.pupilL,"cx",String(gt+Math.cos(u)*j)),l(e.pupilL,"cy",String(vt+Math.sin(u)*j)),l(e.pupilR,"cx",String(bt+Math.cos(u)*j)),l(e.pupilR,"cy",String(Lt+Math.sin(u)*j)),e.svg.style.transform=`rotate(${Math.sin(n/1100)*4*o}deg)`,l(e.mouth,"d","M35 56 L45 56"),l(e.mouth,"opacity",String(.35*o)),l(e.mouth,"stroke-width","1.3"),n>H});break}case"freezing":{const n=[[14,24],[66,22],[40,14]];B(o=>{const u=_(o),j=5*u;l(e.eyelidL,"transform",`translate(0, ${j})`),l(e.eyelidR,"transform",`translate(0, ${j})`);const D=6.5-2.6*u;return l(e.pupilL,"r",String(D)),l(e.pupilR,"r",String(D)),l(e.coldGlow,"opacity",String((.15+.25*Math.abs(Math.sin(o/500)))*u)),l(e.frost,"opacity",String(u)),e.frostItems.forEach((q,C)=>{if(!q)return;const[w,R]=n[C]??[0,0],I=(o/1600+C*.33)%1;q.setAttribute("transform",`translate(${w+Math.sin(o/400+C)*2}, ${R+I*10}) rotate(${o/20+C*60})`),q.setAttribute("opacity",String(Math.sin(I*Math.PI)*.9*u))}),l(e.mouth,"d","M35 56 L45 56"),l(e.mouth,"opacity",String(.08+.28*u)),l(e.mouth,"stroke-width","1.3"),e.svg.style.transform=`rotate(${Math.sin(o/900)*1.5*u}deg)`,o>H});break}case"zoom-in":{B(n=>{const o=_(n);i&&(i.style.transform=`scale(${1+.75*o})`);const u=6.5+3.2*o;l(e.pupilL,"r",String(u)),l(e.pupilR,"r",String(u));const j=4+1.6*o;l(e.highlightL,"r",String(j)),l(e.highlightR,"r",String(j));const D=Math.sin(n/260)*2.2*o,q=Math.cos(n/330)*1.6*o;return l(e.pupilL,"cx",String(gt+D)),l(e.pupilL,"cy",String(vt+q)),l(e.pupilR,"cx",String(bt+D)),l(e.pupilR,"cy",String(Lt+q)),l(e.blushL,"opacity",String(.2+.15*o)),l(e.blushR,"opacity",String(.2+.15*o)),n>H});break}case"thinking":{B(n=>{const o=_(n);e.svg.style.transform=`rotate(${-12*o}deg)`;const u=Math.sin(n/1300)*1.8*o;return l(e.pupilL,"cx",String(gt+u)),l(e.pupilR,"cx",String(bt+u)),l(e.pupilL,"cy",String(38-3.5*o)),l(e.pupilR,"cy",String(38-3.5*o)),l(e.pupilL,"r",String(6.5-1*o)),l(e.pupilR,"r",String(6.5-1*o)),n>H});break}case"whisper":{B(n=>{const o=_(n);e.svg.style.transform=`scale(${1+.05*o})`,l(e.pupilL,"r",String(6.5+2*o)),l(e.pupilR,"r",String(6.5+2*o));const u=n>J+500&&n<J+950||n>J+2400&&n<J+2850;return l(e.eyelidR,"transform",`translate(0, ${u?9:0})`),l(e.blushL,"opacity",String(.2+.3*o)),l(e.blushR,"opacity",String(.2+.3*o)),n>H});break}case"warning":{B(n=>{const o=_(n);e.svg.style.transform=`rotate(${Math.sin(n/80)*5*o}deg)`;const u=5*o;return l(e.eyelidL,"transform",`translate(0, ${u})`),l(e.eyelidR,"transform",`translate(0, ${u})`),l(e.blushL,"opacity","0.1"),l(e.blushR,"opacity","0.1"),n>H});break}default:O()}return Z}const Xt="http://www.w3.org/2000/svg",kt=(()=>{const r=[-58,-50,-42,-34,-26,-18,-10,-2,6,14],i=[34,40,46,50,52,52,50,46,40,33];return r.map((s,d)=>({angle:s,len:i[d]??33,rx:-5+d*(10/(r.length-1)),ry:-13+Math.abs(d-4.5)*.5}))})(),Kt=[{angle:-46,len:20,rx:-9,ry:-2},{angle:-33,len:22,rx:-6,ry:-3},{angle:-20,len:23,rx:-3,ry:-4},{angle:-8,len:22,rx:0,ry:-4},{angle:4,len:20,rx:3,ry:-3},{angle:16,len:17,rx:6,ry:-2}],te=[{angle:-28,len:15,rx:-7,ry:3},{angle:-12,len:17,rx:-4,ry:4},{angle:3,len:17,rx:-1,ry:4.5},{angle:18,len:15,rx:2,ry:4},{angle:33,len:12,rx:5,ry:3}];function ee(r,i){return`M0 0 C ${-i} ${-r*.28} ${-i*.9} ${-r*.72} 0 ${-r} C ${i*.9} ${-r*.72} ${i} ${-r*.28} 0 0 Z`}function re(r){const i=r.querySelector('[data-owl="wing-l"]');if(!i||i.childNodes.length)return;const s=(e,f)=>{const S=document.createElementNS(Xt,e);for(const N in f)S.setAttribute(N,f[N]);return S},d=(e,f,S,N)=>{const Z=s("path",{d:ee(e,f),fill:S,stroke:"#8B6914","stroke-width":"0.7","stroke-linejoin":"round"});return N?[Z,s("path",{d:`M0 -3 L0 ${-(e-4)}`,stroke:"#7A6220","stroke-width":"0.5",fill:"none",opacity:"0.4"})]:[Z]};kt.forEach((e,f)=>{const S=s("g",{"data-owl":`wing-feather-${f+1}`,transform:`translate(${e.rx}, ${e.ry}) rotate(0)`});d(e.len,4.2,"url(#owl-feather-grad)",!0).forEach(N=>S.appendChild(N)),i.appendChild(S)}),Kt.forEach(e=>{const f=s("g",{transform:`translate(${e.rx}, ${e.ry}) rotate(${e.angle})`});d(e.len,4.6,"url(#owl-feather-grad)",!0).forEach(S=>f.appendChild(S)),i.appendChild(f)}),te.forEach(e=>{const f=s("g",{transform:`translate(${e.rx}, ${e.ry}) rotate(${e.angle})`});d(e.len,4.4,"url(#owl-feather-grad-dark)",!1).forEach(S=>f.appendChild(S)),i.appendChild(f)})}function m(r,i,s,d,e,f){const S=-s*(r.x-i),N=-d*r.v,Z=(S+N)/e;return{x:r.x+r.v*f,v:r.v+Z*f}}function ot(r,i,s=.3){return Math.abs(r.v)<s&&Math.abs(r.x-i)<s}function U(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function ie(r){return 1+2.70158*(r-1)**3+1.70158*(r-1)**2}const St=27,Bt=38,Et=53,Dt=38,oe=3.5;function ae(r){const i=D=>r.querySelector(D),s=i('[data-owl="pupil-l"]'),d=i('[data-owl="pupil-r"]'),e=i('[data-owl="eyelid-top-l"]'),f=i('[data-owl="eyelid-top-r"]'),S=i('[data-owl="highlight-l"]'),N=i('[data-owl="highlight-r"]'),Z=i('[data-owl="glow"]'),O=i('[data-owl="eureka-symbol"]'),l=i('[data-owl="exclamation"]'),_=i('[data-owl="blush-l"]'),B=i('[data-owl="blush-r"]'),n=i('[data-owl="mouth"]');if(!s||!d||!e||!f||!S||!N||!Z||!O||!l||!_||!B||!n)return null;const o=[];for(let D=1;D<=7;D++){const q=i(`[data-owl="ray-${D}"]`);q&&o.push(q)}const u=i('[data-owl="wing-l"]'),j=u?Array.from(u.children).slice(0,kt.length):[];return{svg:r,pupilL:s,pupilR:d,eyelidL:e,eyelidR:f,highlightL:S,highlightR:N,glow:Z,eureka:O,exclamation:l,blushL:_,blushR:B,mouth:n,rays:o,wingL:u,wingStaticL:i('[data-owl="wing-static-l"]'),chatBubble:i('[data-owl="chat-bubble"]'),notifDot:i('[data-owl="notif-dot"]'),wingFeathers:j}}function Wt(r,i,s,d,e){const f=r.getBoundingClientRect(),S=f.left+d/80*f.width,N=f.top+e/80*f.height,Z=i-S,O=s-N,l=Math.sqrt(Z*Z+O*O);if(l===0)return{x:0,y:0};const _=Math.min(l,300)/300*oe;return{x:Z/l*_,y:O/l*_}}function se(r,i,s,d=!1){r.pupilL.setAttribute("r","6.5"),r.pupilL.setAttribute("cx",String(St)),r.pupilL.setAttribute("cy",String(Bt)),r.pupilR.setAttribute("r","6.5"),r.pupilR.setAttribute("cx",String(Et)),r.pupilR.setAttribute("cy",String(Dt)),r.highlightL.setAttribute("r","4"),r.highlightL.setAttribute("cx","22"),r.highlightL.setAttribute("cy","33"),r.highlightR.setAttribute("r","4"),r.highlightR.setAttribute("cx","48"),r.highlightR.setAttribute("cy","33"),r.eyelidL.setAttribute("transform","translate(0, 0)"),r.eyelidR.setAttribute("transform","translate(0, 0)"),s.set(r.svg,{lx:0,ly:0,rx:0,ry:0}),r.svg.style.transform="",r.glow.setAttribute("opacity","0"),r.eureka.setAttribute("opacity","0"),r.eureka.setAttribute("transform","translate(58, -6)"),r.exclamation.setAttribute("opacity","0"),r.exclamation.setAttribute("transform","translate(-6, 6)"),r.blushL.setAttribute("opacity","0.2"),r.blushR.setAttribute("opacity","0.2"),r.mouth.setAttribute("d","M35 55Q40 58 45 55"),r.mouth.setAttribute("opacity","0.25"),r.mouth.setAttribute("stroke-width","1.2"),r.rays.forEach(e=>e.setAttribute("opacity","0")),r.wingL?.setAttribute("opacity","0"),r.wingL?.setAttribute("transform","translate(21, 59) scale(0)"),r.wingStaticL?.setAttribute("opacity","1"),r.chatBubble?.setAttribute("opacity","0"),r.chatBubble?.setAttribute("transform","translate(50, 22) scale(0)"),r.notifDot?.setAttribute("opacity",d?"1":"0"),r.notifDot?.setAttribute("r","5"),i&&(i.style.transform="")}function ne(r,i){const s=Q.useRef(new Set),d=Q.useRef(0),e=Q.useRef(!1),f=Q.useRef(null),S=Q.useRef(!1),N=Q.useRef(!1),Z=Q.useRef(null),O=Q.useRef(new WeakMap),l=Q.useRef(0),_=Q.useCallback(C=>{const w=s.current;if(C)w.add(C),re(C),S.current&&!N.current&&C.querySelector('[data-owl="notif-dot"]')?.setAttribute("opacity","1");else for(const R of w)R.isConnected||w.delete(R)},[]),B=Q.useCallback(()=>{const C=[];for(const w of s.current){const R=ae(w);R&&C.push(R)}return C},[]),n=Q.useCallback(()=>{const C=performance.now();function w(R){const I=Math.min((R-C)/150,1),y=(I<.5?U(I*2):U((1-I)*2))*12;for(const a of B())a.eyelidL.setAttribute("transform",`translate(0, ${y})`),a.eyelidR.setAttribute("transform",`translate(0, ${y})`);if(I<1)requestAnimationFrame(w);else for(const a of B())a.eyelidL.setAttribute("transform","translate(0, 0)"),a.eyelidR.setAttribute("transform","translate(0, 0)")}requestAnimationFrame(w)},[B]),o=Q.useCallback(()=>{const C=B();for(const w of C)w.glow.setAttribute("opacity","0.3"),w.blushL.setAttribute("opacity","0.4"),w.blushR.setAttribute("opacity","0.4");setTimeout(()=>{for(const w of B())w.glow.setAttribute("opacity","0"),w.blushL.setAttribute("opacity","0.2"),w.blushR.setAttribute("opacity","0.2")},500)},[B]),u=Q.useCallback(C=>{if(f.current&&(f.current(),f.current=null),e.current||B().length===0)return;if(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){o();return}e.current=!0;const w=performance.now(),R=y=>{for(const a of B()){const h=a.svg.closest(".gaio-theme__button");y(a,h)}},I=()=>{for(const y of B()){const a=y.svg.closest(".gaio-theme__button");se(y,a,O.current,S.current)}N.current=!1,e.current=!1};if(C==="eureka"){let y=function(z){const F=.016666666666666666,X=z-w;if(b===0&&X>300&&(b=1),b===1&&X>1100&&(b=2),b===2&&X>2400&&(b=3),b===0&&(a=m(a,.7,180,16,1,F),h=m(h,-10,160,10,1.2,F),k=m(k,1.1,250,6,.6,F),g=m(g,0,180,8,.8,F)),b===1&&(a=m(a,1.2,200,10,.8,F),h=m(h,5,220,10,1,F),p=m(p,.55,200,7,1,F),L=m(L,1.18,250,5,.6,F),A=m(A,.55,160,10,1,F),v=m(v,-6,180,7,.7,F),x=m(x,1.15,220,5,.5,F),M=m(M,1,200,8,1,F),k=m(k,.9,100,12,1,F),g=m(g,-2,80,10,1,F)),b===2){const W=(X-1100)/1300;h={x:Math.sin(W*Math.PI*5)*4*(1-W),v:0},a=m(a,1.1,100,12,1,F),A=m(A,.6,80,10,1,F),p=m(p,.25,50,10,1,F),L=m(L,1.06,100,10,1,F),v={x:-6+Math.sin(W*Math.PI*3)*2.5,v:0},x=m(x,1,80,10,1,F),M=m(M,.6,60,10,1,F),k=m(k,0,100,8,1,F)}b===3&&(a=m(a,1,90,14,1,F),h=m(h,0,70,12,1,F),p=m(p,0,50,10,1,F),L=m(L,1,70,12,1,F),x=m(x,0,100,10,1,F),v=m(v,12,50,10,1,F),k=m(k,0,80,10,1,F),A=m(A,.2,50,10,1,F),M=m(M,0,60,10,1,F));const T=6.5*a.x,K=String(Math.max(2.5,T)),E=String(4*Math.max(.4,a.x*.65)),G=`rotate(${h.x}deg)`,nt=String(Math.max(0,p.x)),lt=`scale(${L.x})`,P=Math.max(0,x.x),Y=String(Math.min(1,P)),ht=`translate(58, ${v.x}) scale(${P})`,ut=Math.max(0,k.x),tt=String(Math.min(1,ut)),At=`translate(-6, ${g.x}) scale(${ut})`,pt=String(A.x),ft=(b===1||b===2)&&P>.3;if(ft&&($+=.1),R((W,at)=>{if(W.pupilL.setAttribute("r",K),W.pupilR.setAttribute("r",K),W.highlightL.setAttribute("r",E),W.highlightR.setAttribute("r",E),W.svg.style.transform=G,W.glow.setAttribute("opacity",nt),at&&(at.style.transform=lt),W.eureka.setAttribute("opacity",Y),W.eureka.setAttribute("transform",ht),W.exclamation.setAttribute("opacity",tt),W.exclamation.setAttribute("transform",At),ft?W.rays.forEach((et,Ft)=>{const xt=.2+.8*Math.abs(Math.sin($+Ft*.9));et.setAttribute("opacity",String(xt*Math.min(1,P)))}):W.rays.forEach(et=>et.setAttribute("opacity","0")),W.blushL.setAttribute("opacity",pt),W.blushR.setAttribute("opacity",pt),b===1||b===2){const et=Math.min(1,(X-300)/600);W.mouth.setAttribute("d",`M34 55Q40 ${58+et*3} 46 55`),W.mouth.setAttribute("opacity","0.4"),W.mouth.setAttribute("stroke-width","1.5")}else b===3&&(W.mouth.setAttribute("d","M35 55Q40 58 45 55"),W.mouth.setAttribute("opacity","0.25"),W.mouth.setAttribute("stroke-width","1.2"))}),b===3&&ot(a,1)&&ot(h,0)&&ot(p,0)&&ot(L,1)&&ot(x,0)&&ot(k,0)&&ot(A,.2,.05)){I();return}d.current=requestAnimationFrame(y)},a={x:1,v:0},h={x:0,v:0},p={x:0,v:0},L={x:1,v:0},v={x:18,v:0},x={x:0,v:0},g={x:12,v:0},k={x:0,v:0},A={x:.2,v:0},M={x:0,v:0},b=0,$=0;d.current=requestAnimationFrame(y);return}if(C==="notification"){let y=function(K){const E=K-w;let G;E<g?G=U(T(E/g)):E<$?G=1:G=1-U(T((E-$)/M));const nt=v*G,lt=a[0]+(h[0]-a[0])*G,P=a[1]+(h[1]-a[1])*G,Y=`scale(${1+.18*G})`,ht=String(.2+.2*G),ut=String(Math.max(0,1-G*1.6));let tt;if(E<g)tt=p*U(T(E/g));else if(E<b){const V=(E-g)/k;tt=p+Math.sin(V*Math.PI*4)*9}else if(E<$){const V=U(T((E-b)/A));tt=p+(L-p)*V}else{const V=U(T((E-$)/M));tt=L*(1-V)}const At=`translate(${lt}, ${P}) rotate(${tt}) scale(${Math.max(0,nt)})`,pt=String(Math.max(0,G)),ft=kt.map((V,rt)=>{let it,ct=0;if(E<g)it=U(T((E-rt*16)/(g*.72)));else if(E<b){it=1;const dt=(E-g)/k;ct=Math.sin(dt*Math.PI*4-rt*.55)*7*(1-dt*.3)}else if(E<$){it=1;const dt=(E-b)/A;ct=Math.sin((1-dt)*Math.PI*2-rt*.4)*3*(1-dt)}else it=1-U(T((E-$-(X-1-rt)*14)/(M*.72)));const yt=V.angle*(x+(1-x)*it)+ct;return`translate(${V.rx}, ${V.ry}) rotate(${yt})`});let W=0,at=0;if(E>=b&&E<$)W=ie(T((E-b)/300)),at=T((E-b)/170);else if(E>=$){const V=U(T((E-$)/(M*.6)));W=1-V,at=1-V}const et=String(Math.max(0,at)),Ft=`translate(50, 22) scale(${Math.max(0,W)})`,xt=E>=z&&S.current?T((E-z)/F):0,Qt=String(xt),Zt=String(5+Math.sin(xt*Math.PI)*1.6);if(R((V,rt)=>{rt&&(rt.style.transform=Y),V.blushL.setAttribute("opacity",ht),V.blushR.setAttribute("opacity",ht),V.wingStaticL?.setAttribute("opacity",ut),V.wingL?.setAttribute("opacity",pt),V.wingL?.setAttribute("transform",At),V.wingFeathers.forEach((it,ct)=>{const yt=ft[ct];yt&&it.setAttribute("transform",yt)}),V.chatBubble?.setAttribute("opacity",et),V.chatBubble?.setAttribute("transform",Ft),E>=z&&(V.notifDot?.setAttribute("opacity",Qt),V.notifDot?.setAttribute("r",Zt))}),E>z+F+60){I();return}d.current=requestAnimationFrame(y)};N.current=!0;const a=[21,59],h=[13,55],p=-48,L=-72,v=1.6,x=.2,g=520,k=660,A=480,M=620,b=g+k,$=b+A,z=$+M,F=260,X=kt.length,T=K=>Math.max(0,Math.min(1,K));d.current=requestAnimationFrame(y);return}if(C==="attention"){let y=function(p){const L=.016666666666666666,v=p-w;a=m(a,4.5,240,14,1,L),h=m(h,v<500?.4:0,180,10,1,L);const x=4+Math.sin(v/150)*1.5,g=String(Math.max(2.5,a.x)),k=String(x),A=String(Math.max(0,h.x));if(R(M=>{M.pupilL.setAttribute("r",g),M.pupilR.setAttribute("r",g),M.highlightL.setAttribute("r",k),M.highlightR.setAttribute("r",k),M.glow.setAttribute("opacity",A)}),v>1500){I();return}d.current=requestAnimationFrame(y)},a={x:6.5,v:0},h={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="important"){let y=function(L){const v=.016666666666666666,x=L-w,g=x<1100;a=m(a,g?0:12,220,9,.7,v),h=m(h,x<350?1.2:g?1:0,240,8,.6,v),p=m(p,x<500?.25:0,160,10,1,v);const k=Math.max(0,h.x),A=String(Math.min(1,k)),M=`translate(-6, ${a.x}) scale(${k})`,b=String(Math.max(0,p.x));if(R($=>{$.exclamation.setAttribute("opacity",A),$.exclamation.setAttribute("transform",M),$.glow.setAttribute("opacity",b)}),x>1500){I();return}d.current=requestAnimationFrame(y)},a={x:12,v:0},h={x:0,v:0},p={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="success"){let y=function(L){const v=.016666666666666666,x=L-w;a=m(a,x<400?-8:0,220,11,1,v),h=m(h,x<1500?.55:.2,120,12,1,v),p=m(p,x<1500?.3:0,120,12,1,v);const g=4+Math.sin(x/180)*1,k=`translateY(${a.x}px)`,A=String(g),M=String(h.x),b=String(Math.max(0,p.x)),$=x<1700;if(R(z=>{z.svg.style.transform=k,z.highlightL.setAttribute("r",A),z.highlightR.setAttribute("r",A),z.blushL.setAttribute("opacity",M),z.blushR.setAttribute("opacity",M),z.glow.setAttribute("opacity",b),$&&(z.mouth.setAttribute("d","M34 55Q40 60 46 55"),z.mouth.setAttribute("opacity","0.4"),z.mouth.setAttribute("stroke-width","1.5"))}),x>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:.2,v:0},p={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="thinking"){let y=function(L){const v=.016666666666666666,x=L-w,g=x<1500;a=m(a,g?-12:0,200,13,1,v),h=m(h,g?34.5:38,200,13,1,v),p=m(p,g?5.5:6.5,200,13,1,v);const k=`rotate(${a.x}deg)`,A=String(h.x),M=String(Math.max(2.5,p.x));if(R(b=>{b.svg.style.transform=k,b.pupilL.setAttribute("cy",A),b.pupilR.setAttribute("cy",A),b.pupilL.setAttribute("r",M),b.pupilR.setAttribute("r",M)}),x>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:38,v:0},p={x:6.5,v:0};d.current=requestAnimationFrame(y);return}if(C==="warning"){let y=function(p){const L=.016666666666666666,v=p-w;let x=0;v<350?x=-5:v<700?x=5:v<1050?x=-3:x=0,a=m(a,x,260,12,1,L),h=m(h,v<1600?8:0,200,13,1,L);const g=`rotate(${a.x}deg)`,k=`translate(0, ${h.x})`;if(R(A=>{A.svg.style.transform=g,A.eyelidL.setAttribute("transform",k),A.eyelidR.setAttribute("transform",k),A.blushL.setAttribute("opacity","0.1"),A.blushR.setAttribute("opacity","0.1")}),v>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:0,v:0};d.current=requestAnimationFrame(y);return}if(C==="greeting"){let y=function(v){const x=.016666666666666666,g=v-w;let k=10;g>400&&g<800?k=-5:g>=800&&(k=0),a=m(a,k,220,12,1,x),h=m(h,g<1100?.25:.2,120,12,1,x),!p&&g>200&&(p=!0,n()),!L&&g>500&&(L=!0,n());const A=`rotate(${a.x}deg)`,M=String(h.x);if(R(b=>{b.svg.style.transform=A,b.blushL.setAttribute("opacity",M),b.blushR.setAttribute("opacity",M)}),g>1500){I();return}d.current=requestAnimationFrame(y)},a={x:0,v:0},h={x:.15,v:0},p=!1,L=!1;d.current=requestAnimationFrame(y);return}if(C==="celebrate"){let y=function(a){const h=a-w,p=Math.min(h/2e3,1),L=p*360,v=Math.sin(p*Math.PI)*.6,x=.15+Math.sin(p*Math.PI)*.45,g=1+Math.sin(p*Math.PI)*.1,k=`rotate(${L}deg)`,A=String(Math.max(0,v)),M=String(x),b=`scale(${g})`;if(R(($,z)=>{$.svg.style.transform=k,$.glow.setAttribute("opacity",A),$.blushL.setAttribute("opacity",M),$.blushR.setAttribute("opacity",M),z&&(z.style.transform=b)}),h>2e3){I();return}d.current=requestAnimationFrame(y)};d.current=requestAnimationFrame(y);return}if(C==="whisper"){let y=function(v){const x=.016666666666666666,g=v-w,k=g<1500;a=m(a,k?1.05:1,200,14,1,x),h=m(h,k?8.5:6.5,200,14,1,x);const A=g>500&&g<1100;L=m(L,A?9:0,220,13,1,x),p=m(p,g<700?.5:g<1500?.3:.2,120,12,1,x);const M=`scale(${a.x})`,b=String(Math.max(2.5,h.x)),$=`translate(0, ${L.x})`,z=String(p.x);if(R(F=>{F.svg.style.transform=M,F.pupilL.setAttribute("r",b),F.pupilR.setAttribute("r",b),F.eyelidR.setAttribute("transform",$),F.blushL.setAttribute("opacity",z),F.blushR.setAttribute("opacity",z)}),g>2e3){I();return}d.current=requestAnimationFrame(y)},a={x:1,v:0},h={x:6.5,v:0},p={x:.15,v:0},L={x:0,v:0};d.current=requestAnimationFrame(y);return}e.current=!1},[B,n,o]),j=Q.useCallback(C=>{if(S.current=C,!(C&&N.current))for(const w of B())w.notifDot?.setAttribute("opacity",C?"1":"0"),w.notifDot?.setAttribute("r","5")},[B]);Q.useEffect(()=>{const C=O.current;function w(y){Z.current={x:y.clientX,y:y.clientY}}function R(){if(!e.current&&!f.current){const y=Z.current;for(const a of B()){const h=C.get(a.svg)??{lx:0,ly:0,rx:0,ry:0};let p=0,L=0,v=0,x=0;if(y){const g=Wt(a.svg,y.x,y.y,St,Bt),k=Wt(a.svg,y.x,y.y,Et,Dt);p=g.x,L=g.y,v=k.x,x=k.y}h.lx+=(p-h.lx)*.12,h.ly+=(L-h.ly)*.12,h.rx+=(v-h.rx)*.12,h.ry+=(x-h.ry)*.12,C.set(a.svg,h),a.pupilL.setAttribute("cx",String(St+h.lx)),a.pupilL.setAttribute("cy",String(Bt+h.ly)),a.pupilR.setAttribute("cx",String(Et+h.rx)),a.pupilR.setAttribute("cy",String(Dt+h.ry)),a.highlightL.setAttribute("cx",String(22+h.lx*.4)),a.highlightL.setAttribute("cy",String(33+h.ly*.4)),a.highlightR.setAttribute("cx",String(48+h.rx*.4)),a.highlightR.setAttribute("cy",String(33+h.ry*.4))}}l.current=requestAnimationFrame(R)}document.addEventListener("mousemove",w),l.current=requestAnimationFrame(R);const I=setInterval(()=>{e.current||n()},2500+Math.random()*2500);return()=>{document.removeEventListener("mousemove",w),cancelAnimationFrame(l.current),clearInterval(I),d.current&&cancelAnimationFrame(d.current),e.current=!1}},[r,B,n]);const D=i?.enabled??!1,q=Math.max(3e3,i?.intervalMs??1e4);return Q.useEffect(()=>{if(!D||s.current.size===0||typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;for(const w of s.current)Yt(w);const C=setInterval(()=>{if(e.current||f.current)return;const w=[...s.current].filter(a=>a.isConnected);if(w.length===0)return;const R=zt[Math.floor(Math.random()*zt.length)]??"sleeping",I=()=>{f.current=null;for(const a of w)O.current.set(a,{lx:0,ly:0,rx:0,ry:0})},y=w.map((a,h)=>{const p=a.closest(".gaio-theme__button");return Jt(a,p,R,h===0?I:void 0)});f.current=()=>{for(const a of y)a();I()}},q);return()=>{clearInterval(C),f.current&&(f.current(),f.current=null)}},[r,D,q]),{registerSvg:_,react:u,setNotifBadge:j}}const le=["notification","attention","eureka","important","success","thinking","warning","greeting","celebrate","whisper"];function ce({owl:r}){return typeof window<"u"&&new URLSearchParams(window.location.search).get("owlDebug")!=="1"?null:t.jsxs("div",{"data-testid":"owl-debug-panel",style:{position:"fixed",bottom:90,right:16,zIndex:9999,background:"rgba(0,0,0,0.8)",borderRadius:8,padding:8,display:"flex",flexDirection:"column",gap:4},children:[le.map(i=>t.jsx("button",{type:"button",onClick:()=>{r.react(i),i==="notification"&&r.setNotifBadge(!0)},style:{color:"white",background:"#333",border:"1px solid #555",borderRadius:4,padding:"4px 8px",cursor:"pointer",fontSize:12},children:i},i)),t.jsx("button",{type:"button",onClick:()=>r.setNotifBadge(!1),style:{color:"white",background:"#5a1f1f",border:"1px solid #555",borderRadius:4,padding:"4px 8px",cursor:"pointer",fontSize:12},children:"clear dot"})]})}function Nt({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),t.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),t.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),t.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function de({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M4 14h6v6"}),t.jsx("path",{d:"M20 10h-6V4"}),t.jsx("path",{d:"M14 10l7-7"}),t.jsx("path",{d:"M3 21l7-7"})]})}function he({size:r=18,className:i}){return t.jsx("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function Ct({size:r=64,className:i,svgRef:s}){return t.jsxs("svg",{ref:s,className:i,width:r,height:r,viewBox:"0 0 80 80",fill:"none","aria-hidden":"true",style:{overflow:"visible",transformOrigin:"40px 42px"},children:[t.jsx("circle",{"data-owl":"glow",cx:"40",cy:"42",r:"44",fill:"none",stroke:"#FCD34D",strokeWidth:"3",opacity:"0"}),t.jsxs("g",{"data-owl":"eureka-symbol",opacity:"0",transform:"translate(58, -6)",children:[t.jsx("ellipse",{cx:"10",cy:"8",rx:"8",ry:"9",fill:"#FDE68A"}),t.jsx("ellipse",{cx:"10",cy:"7",rx:"5.5",ry:"6",fill:"#FEF9C3",opacity:"0.7"}),t.jsx("path",{d:"M7.5 9C8 6 9 5 10 7C11 5 12 6 12.5 9",stroke:"#F59E0B",strokeWidth:"1",fill:"none",strokeLinecap:"round"}),t.jsx("rect",{x:"6",y:"16.5",width:"8",height:"2",rx:"1",fill:"#F59E0B"}),t.jsx("rect",{x:"6.5",y:"18.5",width:"7",height:"1.5",rx:"0.75",fill:"#D97706"}),t.jsx("rect",{x:"7",y:"20",width:"6",height:"1.2",rx:"0.6",fill:"#B45309"}),t.jsx("circle",{cx:"10",cy:"22",r:"1",fill:"#92400E"}),t.jsx("line",{"data-owl":"ray-1",x1:"10",y1:"-4",x2:"10",y2:"-1.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-2",x1:"20",y1:"3",x2:"17.5",y2:"4.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-3",x1:"20",y1:"13",x2:"17.5",y2:"11.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-4",x1:"0",y1:"3",x2:"2.5",y2:"4.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-5",x1:"0",y1:"13",x2:"2.5",y2:"11.5",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-6",x1:"18",y1:"-1",x2:"16",y2:"1",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"}),t.jsx("line",{"data-owl":"ray-7",x1:"2",y1:"-1",x2:"4",y2:"1",stroke:"#FCD34D",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0"})]}),t.jsxs("g",{"data-owl":"exclamation",opacity:"0",transform:"translate(-6, 6)",children:[t.jsx("rect",{x:"3",y:"0",width:"5",height:"14",rx:"2.5",fill:"#F59E0B"}),t.jsx("circle",{cx:"5.5",cy:"18",r:"2.5",fill:"#F59E0B"})]}),t.jsx("path",{d:"M16 18Q20 4 28 20Z",fill:"#C9A84C",opacity:.7}),t.jsx("path",{d:"M64 18Q60 4 52 20Z",fill:"#C9A84C",opacity:.7}),t.jsx("path",{d:"M18 17Q21 8 25 19Z",fill:"#D4B85C",opacity:.4}),t.jsx("path",{d:"M62 17Q59 8 55 19Z",fill:"#D4B85C",opacity:.4}),t.jsx("path",{d:"M19 12Q20 6 22 14Z",fill:"#8B6914",opacity:.6}),t.jsx("path",{d:"M61 12Q60 6 58 14Z",fill:"#8B6914",opacity:.6}),t.jsx("path",{d:"M20 8Q20.5 5 21.5 10Z",fill:"#5C4413",opacity:.5}),t.jsx("path",{d:"M60 8Q59.5 5 58.5 10Z",fill:"#5C4413",opacity:.5}),t.jsx("circle",{cx:20.5,cy:6,r:.8,fill:"#2DD4BF",opacity:.2}),t.jsx("circle",{cx:59.5,cy:6,r:.8,fill:"#2DD4BF",opacity:.2}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",fill:"url(#owl-body-grad)"}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",stroke:"#A8893A",strokeWidth:"1.5",fill:"none",opacity:.35}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"28",ry:"30",fill:"url(#owl-body-shade)",opacity:.2}),t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"owl-body-grad",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"#D4B85C"}),t.jsx("stop",{offset:"50%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#A8893A"})]}),t.jsxs("radialGradient",{id:"owl-belly-grad",cx:"50%",cy:"45%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FEF9C3",stopOpacity:.35}),t.jsx("stop",{offset:"60%",stopColor:"#F5E6B8",stopOpacity:.2}),t.jsx("stop",{offset:"100%",stopColor:"#C9A84C",stopOpacity:0})]}),t.jsxs("radialGradient",{id:"owl-body-shade",cx:"50%",cy:"40%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"transparent"}),t.jsx("stop",{offset:"70%",stopColor:"transparent"}),t.jsx("stop",{offset:"100%",stopColor:"#8B7500"})]}),t.jsxs("radialGradient",{id:"owl-iris-grad-l",cx:"45%",cy:"42%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"50%",stopColor:"#2DD4BF"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("radialGradient",{id:"owl-iris-grad-r",cx:"45%",cy:"42%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"50%",stopColor:"#2DD4BF"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("linearGradient",{id:"owl-feather-grad",x1:"0",y1:"1",x2:"0",y2:"0",children:[t.jsx("stop",{offset:"0%",stopColor:"#9A7D2E"}),t.jsx("stop",{offset:"55%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#ECD684"})]}),t.jsxs("linearGradient",{id:"owl-feather-grad-dark",x1:"0",y1:"1",x2:"0",y2:"0",children:[t.jsx("stop",{offset:"0%",stopColor:"#5C4A18"}),t.jsx("stop",{offset:"70%",stopColor:"#8B7028"}),t.jsx("stop",{offset:"100%",stopColor:"#B8993E"})]}),t.jsx("filter",{id:"owl-wing-shadow",x:"-35%",y:"-35%",width:"170%",height:"170%",children:t.jsx("feDropShadow",{dx:"0",dy:"1",stdDeviation:"0.9",floodColor:"#2E230A",floodOpacity:"0.5"})})]}),t.jsx("ellipse",{cx:"40",cy:"52",rx:"14",ry:"16",fill:"url(#owl-belly-grad)"}),t.jsx("path",{d:"M33 48Q40 52 47 48",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.18}),t.jsx("path",{d:"M31 52Q40 57 49 52",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.15}),t.jsx("path",{d:"M32 56Q40 61 48 56",stroke:"#B8953F",strokeWidth:"0.6",fill:"none",opacity:.12}),t.jsx("ellipse",{cx:"40",cy:"38",rx:"24",ry:"18",stroke:"#D4A800",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("ellipse",{cx:"40",cy:"38",rx:"20",ry:"15",stroke:"#D4A800",strokeWidth:"0.5",fill:"none",opacity:"0.1"}),t.jsx("path",{d:"M13 28Q20 21 30 27",stroke:"#5C4413",strokeWidth:"3.2",strokeLinecap:"round",fill:"none",opacity:.25}),t.jsx("path",{d:"M67 28Q60 21 50 27",stroke:"#5C4413",strokeWidth:"3.2",strokeLinecap:"round",fill:"none",opacity:.25}),t.jsx("path",{d:"M13 27Q20 20 30 26",stroke:"#A8893A",strokeWidth:"2.8",strokeLinecap:"round",fill:"none",opacity:.65}),t.jsx("path",{d:"M67 27Q60 20 50 26",stroke:"#A8893A",strokeWidth:"2.8",strokeLinecap:"round",fill:"none",opacity:.65}),t.jsx("path",{d:"M15 26Q21 21 28 25",stroke:"#D4B85C",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:.4}),t.jsx("path",{d:"M65 26Q59 21 52 25",stroke:"#D4B85C",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:.4}),t.jsx("circle",{cx:"27",cy:"38",r:"15",fill:"#0D9488",opacity:.08}),t.jsx("circle",{cx:"27",cy:"38",r:"14",fill:"white",opacity:.97}),t.jsx("circle",{cx:"27",cy:"38",r:"14",stroke:"#8B7500",strokeWidth:"1.2",fill:"none",opacity:.25}),t.jsx("circle",{cx:"27",cy:"38",r:"12",fill:"url(#owl-iris-grad-l)",opacity:.9}),t.jsx("circle",{cx:"27",cy:"38",r:"10",stroke:"#0F766E",strokeWidth:"0.4",fill:"none",opacity:.2}),t.jsx("circle",{cx:"27",cy:"38",r:"8.5",stroke:"#134E4A",strokeWidth:"0.3",fill:"none",opacity:.12}),t.jsx("circle",{"data-owl":"pupil-l",cx:"27",cy:"38",r:"6.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"27",cy:"38",r:"6.5",stroke:"#0D9488",strokeWidth:"0.5",fill:"none",opacity:.3}),t.jsx("circle",{"data-owl":"highlight-l",cx:"22",cy:"33",r:"4",fill:"white",opacity:"0.95"}),t.jsx("circle",{cx:"31",cy:"42",r:"2",fill:"white",opacity:"0.5"}),t.jsx("circle",{cx:"23",cy:"35",r:"1",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M16 44Q27 48 38 44",stroke:"#C5B200",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("circle",{cx:"53",cy:"38",r:"15",fill:"#0D9488",opacity:.08}),t.jsx("circle",{cx:"53",cy:"38",r:"14",fill:"white",opacity:.97}),t.jsx("circle",{cx:"53",cy:"38",r:"14",stroke:"#8B7500",strokeWidth:"1.2",fill:"none",opacity:.25}),t.jsx("circle",{cx:"53",cy:"38",r:"12",fill:"url(#owl-iris-grad-r)",opacity:.9}),t.jsx("circle",{cx:"53",cy:"38",r:"10",stroke:"#0F766E",strokeWidth:"0.4",fill:"none",opacity:.2}),t.jsx("circle",{cx:"53",cy:"38",r:"8.5",stroke:"#134E4A",strokeWidth:"0.3",fill:"none",opacity:.12}),t.jsx("circle",{"data-owl":"pupil-r",cx:"53",cy:"38",r:"6.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"53",cy:"38",r:"6.5",stroke:"#0D9488",strokeWidth:"0.5",fill:"none",opacity:.3}),t.jsx("circle",{"data-owl":"highlight-r",cx:"48",cy:"33",r:"4",fill:"white",opacity:"0.95"}),t.jsx("circle",{cx:"57",cy:"42",r:"2",fill:"white",opacity:"0.5"}),t.jsx("circle",{cx:"49",cy:"35",r:"1",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M42 44Q53 48 64 44",stroke:"#C5B200",strokeWidth:"0.8",fill:"none",opacity:"0.15"}),t.jsx("clipPath",{id:"owl-eye-clip-l",children:t.jsx("circle",{cx:"27",cy:"38",r:"14"})}),t.jsx("rect",{"data-owl":"eyelid-top-l",x:"13",y:"14",width:"28",height:"16",fill:"#C9A84C",opacity:"0.2",clipPath:"url(#owl-eye-clip-l)"}),t.jsx("clipPath",{id:"owl-eye-clip-r",children:t.jsx("circle",{cx:"53",cy:"38",r:"14"})}),t.jsx("rect",{"data-owl":"eyelid-top-r",x:"39",y:"14",width:"28",height:"16",fill:"#C9A84C",opacity:"0.2",clipPath:"url(#owl-eye-clip-r)"}),t.jsx("ellipse",{"data-owl":"blush-l",cx:"14",cy:"47",rx:"5",ry:"2.5",fill:"#FB7185",opacity:"0.15"}),t.jsx("ellipse",{"data-owl":"blush-r",cx:"66",cy:"47",rx:"5",ry:"2.5",fill:"#FB7185",opacity:"0.15"}),t.jsx("path",{d:"M36 49Q40 57 44 49Q40 52 36 49Z",fill:"#E8A000"}),t.jsx("path",{d:"M36 49Q40 57 44 49",stroke:"#B45309",strokeWidth:"0.8",fill:"none",opacity:"0.4"}),t.jsx("circle",{cx:"38",cy:"51",r:"0.6",fill:"#B45309",opacity:"0.3"}),t.jsx("circle",{cx:"42",cy:"51",r:"0.6",fill:"#B45309",opacity:"0.3"}),t.jsx("path",{"data-owl":"mouth",d:"M35 55Q40 58 45 55",stroke:"#C5B200",strokeWidth:"1.2",strokeLinecap:"round",fill:"none",opacity:"0.3"}),t.jsxs("g",{"data-owl":"wing-static-l",children:[t.jsx("path",{d:"M12 45Q5 53 11 65",stroke:"#8B6914",strokeWidth:"2.5",fill:"none",opacity:.3,strokeLinecap:"round"}),t.jsx("path",{d:"M13 46Q7 54 12 64",stroke:"#D4A800",strokeWidth:"2",fill:"none",opacity:.35,strokeLinecap:"round"}),t.jsx("path",{d:"M14 48Q9 55 13 62",stroke:"#5C4413",strokeWidth:"1",fill:"none",opacity:.2,strokeLinecap:"round"}),t.jsx("path",{d:"M14 50Q10 56 13 60",stroke:"#2DD4BF",strokeWidth:"0.8",fill:"none",opacity:.08,strokeLinecap:"round"})]}),t.jsx("path",{d:"M68 45Q75 53 69 65",stroke:"#8B6914",strokeWidth:"2.5",fill:"none",opacity:.3,strokeLinecap:"round"}),t.jsx("path",{d:"M67 46Q73 54 68 64",stroke:"#D4A800",strokeWidth:"2",fill:"none",opacity:.35,strokeLinecap:"round"}),t.jsx("path",{d:"M66 48Q71 55 67 62",stroke:"#5C4413",strokeWidth:"1",fill:"none",opacity:.2,strokeLinecap:"round"}),t.jsx("path",{d:"M66 50Q70 56 67 60",stroke:"#2DD4BF",strokeWidth:"0.8",fill:"none",opacity:.08,strokeLinecap:"round"}),t.jsx("path",{d:"M35 72Q38 76 40 72",stroke:"#D4A800",strokeWidth:"1",fill:"none",opacity:"0.2",strokeLinecap:"round"}),t.jsx("path",{d:"M40 72Q42 76 45 72",stroke:"#D4A800",strokeWidth:"1",fill:"none",opacity:"0.2",strokeLinecap:"round"}),t.jsx("path",{d:"M28 69Q30 74 33 70Q31 74 34 70Q33 74 36 69",stroke:"#E8A000",strokeWidth:"1.3",fill:"none",opacity:"0.5",strokeLinecap:"round"}),t.jsx("path",{d:"M44 69Q47 74 49 70Q48 74 50 70Q50 74 52 69",stroke:"#E8A000",strokeWidth:"1.3",fill:"none",opacity:"0.5",strokeLinecap:"round"}),t.jsx("path",{d:"M18 36Q15 40 18 44",stroke:"#8B6914",strokeWidth:"0.8",fill:"none",opacity:.25}),t.jsx("path",{d:"M62 36Q65 40 62 44",stroke:"#8B6914",strokeWidth:"0.8",fill:"none",opacity:.25}),t.jsx("path",{d:"M18 37Q16 40 18 43",stroke:"#2DD4BF",strokeWidth:"0.5",fill:"none",opacity:.08}),t.jsx("path",{d:"M62 37Q64 40 62 43",stroke:"#2DD4BF",strokeWidth:"0.5",fill:"none",opacity:.08}),t.jsx("g",{"data-owl":"props"}),t.jsx("g",{"data-owl":"wing-l",opacity:"0",transform:"translate(21, 59) scale(0)",filter:"url(#owl-wing-shadow)"}),t.jsxs("g",{"data-owl":"chat-bubble",opacity:"0",transform:"translate(50, 22) scale(0)",filter:"url(#owl-wing-shadow)",children:[t.jsx("path",{d:"M2 -4 L1 2 L9 -4 Z",fill:"#FFFFFF"}),t.jsx("rect",{x:"0",y:"-20",width:"27",height:"16",rx:"5",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:"0.6"}),t.jsx("line",{x1:"5",y1:"-14.5",x2:"21",y2:"-14.5",stroke:"#CBD5E1",strokeWidth:"2",strokeLinecap:"round"}),t.jsx("line",{x1:"5",y1:"-10",x2:"16",y2:"-10",stroke:"#CBD5E1",strokeWidth:"2",strokeLinecap:"round"})]}),t.jsx("circle",{"data-owl":"notif-dot",cx:"62",cy:"14",r:"5",fill:"#EF4444",stroke:"#FFFFFF",strokeWidth:"1.5",opacity:"0"})]})}function ue({size:r=24,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),t.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function pe({size:r=24,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),t.jsx("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),t.jsx("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),t.jsx("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}function fe({size:r=18,className:i}){return t.jsxs("svg",{className:i,width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),t.jsx("polyline",{points:"12 5 19 12 12 19"})]})}function xe({icon:r,size:i=24}){const s=Vt(r);return s?t.jsx(s,{size:i}):t.jsx(pe,{size:i})}const mt={"--es-color-surface":"#FFFFFF","--es-color-surface-elevated":"#F3F4F6","--es-color-surface-hover":"#E5E7EB","--es-color-on-surface":"#111827","--es-color-on-surface-muted":"#4B5563","--es-color-primary":"#8A6A1E","--es-color-on-primary":"#FFFFFF","--es-color-primary-muted":"rgba(120, 92, 26, 0.08)","--es-color-primary-on-muted":"#785C1A","--es-color-border":"#E5E7EB","--es-color-control-border":"#6B7280","--es-color-error":"#AD2C26","--es-color-success":"#00672B","--es-color-on-success":"#FFFFFF","--es-color-interactive":"#92400E","--es-shadow-sm":"0 1px 3px rgba(0, 0, 0, 0.1)","--es-shadow-md":"0 4px 12px rgba(0, 0, 0, 0.15)","--ai-bg":"#FFFFFF","--ai-bg-elevated":"#F9FAFB","--ai-bg-card":"#F3F4F6","--ai-bg-input":"#F9FAFB","--ai-bg-sidebar":"#F3F4F6","--ai-bg-footer":"#F9FAFB","--ai-fg":"#111827","--ai-fg-secondary":"#374151","--ai-muted":"#6B7280","--ai-muted-dim":"#9CA3AF","--ai-border":"#E5E7EB","--ai-border-subtle":"#F3F4F6","--ai-card":"#F3F4F6","--ai-accent":"#8A6A1E","--ai-accent-fg":"#FFFFFF","--ai-accent-hover":"#6F5518","--ai-accent-subtle":"rgba(130, 100, 28, 0.08)","--ai-accent-on-subtle":"#82641C","--ai-accent-on-subtle-strong":"#795D1A","--ai-accent-border":"#AA925B","--ai-shadow":"0 20px 60px -15px rgba(0, 0, 0, 0.12)","--ai-placeholder":"#9CA3AF","--ai-icon-muted":"#9CA3AF","--ai-scrollbar":"#D1D5DB","--ai-error":"#AD2C26","--ai-success":"#00672B","--ai-warning":"#9C5300","--ai-user-bubble":"#8A6A1E","--ai-user-bubble-fg":"#FFFFFF","--ai-assistant-bubble":"#F3F4F6","--ai-assistant-bubble-fg":"#111827","--ai-code-bg":"rgba(0, 0, 0, 0.05)"},ye=Object.fromEntries((It.options??[]).filter(r=>r.type==="color"&&typeof r.cssVariable=="string").map(r=>[r.cssVariable,String(r.default).trim().toLowerCase()]));function ge(r){if(!r)return mt;const i=Object.entries(r).filter(([d,e])=>{const f=ye[d];return f!==void 0&&String(e).trim().toLowerCase()!==f});if(i.length===0)return mt;const s={...mt};for(const[d]of i)delete s[d];return s}function be(r,i){const s=(O,l)=>{const _=r[O];return typeof _=="string"&&Rt(_)?_:l},d=i==="light"?{accent:"#8A6A1E",primary:"#8A6A1E",bg:"#FFFFFF",card:"#F3F4F6",elevated:"#F3F4F6"}:{accent:"#C9A84C",primary:"#C9A84C",bg:"#0F0F0F",card:"#161616",elevated:"#1A1A1A"},e={ai:["--ai-bg","--ai-bg-elevated","--ai-bg-card","--ai-bg-input","--ai-bg-sidebar","--ai-bg-footer"],es:["--es-color-surface","--es-color-surface-elevated","--es-color-surface-hover"]},f=i==="light"?{...mt}:{...It.cssVariables},S=(O,l)=>{const _=new Set([l]);for(const B of e[O]){const n=r[B]??f[B];typeof n=="string"&&Rt(n)&&_.add(n)}return[..._]},N=_t({accent:s("--ai-accent",d.accent),surface:S("ai",s("--ai-bg-card",d.card)),backdrop:s("--ai-bg",d.bg),tintAlpha:i==="light"?.08:.1,mode:i}),Z=_t({accent:s("--es-color-primary",d.primary),surface:S("es",s("--es-color-surface-elevated",d.elevated)),backdrop:s("--es-color-surface",d.bg),tintAlpha:i==="light"?.08:.1,mode:i});return{"--ai-accent-subtle":N.tint,"--ai-accent-on-subtle":N.onTint,"--ai-accent-on-subtle-strong":N.onStrongTint,"--ai-accent-border":N.boundary,"--es-color-primary-muted":Z.tint,"--es-color-primary-on-muted":Z.onTint}}function ke({brandName:r="GAIO",logoUrl:i,userName:s,headerQuote:d,headerQuoteAuthor:e,onFullscreenToggle:f,fullscreen:S,position:N="bottom-right",sidebarPosition:Z="right",initialOpen:O=!1,views:l=[],activeView:_="",onViewChange:B=()=>{},children:n=null,cssVariables:o,unreadCount:u=0,onSettingsClick:j,footerLabel:D,footerTitle:q,footerUpdated:C,footerDotCount:w=4,footerActiveDot:R=0,onFooterAction:I,version:y,t:a,colorScheme:h,builderMode:p=!1,owlIdleLife:L=!1,owlIdleLifeIntervalMs:v,onOpenChange:x,panelReadAloudControl:g}){const k=Pt(h),[A,M]=Q.useState(O||p),[b,$]=Q.useState(!1),z=ne(!0,{enabled:L&&!p&&!A,intervalMs:v}),F=Q.useRef(u);Q.useEffect(()=>{const P=F.current;F.current=u,u>P&&!A&&!p&&z.react("notification"),z.setNotifBadge(u>0)},[u,A,p]);const X=Q.useCallback(()=>{M(P=>{const Y=!P;return x?.(Y),Y})},[x]),T=Q.useCallback(()=>{M(!1),$(!1),x?.(!1)},[x]),K=Q.useCallback(()=>{$(P=>!P)},[]),E=N==="bottom-left",G=Q.useMemo(()=>{const P={...o??{},...k==="light"?ge(o):{}};return{...P,...be(P,k==="light"?"light":"dark"),...p?{width:"100%",height:"100%"}:{}}},[o,k,p]),nt=p?{position:"relative",bottom:"auto",right:"auto",left:"auto",width:"100%",height:"100%",maxHeight:"100%",borderRadius:0,opacity:1,transform:"none",pointerEvents:"auto",visibility:"visible"}:void 0,lt=["gaio-theme",k==="light"&&"gaio-theme--light",k==="dark"&&"gaio-theme--dark"].filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:lt,style:G,children:[!p&&t.jsx("button",{type:"button",className:["gaio-theme__button",E&&"gaio-theme__button--left",A&&"gaio-theme__button--hidden"].filter(Boolean).join(" "),onClick:X,"aria-label":a?.("floating.open_widget")??"Open chat widget",tabIndex:A?-1:0,"aria-hidden":A,children:t.jsx(Ct,{size:54,svgRef:z.registerSvg})}),t.jsxs("div",{className:["gaio-theme__panel",E&&!p&&"gaio-theme__panel--left",(A||p)&&"gaio-theme__panel--open",b&&!p&&"gaio-theme__panel--expanded"].filter(Boolean).join(" "),style:nt,role:"dialog","aria-label":a?.("chat.widget_aria")??"Chat widget","aria-hidden":p?!1:!A,children:[t.jsxs("header",{className:"gaio-theme__header",children:[t.jsxs("div",{className:"gaio-theme__header-brand",children:[t.jsx("div",{className:"gaio-theme__header-owl",children:i?t.jsx("img",{className:"gaio-theme__header-logo",src:i,alt:""}):t.jsx(Ct,{size:40,svgRef:z.registerSvg})}),t.jsxs("div",{className:"gaio-theme__header-info",children:[t.jsx("h1",{className:"gaio-theme__brand-name",children:r}),t.jsx("p",{className:"gaio-theme__brand-tagline",children:a?.("header.brand_tagline")??"Your Guide AI Owl"}),s&&t.jsx("p",{className:"gaio-theme__brand-user",children:s})]})]}),d&&t.jsxs("div",{className:"gaio-theme__header-quote",children:[t.jsx("p",{className:"gaio-theme__header-quote-text",children:d}),e&&t.jsx("span",{className:"gaio-theme__header-quote-author",children:e})]}),t.jsxs("div",{className:"gaio-theme__header-actions",children:[g,f&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn",onClick:f,"aria-label":a?.(S?"header.exit_fullscreen":"header.enter_fullscreen")??(S?"Exit fullscreen":"Enter fullscreen"),children:t.jsx(Nt,{size:18})}),!p&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn gaio-theme__header-btn--expand",onClick:K,"aria-pressed":b,"aria-label":b?a?.("header.collapse")??"Collapse":a?.("header.expand")??"Expand",children:b?t.jsx(de,{size:18}):t.jsx(Nt,{size:18})}),!p&&t.jsx("button",{type:"button",className:"gaio-theme__header-btn",onClick:T,"aria-label":a?.("header.close_widget")??"Close widget",children:t.jsx(he,{size:20})})]})]}),t.jsxs("div",{className:["gaio-theme__body",Z==="left"&&"gaio-theme__body--sidebar-left",Z==="bottom"&&"gaio-theme__body--sidebar-bottom",Z==="hidden"&&"gaio-theme__body--sidebar-hidden"].filter(Boolean).join(" "),children:[t.jsx("main",{className:"gaio-theme__content",style:{containerName:"es-slot",containerType:"inline-size"},children:n}),t.jsxs("aside",{className:"gaio-theme__sidebar",role:"tablist","aria-label":a?.("nav.widget_aria")??"Widget navigation",children:[t.jsx("div",{className:"gaio-theme__sidebar-tabs",children:l.map(P=>{const Y=_===P.slug;return t.jsxs("button",{type:"button",role:"tab","aria-selected":Y,tabIndex:Y?0:-1,className:["gaio-theme__sidebar-tab",Y&&"gaio-theme__sidebar-tab--active"].filter(Boolean).join(" "),onClick:()=>B(P.slug),children:[P.slug==="chat"||P.icon==="owl"?t.jsx(Ct,{size:26,svgRef:z.registerSvg}):t.jsx(xe,{icon:P.icon,size:24}),t.jsx("span",{className:"gaio-theme__sidebar-tab-label",children:P.label})]},P.slug)})}),t.jsx("div",{className:"gaio-theme__sidebar-settings",children:t.jsx("button",{type:"button",className:"gaio-theme__sidebar-settings-btn","aria-label":a?.("menu.settings")??"Settings",onClick:j,children:t.jsx(ue,{size:20})})})]})]}),t.jsx("footer",{className:"gaio-theme__footer",children:t.jsxs("div",{className:"gaio-theme__footer-inner",children:[t.jsxs("div",{className:"gaio-theme__footer-text",children:[D?t.jsxs("div",{className:"gaio-theme__footer-fade",children:[t.jsxs("p",{className:"gaio-theme__footer-label",children:[D,w>0&&t.jsx("span",{className:"gaio-theme__footer-dots",children:Array.from({length:w}).map((P,Y)=>t.jsx("span",{className:`gaio-theme__footer-dot${Y===R?" gaio-theme__footer-dot--active":""}`},Y))})]}),q&&t.jsx("p",{className:"gaio-theme__footer-title",children:q})]}):"",C&&t.jsx("p",{className:"gaio-theme__footer-updated",children:C}),y&&t.jsxs("p",{className:"gaio-theme__footer-version",children:["v",y]})]}),I&&t.jsx("button",{type:"button",className:"gaio-theme__footer-action-btn",onClick:I,"aria-label":a?.("nav.go_to_section")??"Go to section",children:t.jsx(fe,{size:18})})]})})]})]}),t.jsx(ce,{owl:z})]})}function Ae({size:r=80,className:i}){return t.jsxs("svg",{width:r,height:r,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,"aria-hidden":"true",children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"owl-body",x1:"20",y1:"10",x2:"60",y2:"70",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0%",stopColor:"#D4B85C"}),t.jsx("stop",{offset:"50%",stopColor:"#C9A84C"}),t.jsx("stop",{offset:"100%",stopColor:"#A8893A"})]}),t.jsxs("linearGradient",{id:"owl-eye-l",cx:"0.5",cy:"0.3",r:"0.5",gradientUnits:"objectBoundingBox",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]}),t.jsxs("linearGradient",{id:"owl-eye-r",cx:"0.5",cy:"0.3",r:"0.5",gradientUnits:"objectBoundingBox",children:[t.jsx("stop",{offset:"0%",stopColor:"#5EEAD4"}),t.jsx("stop",{offset:"100%",stopColor:"#0D9488"})]})]}),t.jsx("ellipse",{cx:"40",cy:"44",rx:"22",ry:"26",fill:"url(#owl-body)"}),t.jsx("path",{d:"M22 22 L18 8 L28 18 Z",fill:"#C9A84C"}),t.jsx("path",{d:"M18 8 L20 14",stroke:"#3a3a3a",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M58 22 L62 8 L52 18 Z",fill:"#C9A84C"}),t.jsx("path",{d:"M62 8 L60 14",stroke:"#3a3a3a",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("circle",{cx:"30",cy:"36",r:"10",fill:"#1a1a1a"}),t.jsx("circle",{cx:"50",cy:"36",r:"10",fill:"#1a1a1a"}),t.jsx("circle",{cx:"30",cy:"36",r:"8",fill:"url(#owl-eye-l)"}),t.jsx("circle",{cx:"50",cy:"36",r:"8",fill:"url(#owl-eye-r)"}),t.jsx("circle",{cx:"30",cy:"36",r:"4.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"50",cy:"36",r:"4.5",fill:"#0a0a0a"}),t.jsx("circle",{cx:"27",cy:"33",r:"2",fill:"white",opacity:"0.7"}),t.jsx("circle",{cx:"47",cy:"33",r:"2",fill:"white",opacity:"0.7"}),t.jsx("path",{d:"M37 44 L40 50 L43 44",fill:"#E8A000"}),t.jsx("circle",{cx:"22",cy:"42",r:"4",fill:"#E8A0A0",opacity:"0.15"}),t.jsx("circle",{cx:"58",cy:"42",r:"4",fill:"#E8A0A0",opacity:"0.15"}),t.jsx("ellipse",{cx:"40",cy:"56",rx:"10",ry:"8",fill:"#B8953F",opacity:"0.3"})]})}export{Ae as OwlIcon,ke as ThemeShell,It as manifest};
2
+ //# sourceMappingURL=index-CqSCG8MM-Yl3jEGAx.js.map
@@ -1,2 +1,2 @@
1
- import{r as p,j as e,Q 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-BA5NTOmY.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-COTfVuju-DQBGsPwB.js.map
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-CzfX3ctc-qH_mrcVT.js.map