hermes-web-ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{Add-HK51AOcE.js → Add-cXqy3eJz.js} +1 -1
- package/dist/client/assets/{Button-sy1PzWPU.js → Button-BeWnBoDR.js} +1 -1
- package/dist/client/assets/{ChannelsView-B3Iv1qGF.js → ChannelsView-tUAkDoSF.js} +1 -1
- package/dist/client/assets/{ChatView-BZljWOsk.js → ChatView-CqA3Wo54.js} +2 -2
- package/dist/client/assets/{ChatView-DWJ1E8rg.css → ChatView-CtLv9X8G.css} +1 -1
- package/dist/client/assets/{Close-h76fWaJi.js → Close-ySsuLJTC.js} +1 -1
- package/dist/client/assets/{FormItem-DAkggFjx.js → FormItem-EcbFnIOF.js} +1 -1
- package/dist/client/assets/{Input-BgeYIOdH.js → Input-DP5LDvGa.js} +1 -1
- package/dist/client/assets/{InputNumber-CP0Q1JN_.js → InputNumber-CU7XKbbt.js} +1 -1
- package/dist/client/assets/{JobsView-C3MddyvL.js → JobsView-g3zcs8_m.js} +2 -2
- package/dist/client/assets/{LoginView-DR64ehSS.js → LoginView-CDJXoOEZ.js} +1 -1
- package/dist/client/assets/{LogsView-De8hT0ry.js → LogsView-DS_E9xkh.js} +1 -1
- package/dist/client/assets/{MarkdownRenderer-CgO4HMET.js → MarkdownRenderer-BntkPd0f.js} +1 -1
- package/dist/client/assets/{MemoryView-vo6uIeGe.js → MemoryView-CCCXW1tv.js} +1 -1
- package/dist/client/assets/{Modal-D0bHwidv.js → Modal-D_vF9k8c.js} +1 -1
- package/dist/client/assets/{ModelsView-Czh0QZMT.js → ModelsView-C8rPRq6p.js} +1 -1
- package/dist/client/assets/{Popconfirm-C4L6j7Ed.js → Popconfirm-IKYJxM7n.js} +1 -1
- package/dist/client/assets/{Popover-CSVNytD9.js → Popover-BLBLYanQ.js} +1 -1
- package/dist/client/assets/{ProfilesView-5N8GD-OY.js → ProfilesView-qt3NXito.js} +1 -1
- package/dist/client/assets/{Scrollbar-CP3UrDPW.js → Scrollbar-DZGif2x4.js} +1 -1
- package/dist/client/assets/{Select-BX8K2ITf.js → Select-3KS3TLPL.js} +1 -1
- package/dist/client/assets/{SettingRow-Dj1WGKUP.js → SettingRow-D26AUezg.js} +1 -1
- package/dist/client/assets/{SettingsView-8WKddMDg.js → SettingsView-30x1265A.js} +1 -1
- package/dist/client/assets/{SkillsView-huWlVVSd.js → SkillsView-qq8Oz7fo.js} +1 -1
- package/dist/client/assets/{Spin-7qVct-fX.js → Spin-C9izy3tZ.js} +1 -1
- package/dist/client/assets/{Suffix-CTB2TVbZ.js → Suffix-CIX5CF-j.js} +1 -1
- package/dist/client/assets/{Switch-DznAKpSq.js → Switch-D9x35tOv.js} +1 -1
- package/dist/client/assets/{TerminalView-D8h6hUON.js → TerminalView-zaRNn2aX.js} +1 -1
- package/dist/client/assets/{Tooltip-hZdU3QDl.js → Tooltip-A5--U35v.js} +1 -1
- package/dist/client/assets/{UsageView-c67PH6UD.js → UsageView-DQ3t8CHE.js} +1 -1
- package/dist/client/assets/{Warning-ajVqmXLg.js → Warning-BZfjWCrB.js} +1 -1
- package/dist/client/assets/{_plugin-vue_export-helper-Cla2Sei2.js → _plugin-vue_export-helper-B4hqCVU_.js} +1 -1
- package/dist/client/assets/{app-Dn_xFNgc.js → app-DG_zFxqi.js} +1 -1
- package/dist/client/assets/app-DVQEsGHs.js +1 -0
- package/dist/client/assets/{browser-Bj_pylgC.js → browser-BanYmQkE.js} +1 -1
- package/dist/client/assets/{chat-oRYxV4zZ.js → chat-C6pq-bYQ.js} +2 -2
- package/dist/client/assets/composables-xsQwqT-T.js +1 -0
- package/dist/client/assets/{fade-in-scale-up.cssr-A5vydVRa.js → fade-in-scale-up.cssr-B100njI2.js} +1 -1
- package/dist/client/assets/index-DtDTIaVj.js +284 -0
- package/dist/client/assets/index-JeutuTe0.css +1 -0
- package/dist/client/assets/{jobs-D6sYt3p2.js → jobs-DK_GVjqW.js} +1 -1
- package/dist/client/assets/{light-BRnwbni5.js → light-B8HxMQKs.js} +1 -1
- package/dist/client/assets/{light-BlRycys6.js → light-BT2gqEar.js} +1 -1
- package/dist/client/assets/{light-DyxaUrhN.js → light-BfPLur6t.js} +1 -1
- package/dist/client/assets/{light-DTze2Byq.js → light-CDN7aXQb.js} +1 -1
- package/dist/client/assets/{light-s39H4IqC.js → light-CeMZM90j.js} +1 -1
- package/dist/client/assets/{light-2H7dwk18.js → light-Dav3NshO.js} +1 -1
- package/dist/client/assets/{pinia-0T1SpgZT.js → pinia-DEKB7D30.js} +1 -1
- package/dist/client/assets/{profiles-CXj2WAET.js → profiles-BSAOLUpt.js} +1 -1
- package/dist/client/assets/{router-k7Mt11r-.js → router-Zpu1Tghg.js} +2 -2
- package/dist/client/assets/{sessions-C04iLbID.js → sessions-1rFjfO8M.js} +1 -1
- package/dist/client/assets/{skills-CrJMmxLv.js → skills-Bu5JdqX-.js} +1 -1
- package/dist/client/assets/use-compitable-Dl0AqAGv.js +1 -0
- package/dist/client/assets/{use-message-kLSX34Jy.js → use-message-CFWjMwGX.js} +1 -1
- package/dist/client/assets/{useTheme-OKrDn5ib.js → useTheme-CHkzsMnk.js} +1 -1
- package/dist/client/index.html +28 -28
- package/package.json +1 -1
- package/dist/client/assets/app-DuW413U3.js +0 -1
- package/dist/client/assets/composables-NK3hMwZN.js +0 -1
- package/dist/client/assets/index-8Iu2oDQ9.css +0 -1
- package/dist/client/assets/index-CNVL9pSf.js +0 -284
- package/dist/client/assets/use-compitable-CBi_h52X.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ct as e,o as t}from"./router-
|
|
1
|
+
import{ct as e,o as t}from"./router-Zpu1Tghg.js";import{n}from"./pinia-DEKB7D30.js";async function r(){return t(`/health`)}async function i(){return t(`/api/hermes/update`,{method:`POST`})}async function a(){return t(`/api/hermes/available-models`)}async function o(e){await t(`/api/hermes/config/model`,{method:`PUT`,body:JSON.stringify(e)})}async function s(e){await t(`/api/hermes/config/providers`,{method:`POST`,body:JSON.stringify(e)})}async function c(e){await t(`/api/hermes/config/providers/${encodeURIComponent(e)}`,{method:`DELETE`})}var l=`0.3.1`,u=n(`app`,()=>{let t=e(!1),n=e(!1),s=e(l),c=e(``),u=e(!1),d=e(!1),f=e([]),p=e(``),m=e(),h=e(!0),g=e(!0),_=e(4096);async function v(){d.value=!0;try{let e=await i();return e.success&&(u.value=!1,await y()),e.success}finally{d.value=!1}}async function y(){try{let e=await r();n.value=e.status===`ok`,e.webui_version&&(s.value=e.webui_version),e.webui_latest&&(c.value=e.webui_latest),u.value=!!e.webui_update_available}catch{n.value=!1}}async function b(){try{let e=await a();f.value=e.groups,p.value=e.default}catch{}}async function x(e,t){try{let n=f.value.find(t=>t.models.includes(e));await o({default:e,provider:t||n?.provider||``}),p.value=e}catch(e){console.error(`Failed to switch model:`,e)}}function S(e=3e4){C(),y(),m.value=setInterval(y,e)}function C(){m.value&&=(clearInterval(m.value),void 0)}function w(){t.value=!t.value}function T(){t.value=!1}return{sidebarOpen:t,toggleSidebar:w,closeSidebar:T,connected:n,serverVersion:s,latestVersion:c,updateAvailable:u,updating:d,doUpdate:v,modelGroups:f,selectedModel:p,streamEnabled:h,sessionPersistence:g,maxTokens:_,checkConnection:y,loadModels:b,switchModel:x,startHealthPolling:S,stopHealthPolling:C}});export{o as a,c as i,s as n,a as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./app-DG_zFxqi.js";export{e as useAppStore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as e,C as t,F as n,I as r,K as i,N as a,U as o,V as s,X as c,Z as l,ct as u,d,dt as f,j as p,lt as m,st as ee,v as te,y as ne}from"./router-
|
|
1
|
+
import{B as e,C as t,F as n,I as r,K as i,N as a,U as o,V as s,X as c,Z as l,ct as u,d,dt as f,j as p,lt as m,st as ee,v as te,y as ne}from"./router-Zpu1Tghg.js";function re(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function ie(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var ae=/\s*,(?![^(]*\))\s*/g,oe=/\s+/g;function se(e,t){let n=[];return t.split(ae).forEach(t=>{let r=ie(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function ce(e,t){let n=[];return t.split(ae).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function le(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?se(t,e):ce(t,e))}),t.join(`, `).replace(oe,` `)}function ue(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function de(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function fe(e){return e?/^\s*@(s|m)/.test(e):!1}var pe=/[A-Z]/g;function me(e){return e.replace(pe,e=>`-`+e.toLowerCase())}function he(e,t=` `){return typeof e==`object`&&e?` {
|
|
2
2
|
`+Object.entries(e).map(e=>t+` ${me(e[0])}: ${e[1]};`).join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`+t+`}`:`: ${e};`}function ge(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function _e(e,t,n,r){if(!t)return``;let i=ge(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-
|
|
2
|
-
import{C as e,ct as t,i as n,n as r,o as i,r as a}from"./router-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-DVQEsGHs.js","assets/app-DG_zFxqi.js","assets/router-Zpu1Tghg.js","assets/pinia-DEKB7D30.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{C as e,ct as t,i as n,n as r,o as i,r as a}from"./router-Zpu1Tghg.js";import{n as o}from"./pinia-DEKB7D30.js";import{n as s,nt as c,s as l}from"./browser-BanYmQkE.js";import{i as u}from"./Popover-BLBLYanQ.js";import{t as d}from"./app-DG_zFxqi.js";import{n as f,r as p,t as m}from"./sessions-1rFjfO8M.js";var h={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function g(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:f,heightSmall:p,heightMedium:m,heightLarge:g,heightHuge:_,textColor3:v,opacityDisabled:y}=e;return Object.assign(Object.assign({},h),{optionHeightSmall:p,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:_,borderRadius:s,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:c(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:y})}var _=l({name:`Dropdown`,common:s,peers:{Popover:u},self:g});function v(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var y={name:`Icon`,common:s,self:v};async function b(e){return i(`/api/hermes/v1/runs`,{method:`POST`,body:JSON.stringify(e)})}function x(e,t,r,i){let o=n(),s=a(),c=`${o}/api/hermes/v1/runs/${e}/events${s?`?token=${encodeURIComponent(s)}`:``}`,l=!1,u=new EventSource(c);return u.onmessage=e=>{if(!l)try{let n=JSON.parse(e.data);t(n),(n.event===`run.completed`||n.event===`run.failed`)&&(l=!0,u.close(),r())}catch{t({event:`message`,delta:e.data})}},u.onerror=()=>{l||(l=!0,u.close(),i(Error(`SSE connection error`)))},{abort:()=>{l||(l=!0,u.close())}}}function S(){return Date.now().toString(36)+Math.random().toString(36).slice(2,8)}async function C(e){if(e.length===0)return[];let t=new FormData;for(let n of e)n.file&&t.append(`file`,n.file,n.name);let n=localStorage.getItem(`hermes_api_key`)||``,r=await fetch(`/upload`,{method:`POST`,body:t,headers:n?{Authorization:`Bearer ${n}`}:{}});if(!r.ok)throw Error(`Upload failed: ${r.status}`);return(await r.json()).files}function w(e){let t=new Map,n=new Map;for(let r of e)if(r.role===`assistant`&&r.tool_calls)for(let e of r.tool_calls)e.id&&(e.function?.name&&t.set(e.id,e.function.name),e.function?.arguments&&n.set(e.id,e.function.arguments));let r=[];for(let i of e){if(i.role===`assistant`&&i.tool_calls?.length&&!i.content?.trim()){for(let e of i.tool_calls)r.push({id:String(i.id)+`_`+e.id,role:`tool`,content:``,timestamp:Math.round(i.timestamp*1e3),toolName:e.function?.name||`tool`,toolArgs:e.function?.arguments||void 0,toolStatus:`done`});continue}if(i.role===`tool`){let e=i.tool_call_id||``,a=i.tool_name||t.get(e)||`tool`,o=n.get(e)||void 0,s=``;if(i.content)try{let e=JSON.parse(i.content);s=e.url||e.title||e.preview||e.summary||``}catch{s=i.content.slice(0,80)}let c=r.findIndex(t=>t.role===`tool`&&t.toolName===a&&!t.toolResult&&t.id.includes(`_`+e));c!==-1&&r.splice(c,1),r.push({id:String(i.id),role:`tool`,content:``,timestamp:Math.round(i.timestamp*1e3),toolName:a,toolArgs:o,toolPreview:typeof s==`string`&&s.slice(0,100)||void 0,toolResult:i.content||void 0,toolStatus:`done`});continue}r.push({id:String(i.id),role:i.role,content:i.content||``,timestamp:Math.round(i.timestamp*1e3)})}return r}function T(e){return{id:e.id,title:e.title||``,source:e.source||void 0,messages:[],createdAt:Math.round(e.started_at*1e3),updatedAt:Math.round((e.ended_at||e.started_at)*1e3),model:e.model,provider:e.billing_provider||``,messageCount:e.message_count,inputTokens:e.input_tokens,outputTokens:e.output_tokens}}var E=o(`chat`,()=>{let n=`hermes_active_session`,i=t([]),a=t(localStorage.getItem(n)),o=t(new Map),s=e(()=>a.value!=null&&o.value.has(a.value)),c=t(!1),l=t(!1),u=t(null),h=e(()=>u.value?.messages||[]);async function g(){c.value=!0;try{i.value=(await p()).map(T);let e=a.value,t=e&&i.value.some(t=>t.id===e)?e:i.value[0]?.id;t&&await v(t)}catch(e){console.error(`Failed to load sessions:`,e)}finally{c.value=!1}}function _(){let e={id:S(),title:``,source:`api_server`,messages:[],createdAt:Date.now(),updatedAt:Date.now()};return i.value.unshift(e),e}async function v(e){if(a.value=e,localStorage.setItem(n,e),u.value=i.value.find(t=>t.id===e)||null,u.value&&u.value.messages.length===0){l.value=!0;try{let t=await f(e);if(t&&t.messages){let e=w(t.messages);if(u.value.messages=e,u.value.inputTokens=t.input_tokens,u.value.outputTokens=t.output_tokens,t.title)u.value.title=t.title;else{let t=e.find(e=>e.role===`user`);if(t){let e=t.content.slice(0,40);u.value.title=e+(t.content.length>40?`...`:``)}}}}catch(e){console.error(`Failed to load session messages:`,e)}finally{l.value=!1}}}function y(){if(s.value)return;let e=_();e.model=d().selectedModel||void 0,v(e.id)}async function E(e,t){if(u.value&&(u.value.model=e,u.value.provider=t||``,t)){let{useAppStore:n}=await r(async()=>{let{useAppStore:e}=await import(`./app-DVQEsGHs.js`);return{useAppStore:e}},__vite__mapDeps([0,1,2,3]));await n().switchModel(e,t)}}async function D(e){await m(e),i.value=i.value.filter(t=>t.id!==e),a.value===e&&(i.value.length>0?await v(i.value[0].id):v(_().id))}function O(e){return i.value.find(t=>t.id===e)?.messages||[]}function k(e,t){let n=i.value.find(t=>t.id===e);n&&n.messages.push(t)}function A(e,t,n){let r=i.value.find(t=>t.id===e);if(!r)return;let a=r.messages.findIndex(e=>e.id===t);a!==-1&&(r.messages[a]={...r.messages[a],...n})}function j(e){let t=i.value.find(t=>t.id===e);if(t){if(!t.title){let e=t.messages.find(e=>e.role===`user`);if(e){let n=e.attachments?.length?e.attachments.map(e=>e.name).join(`, `):e.content;t.title=n.slice(0,40)+(n.length>40?`...`:``)}}t.updatedAt=Date.now()}}async function M(e,t){if(!e.trim()&&!(t&&t.length>0)||s.value)return;u.value||v(_().id);let n=a.value;k(n,{id:S(),role:`user`,content:e.trim(),timestamp:Date.now(),attachments:t&&t.length>0?t:void 0}),j(n);try{let r=O(n).filter(e=>(e.role===`user`||e.role===`assistant`)&&e.content.trim()).map(e=>({role:e.role,content:e.content})),i=e.trim();if(t&&t.length>0){let e=(await C(t)).map(e=>`[File: ${e.name}](${e.path})`);i=i?i+`
|
|
3
3
|
|
|
4
4
|
`+e.join(`
|
|
5
5
|
`):e.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as e}from"./router-Zpu1Tghg.js";import{Y as t}from"./browser-BanYmQkE.js";import{s as n}from"./Modal-D_vF9k8c.js";function r(){let r=e(n,null);return r===null&&t(`use-dialog`,`No outer <n-dialog-provider /> founded.`),r}export{r as t};
|
package/dist/client/assets/{fade-in-scale-up.cssr-A5vydVRa.js → fade-in-scale-up.cssr-B100njI2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as e}from"./router-
|
|
1
|
+
import{k as e}from"./router-Zpu1Tghg.js";import{st as t,u as n}from"./browser-BanYmQkE.js";var r=new WeakSet;function i(e){r.add(e)}function a(e){return!r.has(e)}function o(t,...n){return typeof t==`function`?t(...n):typeof t==`string`?e(t):typeof t==`number`?e(String(t)):null}var{cubicBezierEaseIn:s,cubicBezierEaseOut:c}=n;function l({transformOrigin:e=`inherit`,duration:n=`.2s`,enterScale:r=`.9`,originalTransform:i=``,originalTransition:a=``}={}){return[t(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${n} ${s}, transform ${n} ${s} ${a&&`,${a}`}`}),t(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${n} ${c}, transform ${n} ${c} ${a&&`,${a}`}`}),t(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${i} scale(${r})`}),t(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${i} scale(1)`})]}export{i,o as n,a as r,l as t};
|