@nexlylab/widget 1.32.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -0
- package/dist/INSTALL.txt +3 -0
- package/dist/runtime/1.32.14/chunks/ClickToLoadEmbed-CDdotCS8-W2yBrg7b.js +2 -0
- package/dist/runtime/1.32.14/chunks/PanelInfoVideo-BKn3ucAb-BrU-Qlul.js +3 -0
- package/dist/runtime/1.32.14/chunks/PanelVideoOverlay-BY__oBYV-B8OPC1xh.js +3 -0
- package/dist/runtime/1.32.14/chunks/_commonjsHelpers-C6fGbg64-BC8KDfbh.js +2 -0
- package/dist/runtime/1.32.14/chunks/accent-legibility-BJF2VO5n-CDPQ7suO.js +2 -0
- package/dist/runtime/1.32.14/chunks/allowed-elements-BXnLJV1S-C-_lr2zm.js +28 -0
- package/dist/runtime/1.32.14/chunks/assistant-link-components-MZWf5ty7-C44wlQAi.js +2 -0
- package/dist/runtime/1.32.14/chunks/assistant-link-policy-DWaWTnGr-Cc-yj-a-.js +2 -0
- package/dist/runtime/1.32.14/chunks/block-helpers-Cg_zAqG6-DnN2COvk.js +2 -0
- package/dist/runtime/1.32.14/chunks/block-rating-DH7mp-_R-CoiP5C2K.js +2 -0
- package/dist/runtime/1.32.14/chunks/external-url-LRu_ntew-CJQjg_od.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-1o6W5wiJ-I68tb-d3.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-B1ef1IlE-QeFj7CR9.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-B8aKMeg5-BLxOZxZv.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-B9ozeox8-oy07dUaV.js +6 -0
- package/dist/runtime/1.32.14/chunks/index-BD-jPdzs-ZRnEJoQe.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BPDIV1BN-DINkyYvc.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BSoCdILD-D6wzHiS0.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BcsmWDTX-Dw9WA5Ac.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BljIlfbh-D9I6jaso.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BnKOhYKk-CkemNrch.js +4 -0
- package/dist/runtime/1.32.14/chunks/index-Bu9Gh6Nc-BfWdQCT7.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BvlAsO4n-DbuSZfeK.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-BylVnv7X-DBhSkJ7i.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-C1WD1dlq-Dm9kbc85.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-C262wwK4-DpyhuXqd.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-C6_8JGpJ-BqZmEVev.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-C75hX_dj-VhJcCfAC.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-CMFQhtEe-BcW8HKb8.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-CNJUK2bK-C0OfCXUx.js +50 -0
- package/dist/runtime/1.32.14/chunks/index-Chy2Zmo5-CiRb-0NX.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-CmYYEi7N-Dr1V6OGz.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-CqV8rHvG-DS9JaGVN.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-CwbUW6dx-BLBDoJCM.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-Czz6Gyh_-C3bBvEcm.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-D-ZhVFzi-A3rpkVmQ.js +6 -0
- package/dist/runtime/1.32.14/chunks/index-D72orqXX-C_0Ll4qr.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-D9grn5WJ-Dp5AxBD4.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DDEE3QfX-3B-eE3K7.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DMQkz1bV-BuMYksln.js +272 -0
- package/dist/runtime/1.32.14/chunks/index-DO0-ht8E-DUgMllqN.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DPNGQF5b-_M0CWPEY.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DP_6HfDM-DAdxCQyi.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DTVlG27U-DP0QKkgf.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DZADUAKv-DPfvWVuj.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DZKtK9hT-DQBGsPwB.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-Dh0aThiP-Aqz1AnQ5.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-Dkv5YXXW-pkywvGDF.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-DphwDFW6-C9wFr7fa.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-Dt6OpItC-R_xuAEQV.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-Gi-3UOyp-DuzPeEIz.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-IW3aNe-y-W1lJrIDD.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-V1EfdiK7-bdo5pwX-.js +4 -0
- package/dist/runtime/1.32.14/chunks/index-csHaX5dv-BpgnWlB8.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-hHQjRGar-TEMHje2B.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-k-jZV_MQ-H31PHMqm.js +2 -0
- package/dist/runtime/1.32.14/chunks/index-qpVhJY7A-Cgivx3vY.js +4 -0
- package/dist/runtime/1.32.14/chunks/index-uM4Y0lxc-Dsa9X9U7.js +2 -0
- package/dist/runtime/1.32.14/chunks/index.modern-CioVZ357-BA5NTOmY.js +6 -0
- package/dist/runtime/1.32.14/chunks/inert-assistant-components-B6Cx9pG5-DWb6n3Yq.js +2 -0
- package/dist/runtime/1.32.14/chunks/use-deferred-rating-XlgCUwcY-DDVOwURi.js +2 -0
- package/dist/runtime/1.32.14/nexly.js +61 -0
- package/dist/v1.js +6 -0
- package/package.json +36 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,j as e,Q as x,o as K}from"../nexly.js";import{m as O}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";const Q={slug:"gaio-coach",name:"GAIO Coach",version:"1.0.0",category:"interactive",requiredService:"gaio-coach",configSchema:{properties:{proMode:{type:"boolean",default:!1},showProgressBar:{type:"boolean",default:!0},showMotivationalMessage:{type:"boolean",default:!0},maxActionsShown:{type:"number",default:3}}},defaultConfig:{proMode:!1,showProgressBar:!0,showMotivationalMessage:!0,maxActionsShown:3},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"gaio-coach",inputSchema:{type:"object",properties:{plan:{type:"object",properties:{date:{type:"string"},topActions:{type:"array",items:{type:"object",properties:{id:{type:"string"},title:{type:"string"}}}},motivationalMessage:{type:"string"},progressSummary:{type:"string"}}},progress:{type:"object",properties:{currentStreak:{type:"number"},completedActions:{type:"number"},weeklyScore:{type:"number"},rank:{type:"string"},nextMilestone:{type:"string"}}}}},previewDataOverride:{plan:{date:"2026-04-05",topActions:[{id:"a1",type:"recruit",title:"Connect with 3 prospects",description:"Reach out to your warm market list. Send personalized messages to 3 contacts who expressed interest.",estimatedMinutes:30,priority:"high",isCompleted:!1},{id:"a2",type:"attend_event",title:"Attend local networking event",description:"Seoul Tech Meetup at 7pm. Bring business cards and focus on making genuine connections.",estimatedMinutes:120,priority:"high",isCompleted:!1},{id:"a3",type:"contact_downliner",title:"Coach team member Kim",description:"Kim is close to qualifying for the next rank. A 15-minute coaching call can help them cross the threshold.",estimatedMinutes:15,priority:"medium",isCompleted:!1}],motivationalMessage:"Your consistent effort is building momentum — one action at a time!",progressSummary:"You are 2 actions away from your weekly goal."},progress:{currentStreak:5,completedActions:14,weeklyScore:78,rank:"Silver",nextMilestone:"Gold (3 more referrals)"}}},fields:[{id:"proMode",type:"toggle",label:"Pro mode (full chat history)",default:!1,group:"Display"},{id:"showProgressBar",type:"toggle",label:"Show progress bar",default:!0,group:"Display"},{id:"showMotivationalMessage",type:"toggle",label:"Show motivational message",default:!0,group:"Display"},{id:"maxActionsShown",type:"range",label:"Max actions shown",default:3,min:1,max:5,step:1,group:"Display"}],events:{emits:[{name:"gaio:actionCompleted",description:"User marked an action as completed"},{name:"gaio:messageSent",description:"User sent a coaching message (pro mode)"}],listens:[{name:"gaio:refresh",description:"Force refresh coaching plan"}]},supportedPlacements:["main","sidebar"]};function A({item:s,onToggle:r}){return e.jsxs("div",{className:`es-gaio__action es-gaio__action--${s.priority}${s.isCompleted?" es-gaio__action--completed":""}`,onClick:()=>r(s.id),role:"button",tabIndex:0,onKeyDown:n=>n.key==="Enter"&&r(s.id),children:[e.jsx("div",{className:"es-gaio__action-check",children:s.isCompleted?"✓":""}),e.jsxs("div",{className:"es-gaio__action-body",children:[e.jsx("div",{className:"es-gaio__action-title",children:s.title}),e.jsx("div",{className:"es-gaio__action-desc",children:s.description}),e.jsx("div",{className:"es-gaio__action-meta",children:e.jsxs("span",{className:"es-gaio__action-time",children:["~",s.estimatedMinutes,"m"]})})]})]})}function U({data:s,config:r,actions:n,baseUrl:f,productId:v,metadata:D,i18n:$}){const t=$?.t??(a=>a),p=r.proMode??!1,T=r.showProgressBar??!0,I=r.showMotivationalMessage??!0,j=r.maxActionsShown??3,d=s.plan,c=s.progress,[l,b]=i.useState([]),[h,u]=i.useState([]),[m,w]=i.useState(""),[g,k]=i.useState(!1),N=i.useRef(null);i.useEffect(()=>{d?.topActions&&b(d.topActions.slice(0,j))},[d,j]),i.useEffect(()=>{N.current?.scrollIntoView({behavior:"smooth"})},[h]);const S=i.useCallback(async a=>{b(_=>_.map(o=>o.id===a?{...o,isCompleted:!o.isCompleted}:o)),await n.call("complete",{actionId:a}).catch(()=>{}),n.emit("gaio:actionCompleted",{actionId:a})},[n]),M=i.useCallback(async()=>{const a=m.trim();if(!a||g)return;const _={id:`u-${Date.now()}`,role:"user",text:a};u(o=>[...o,_]),w(""),k(!0);try{const o=(await(await fetch(`${f}/api/widget/gaio/coach`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({productId:v,context:{dailyGoal:a}})})).json())?.data?.plan,y=o?.motivationalMessage??o?.progressSummary??t("gaio_coach.default_guidance"),P={id:`a-${Date.now()}`,role:"assistant",text:y};u(B=>[...B,P]),n.emit("gaio:messageSent",{text:a})}catch{const o={id:`e-${Date.now()}`,role:"assistant",text:t("gaio_coach.error_unreachable")};u(y=>[...y,o])}finally{k(!1)}},[m,g,f,v,n]);if(!d&&!s.error)return e.jsx(x,{blockType:"gaio-coach",children:e.jsxs("div",{className:"es-block__body",children:[e.jsx("div",{className:"es-gaio__header",children:e.jsx("span",{className:"es-gaio__title",children:t("gaio_coach.title")})}),e.jsx("div",{className:"es-gaio__motivation",style:{color:"var(--es-color-on-surface-muted, #4B5563)",fontStyle:"italic"},children:D?.dataQuality==="none"?t("gaio_coach.sign_in_prompt"):t("gaio_coach.preparing")}),[1,2,3].map(a=>e.jsxs("div",{className:"es-gaio__action",style:{opacity:.35},children:[e.jsx("div",{className:"es-gaio__action-check"}),e.jsx("div",{className:"es-gaio__action-body",children:e.jsx("div",{className:"es-gaio__action-title",style:{background:"var(--es-color-surface-elevated, #f5f5f5)",borderRadius:4,height:14,width:`${60+a*15}%`}})})]},a))]})});if(s.error)return e.jsx(x,{blockType:"gaio-coach",error:K(s.error)});const C=l.filter(a=>a.isCompleted).length,E=l.length>0?C/l.length*100:0;return e.jsx(x,{blockType:"gaio-coach",children:e.jsxs("div",{className:"es-block__body",children:[e.jsxs("div",{className:"es-gaio__header",children:[e.jsx("span",{className:"es-gaio__title",children:t("gaio_coach.title")}),c?.currentStreak!=null&&c.currentStreak>0&&e.jsxs("span",{className:"es-gaio__streak",children:["🔥 ",e.jsx("span",{className:"es-gaio__streak-value",children:c.currentStreak})," ",t("gaio_coach.day_streak")]})]}),T&&l.length>0&&e.jsxs("div",{className:"es-gaio__progress",children:[e.jsxs("div",{className:"es-gaio__progress-label",children:[e.jsx("span",{children:t("gaio_coach.todays_actions")}),e.jsxs("span",{children:[C,"/",l.length]})]}),e.jsx("div",{className:"es-gaio__progress-bar",children:e.jsx("div",{className:"es-gaio__progress-fill",style:{width:`${E}%`}})})]}),p&&c?.rank&&e.jsxs("div",{className:"es-gaio__summary-card",children:[e.jsxs("div",{className:"es-gaio__summary-rank",children:[t("gaio_coach.current_rank"),": ",O(c.rank,t)]}),c.nextMilestone&&e.jsxs("div",{className:"es-gaio__summary-milestone",children:[t("gaio_coach.next"),": ",c.nextMilestone]})]}),I&&d?.motivationalMessage&&e.jsx("div",{className:"es-gaio__motivation",children:d.motivationalMessage}),!p&&e.jsx("div",{className:"es-gaio__actions",children:l.map(a=>e.jsx(A,{item:a,onToggle:S},a.id))}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"es-gaio__actions",children:l.map(a=>e.jsx(A,{item:a,onToggle:S},a.id))}),h.length>0&&e.jsxs("div",{className:"es-gaio__chat",children:[h.map(a=>e.jsx("div",{className:`es-gaio__chat-msg es-gaio__chat-msg--${a.role}`,children:a.text},a.id)),e.jsx("div",{ref:N})]}),e.jsxs("div",{className:"es-gaio__chat-input-row",children:[e.jsx("textarea",{className:"es-gaio__chat-input",rows:1,placeholder:t("gaio_coach.chat_placeholder"),value:m,onChange:a=>w(a.target.value),onKeyDown:a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),M())}}),e.jsx("button",{className:"es-gaio__chat-send",onClick:M,disabled:g||!m.trim(),children:g?"...":t("gaio_coach.chat_send")})]})]})]})})}export{U as Component,Q as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BD-jPdzs-ZRnEJoQe.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a}from"../nexly.js";const h={slug:"user-context",name:"User Context Collector",version:"1.0.0",category:"content",requiredService:"",configSchema:{properties:{collectCookies:{type:"boolean",default:!0},collectPageContext:{type:"boolean",default:!0},collectLanguage:{type:"boolean",default:!0},syncIntervalMs:{type:"number",default:3e4}}},defaultConfig:{collectCookies:!0,collectPageContext:!0,collectLanguage:!0,syncIntervalMs:3e4},sizing:{minWidth:0,preferredHeight:0,scrollable:!1},dataContract:{serviceSlug:"chat-bot",inputSchema:{type:"object",properties:{userId:{type:"string"},sessionId:{type:"string"},language:{type:"string"},pageUrl:{type:"string"},pageTitle:{type:"string"},referrer:{type:"string"},userAgent:{type:"string"},timezone:{type:"string"}},required:["sessionId"]},previewDataOverride:{userId:"user-abc123",sessionId:"sess-xyz789",language:"en-US",pageUrl:"https://shop.example.com/products/winter-jacket",pageTitle:"Winter Jacket - Example Shop",referrer:"https://google.com",userAgent:"Mozilla/5.0",timezone:"Asia/Seoul"}},fields:[{id:"collectCookies",type:"toggle",label:"Collect cookie data",default:!0,group:"Collection"},{id:"collectPageContext",type:"toggle",label:"Collect page context",default:!0,group:"Collection"},{id:"collectLanguage",type:"toggle",label:"Collect browser language",default:!0,group:"Collection"},{id:"syncIntervalMs",type:"range",label:"Sync interval (ms)",default:3e4,min:5e3,max:12e4,step:5e3,group:"Behavior"}],events:{emits:[{name:"userContext:synced",description:"User context successfully synced to service"},{name:"userContext:updated",description:"Page context data was updated"}],listens:[{name:"userContext:forceSync",description:"Immediately sync user context data"}]},supportedPlacements:["main"]};function w({config:n,actions:t,externalContext:r}){const l=a.useRef(!1),s=a.useRef(void 0),i=a.useRef(null),g=n.collectCookies??!0,d=n.collectPageContext??!0,p=n.collectLanguage??!0,u=n.syncIntervalMs??3e4,c=a.useCallback(async()=>{if(!i.current)return;const e={};if(p&&(e.language=navigator.language,e.languages=navigator.languages?.slice(0,3)),d&&(e.pageUrl=r?.pageUrl||window.location.href,e.pageTitle=r?.pageTitle||document.title,e.pageType=r?.pageType||"unknown",e.wcLoggedIn=r?.wcLoggedIn??!1,r?.productId&&(e.productId=r.productId),r?.productName&&(e.productName=r.productName),e.referrer=document.referrer||void 0,e.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.screenWidth=window.screen.width,e.screenHeight=window.screen.height),g){let o=C("es_visitor_id");o||(o=v(),x("es_visitor_id",o,365)),e.visitorId=o}e.lastActiveAt=new Date().toISOString();try{await t.call("sync-context",{endUserId:i.current,contextData:e,source:"widget"})}catch{}},[g,d,p,t,r]);return a.useEffect(()=>{const e=y=>{const f=y;f?.user?.id&&(i.current=f.user.id,c())},o=t.on("auth:login",e),m=t.on("auth:guest",e);return()=>{o(),m()}},[t,c]),a.useEffect(()=>(l.current||(l.current=!0,c()),u>0&&(s.current=setInterval(c,u)),()=>{s.current&&clearInterval(s.current)}),[c,u]),null}function C(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp(`(?:^|; )${n}=([^;]*)`));return t?decodeURIComponent(t[1]):null}function x(n,t,r){if(typeof document>"u")return;const l=new Date(Date.now()+r*864e5).toUTCString();document.cookie=`${n}=${encodeURIComponent(t)}; expires=${l}; path=/; SameSite=Lax`}function v(){const n=new Uint8Array(16);return crypto.getRandomValues(n),Array.from(n,t=>t.toString(16).padStart(2,"0")).join("")}export{w as Component,h as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BPDIV1BN-DINkyYvc.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,a as j,j as e,Q as B}from"../nexly.js";const z={slug:"auth-login",name:"User Login",version:"1.0.0",category:"interactive",requiredService:"",configSchema:{properties:{loginMethod:{type:"string",default:"password"},showGuestOption:{type:"boolean",default:!0},submitLabel:{type:"string",default:""}}},defaultConfig:{loginMethod:"password",showGuestOption:!0,submitLabel:""},dataContract:{serviceSlug:"chat-bot",inputSchema:{type:"object",properties:{authenticated:{type:"boolean"}}},previewDataOverride:{authenticated:!1}},fields:[{id:"loginMethod",type:"select",label:"Login method",default:"password",options:[{label:"Password",value:"password"},{label:"Magic Link",value:"magic-link"},{label:"Guest",value:"guest"}],group:"Behavior"},{id:"showGuestOption",type:"toggle",label:"Show guest login option",default:!0,group:"Behavior"},{id:"submitLabel",type:"localized-text",label:"Submit button label",default:"",placeholder:'Leave empty to use translated default (e.g. "Login")',group:"Content"}],events:{emits:[{name:"auth:login",description:"User successfully logged in — carries { user, accessToken }"},{name:"auth:loginFailed",description:"Login attempt failed"},{name:"auth:guestContinued",description:"User chose to continue as guest"}],listens:[{name:"auth:reset",description:"Reset the login form"}]},supportedPlacements:["main"],sizing:{minWidth:280,preferredHeight:"auto",scrollable:!1}};function L({config:u,actions:s,i18n:d}){const r=d?.t??(o=>o),h=d?.currentLanguage??"en",[p,m]=i.useState(""),[g,y]=i.useState(""),[b,v]=i.useState(""),[l,n]=i.useState(!1),[c,t]=i.useState(null),f=u.loginMethod??"password",x=u.showGuestOption??!0,w=j(u.submitLabel,h,{t:r,fallbackKey:"auth.login.submit",enDefault:"Login"});async function S(o){o.preventDefault(),n(!0),t(null);try{let a;f==="api_key"?a=await s.call("login",{apiKey:p}):a=await s.call("login",{email:g,password:b}),a?.error?t({error:a.error}):(s.emit("auth:login",{user:a.user,accessToken:a.accessToken}),t({success:!0,user:a?.user}))}catch{t({error:r("auth.login.error_failed")})}finally{n(!1)}}async function k(){n(!0),t(null);try{const o=await s.call("login",{guest:!0});o?.error?t({error:o.error}):(s.emit("auth:login",{user:o.user}),t({success:!0}))}catch{t({error:r("auth.login.error_guest_failed")})}finally{n(!1)}}return c?.success?null:e.jsx(B,{blockType:"auth-login",children:e.jsxs("div",{className:"es-block__body",style:{padding:16},children:[e.jsxs("form",{onSubmit:S,children:[f==="api_key"?e.jsxs("div",{style:{marginBottom:12},children:[e.jsx("label",{style:{display:"block",fontSize:12,color:"var(--es-color-on-surface-muted, #4B5563)",marginBottom:4},children:r("auth.login.api_key_label")}),e.jsx("input",{type:"text",value:p,onChange:o=>m(o.target.value),placeholder:"eu_live_...",required:!0,style:{width:"100%",padding:"8px 12px",borderRadius:6,border:"1px solid var(--es-color-control-border, #6B7280)",background:"var(--es-color-surface-elevated, #f5f5f5)",color:"var(--es-color-on-surface, #1a1a1a)",fontSize:14,outline:"none",fontFamily:"monospace",boxSizing:"border-box"}})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{marginBottom:12},children:[e.jsx("label",{style:{display:"block",fontSize:12,color:"var(--es-color-on-surface-muted, #4B5563)",marginBottom:4},children:r("auth.email_label")}),e.jsx("input",{type:"email",value:g,onChange:o=>y(o.target.value),placeholder:r("auth.email_placeholder"),required:!0,style:{width:"100%",padding:"8px 12px",borderRadius:6,border:"1px solid var(--es-color-control-border, #6B7280)",background:"var(--es-color-surface-elevated, #f5f5f5)",color:"var(--es-color-on-surface, #1a1a1a)",fontSize:14,outline:"none",boxSizing:"border-box"}})]}),e.jsxs("div",{style:{marginBottom:12},children:[e.jsx("label",{style:{display:"block",fontSize:12,color:"var(--es-color-on-surface-muted, #4B5563)",marginBottom:4},children:r("auth.password_label")}),e.jsx("input",{type:"password",value:b,onChange:o=>v(o.target.value),placeholder:r("auth.password_placeholder"),required:!0,style:{width:"100%",padding:"8px 12px",borderRadius:6,border:"1px solid var(--es-color-control-border, #6B7280)",background:"var(--es-color-surface-elevated, #f5f5f5)",color:"var(--es-color-on-surface, #1a1a1a)",fontSize:14,outline:"none",boxSizing:"border-box"}})]})]}),c?.error&&e.jsx("div",{style:{fontSize:12,color:"var(--es-color-error, #AD2C26)",marginBottom:8},children:c.error}),e.jsx("button",{type:"submit",disabled:l,style:{width:"100%",padding:"10px 16px",borderRadius:6,border:"none",background:l?"var(--es-color-on-surface-muted, #4B5563)":"var(--es-color-primary, #2563EB)",color:"var(--es-color-on-primary, #ffffff)",fontSize:14,fontWeight:600,cursor:l?"wait":"pointer"},children:l?r("auth.login.submitting"):w})]}),x&&e.jsx("button",{type:"button",onClick:k,disabled:l,style:{width:"100%",marginTop:8,padding:"8px 16px",borderRadius:6,border:"1px solid var(--es-color-control-border, #6B7280)",background:"transparent",color:"var(--es-color-on-surface-muted, #4B5563)",fontSize:13,cursor:l?"wait":"pointer"},children:r("auth.gate.guest_cta")})]})})}export{L as Component,z as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BSoCdILD-D6wzHiS0.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t={slug:"login-gate",name:"Login Gate",version:"1.0.0",category:"interactive",requiredService:"",scope:"widget",widgetSlot:"gate",configSchema:{properties:{requireAuth:{type:"boolean",default:!0},guestModeAllowed:{type:"boolean",default:!1},redirectToView:{type:"string"},customMessage:{type:"string"}}},defaultConfig:{requireAuth:!0,guestModeAllowed:!1},sizing:{minWidth:0,preferredHeight:0,scrollable:!1},fields:[{id:"requireAuth",type:"toggle",label:"Require authentication",default:!0,group:"Gate behavior"},{id:"guestModeAllowed",type:"toggle",label:"Allow guest access",default:!1,group:"Gate behavior"},{id:"redirectToView",type:"text",label:"Redirect to view after login",default:"",placeholder:"e.g. main",group:"Navigation"},{id:"customMessage",type:"text",label:"Custom gate message",default:"",placeholder:"Override default sign-in prompt",group:"Content"}],events:{emits:[],listens:[{name:"auth:login",description:"Gate re-evaluates predicate on login"},{name:"auth:logout",description:"Gate re-evaluates predicate on logout"},{name:"auth:guest",description:"Gate re-evaluates predicate on guest session"}]},supportedPlacements:["main"]};function a(e){return null}export{a as Component,t as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BcsmWDTX-Dw9WA5Ac.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as l,b as a,t as s}from"../nexly.js";const S={slug:"guest-auth",name:"Guest Authentication",version:"1.0.0",category:"content",requiredService:"",configSchema:{properties:{}},defaultConfig:{},sizing:{minWidth:0,preferredHeight:0,scrollable:!1},dataContract:{serviceSlug:"",inputSchema:{type:"object",properties:{fingerprint:{type:"string"}},required:["fingerprint"]},previewDataOverride:{fingerprint:"00000000-0000-4000-a000-000000000000"}},fields:[],events:{emits:[{name:"auth:guest",description:"Guest session created — carries { user: { id } }"}],listens:[]},supportedPlacements:["main"]};function m(t){return`es-widget-guest-fp:${t}`}function y(){if(typeof crypto>"u")return null;if(typeof crypto.randomUUID=="function"){const[e]=s(()=>crypto.randomUUID());if(e)return e}if(typeof crypto.getRandomValues!="function")return null;const[t]=s(()=>crypto.getRandomValues(new Uint8Array(16)));if(!t)return null;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const r=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function h(t,r){if(t)return t;if(typeof window>"u")return;const e=m(r),[i]=s(()=>window.localStorage.getItem(e));if(i)return i;const n=y();if(n)return s(()=>window.localStorage.setItem(e,n)),n}function $({baseUrl:t,actions:r,externalContext:e,productId:i}){const n=l.useRef(!1);return l.useEffect(()=>{if(n.current)return;const u=e?.apiKey;if(!u)return;const c=h(e?.fp,i);c&&(n.current=!0,(async()=>{const[o,f]=await a(fetch(`${t}/api/widget/auth/guest`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":u},body:JSON.stringify({fingerprint:c})}));if(f||!o){console.error("[guest-auth] Error:",f);return}if(!o.ok){const[g]=await a(o.text());console.error("[guest-auth] Auth failed:",o.status,g??"");return}const[d]=await a(o.json()),p=d?.data?.user?.id;p&&r.emit("auth:guest",{user:{id:p}})})())},[t,r,e,i]),null}export{$ as Component,S as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BljIlfbh-D9I6jaso.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as E,j as e,Q as U,o as ue}from"../nexly.js";import{C as ye}from"./block-rating-DH7mp-_R-CoiP5C2K.js";import{j as ge}from"./PanelInfoVideo-BKn3ucAb-BrU-Qlul.js";import{m as J}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";const Fe={slug:"daily-action-plan",name:"Daily Action Plan",version:"4.0.0",category:"data",requiredService:"daily-action-plan",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},showGreeting:{type:"boolean",default:!0},showFocus:{type:"boolean",default:!0},showPlays:{type:"boolean",default:!0},showStructural:{type:"boolean",default:!0},showRisk:{type:"boolean",default:!0},showBlocker:{type:"boolean",default:!0},showMyBenefits:{type:"boolean",default:!0}}},defaultConfig:{readAloudEnabled:!1,showGreeting:!0,showFocus:!0,showPlays:!0,showStructural:!0,showRisk:!0,showBlocker:!0,showMyBenefits:!0},sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},dataContract:{serviceSlug:"daily-action-plan",inputSchema:{type:"object",properties:{personalGreeting:{type:"object",properties:{userName:{type:"string"},rankBadge:{type:"string"},summary:{type:"string"},tone:{type:"string",enum:["calm","urgent","celebratory"]}}},todaysFocus:{type:"object",properties:{domain:{type:"string",enum:["relationship","recruitment","sales","structural","risk","market"]},summary:{type:"string"},details:{type:"object",properties:{whyThisToday:{type:"string"},expectedOutcome:{type:"string"},deadlineUtc:{type:"string"}}}}},relationshipPlay:{type:"object",description:"Named downliner outreach play (empty when no real downliner available)",properties:{targetName:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{targetContext:{type:"string"},messageHook:{type:"string"},channelHint:{type:"string",enum:["kakao","line","whatsapp","telegram","email","dashboard","none"]},draftMessage:{type:"string"},complianceNote:{type:"string"}}}}},recruitmentPlay:{type:"object",description:"Recruitment action (actionType='none' when not applicable)",properties:{actionType:{type:"string",enum:["warm_intro","event_invite","follow_up","qualification_call","content_share","none"]},summary:{type:"string"},details:{type:"object",properties:{candidateOrSegment:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},complianceNote:{type:"string"}}}}},salesPlay:{type:"object",description:"iMine product or cycle action",properties:{linkedToBinarySide:{type:"string",enum:["left","right","both","none"]},summary:{type:"string"},details:{type:"object",properties:{productOrCycleAction:{type:"string"},rationale:{type:"string"},concreteStep:{type:"string"},marketSignal:{type:"string"},complianceNote:{type:"string"}}}}},structuralCheck:{type:"object",description:"Binary tree, rank, cycle cap, and time alert metrics",properties:{normalRank:{type:"object",properties:{currentRank:{type:"string"},nextRank:{type:"string"},currentVolume:{type:"number"},requiredVolume:{type:"number"},volumeProgressPercent:{type:"number"},creditsEarned:{type:"number"},requiredCredits:{type:"number"},creditsProgressPercent:{type:"number"},binaryQualifyingPlacements:{type:"number"},binaryProgressPercent:{type:"number"},qualifyingBranchLeaders:{type:"number"},branchProgressPercent:{type:"number"},bottleneckProgressPercent:{type:"number"},blockingConditions:{type:"array",items:{type:"string"}}}},paidRank:{type:"object",properties:{currentPaidRank:{type:"string"},nextPaidRank:{type:"string"},active:{type:"boolean"},riskOfDrop:{type:"boolean"},reason:{type:"string"},retentionProgress:{type:"number"},advanceProgress:{type:"number"},rollingWindowSales:{type:"number"},thresholdForCurrentRank:{type:"number"},thresholdForNextRank:{type:"number"},windowDays:{type:"number"},gracePeriodEndsDate:{type:"string"}}},binary:{type:"object",properties:{leftVolume:{type:"number"},rightVolume:{type:"number"},balanced:{type:"boolean"},reason:{type:"string"}}},cycleCap:{type:"object",properties:{}},timeAlert:{type:"object",properties:{}}}},riskFlag:{type:"object",description:"Most critical risk today (severity='none' = no risk)",properties:{severity:{type:"string",enum:["none","low","medium","high","critical"]},riskType:{type:"string"},summary:{type:"string"},details:{type:"object",properties:{description:{type:"string"},preventiveAction:{type:"string"},timeSensitivity:{type:"string"}}}}},myBenefits:{type:"object",description:"Deterministic near-term benefits timeline (1-3 nearest events; empty summary+events hides the tile)",properties:{summary:{type:"string"},events:{type:"array",items:{type:"object",properties:{kind:{type:"string",enum:["mining_start","first_reward","rank_grace","rank_retention","cycles_today","promo"]},dateUtc:{type:"string"},label:{type:"string"},narration:{type:"string"}}}}}}}},previewDataOverride:{personalGreeting:{userName:"Aleksandra",rankBadge:"Senior Manager",summary:"Aleksandra, right leg needs 5 BP to close a cycle before 15:00 UTC.",tone:"urgent"},todaysFocus:{domain:"relationship",summary:"Message Minsu about right-leg cycle close before 15:00 UTC.",details:{whyThisToday:"Minsu is your top right-leg Developer with 12,500 USDT team sales — highest leverage today.",expectedOutcome:"Right-leg +500 USDT or 1 new referral from Minsu by end of day.",deadlineUtc:"15:00 UTC"}},relationshipPlay:{targetName:"Minsu",summary:"Message Minsu on Kakao to align on a right-leg pack placement before 15:00 UTC.",details:{targetContext:"Right-leg Developer, recent activity, team_sales 12,500.",messageHook:"Ask about right-leg cycle close this week.",channelHint:"kakao",draftMessage:"Hi Minsu, we're 5 BP away from closing a right-leg cycle today. Can we align on a pack placement before 15:00 UTC?",complianceNote:"No income guarantee — frame as qualifying for cycle, not earning."}},recruitmentPlay:{actionType:"warm_intro",summary:"Send a warm intro to a BTC-interested contact today — greed index at 71.",details:{candidateOrSegment:"One warm contact who showed interest in BTC mining last week.",rationale:"Greed 71 creates a good opening to discuss Hash Power packages.",concreteStep:"Send iMine partner intro link today by 21:00 local time.",complianceNote:"Frame as 'here's how it works', no ROI claims."}},salesPlay:{linkedToBinarySide:"right",summary:"Place 500 USDT on right leg before 15:00 UTC to close 1 cycle.",details:{productOrCycleAction:"Hash Power Package — right-leg placement (500 USDT)",rationale:"Right 4,200 vs Left 4,500 — right-leg 500 USDT closes 1 cycle.",concreteStep:"Open iMine Distributor Hub → Hash Power Package → right leg → 1 pack.",marketSignal:"BTC up 7% this week — bullish sentiment supports placement urgency.",complianceNote:"No specific earnings amount. Frame as 'activates Senior Manager cycle'."}},structuralCheck:{normalRank:{currentRank:"Senior Manager",nextRank:"Vice President",currentVolume:58e3,requiredVolume:5e4,volumeProgressPercent:100,creditsEarned:500,requiredCredits:1e3,creditsProgressPercent:50,binaryQualifyingPlacements:2,binaryProgressPercent:67,qualifyingBranchLeaders:1,branchProgressPercent:33,bottleneckProgressPercent:33,blockingConditions:[]},paidRank:{currentPaidRank:"Senior Manager",nextPaidRank:"Vice President",active:!0,riskOfDrop:!1,reason:"On track this week.",retentionProgress:.85,advanceProgress:.42,rollingWindowSales:17e3,thresholdForCurrentRank:2e4,thresholdForNextRank:4e4,windowDays:90,gracePeriodEndsDate:null},binary:{leftVolume:4500,rightVolume:4200,balanced:!1,reason:"Right +500 USDT closes 1 cycle."},cycleCap:{dailyCycleLimit:8,cyclesCompletedToday:0,remainingCyclesToday:8,capWasteRisk:!1},timeAlert:{autoPlacementTimeUtc:"15:00",hoursUntilAutoPlacement:4.5,placementUrgency:"high"}},riskFlag:{severity:"low",riskType:"cap_waste",summary:"Right-leg gap may cause 1 missed cycle if not topped up before 15:00 UTC.",details:{description:"If right-leg is not topped up before 15:00 UTC auto-placement, 1 cycle may be missed.",preventiveAction:"Suggest Minsu or place 1 pack on right leg by 14:30 UTC.",timeSensitivity:"4.5 hours"}},myBenefits:{summary:"Your next 3 milestones — mining starts tomorrow, first reward 2 days after.",events:[{kind:"mining_start",dateUtc:"2026-08-14",label:"Mining starts",narration:"Your Hash Power package begins mining tomorrow."},{kind:"first_reward",dateUtc:"2026-08-16",label:"First reward",narration:"Your first mining reward lands 2 days after mining starts."},{kind:"cycles_today",dateUtc:"",label:"0 of 8 cycles used",narration:"You have 8 cycles available today — none used yet."}]}}},fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"showGreeting",type:"toggle",label:"Show personal greeting",default:!0,group:"Sections"},{id:"showFocus",type:"toggle",label:"Show today's focus",default:!0,group:"Sections"},{id:"showPlays",type:"toggle",label:"Show action plays (relationship / recruitment / sales)",default:!0,group:"Sections"},{id:"showStructural",type:"toggle",label:"Show structural check (rank / binary / cycle)",default:!0,group:"Sections"},{id:"showRisk",type:"toggle",label:"Show risk flag",default:!0,group:"Sections"},{id:"showBlocker",type:"toggle",label:"Show rank blocker tile (structure / payout)",default:!0,group:"Sections"},{id:"showMyBenefits",type:"toggle",label:"Show My Benefits (mining/reward/rank timeline)",default:!0,group:"Sections"}],events:{emits:[{name:"dap:legSelected",description:"User selected a recommended binary leg"},{name:"chat:draft",description:"Seed the chat composer with a draft message + quick-reply chips"}],listens:[{name:"dap:refresh",description:"Force refresh daily action plan"}]},supportedPlacements:["main"]},he=[/MLM\s+PROFILE\s+DATA\s+missing/i,/USER\s+CONTEXT\s+missing/i,/^Cannot\s+verify/i,/Profile\s+data\s+missing/i,/Profile\s+incomplete/i];function X(a){return he.some(s=>s.test(a.trim()))}function l(a){return!a||a.trim()===""}function _e(a){return Math.round(a).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Z(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function ee(a,s){const t=new Date(a);return isNaN(t.getTime())?a:new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"}).format(t)}function P(a){return a.filter(s=>typeof s=="string"&&s.trim()!=="").join(`
|
|
2
|
+
`)}function be(a,s,t){const r=a.details;return P([`${s("dap.section.focus")} · ${a.domain}`,!l(a.summary)&&a.summary,r&&!l(r.whyThisToday)&&`${s("dap.focus.why")}: ${r.whyThisToday}`,r&&!l(r.expectedOutcome)&&`${s("dap.gaio.field.expected")}: ${r.expectedOutcome}`,r&&r.deadlineUtc&&!l(r.deadlineUtc)&&`${s("dap.gaio.field.deadline")}: ${Z(r.deadlineUtc,t)}`])}function ke(a,s){const t=a.details;return P([`${s("dap.gaio.field.severity")}: ${a.severity}`,!l(a.summary)&&a.summary,t&&!l(t.description)&&t.description,t&&!l(t.preventiveAction)&&`${s("dap.gaio.field.preventive")}: ${t.preventiveAction}`,t&&!l(t.timeSensitivity)&&`${s("dap.gaio.field.time_sensitivity")}: ${t.timeSensitivity}`])}function fe(a,s){const t=a.details;return P([`${s("dap.section.relationship")} · ${a.targetName}`,!l(a.summary)&&a.summary,t&&!l(t.targetContext)&&`${s("dap.gaio.field.context")}: ${t.targetContext}`,t&&!l(t.messageHook)&&`${s("dap.gaio.field.hook")}: ${t.messageHook}`,t&&t.channelHint&&t.channelHint!=="none"&&`${s("dap.gaio.field.channel")}: ${t.channelHint}`,t&&!l(t.draftMessage)&&`${s("dap.gaio.field.draft")}: ${t.draftMessage}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function xe(a,s){const t=a.details;return P([`${s("dap.section.recruitment")} · ${a.actionType.replace(/_/g," ")}`,!l(a.summary)&&a.summary,t&&!l(t.candidateOrSegment)&&`${s("dap.gaio.field.candidate")}: ${t.candidateOrSegment}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function je(a,s){const t=a.details;return P([`${s("dap.section.sales")} · ${a.linkedToBinarySide}`,!l(a.summary)&&a.summary,t&&!l(t.productOrCycleAction)&&`${s("dap.gaio.field.product")}: ${t.productOrCycleAction}`,t&&!l(t.rationale)&&`${s("dap.play.why")}: ${t.rationale}`,t&&!l(t.concreteStep)&&`${s("dap.play.do")}: ${t.concreteStep}`,t&&!l(t.marketSignal)&&`${s("dap.gaio.field.market")}: ${t.marketSignal}`,t&&!l(t.complianceNote)&&`${s("dap.gaio.field.compliance")}: ${t.complianceNote}`])}function Ne(a,s,t){return P([s("dap.section.my_benefits"),!l(a.summary)&&a.summary,...a.events.map(r=>{const n=r.dateUtc?` (${ee(r.dateUtc,t)})`:"";return`${s(`dap.benefits.kind.${r.kind}`)} — ${r.label}${n}: ${r.narration}`})])}function ae(a,s){const t=!!a.riskOfDrop,r=a.retentionProgress,n=typeof r=="number"&&r<1,m=Math.max(0,(a.thresholdForCurrentRank??0)-(a.rollingWindowSales??0)),h=a.windowDays??0,k=m>0&&h>0;let b;return a.active===!1?b=s("dap.blocker.paid_rank.unlock"):n||t?b=k?s("dap.blocker.paid_rank.at_risk",{gap:_e(m),days:h}):s("dap.blocker.paid_rank.unlock"):b=s("dap.blocker.paid_rank.safe",{rank:J(a.currentPaidRank,s)}),{atRisk:t,message:b}}function te(a,s){if(a.active===!1||a.riskOfDrop||typeof a.retentionProgress=="number"&&a.retentionProgress<1)return;const t=a.nextPaidRank,r=a.thresholdForNextRank??0;if(!t||r<=0)return;const n=typeof a.advanceProgress=="number"?a.advanceProgress:0,m=Math.round(Math.max(0,Math.min(1,n))*100);return s("dap.blocker.paid_rank.advance",{percent:m,rank:J(t,s)})}function ve(a,s,t){const r=s?ae(s,t):void 0,n=s?te(s,t):void 0;return P([a.length>0&&`${t("dap.blocker.normal_rank.title")} (${t("dap.blocker.normal_rank.badge")})`,...a,r&&`${t("dap.blocker.paid_rank.title")}: ${r.message}`,n,r?.atRisk&&s?.gracePeriodEndsDate?t("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate}):void 0])}function we(a){if(!a)return!0;if(!l(a.summary))return!1;const s=a.details;return s?l(s.whyThisToday)&&l(s.expectedOutcome)&&l(s.deadlineUtc):!0}function Te(a){if(!a)return!0;const s=a.normalRank;return s?(s.blockingConditions??[]).filter(t=>!X(t)).length===0&&s.currentVolume===0&&s.requiredVolume===0:!0}function Y(a){return a==="critical"||a==="high"?"var(--es-color-error, #AD2C26)":a==="medium"?"var(--es-color-warning, #9C5300)":"var(--es-color-on-surface-muted, #4B5563)"}const Se={relationship:"🤝",recruitment:"📣",sales:"🛒",structural:"📊",risk:"⚠️",market:"📈"},Pe={mining_start:"⛏️",first_reward:"🎁",rank_grace:"⏳",rank_retention:"🛡️",cycles_today:"🔄",promo:"✨"};function $e({open:a}){return e.jsx("svg",{className:`es-dap__chevron${a?" es-dap__chevron--open":""}`,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})}function O({teaser:a,isOpen:s,children:t}){return s?e.jsx("div",{className:"es-dap__teaser-reveal",children:t}):e.jsx("p",{className:"es-dap__teaser-text",children:a})}function M({isOpen:a,onToggle:s,expandLabel:t,collapseLabel:r,t:n}){return e.jsxs("button",{className:"es-dap__more-toggle",type:"button",onClick:s,"aria-expanded":a,"aria-label":a?r:t,children:[n(a?"dap.teaser.less":"dap.teaser.more"),e.jsx($e,{open:a})]})}function S({moreToggle:a,gaioLink:s}){return!a&&!s?null:e.jsxs("div",{className:"es-dap__actions",children:[a,s]})}function Ce(a){const s=a.trim(),t=/^\[(normal|paid)\]\s*/i.exec(s);return t&&t[1]?{scope:t[1].toLowerCase(),text:s.slice(t[0].length)}:{scope:"normal",text:s}}const Re=[{labelKey:"dap.blocker.credits",pct:a=>a.creditsProgressPercent},{labelKey:"dap.blocker.binary_structure",pct:a=>a.binaryProgressPercent},{labelKey:"dap.blocker.branch_leaders",pct:a=>a.branchProgressPercent},{labelKey:"dap.blocker.team_sales",pct:a=>a.volumeProgressPercent}];function Le({normalRank:a,paidRank:s,normalConditions:t,gaioLink:r,t:n}){const m=a?Re.filter(g=>{const f=g.pct(a);return typeof f=="number"&&f<100}):[],h=m.length>0&&m.length===t.length,k=h&&m.some(g=>g.labelKey==="dap.blocker.branch_leaders"),b=t.length>0,i=s?ae(s,n):void 0,x=s?te(s,n):void 0;return e.jsxs("div",{className:"es-dap__card es-dap__blocker-tile",children:[b&&e.jsxs("div",{className:"es-dap__blocker-section",children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.normal_rank.title")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",children:n("dap.blocker.normal_rank.badge")})]}),e.jsx("ul",{className:"es-dap__blocker-list",children:t.map((g,f)=>{const j=h?m[f]:void 0;return e.jsxs("li",{className:"es-dap__blocker-item es-dap__blocker-item--structure",children:[j&&e.jsx("span",{className:"es-dap__blocker-itemlabel",children:n(j.labelKey)}),e.jsx("span",{className:"es-dap__blocker-msg",children:g})]},f)})}),k&&e.jsx("p",{className:"es-dap__blocker-note",children:n("dap.blocker.excluded_structure")})]}),s&&i&&e.jsxs("div",{className:`es-dap__blocker-section${b?" es-dap__blocker-section--divided":""}`,children:[e.jsxs("div",{className:"es-dap__blocker-head",children:[e.jsx("span",{className:"es-dap__blocker-title",children:n("dap.blocker.paid_rank.title")}),e.jsx("span",{className:`es-dap__pill ${i.atRisk?"es-dap__pill--danger":"es-dap__pill--ok"}`,children:n("dap.blocker.paid_rank.badge")})]}),e.jsx("p",{className:`es-dap__blocker-item es-dap__blocker-item--${i.atRisk?"risk":"safe"}`,children:e.jsx("span",{className:"es-dap__blocker-msg",children:i.message})}),x&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--advance",children:x}),i.atRisk&&s.gracePeriodEndsDate&&e.jsx("p",{className:"es-dap__blocker-note es-dap__blocker-note--grace",children:n("dap.blocker.paid_rank.grace",{date:s.gracePeriodEndsDate})})]}),e.jsx(S,{gaioLink:r})]})}function Oe({benefits:a,lang:s,gaioLink:t,t:r}){return e.jsxs("div",{className:"es-dap__card es-dap__benefits-tile",children:[e.jsx("div",{className:"es-dap__blocker-head",children:e.jsx("span",{className:"es-dap__blocker-title",children:r("dap.section.my_benefits")})}),!l(a.summary)&&e.jsx("p",{className:"es-dap__benefits-summary",children:a.summary}),a.events.length>0&&e.jsx("ul",{className:"es-dap__benefits-list",children:a.events.map((n,m)=>e.jsxs("li",{className:`es-dap__benefits-item es-dap__benefits-item--${n.kind}`,children:[e.jsx("span",{className:"es-dap__benefits-icon","aria-hidden":"true",children:Pe[n.kind]??"•"}),e.jsxs("div",{className:"es-dap__benefits-body",children:[e.jsxs("div",{className:"es-dap__benefits-row",children:[e.jsx("span",{className:"es-dap__benefits-label",children:n.label}),n.dateUtc&&e.jsx("span",{className:"es-dap__benefits-date","data-es-no-read":!0,children:ee(n.dateUtc,s)})]}),!l(n.narration)&&e.jsx("p",{className:"es-dap__benefits-narration",children:n.narration})]})]},m))}),e.jsx(S,{gaioLink:t})]})}function Me({text:a,copyLabel:s,copiedLabel:t}){const[r,n]=E.useState(!1);function m(){const h=()=>{n(!0),window.setTimeout(()=>n(!1),2e3)},k=navigator?.clipboard;k?.writeText&&k.writeText(a).then(h,()=>{})}return e.jsx("button",{className:"es-dap__copy-btn",type:"button",onClick:m,children:r?`${t} ✓`:`📋 ${s}`})}function z({label:a,message:s,btnLabel:t,onNavigate:r}){return e.jsxs("div",{className:"es-dap__card es-dap__tile-cta",children:[e.jsx("div",{className:"es-dap__tile-cta-header",children:e.jsx("span",{className:"es-dap__section-label",children:a})}),e.jsx("p",{className:"es-dap__tile-cta-message",children:s}),e.jsx("button",{className:"es-dap__tile-cta-btn",type:"button",onClick:r,children:t})]})}function T({section:a,summary:s,content:t,onTalk:r,t:n}){return e.jsxs("button",{type:"button",className:"es-dap__gaio-link","aria-label":n("dap.gaio.aria",{section:a}),onClick:()=>r(a,s,t),children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",n("dap.talk_to_gaio")]})}function He({data:a,config:s,metadata:t,i18n:r,actions:n,baseUrl:m,externalContext:h,auth:k,previewMode:b}){const i=r?.t??(y=>y),x=r?.currentLanguage??"en",g=h?.hasChatView===!0,f=s.showFocus??!0,j=s.showPlays??!0,q=s.showStructural??!0,se=s.showRisk??!0,ie=s.showBlocker??!0,re=s.showMyBenefits??!0,ne=a.personalGreeting,u=a.todaysFocus,d=a.relationshipPlay,p=a.recruitmentPlay,o=a.salesPlay,C=a.structuralCheck,c=a.riskFlag,N=a.myBenefits,[_,le]=E.useState({});function R(y){le($=>({...$,[y]:!$[y]}))}function B(){n.navigate("gaio-coach")}const v=E.useCallback((y,$,me)=>{n.emit("chat:draft",{message:`[${y}]
|
|
3
|
+
${me}`,autoSend:!1,quickChips:[{labelKey:"dap.gaio.chip.how",label:i("dap.gaio.chip.how"),message:i("dap.gaio.chip.how_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.why",label:i("dap.gaio.chip.why"),message:i("dap.gaio.chip.why_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.draft",label:i("dap.gaio.chip.draft"),message:i("dap.gaio.chip.draft_msg",{summary:$}),autoSend:!0},{labelKey:"dap.gaio.chip.other",label:i("dap.gaio.chip.other"),message:"",autoSend:!1}]})},[n,i]),w=y=>e.jsx(ye,{compact:!0,blockSlug:"daily-action-plan",sectionKey:y,baseUrl:m,apiKey:h?.apiKey,jwt:k?.jwt,previewMode:b,t:i});if(!u&&!ne&&!a.error)return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__empty",children:[e.jsx("div",{className:"es-dap__empty-title",children:i("dap.title")}),e.jsx("p",{className:"es-dap__empty-message",children:t?.dataQuality==="none"?i("dap.empty.sign_in"):i("dap.empty.preparing")}),[1,2,3].map(y=>e.jsxs("div",{className:"es-dap__card es-dap__card--placeholder",children:[e.jsx("div",{className:"es-dap__placeholder-line es-dap__placeholder-line--label"}),e.jsx("div",{className:"es-dap__placeholder-line"})]},y))]})})});if(a.error)return e.jsx(U,{blockType:"daily-action-plan",error:ue(a.error)});const V=we(u),G=Te(C),oe=C?.normalRank?.blockingConditions?.filter(y=>!X(y))??[],ce=f&&!V,D=j&&!!d&&!!d.targetName&&!l(d.summary),A=j&&!!p&&p.actionType!=="none"&&!l(p.summary),L=!!o&&o.linkedToBinarySide==="none"&&!l(o.details?.concreteStep),F=j&&!!o&&(!l(o.summary)||L),de=q&&!G,W=se&&!!c&&c.severity!=="none",I=re&&!!N&&(!l(N.summary)||N.events.length>0);if(!(ce||D||A||F||de||W||I))return e.jsx(U,{blockType:"daily-action-plan",children:e.jsx("div",{className:"es-block__body es-dap__body",children:e.jsxs("div",{className:"es-dap__block-cta",children:[e.jsx("p",{className:"es-dap__block-cta-message",children:i("dap.empty.block_cta")}),e.jsx("button",{className:"es-dap__block-cta-btn",type:"button",onClick:B,children:i("dap.empty.block_cta_btn")})]})})});const pe=C?.normalRank,H=C?.paidRank,K=oe.map(Ce).filter(y=>y.scope==="normal").map(y=>y.text),Q=ie&&!!C&&(K.length>0||!!H);return e.jsxs(U,{blockType:"daily-action-plan",children:[e.jsx("div",{className:"es-dap__icon-row",children:e.jsx(ge,{panelKey:"daily-action-plan",baseUrl:m,apiKey:h?.apiKey,t:i})}),e.jsxs("div",{className:"es-block__body es-dap__body es-dap__deck",children:[f&&(V?e.jsx(z,{label:i("dap.section.focus"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}):u&&e.jsxs("div",{className:"es-dap__hero",children:[e.jsxs("div",{className:"es-dap__hero-lead",children:[e.jsx("span",{"aria-hidden":"true",children:Se[u.domain]??"🎯"})," ",i("dap.section.focus")," · ",u.domain,u.details?.deadlineUtc&&e.jsxs("span",{className:"es-dap__hero-deadline","data-es-no-read":!0,children:[" · ⏱ ",Z(u.details.deadlineUtc,x)]})]}),e.jsx("p",{className:"es-dap__hero-headline",children:u.summary}),u.details?.whyThisToday&&e.jsxs(O,{teaser:u.details.whyThisToday,isOpen:_.focus??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:u.details.whyThisToday}),u.details?.expectedOutcome&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--outcome",children:u.details.expectedOutcome})]}),e.jsx(S,{moreToggle:u.details?.whyThisToday&&e.jsx(M,{isOpen:_.focus??!1,onToggle:()=>R("focus"),expandLabel:i("dap.aria.expand_focus"),collapseLabel:i("dap.aria.collapse_focus"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.focus"),summary:u.summary,content:be(u,i,x),onTalk:v,t:i})}),w("focus")]})),W&&c&&e.jsxs("div",{className:"es-dap__risk",style:{borderLeftColor:Y(c.severity)},children:[e.jsxs("div",{className:"es-dap__risk-head",children:[e.jsx("span",{className:"es-dap__risk-title",children:i("dap.section.risk")}),e.jsx("span",{className:"es-dap__pill es-dap__pill--warn",style:{color:Y(c.severity)},children:i(`dap.risk.severity.${c.severity}`)})]}),e.jsx("p",{className:"es-dap__risk-blurb",children:i("dap.risk.blurb")}),c.summary&&e.jsx("p",{className:"es-dap__risk-summary",children:c.summary}),c.details?.description&&e.jsxs(O,{teaser:c.details.description,isOpen:_.risk??!1,children:[e.jsx("p",{className:"es-dap__detail-text",children:c.details.description}),c.details?.preventiveAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--step",children:c.details.preventiveAction}),c.details?.timeSensitivity&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--deadline",children:c.details.timeSensitivity})]}),e.jsx(S,{moreToggle:c.details?.description&&e.jsx(M,{isOpen:_.risk??!1,onToggle:()=>R("risk"),expandLabel:i("dap.aria.expand_risk"),collapseLabel:i("dap.aria.collapse_risk"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.risk"),summary:c.summary||c.details?.description||i("dap.section.risk"),content:ke(c,i),onTalk:v,t:i})}),w("risk")]}),Q&&e.jsxs(e.Fragment,{children:[e.jsx(Le,{normalRank:pe,paidRank:H,normalConditions:K,gaioLink:g&&e.jsx(T,{section:i("dap.gaio.section.blocker"),summary:i("dap.gaio.section.blocker"),content:ve(K,H,i),onTalk:v,t:i}),t:i}),w("blocker")]}),q&&G&&!Q&&e.jsx(z,{label:i("dap.section.structural"),message:i("dap.empty.tile_cta"),btnLabel:i("dap.empty.tile_cta_btn"),onNavigate:B}),I&&N&&e.jsxs(e.Fragment,{children:[e.jsx(Oe,{benefits:N,lang:x,gaioLink:g&&e.jsx(T,{section:i("dap.section.my_benefits"),summary:N.summary||i("dap.section.my_benefits"),content:Ne(N,i,x),onTalk:v,t:i}),t:i}),w("my_benefits")]}),j&&(D||A||F)&&e.jsxs("div",{className:"es-dap__play-rail",children:[D&&d&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🤝"}),e.jsxs("span",{className:"es-dap__play-label",children:[i("dap.section.relationship")," · ",d.targetName]}),e.jsx("span",{className:"es-dap__play-spacer"}),d.details?.channelHint&&d.details.channelHint!=="none"&&e.jsxs("span",{className:"es-dap__pill",children:[e.jsx("span",{"aria-hidden":"true",children:"💬"})," ",d.details.channelHint]})]}),e.jsx("div",{className:"es-dap__play-summary",children:d.summary}),d.details?.draftMessage&&e.jsxs(O,{teaser:d.details.draftMessage,isOpen:_.relationship??!1,children:[e.jsx("blockquote",{className:"es-dap__draft-message",children:d.details.draftMessage}),e.jsx(Me,{text:d.details.draftMessage,copyLabel:i("dap.play.copy_send"),copiedLabel:i("dap.play.copied")})]}),d.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:d.details.complianceNote})]}),e.jsx(S,{moreToggle:d.details?.draftMessage&&e.jsx(M,{isOpen:_.relationship??!1,onToggle:()=>R("relationship"),expandLabel:i("dap.aria.expand_relationship"),collapseLabel:i("dap.aria.collapse_relationship"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.relationship"),summary:d.summary,content:fe(d,i),onTalk:v,t:i})}),w("relationship")]}),A&&p&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"📣"}),e.jsx("span",{className:"es-dap__play-label",children:i("dap.section.recruitment")}),e.jsx("span",{className:"es-dap__play-spacer"}),e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:p.actionType.replace(/_/g," ")})]}),e.jsx("div",{className:"es-dap__play-summary",children:p.summary}),p.details?.rationale&&e.jsxs(O,{teaser:p.details.rationale,isOpen:_.recruitment??!1,children:[p.details?.candidateOrSegment&&e.jsx("p",{className:"es-dap__detail-text",children:p.details.candidateOrSegment}),e.jsx("p",{className:"es-dap__detail-text",children:p.details.rationale})]}),p.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",p.details.concreteStep]}),p.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:p.details.complianceNote})]}),e.jsx(S,{moreToggle:p.details?.rationale&&e.jsx(M,{isOpen:_.recruitment??!1,onToggle:()=>R("recruitment"),expandLabel:i("dap.aria.expand_recruitment"),collapseLabel:i("dap.aria.collapse_recruitment"),t:i}),gaioLink:g&&e.jsx(T,{section:i("dap.section.recruitment"),summary:p.summary,content:xe(p,i),onTalk:v,t:i})}),w("recruitment")]}),F&&o&&e.jsxs("div",{className:"es-dap__play",children:[e.jsxs("div",{className:"es-dap__play-head",children:[e.jsx("span",{"aria-hidden":"true",children:"🛒"}),e.jsx("span",{className:"es-dap__play-label",children:L?`${i("dap.section.sales")} · ${i("dap.sales.educational")}`:`${i("dap.section.sales")} · ${o.linkedToBinarySide}`}),e.jsx("span",{className:"es-dap__play-spacer"}),!L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--ok",children:`${o.linkedToBinarySide} ${i("dap.gauge.leg")}`}),L&&e.jsx("span",{className:"es-dap__pill es-dap__pill--info",children:i("dap.sales.no_cycle")})]}),o.summary&&e.jsx("div",{className:"es-dap__play-summary",children:o.summary}),o.details?.rationale&&e.jsxs(O,{teaser:o.details.rationale,isOpen:_.sales??!1,children:[o.details?.productOrCycleAction&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--product",children:o.details.productOrCycleAction}),e.jsx("p",{className:"es-dap__detail-text",children:o.details.rationale})]}),o.details?.concreteStep&&e.jsxs("div",{className:"es-dap__do",children:[e.jsxs("b",{children:[i("dap.play.do"),":"]})," ",o.details.concreteStep]}),o.details?.marketSignal&&e.jsx("p",{className:"es-dap__detail-text es-dap__detail-text--market",children:o.details.marketSignal}),o.details?.complianceNote&&e.jsxs("div",{className:"es-dap__compliance",children:[e.jsx("span",{className:"es-dap__compliance-ico","aria-hidden":"true",children:"ⓘ"}),e.jsx("span",{children:o.details.complianceNote})]}),e.jsx(S,{moreToggle:o.details?.rationale&&e.jsx(M,{isOpen:_.sales??!1,onToggle:()=>R("sales"),expandLabel:i("dap.aria.expand_sales"),collapseLabel:i("dap.aria.collapse_sales"),t:i}),gaioLink:!L&&g&&e.jsx(T,{section:i("dap.section.sales"),summary:o.summary,content:je(o,i),onTalk:v,t:i})}),w("sales")]})]})]})]})}export{He as Component,Fe as manifest};
|
|
4
|
+
//# sourceMappingURL=index-BnKOhYKk-CkemNrch.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as g,j as a,Q as B}from"../nexly.js";import{C as K}from"./block-rating-DH7mp-_R-CoiP5C2K.js";import{m as L}from"./block-helpers-Cg_zAqG6-DnN2COvk.js";const v=["G-Miner","Miner","Developer","Team Leader","Manager","Senior Manager","Vice President","President","Chairman"],F={"G-Miner":0,Miner:2,Developer:4,"Team Leader":6,Manager:7,"Senior Manager":8,"Vice President":9,President:10,Chairman:15},W={"G-Miner":0,Miner:2,Developer:4,"Team Leader":6,Manager:8,"Senior Manager":9,"Vice President":10,President:11,Chairman:12},A={"G-Miner":50,Miner:50,Developer:50,"Team Leader":50,Manager:50,"Senior Manager":50,"Vice President":50,President:50,Chairman:75},X=.1,I=50,O=150,Q=5,R=1,$=10,U=5e4,z=100,H=7,q=30,S={paidRank:"Miner",scp1Cycles:1,scp1PerCycle:100,scp2Cycles:1,scp2PerCycle:5,scp3DirectSales:500};function E(e){return typeof e=="string"&&v.includes(e)}function G(e,d){const c=F[d];return!Number.isFinite(e)||e<0?0:Math.min(e,c)}function J(e,d){const c=A[d];return!Number.isFinite(e)||e<0?0:Math.min(e,c)}function Y(e){const d=e.paidRank==="G-Miner",c=d?0:Math.max(0,e.scp1Cycles)*Math.max(0,e.scp1PerCycle),s=d?0:Math.max(0,e.scp2Cycles)*Math.max(0,e.scp2PerCycle),m=Math.round(Math.max(0,e.scp3DirectSales)*X),o=c+s+m,x=o*H,l=o*q;return{scp1Daily:c,scp2Daily:s,scp3Daily:m,totalDaily:o,totalWeekly:x,totalMonthly:l}}function Z(e,d){const c=d.currentPayoutRank,s=e.defaultPaidRank,m=E(c)?c:E(s)?s:v[0],o=e.defaultScp2PerCycle,x=typeof o=="number"&&Number.isFinite(o)?Math.min($,Math.max(R,o)):S.scp2PerCycle;return{...S,paidRank:m,scp1Cycles:G(S.scp1Cycles,m),scp2PerCycle:x}}function p(e,d,c){return`${c}${new Intl.NumberFormat(d,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}`}function N({id:e,label:d,value:c,min:s,max:m,step:o,unit:x,currencySymbol:l,locale:n,disabled:b,onChange:i}){const C=x==="$"?p(c,n,l):c.toLocaleString(n),u=x==="$"?p(s,n,l):String(s),t=x==="$"?p(m,n,l):String(m);return a.jsxs("div",{className:`mlmcalc-slider-row${b?" mlmcalc-slider-row--disabled":""}`,children:[a.jsxs("div",{className:"mlmcalc-slider-header",children:[a.jsx("label",{className:"mlmcalc-slider-label",htmlFor:e,children:d}),a.jsx("span",{className:"mlmcalc-slider-value",children:C})]}),a.jsx("input",{id:e,type:"range",className:"mlmcalc-slider",min:s,max:m,step:o,value:c,disabled:b,onChange:h=>i(Number(h.target.value)),onPointerDown:h=>{if(b)return;const k=h.currentTarget.getBoundingClientRect(),f=h.clientX-k.left,M=m-s;if(M<=0)return;const _=(c-s)/M*k.width;if(Math.abs(f-_)<=12)return;const j=Math.max(0,Math.min(1,f/k.width)),D=s+j*M,P=Math.max(s,Math.min(m,Math.round((D-s)/o)*o+s));let r=P;if(P===c){const y=f>_?1:-1;r=Math.max(s,Math.min(m,c+y*o))}r!==c&&(h.preventDefault(),i(r))},style:{"--mlmcalc-fill":`${m>s?(c-s)/(m-s)*100:0}%`}}),a.jsxs("div",{className:"mlmcalc-slider-bounds",children:[a.jsx("span",{children:u}),a.jsx("span",{children:t})]})]})}function ca({data:e,config:d,i18n:c,baseUrl:s,externalContext:m,auth:o,previewMode:x}){const l=c?.t??(r=>r),n=c?.currentLanguage??"en",b=g.useMemo(()=>Z(d,e),[d,e]),[i,C]=g.useState(b),u=g.useMemo(()=>Y(i),[i]),t=l("mlm_calculator.currency_symbol"),h=i.paidRank==="G-Miner",k=F[i.paidRank],f=A[i.paidRank],M=W[i.paidRank],_=g.useCallback(r=>{C(y=>({...y,paidRank:r,scp1Cycles:G(y.scp1Cycles,r),scp2Cycles:J(y.scp2Cycles,r)}))},[]),j=g.useCallback(r=>y=>{C(w=>({...w,[r]:y}))},[]),D=g.useCallback(()=>{C(b)},[b]),P=v.indexOf(i.paidRank);return a.jsx(B,{blockType:"mlm-calculator",children:a.jsxs("div",{className:"es-block__body",children:[a.jsx(K,{blockSlug:"mlm-calculator",baseUrl:s,apiKey:m?.apiKey,jwt:o?.jwt,previewMode:x,t:l,promptKey:"block_rating.prompt_calculator"}),a.jsxs("div",{className:"mlmcalc-block","aria-label":l("mlm_calculator.aria_label"),children:[a.jsx("div",{className:"mlmcalc-title",children:l("mlm_calculator.title")}),a.jsxs("div",{className:"mlmcalc-rank-bar",children:[a.jsx("span",{className:"mlmcalc-rank-label",children:l("mlm_calculator.paid_rank")}),a.jsx("div",{className:"mlmcalc-rank-track",role:"radiogroup","aria-label":l("mlm_calculator.paid_rank"),children:v.map((r,y)=>{const w=r===i.paidRank,T=y<=P,V=["mlmcalc-rank-node",y%2===0?"mlmcalc-rank-node--above":"mlmcalc-rank-node--below",w?"mlmcalc-rank-node--active":"",T?"mlmcalc-rank-node--past":""].filter(Boolean).join(" ");return a.jsxs("button",{type:"button",role:"radio","aria-checked":w,"aria-label":L(r,l),className:V,onClick:()=>_(r),children:[a.jsx("span",{className:"mlmcalc-rank-dot","aria-hidden":"true"}),a.jsx("span",{className:"mlmcalc-rank-name",children:L(r,l)})]},r)})})]}),a.jsxs("div",{className:"mlmcalc-earnings-grid",children:[a.jsxs("div",{className:"mlmcalc-earnings-card",children:[a.jsx("span",{className:"mlmcalc-earnings-label",children:l("mlm_calculator.weekly")}),a.jsx("span",{className:"mlmcalc-earnings-amount",children:p(u.totalWeekly,n,t)})]}),a.jsxs("div",{className:"mlmcalc-earnings-card",children:[a.jsx("span",{className:"mlmcalc-earnings-label",children:l("mlm_calculator.monthly")}),a.jsx("span",{className:"mlmcalc-earnings-amount mlmcalc-earnings-amount--monthly",children:p(u.totalMonthly,n,t)})]})]}),h&&a.jsx("div",{className:"mlmcalc-warning",role:"alert",children:l("mlm_calculator.warning.g_miner")}),a.jsxs("div",{className:"mlmcalc-scp-group",children:[a.jsxs("div",{className:"mlmcalc-scp-header",children:[a.jsx("span",{className:"mlmcalc-scp-title",children:l("mlm_calculator.scp1.title")}),a.jsx("span",{className:"mlmcalc-scp-subtotal",children:l("mlm_calculator.subtotal_per_day",{amount:p(u.scp1Daily,n,t)})})]}),a.jsx(N,{id:"mlmcalc-scp1-cycles",label:l("mlm_calculator.scp1.cycles"),value:i.scp1Cycles,min:0,max:k,step:1,unit:"",currencySymbol:t,locale:n,disabled:h,onChange:j("scp1Cycles")}),a.jsx(N,{id:"mlmcalc-scp1-per-cycle",label:l("mlm_calculator.scp1.per_cycle"),value:i.scp1PerCycle,min:I,max:O,step:Q,unit:"$",currencySymbol:t,locale:n,disabled:h,onChange:j("scp1PerCycle")})]}),a.jsxs("div",{className:"mlmcalc-scp-group",children:[a.jsxs("div",{className:"mlmcalc-scp-header",children:[a.jsx("span",{className:"mlmcalc-scp-title",children:l("mlm_calculator.scp2.title")}),a.jsx("span",{className:"mlmcalc-scp-subtotal",children:l("mlm_calculator.subtotal_per_day",{amount:p(u.scp2Daily,n,t)})})]}),a.jsx(N,{id:"mlmcalc-scp2-cycles",label:l("mlm_calculator.scp2.cycles",{levels:M}),value:i.scp2Cycles,min:0,max:f,step:1,unit:"",currencySymbol:t,locale:n,disabled:h,onChange:j("scp2Cycles")}),a.jsx(N,{id:"mlmcalc-scp2-per-cycle",label:l("mlm_calculator.scp2.per_cycle"),value:i.scp2PerCycle,min:R,max:$,step:1,unit:"$",currencySymbol:t,locale:n,disabled:h,onChange:j("scp2PerCycle")})]}),a.jsxs("div",{className:"mlmcalc-scp-group",children:[a.jsxs("div",{className:"mlmcalc-scp-header",children:[a.jsx("span",{className:"mlmcalc-scp-title",children:l("mlm_calculator.scp3.title")}),a.jsx("span",{className:"mlmcalc-scp-subtotal",children:l("mlm_calculator.subtotal_per_day",{amount:p(u.scp3Daily,n,t)})})]}),a.jsx(N,{id:"mlmcalc-scp3-sales",label:l("mlm_calculator.scp3.daily_sales"),value:i.scp3DirectSales,min:0,max:U,step:z,unit:"$",currencySymbol:t,locale:n,onChange:j("scp3DirectSales")})]}),a.jsxs("div",{className:"mlmcalc-breakdown",children:[a.jsxs("div",{className:"mlmcalc-breakdown-row",children:[a.jsx("span",{children:l("mlm_calculator.breakdown.scp1")}),a.jsx("span",{children:p(u.scp1Daily,n,t)})]}),a.jsxs("div",{className:"mlmcalc-breakdown-row",children:[a.jsx("span",{children:l("mlm_calculator.breakdown.scp2")}),a.jsx("span",{children:p(u.scp2Daily,n,t)})]}),a.jsxs("div",{className:"mlmcalc-breakdown-row",children:[a.jsx("span",{children:l("mlm_calculator.breakdown.scp3")}),a.jsx("span",{children:p(u.scp3Daily,n,t)})]}),a.jsxs("div",{className:"mlmcalc-breakdown-row mlmcalc-breakdown-row--total",children:[a.jsx("span",{children:l("mlm_calculator.breakdown.total")}),a.jsx("span",{children:p(u.totalDaily,n,t)})]})]}),a.jsx("div",{className:"mlmcalc-actions",children:a.jsx("button",{type:"button",className:"mlmcalc-reset",onClick:D,children:l("mlm_calculator.reset")})}),a.jsx("p",{className:"mlmcalc-disclaimer",children:l("mlm_calculator.disclaimer")})]})]})})}const sa={slug:"mlm-calculator",name:"MLM Commission Calculator",version:"2.0.0",category:"interactive",configSchema:{properties:{readAloudEnabled:{type:"boolean",default:!1},defaultPaidRank:{type:"string",default:"Miner"},defaultScp2PerCycle:{type:"number",default:5}}},defaultConfig:{readAloudEnabled:!1,defaultPaidRank:"Miner",defaultScp2PerCycle:5},sizing:{minWidth:300,preferredHeight:"auto",scrollable:!0},supportedPlacements:["main","sidebar"],fields:[{id:"readAloudEnabled",type:"toggle",label:"Read this panel aloud",default:!1,group:"Voice"},{id:"defaultPaidRank",type:"select",label:"Default paid rank",default:"Miner",options:v.map(e=>({label:e,value:e})),group:"Defaults"},{id:"defaultScp2PerCycle",type:"number",label:"Default SCP2 per-cycle amount",default:5,min:R,max:$,group:"Defaults"}],events:{}};export{ca as Component,ca as MlmCalculatorBlock,v as RANK_ORDER,F as SCP1_MAX_CYCLES,W as SCP2_MAX_LEVELS,Y as computeImineEarnings,sa as manifest};
|
|
2
|
+
//# sourceMappingURL=index-Bu9Gh6Nc-BfWdQCT7.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as n,j as s,Q as H}from"../nexly.js";const L={slug:"support-session-nav",name:"Support Session Navigator",version:"1.0.0",category:"interactive",configSchema:{},defaultConfig:{},sizing:{minWidth:200,preferredHeight:"fill",scrollable:!0},supportedPlacements:["sidebar","main"],events:{emits:[{name:"support-chat:select-session",description:"User selected a past support session"}]}};function M(a,o){const u=Date.now()-new Date(a).getTime(),r=Math.floor(u/6e4);if(r<1)return o("time.just_now");if(r<60)return o("time.minutes_ago",{count:r});const i=Math.floor(r/60);return i<24?o("time.hours_ago",{count:i}):o("time.days_ago",{count:Math.floor(i/24)})}function T({actions:a,baseUrl:o,productId:u,i18n:r,supportSessionId:i,auth:k,externalContext:g}){const t=r?.t??(e=>e),m=k?.jwt,w=g?.showTicketsTab??!1,[v,l]=n.useState(!1),[x,y]=n.useState([]),[p,b]=n.useState(!1),[f,j]=n.useState(null),[d,h]=n.useState(i??null);n.useEffect(()=>{h(i??null)},[i]);const _=n.useCallback(async()=>{b(!0),j(null);try{const e=await fetch(`${o}/api/support-chat/sessions?productId=${encodeURIComponent(u||"")}`,{headers:{...m?{Authorization:`Bearer ${m}`}:{}},credentials:"include"});if(!e.ok)throw new Error(`HTTP ${e.status}`);const c=await e.json();if(!c.success||!c.data)throw new Error("Invalid response");y(c.data.sessions)}catch{j(t("support_session_nav.load_error"))}finally{b(!1)}},[o,m,u,t]);n.useEffect(()=>a.on("support-chat:session",e=>{const{sessionId:c}=e;c&&h(c),v&&_()}),[a,_,v]),n.useEffect(()=>a.on("support-chat:showHistory",()=>{l(!0),_()}),[a,_]),n.useEffect(()=>a.on("support-chat:clearHistory",()=>{l(!1)}),[a]);const C=n.useCallback(e=>{e!==d&&(h(e),a.emit("support-chat:select-session",{sessionId:e})),l(!1)},[a,d]),N=n.useCallback(()=>{a.emit("support-chat:clearHistory",void 0),h(null),l(!1)},[a]),S=n.useCallback(()=>{l(!1)},[]),E=n.useCallback(()=>{a.emit("support-chat:showTickets",void 0),l(!1)},[a]);return v?s.jsxs(H,{blockType:"support-session-nav",children:[s.jsxs("div",{className:"es-ssn__header",children:[s.jsx("span",{className:"es-ssn__header-title",children:t("support_session_nav.title")}),s.jsxs("div",{className:"es-ssn__header-actions",children:[s.jsx("button",{type:"button",className:"es-ssn__action-btn","aria-label":t("support_chat.new_conversation_button"),title:t("support_chat.new_conversation_button"),onClick:N,children:s.jsxs("svg",{width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsx("path",{d:"M12 5H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"})]})}),s.jsx("button",{type:"button",className:"es-ssn__action-btn es-ssn__action-btn--active","aria-label":t("support_chat.history_button"),title:t("support_chat.history_button"),"aria-pressed":"true",onClick:S,children:s.jsxs("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),w&&s.jsx("button",{type:"button",className:"es-ssn__action-btn","aria-label":t("support_chat.tickets_tab_button"),title:t("support_chat.tickets_tab_button"),onClick:E,children:s.jsxs("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsx("path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"}),s.jsx("path",{d:"m9 12 2 2 4-4"})]})})]})]}),s.jsx("div",{className:"es-block__body",children:s.jsxs("div",{className:"es-ssn__list",role:"list","aria-label":t("support_session_nav.list_aria"),children:[p&&s.jsx("div",{className:"es-ssn__loading",role:"status",children:t("support_session_nav.loading")}),f&&!p&&s.jsx("div",{className:"es-ssn__error",role:"alert",children:f}),!p&&!f&&x.length===0&&s.jsx("div",{className:"es-ssn__empty",children:t("support_session_nav.empty")}),!p&&x.map(e=>s.jsxs("button",{role:"listitem",type:"button",className:`es-ssn__item${e.id===d?" es-ssn__item--active":""}`,onClick:()=>C(e.id),"aria-current":e.id===d?"true":void 0,children:[s.jsx("div",{className:"es-ssn__item-preview",children:e.firstUserMessage??t("support_session_nav.no_preview")}),s.jsxs("div",{className:"es-ssn__item-meta",children:[s.jsx("span",{className:`es-ssn__item-status es-ssn__item-status--${e.status}`,"aria-label":e.status,children:e.status}),s.jsx("span",{children:M(e.updatedAt,t)}),e.messageCount>0&&s.jsx("span",{children:t("support_session_nav.message_count",{count:e.messageCount})})]})]},e.id))]})})]}):null}export{T as Component,L as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BvlAsO4n-DbuSZfeK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as x,j as e,Q as p}from"../nexly.js";const _={network:"#e0e7ff",sales:"#dcfce7",social:"#fef3c7",personal:"#f3e8ff",team:"#ffedd5"},S={network:"#4338ca",sales:"#137136",social:"#9e4908",personal:"#7129eb",team:"#ab390b"},T={high:"var(--es-color-error, #AD2C26)",medium:"var(--es-color-warning, #9C5300)",low:"var(--es-color-success, #00672B)"},C={high:3,medium:2,low:1};function R({data:c,config:j,actions:h,metadata:g,i18n:b}){const t=b?.t??(a=>a),N=j.mode??c.mode??"basic",m=c.plan,o=c.aiInsight,[v,k]=x.useState(new Set),[r,u]=x.useState(0);if(!m&&!c.error)return e.jsx(p,{blockType:"weekly-rhythm-planner",children:e.jsxs("div",{className:"wrp-block",children:[e.jsxs("div",{className:"wrp-goal",children:[e.jsx("span",{className:"wrp-goal-icon",children:"🎯"}),e.jsx("span",{className:"wrp-goal-text",style:{color:"var(--es-color-on-surface-muted, #4B5563)"},children:g?.dataQuality==="none"?t("weekly_planner.sign_in_prompt"):t("weekly_planner.preparing")})]}),e.jsxs("div",{className:"wrp-basic",children:[e.jsx("div",{className:"wrp-section-label",children:t("weekly_planner.todays_top_actions")}),[1,2,3].map(a=>e.jsxs("div",{className:"wrp-action",style:{opacity:.35},children:[e.jsx("div",{className:"wrp-action-check"}),e.jsx("div",{className:"wrp-action-body",children:e.jsx("span",{className:"wrp-action-title",style:{background:"var(--es-color-surface-elevated, #f5f5f5)",borderRadius:4,display:"block",height:14,width:`${50+a*20}%`}})})]},a))]})]})});if(c.error)return e.jsx(p,{blockType:"weekly-rhythm-planner",children:e.jsx("p",{style:{color:"var(--es-color-error, #AD2C26)",fontSize:13},children:t("weekly_planner.error_generate")})});const s=m,y=(a,i,d)=>{k(l=>{const n=new Set(l);return n.has(a)?n.delete(a):n.add(a),h?.emit?.("wrp:actionToggled",{id:a,title:d,dayIndex:i,checked:!l.has(a)}),n})},f=a=>{u(a),h?.emit?.("wrp:daySelected",{dayIndex:a,dayLabel:s.days[a]?.dayLabel})},w=(a,i)=>{const d=v.has(a.id);return e.jsxs("div",{className:`wrp-action${d?" wrp-action--done":""}`,onClick:()=>y(a.id,i,a.title),onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),y(a.id,i,a.title))},tabIndex:0,role:"checkbox","aria-checked":d,children:[e.jsx("div",{className:"wrp-action-check",children:d?"✓":""}),e.jsxs("div",{className:"wrp-action-body",children:[e.jsx("span",{className:"wrp-action-title",children:a.title}),e.jsxs("div",{className:"wrp-action-meta",children:[a.time&&e.jsx("span",{className:"wrp-action-time",children:a.time}),e.jsx("span",{className:"wrp-cat-badge",style:{background:_[a.category],color:S[a.category]},children:a.category})]})]}),e.jsx("div",{className:"wrp-priority",role:"img","aria-label":a.priority,title:a.priority,children:Array.from({length:C[a.priority]},(l,n)=>e.jsx("span",{className:"wrp-priority-dot",style:{background:T[a.priority]}},n))})]},a.id)};return e.jsx(p,{blockType:"weekly-rhythm-planner",children:e.jsxs("div",{className:"wrp-block",children:[s.weeklyGoal&&e.jsxs("div",{className:"wrp-goal",children:[e.jsx("span",{className:"wrp-goal-icon",children:"🎯"}),e.jsx("span",{className:"wrp-goal-text",children:s.weeklyGoal})]}),N==="basic"?e.jsxs("div",{className:"wrp-basic",children:[e.jsx("div",{className:"wrp-section-label",children:t("weekly_planner.todays_top_actions")}),e.jsx("div",{className:"wrp-action-list",children:s.topThreeToday.map(a=>w(a,0))}),o&&e.jsxs("div",{className:"wrp-insight",children:[e.jsx("span",{className:"wrp-insight-icon",children:"💡"}),e.jsx("span",{children:o})]})]}):e.jsxs("div",{className:"wrp-pro",children:[e.jsx("div",{className:"wrp-day-tabs",children:s.days.map((a,i)=>e.jsxs("button",{className:`wrp-day-tab${r===i?" wrp-day-tab--active":""}`,onClick:()=>f(i),children:[e.jsx("span",{className:"wrp-tab-label",children:a.dayLabel.slice(0,3)}),e.jsx("span",{className:"wrp-tab-count",children:a.actions.length})]},a.date))}),s.days[r]&&e.jsxs("div",{className:"wrp-day-panel",children:[e.jsxs("div",{className:"wrp-day-header",children:[e.jsx("span",{className:"wrp-day-title",children:s.days[r].dayLabel}),e.jsx("span",{className:"wrp-day-date",children:s.days[r].date})]}),e.jsx("div",{className:"wrp-action-list",children:s.days[r].actions.map(a=>w(a,r))}),s.days[r].focusTip&&e.jsxs("div",{className:"wrp-focus-tip",children:[e.jsx("span",{children:"✨"}),e.jsx("span",{children:s.days[r].focusTip})]})]}),o&&e.jsxs("div",{className:"wrp-insight",children:[e.jsx("span",{className:"wrp-insight-icon",children:"💡"}),e.jsx("span",{children:o})]})]})]})})}const B={slug:"weekly-rhythm-planner",name:"Weekly Rhythm Planner",version:"1.0.0",category:"interactive",requiredService:"weekly-rhythm-planner",configSchema:{properties:{mode:{type:"string",default:"basic"}}},defaultConfig:{mode:"basic"},sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},supportedPlacements:["main","sidebar"],dataContract:{serviceSlug:"weekly-rhythm-planner",inputSchema:{type:"object",properties:{plan:{type:"object"},aiInsight:{type:"string"},mode:{type:"string"}},required:["plan","mode"]}},events:{emits:[{name:"wrp:actionToggled",description:"User toggled an action checkbox"},{name:"wrp:daySelected",description:"User selected a different day in pro mode"}]}};export{R as Component,R as WeeklyRhythmPlannerBlock,B as manifest};
|
|
2
|
+
//# sourceMappingURL=index-BylVnv7X-DBhSkJ7i.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as u,j as e,Q as c,o as j}from"../nexly.js";const f={slug:"recognition-milestone-hub",name:"Recognition & Milestone Hub",version:"1.0.0",category:"interactive",requiredService:"recognition-milestone-hub",configSchema:{properties:{mode:{type:"string",default:"basic"}}},defaultConfig:{mode:"basic"},sizing:{minWidth:280,preferredHeight:"auto",scrollable:!0},supportedPlacements:["main","sidebar"],dataContract:{serviceSlug:"recognition-milestone-hub",inputSchema:{type:"object",properties:{latestAchievement:{type:"object",properties:{badge:{type:"string"},label:{type:"string"},date:{type:"string"}}},nextMilestone:{type:"object",properties:{label:{type:"string"},progressPercent:{type:"number"}}},achievementHistory:{type:"array",items:{type:"object",properties:{badge:{type:"string"},label:{type:"string"},date:{type:"string"}}}},milestoneTimeline:{type:"array",items:{type:"object",properties:{label:{type:"string"},achieved:{type:"boolean"},date:{type:"string"}}}},celebrationMessage:{type:"string"},mode:{type:"string",enum:["basic","pro"]}}},previewDataOverride:{mode:"pro",latestAchievement:{badge:"🥇",label:"First Sale Achieved",date:"2026-04-04"},nextMilestone:{label:"Silver Rank",progressPercent:68},celebrationMessage:"Amazing work hitting your first sale! You're already 68% of the way to Silver Rank. Focus on 2 more referrals this week to cross the threshold.",achievementHistory:[{badge:"🥇",label:"First Sale Achieved",date:"2026-04-04"},{badge:"🚀",label:"Team of 3 Built",date:"2026-03-28"},{badge:"⭐",label:"Profile Completed",date:"2026-03-20"}],milestoneTimeline:[{label:"Bronze Rank",achieved:!0,date:"2026-03-20"},{label:"Silver Rank",achieved:!1},{label:"Gold Rank",achieved:!1},{label:"Platinum Rank",achieved:!1}]}},fields:[{id:"mode",type:"select",label:"Display mode",default:"basic",options:[{label:"Basic — badge + next milestone card",value:"basic"},{label:"Pro — full history, timeline & AI celebration",value:"pro"}],group:"Display"}],events:{emits:[{name:"rmh:achievementCopied",description:"User copied an achievement to clipboard"}],listens:[{name:"rmh:refresh",description:"Force refresh recognition data"}]}};function k({data:i,config:g,actions:y,metadata:x,i18n:v}){const a=v?.t??(s=>s),o=g.mode??i.mode??"basic",r=i.latestAchievement,l=i.nextMilestone,m=i.achievementHistory??[],h=i.milestoneTimeline??[],d=i.celebrationMessage,[p,_]=u.useState("idle");if(!r&&!i.error)return e.jsx(c,{blockType:"recognition-milestone-hub",children:e.jsx("div",{className:"es-block__body es-rmh__body",children:e.jsxs("div",{className:"es-rmh__hero",style:{opacity:.5},children:[e.jsx("div",{className:"es-rmh__badge-circle","aria-hidden":"true",children:"🏆"}),e.jsxs("div",{className:"es-rmh__hero-info",children:[e.jsx("span",{className:"es-rmh__hero-eyebrow",children:a("recognition.title")}),e.jsx("span",{className:"es-rmh__hero-label",style:{color:"var(--es-color-on-surface-muted, #4B5563)"},children:x?.dataQuality==="none"?a("recognition.signin_prompt"):a("recognition.empty")})]})]})})});if(i.error)return e.jsx(c,{blockType:"recognition-milestone-hub",error:j(i.error)});const n=Math.min(100,Math.max(0,l?.progressPercent??0));async function b(s){const t=`${s.badge} ${s.label} — ${s.date}`;try{await navigator.clipboard.writeText(t),_("copied"),y.emit("rmh:achievementCopied",{label:s.label}),setTimeout(()=>_("idle"),2e3)}catch{}}return e.jsx(c,{blockType:"recognition-milestone-hub",children:e.jsxs("div",{className:"es-block__body es-rmh__body",children:[r&&e.jsxs("div",{className:"es-rmh__hero",children:[e.jsx("div",{className:"es-rmh__badge-circle","aria-hidden":"true",children:r.badge}),e.jsxs("div",{className:"es-rmh__hero-info",children:[e.jsx("span",{className:"es-rmh__hero-eyebrow",children:a("recognition.latest_achievement")}),e.jsx("span",{className:"es-rmh__hero-label",children:r.label}),e.jsx("span",{className:"es-rmh__hero-date",children:r.date})]}),e.jsx("button",{className:`es-rmh__copy-btn${p==="copied"?" es-rmh__copy-btn--copied":""}`,onClick:()=>b(r),"aria-label":a("recognition.copy_achievement_aria"),title:a("common.copy_to_clipboard"),children:p==="copied"?"✓":"⎘"})]}),l&&e.jsxs("div",{className:"es-rmh__next-milestone",children:[e.jsxs("div",{className:"es-rmh__next-header",children:[e.jsx("span",{className:"es-rmh__next-eyebrow",children:a("recognition.next_milestone")}),e.jsxs("span",{className:"es-rmh__next-percent",children:[n,"%"]})]}),e.jsx("span",{className:"es-rmh__next-label",children:l.label}),e.jsx("div",{className:"es-rmh__progress-bar",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a("recognition.milestone_progress_aria",{percent:n,label:l.label}),children:e.jsx("div",{className:"es-rmh__progress-fill",style:{width:`${n}%`}})})]}),o==="pro"&&d&&e.jsxs("div",{className:"es-rmh__celebration",children:[e.jsx("span",{className:"es-rmh__celebration-label",children:a("recognition.ai_coach_label")}),e.jsx("p",{className:"es-rmh__celebration-text",children:d})]}),o==="pro"&&m.length>0&&e.jsxs("div",{className:"es-rmh__section",children:[e.jsx("h3",{className:"es-rmh__section-title",children:a("recognition.achievement_history")}),e.jsx("ul",{className:"es-rmh__history-list",role:"list",children:m.map((s,t)=>e.jsxs("li",{className:"es-rmh__history-item",children:[e.jsx("span",{className:"es-rmh__history-badge","aria-hidden":"true",children:s.badge}),e.jsx("span",{className:"es-rmh__history-label",children:s.label}),e.jsx("span",{className:"es-rmh__history-date",children:s.date}),e.jsx("button",{className:"es-rmh__history-copy",onClick:()=>b(s),"aria-label":a("recognition.copy_item_aria",{label:s.label}),title:a("common.copy_to_clipboard"),children:"⎘"})]},t))})]}),o==="pro"&&h.length>0&&e.jsxs("div",{className:"es-rmh__section",children:[e.jsx("h3",{className:"es-rmh__section-title",children:a("recognition.milestone_timeline")}),e.jsx("ol",{className:"es-rmh__timeline","aria-label":a("recognition.milestone_progression_aria"),children:h.map((s,t)=>e.jsxs("li",{className:`es-rmh__timeline-item${s.achieved?" es-rmh__timeline-item--achieved":""}`,children:[e.jsx("span",{className:"es-rmh__timeline-dot","aria-hidden":"true",children:s.achieved?"✓":"○"}),e.jsx("span",{className:"es-rmh__timeline-label",children:s.label}),s.date&&e.jsx("span",{className:"es-rmh__timeline-date",children:s.date})]},t))})]})]})})}export{k as Component,f as manifest};
|
|
2
|
+
//# sourceMappingURL=index-C1WD1dlq-Dm9kbc85.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e}from"../nexly.js";const m={slug:"active-block-labels",name:"Active Block Labels",version:"1.0.0",category:"layout",configSchema:{properties:{showIcons:{type:"boolean",default:!0},compact:{type:"boolean",default:!1},separator:{type:"string",default:"·"}}},defaultConfig:{showIcons:!0,compact:!1,separator:"·"},fields:[{id:"showIcons",type:"toggle",label:"Show icons",default:!0,group:"Display"},{id:"compact",type:"toggle",label:"Compact mode",default:!1,group:"Display"},{id:"separator",type:"text",label:"Separator character",default:"·",placeholder:"·",group:"Display"}],sizing:{minWidth:120,preferredHeight:"auto",scrollable:!1},supportedPlacements:["header","main"]};function b({config:o,i18n:c}){const t=c?.t??(a=>a),l=o,i=l.separator??"·",r=l.compact??!1,s=l.activeBlocks??[];return s.length===0?e.jsx("div",{className:"es-active-block-labels es-active-block-labels--empty",children:e.jsx("span",{className:"es-active-block-labels__empty",children:t("blocks.empty")})}):e.jsx("div",{className:["es-active-block-labels",r?"es-active-block-labels--compact":""].filter(Boolean).join(" "),"aria-label":t("blocks.active_aria"),children:s.map((a,n)=>e.jsxs("span",{className:"es-active-block-labels__item",children:[e.jsx("span",{className:"es-active-block-labels__name",children:a.name}),n<s.length-1&&e.jsx("span",{className:"es-active-block-labels__sep","aria-hidden":"true",children:i})]},a.slug))})}export{b as Component,m as manifest};
|
|
2
|
+
//# sourceMappingURL=index-C262wwK4-DpyhuXqd.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as t,H as Pt,r as q,d 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,Y=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 Ht(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 Yt(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=Yt(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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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>Y});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),H=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",H),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,H=`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=H),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)Ht(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 H=!P;return x?.(H),H})},[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 H=_===P.slug;return t.jsxs("button",{type:"button",role:"tab","aria-selected":H,tabIndex:H?0:-1,className:["gaio-theme__sidebar-tab",H&&"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,H)=>t.jsx("span",{className:`gaio-theme__footer-dot${H===R?" gaio-theme__footer-dot--active":""}`},H))})]}),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-C6_8JGpJ-BqZmEVev.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as c,j as e,Q as d}from"../nexly.js";const y={slug:"demo-faq",name:"DEMO — Questions",version:"0.1.0",category:"content",configSchema:{properties:{items:{type:"array",items:{type:"object",properties:{question:{type:"string"},answer:{type:"string"}},required:["question","answer"]},default:[]}}},defaultConfig:{items:[]},sizing:{minWidth:240,preferredHeight:"auto",scrollable:!1},supportedPlacements:["main","sidebar"]};function f(o){return Array.isArray(o)?o.flatMap(a=>{if(typeof a!="object"||a===null)return[];const t=a,r=typeof t.question=="string"?t.question.trim():"",n=typeof t.answer=="string"?t.answer.trim():"";return!r||!n?[]:[{question:r,answer:n}]}):[]}function _({data:o,config:a,i18n:t}){const r=t?.t??(s=>s),n=f(o?.items??a?.items),[l,p]=c.useState(0),u=c.useCallback(s=>{p(i=>i===s?null:s)},[]);return n.length===0?e.jsx(d,{blockType:"demo-faq",children:e.jsx("div",{className:"es-block__body",children:e.jsx("div",{className:"es-block__empty",children:r("demoFaq.empty")})})}):e.jsx(d,{blockType:"demo-faq",children:e.jsx("div",{className:"es-block__body es-demofaq",children:n.map((s,i)=>{const m=l===i;return e.jsxs("div",{className:m?"es-demofaq__item es-demofaq__item--open":"es-demofaq__item",children:[e.jsxs("button",{type:"button",className:"es-demofaq__question",onClick:()=>u(i),"aria-expanded":m,children:[e.jsx("span",{children:s.question}),e.jsx("span",{className:"es-demofaq__chevron","aria-hidden":"true",children:m?"−":"+"})]}),m&&e.jsx("p",{className:"es-demofaq__answer",children:s.answer})]},i)})})})}export{_ as Component,y as manifest};
|
|
2
|
+
//# sourceMappingURL=index-C75hX_dj-VhJcCfAC.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e,Q as a}from"../nexly.js";const t={slug:"user-profile",name:"User Profile",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 c({i18n:r,auth:l}){const i=r?.t??(d=>d);if(!l?.isAuthenticated||!l.user)return e.jsx(a,{blockType:"user-profile",children:e.jsx("div",{className:"es-widget__profile",children:e.jsx("div",{className:"es-widget__profile-empty",children:e.jsx("p",{children:i("profile.not_logged_in")})})})});const{user:s}=l;return e.jsx(a,{blockType:"user-profile",children:e.jsxs("div",{className:"es-widget__profile",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:i("profile.title")})})}),e.jsx("div",{className:"es-widget__profile-body",children:e.jsxs("div",{className:"es-widget__profile-info",children:[s.name&&e.jsxs("div",{className:"es-widget__profile-field",children:[e.jsx("span",{className:"es-widget__profile-field-label",children:i("profile.name")}),e.jsx("span",{className:"es-widget__profile-field-value",children:s.name})]}),s.email&&e.jsxs("div",{className:"es-widget__profile-field",children:[e.jsx("span",{className:"es-widget__profile-field-label",children:i("profile.email")}),e.jsx("span",{className:"es-widget__profile-field-value",children:s.email})]})]})})]})})}export{c as Component,t as manifest};
|
|
2
|
+
//# sourceMappingURL=index-CMFQhtEe-BcW8HKb8.js.map
|