lingee-ui 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/button/index.d.mts +1 -1
  2. package/dist/button/index.d.ts +1 -1
  3. package/dist/button/index.js +1 -1
  4. package/dist/button/index.mjs +1 -1
  5. package/dist/{chunk-CQVDHCVR.js → chunk-2N2YZIHQ.js} +1 -1
  6. package/dist/chunk-CATPKTPR.mjs +1 -0
  7. package/dist/chunk-EBYXYMEL.mjs +1 -0
  8. package/dist/{chunk-CJUKQFAJ.js → chunk-ENYYJ7ES.js} +1 -1
  9. package/dist/chunk-MFBMJTYZ.js +2 -0
  10. package/dist/chunk-QEKT37W5.js +1 -0
  11. package/dist/chunk-TDJG7ZB6.js +1 -0
  12. package/dist/{chunk-RTCATZUZ.js → chunk-VKZD4ESR.js} +1 -1
  13. package/dist/chunk-XVM4RPVQ.mjs +2 -0
  14. package/dist/chunk-Y463GZ2F.mjs +1 -0
  15. package/dist/chunk-YURAXA54.mjs +2 -0
  16. package/dist/chunk-Z4J7SMTI.mjs +1 -0
  17. package/dist/{index-7pb5YOcq.d.mts → index-89atTLPD.d.mts} +2 -2
  18. package/dist/{index-7pb5YOcq.d.ts → index-89atTLPD.d.ts} +2 -2
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.mts +348 -18
  21. package/dist/index.d.ts +348 -18
  22. package/dist/index.js +2 -2
  23. package/dist/index.mjs +2 -2
  24. package/dist/input/index.js +1 -1
  25. package/dist/input/index.mjs +1 -1
  26. package/dist/tabs/index.css +1 -1
  27. package/dist/tabs/index.js +1 -1
  28. package/dist/tabs/index.mjs +1 -1
  29. package/dist/toast/index.js +1 -1
  30. package/dist/toast/index.mjs +1 -1
  31. package/dist/tooltip/index.js +1 -1
  32. package/dist/tooltip/index.mjs +1 -1
  33. package/dist/tree/index.css +1 -1
  34. package/dist/tree/index.js +1 -1
  35. package/dist/tree/index.mjs +1 -1
  36. package/package.json +2 -1
  37. package/skill/AGENTS-SNIPPET.md +5 -2
  38. package/skill/SKILL.md +6 -3
  39. package/skill/VERSION.json +3 -3
  40. package/skill/references/components/cascader.md +97 -0
  41. package/skill/references/components/color-picker.md +10 -3
  42. package/skill/references/components/dialog.md +15 -4
  43. package/skill/references/components/drawer.md +1 -1
  44. package/skill/references/components/dropdown.md +1 -1
  45. package/skill/references/components/table.md +2 -1
  46. package/skill/references/components/timeline.md +75 -0
  47. package/skill/references/components/tree-select.md +86 -0
  48. package/skill/references/components/upload.md +2 -1
  49. package/skill/references/setup.md +2 -2
  50. package/skill/references/tokens.md +1 -1
  51. package/dist/chunk-4VICYRWD.mjs +0 -1
  52. package/dist/chunk-B3BNV2BA.js +0 -1
  53. package/dist/chunk-CHYJKCAM.mjs +0 -1
  54. package/dist/chunk-FDENIWMP.mjs +0 -2
  55. package/dist/chunk-LS4LPBJT.js +0 -2
  56. package/dist/chunk-PEXFBRR4.mjs +0 -2
  57. package/dist/chunk-RNRDXECM.js +0 -1
  58. package/dist/chunk-S5TTZBPX.mjs +0 -1
  59. package/dist/chunk-T3QXFSH7.mjs +0 -1
@@ -1 +0,0 @@
1
- 'use strict';var chunkB3BNV2BA_js=require('./chunk-B3BNV2BA.js'),chunkLS4LPBJT_js=require('./chunk-LS4LPBJT.js'),chunkDCDWEVW4_js=require('./chunk-DCDWEVW4.js'),qe=require('react'),sonner=require('sonner'),lingeeIcon=require('lingee-icon'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var qe__default=/*#__PURE__*/_interopDefault(qe);var Te={locale:"zh-CN",Button:{},Breadcrumb:{more:"\u66F4\u591A",back:"\u8FD4\u56DE",label:"\u9762\u5305\u5C51\u5BFC\u822A",scrollLeft:"\u5411\u5DE6\u6EDA\u52A8",scrollRight:"\u5411\u53F3\u6EDA\u52A8"},Select:{loading:"\u52A0\u8F7D\u4E2D",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",loadFailed:"\u52A0\u8F7D\u5931\u8D25",notFound:"\u641C\u7D22\u65E0\u7ED3\u679C",clear:"\u6E05\u7A7A"},Dropdown:{clear:"\u6E05\u9664",loading:"\u52A0\u8F7D\u4E2D",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",empty:"\u6682\u65E0\u6570\u636E"},Tabs:{scrollLeft:"\u5411\u5DE6\u6EDA\u52A8",scrollRight:"\u5411\u53F3\u6EDA\u52A8"},Carousel:{carousel:"\u8F6E\u64AD",prev:"\u4E0A\u4E00\u5F20",next:"\u4E0B\u4E00\u5F20",goToPage:"\u8DF3\u8F6C\u5230\u7B2C {page} \u5F20"},Form:{required:"{label}\u4E0D\u80FD\u4E3A\u7A7A",requiredNoLabel:"\u6B64\u9879\u4E0D\u80FD\u4E3A\u7A7A"},Tag:{close:"\u5173\u95ED"},Upload:{retry:"\u91CD\u65B0\u4E0A\u4F20",remove:"\u79FB\u9664\u6587\u4EF6",removeShort:"\u79FB\u9664",dragText:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\uFF0C\u6216",clickUpload:"\u70B9\u51FB\u4E0A\u4F20"},ColorPicker:{placeholder:"\u8BF7\u9009\u62E9\u989C\u8272"},DatePicker:{placeholder:"\u5E74/\u6708/\u65E5",today:"\u4ECA\u5929",prevYear:"\u4E0A\u4E00\u5E74",nextYear:"\u4E0B\u4E00\u5E74",prevMonth:"\u4E0A\u4E00\u6708",nextMonth:"\u4E0B\u4E00\u6708",prevDecade:"\u4E0A\u4E00\u7EC4\u5E74\u4EFD",nextDecade:"\u4E0B\u4E00\u7EC4\u5E74\u4EFD",months:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],yearFormat:"{year}\u5E74",monthFormat:"{month}\u6708"},RangePicker:{startPlaceholder:"\u5E74/\u6708/\u65E5",endPlaceholder:"\u5E74/\u6708/\u65E5"},TimePicker:{now:"\u73B0\u5728",confirm:"\u786E\u5B9A",placeholder:"\u65F6:\u5206",placeholderFull:"\u65F6:\u5206:\u79D2"},Table:{loading:"\u52A0\u8F7D\u4E2D",empty:"\u6682\u65E0\u6570\u636E",loadError:"\u52A0\u8F7D\u5931\u8D25"},Tree:{empty:"\u6682\u65E0\u6570\u636E"},Pagination:{total:"\u5171 {total} \u6761",prevPage:"\u4E0A\u4E00\u9875",nextPage:"\u4E0B\u4E00\u9875",itemsPerPage:"{size}\u6761/\u9875",jumpTo:"\u8DF3\u81F3",page:"\u9875"},Dialog:{close:"\u5173\u95ED"},Drawer:{close:"\u5173\u95ED"},Input:{clear:"\u6E05\u7A7A",expand:"\u5C55\u5F00\u8F93\u5165\u6846"},Alert:{close:"\u5173\u95ED"},Toast:{close:"\u5173\u95ED\u6D88\u606F"},Spin:{loading:"\u52A0\u8F7D\u4E2D"},Empty:{retry:"\u91CD\u8BD5"},InfiniteScroll:{loading:"\u52A0\u8F7D\u4E2D",noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",loadFailed:"\u52A0\u8F7D\u5931\u8D25"},Sidebar:{expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u52A0\u8F7D\u4E2D",empty:"\u6682\u65E0\u6570\u636E",loadError:"\u52A0\u8F7D\u5931\u8D25"},PersonPicker:{title:"\u9009\u62E9\u4EBA\u5458",ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",searchPlaceholder:"\u641C\u7D22\u59D3\u540D\u3001\u5DE5\u53F7",tabRecentContacts:"\u6700\u8FD1\u8054\u7CFB\u4EBA",tabRecentGroups:"\u6700\u8FD1\u7FA4\u7EC4",tabOrganization:"\u9009\u62E9\u7EC4\u7EC7",tabPerson:"\u9009\u62E9\u4EBA\u5458",selectAll:"\u5168\u9009",selectedTitle:"\u5DF2\u9009",groupPerson:"\u4EBA\u5458",groupGroup:"\u7FA4\u7EC4",groupOrg:"\u7EC4\u7EC7",remove:"\u79FB\u9664",drillDown:"\u67E5\u770B\u4E0B\u7EA7",jumpTo:"\u8DF3\u8F6C\u5230",empty:"\u6682\u65E0\u6570\u636E",searchEmpty:"\u641C\u7D22\u65E0\u7ED3\u679C",loadFailed:"\u52A0\u8F7D\u5931\u8D25",loadFailedDetail:"\u670D\u52A1\u54CD\u5E94\u5F02\u5E38\u6216\u7F51\u7EDC\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"}},b=Te;var D=new Map,G=0;function U(){return G+=1,{id:G}}function Y(e,o,t){D.set(e.id,{site:o,depth:t});}function j(e){D.delete(e.id);}function xe(){let e;for(let o of D.values())(!e||o.depth>=e.depth)&&(e=o);return e?.site}function H(){return xe()==="lingee"}var K={dialog:{}},w=qe.createContext(K),N=new Map,q=0;function J(){return q+=1,{id:q}}function V(e,o,t){N.set(e.id,{config:o,depth:t});}function X(e){N.delete(e.id);}function he(){let e;for(let o of N.values())(!e||o.depth>=e.depth)&&(e=o);return e?.config??K}function ve(){return qe.useContext(w)}var be={locale:"en-US",Button:{},Breadcrumb:{more:"More",back:"Back",label:"Breadcrumb",scrollLeft:"Scroll left",scrollRight:"Scroll right"},Select:{loading:"Loading",loadError:"Failed to load, please retry",loadFailed:"Failed to load",notFound:"No results found",clear:"Clear"},Dropdown:{clear:"Clear",loading:"Loading",loadError:"Failed to load, please retry",empty:"No data"},Tabs:{scrollLeft:"Scroll left",scrollRight:"Scroll right"},Carousel:{carousel:"Carousel",prev:"Previous slide",next:"Next slide",goToPage:"Go to slide {page}"},Form:{required:"{label} is required",requiredNoLabel:"This field is required"},Tag:{close:"Close"},Upload:{retry:"Retry upload",remove:"Remove file",removeShort:"Remove",dragText:"Drag files here, or ",clickUpload:"click to upload"},ColorPicker:{placeholder:"Select a color"},DatePicker:{placeholder:"YYYY/MM/DD",today:"Today",prevYear:"Previous year",nextYear:"Next year",prevMonth:"Previous month",nextMonth:"Next month",prevDecade:"Previous decade",nextDecade:"Next decade",months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yearFormat:"{year}",monthFormat:"{month}"},RangePicker:{startPlaceholder:"Start date",endPlaceholder:"End date"},TimePicker:{now:"Now",confirm:"OK",placeholder:"HH:mm",placeholderFull:"HH:mm:ss"},Table:{loading:"Loading",empty:"No data",loadError:"Failed to load"},Tree:{empty:"No data"},Pagination:{total:"{total} items",prevPage:"Previous page",nextPage:"Next page",itemsPerPage:"{size} / page",jumpTo:"Go to",page:""},Dialog:{close:"Close"},Drawer:{close:"Close"},Input:{clear:"Clear",expand:"Expand input"},Alert:{close:"Close"},Toast:{close:"Close message"},Spin:{loading:"Loading"},Empty:{retry:"Retry"},InfiniteScroll:{loading:"Loading",noMore:"No more items",loadFailed:"Failed to load"},Sidebar:{expand:"Expand",collapse:"Collapse",loading:"Loading",empty:"No data",loadError:"Failed to load"},PersonPicker:{title:"Select people",ok:"OK",cancel:"Cancel",searchPlaceholder:"Search by name or employee ID",tabRecentContacts:"Recent contacts",tabRecentGroups:"Recent groups",tabOrganization:"Organization",tabPerson:"People",selectAll:"Select all",selectedTitle:"Selected",groupPerson:"People",groupGroup:"Groups",groupOrg:"Departments",remove:"Remove",drillDown:"View children",jumpTo:"Jump to ",empty:"No data",searchEmpty:"No results",loadFailed:"Failed to load",loadFailedDetail:"The service is unavailable or the network is unreachable",retry:"Retry"}},we=be;var Q=qe.createContext(b),ee=qe.createContext(void 0),W=qe.createContext(-1);function Pe({locale:e=b,site:o,dialog:t,children:r}){let a=qe.useContext(W)+1,s=qe.useContext(w),n=t?.zIndex,i=s.dialog.zIndex,u=qe.useMemo(()=>({dialog:{zIndex:n??i}}),[n,i]),l=qe.useRef();l.current||(l.current=U());let d=l.current,p=qe.useRef();p.current||(p.current=J());let m=p.current;Y(d,o,a),V(m,u,a),qe.useEffect(()=>()=>{j(d),X(m);},[m,d]);let C=jsxRuntime.jsx(W.Provider,{value:a,children:jsxRuntime.jsx(w.Provider,{value:u,children:jsxRuntime.jsx(ee.Provider,{value:o,children:jsxRuntime.jsxs(Q.Provider,{value:e,children:[r,a===0&&jsxRuntime.jsx($,{})]})})})});return a===0?jsxRuntime.jsx(chunkLS4LPBJT_js.c,{children:C}):C}Pe.displayName="LingeeProvider";function Le(){return qe.useContext(Q)}function oe(e){return Le()[e]}function so(){return qe.useContext(ee)}var Ae={info:jsxRuntime.jsx(lingeeIcon.ExclamationCircleFill,{size:20}),success:jsxRuntime.jsx(lingeeIcon.CheckCircleFill,{size:20}),warning:jsxRuntime.jsx(lingeeIcon.ExclamationCircleFill1,{size:20}),error:jsxRuntime.jsx(lingeeIcon.XCircleFill,{size:20})};function te({type:e,content:o,icon:t,closable:r,className:a,onClose:s,actionLabel:n,onAction:i}){let u=oe("Toast"),l=()=>{if(t===null)return null;let d=t!==void 0?t:Ae[e];return jsxRuntime.jsx("span",{className:"lg-toast__icon",children:d})};return jsxRuntime.jsxs("div",{className:chunkDCDWEVW4_js.a("lg-toast",`lg-toast--${e}`,a),children:[l(),jsxRuntime.jsx("span",{className:"lg-toast__content",children:o}),n&&i&&jsxRuntime.jsx(chunkB3BNV2BA_js.b,{className:"lg-toast__action",variant:"link",size:"sm",onClick:i,children:n}),r&&jsxRuntime.jsx("button",{className:"lg-toast__close",onClick:s,"aria-label":u.close,type:"button",children:jsxRuntime.jsx(lingeeIcon.XLg,{size:16})})]})}var re="lingee-web-bridge",ie="1.0.0",Oe="host",Fe="iframe",Me="lingee-web-bridge:host-toast-show",ze="lingee-web-bridge:host-toast-dismiss",Be="lingee-web-bridge:host-toast-probe",Ge="lingee-web-bridge:host-toast-ready";function ae(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();let e=Date.now();return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,o=>{let t=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(o==="x"?t:t&3|8).toString(16)})}function Ue(e,o){return {_protocol:re,_version:ie,_source:e,_nonce:ae(),_traceId:"",payload:o}}function Ye(e,o){if(typeof e!="object"||e===null)return false;let t=e;return t._protocol===re&&t._version===ie&&t._source===o&&typeof t._nonce=="string"&&"payload"in t}function T(){return typeof window<"u"&&window.parent!==window}var h=false,g=new Map,ne=false;function je(e){if(!Ye(e,Oe))return false;let o=e.payload;return !!o&&typeof o=="object"&&o.type===Ge}function I(e){window.parent.postMessage(Ue(Fe,e),"*");}function S(){ne||!T()||(ne=true,window.addEventListener("message",e=>{e.source===window.parent&&je(e.data)&&(h=true);}),window.addEventListener("pagehide",()=>{!h||g.size===0||P();}),I({type:Be}));}function O(){return S(),h}function se(e){if(S(),!h||!e.content)return null;let o=ae();I({type:Me,toastId:o,content:e.content.slice(0,500),level:e.level,duration:e.duration,key:e.key});let t=e.duration??3e3,r=t>0?window.setTimeout(()=>g.delete(o),t+500):void 0;return g.set(o,r),o}function P(e){if(S(),!!h){if(e){let o=g.get(e);o!==void 0&&window.clearTimeout(o),g.delete(e);}else g.forEach(o=>{o!==void 0&&window.clearTimeout(o);}),g.clear();I({type:ze,toastId:e});}}S();function L(){if(!(typeof window>"u"))return window.lingeeBridge}function le(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e)}function _(e){if(!(typeof e!="string"||!e))try{let o=new URL(e);return o.protocol==="http:"||o.protocol==="https:"?o.href:void 0}catch{return}}function de(e,o={}){if(!(T()?O():H()&&typeof L()?.showToast=="function"))return false;if(e.action!==void 0){if(T()||typeof L()?.showActionToast!="function")return false;let{label:r,onClick:a,href:s,command:n}=e.action;if(typeof r!="string"||!r||!a&&!_(s)&&!n)return false}return !(le(e.content)===void 0||e.icon!==void 0||e.className!==void 0||e.closable||o.getContainer!==void 0||o.top!==void 0||o.maxCount!==void 0)}function ce(e,o,t,r={}){let a=le(o.content);if(a===void 0)return null;let s={level:e,content:a,duration:t,key:o.key};if(T()){let c=se(s);return c?(r.onAccepted?.(),{dismiss:()=>P(c)}):null}let n=L(),i=o.action,u;if(i){let c=n?.showActionToast;if(!c)return null;let F=_(i.href),me={label:i.label,...F?{href:F}:{},...i.command?{command:i.command}:{}};u=()=>c({...s,action:me},i.onClick?()=>r.onAction?.():void 0);}else if(n?.showToast){let c=n.showToast;u=()=>c(s);}if(!u)return null;let l=null,d=null,p=false,m=false,C=()=>{p||m||d||(d=r.onFallback?.()??null);},ge=u;return Promise.resolve().then(()=>ge()).then(c=>{if(!c?.ok||!c.toastId){C();return}if(m=true,l=c.toastId,p){n?.dismissToast?.(l);return}r.onAccepted?.();}).catch(c=>{console.error("[lingee-ui] showToast failed:",c),C();}),{dismiss:()=>{if(!p){if(p=true,d){d(),d=null;return}l&&n?.dismissToast?.(l);}}}}function ue(){if(T())return O()?(P(),true):false;let e=L();return !H()||typeof e?.dismissToast!="function"?false:(e.dismissToast().catch(o=>{console.error("[lingee-ui] dismissToast failed:",o);}),true)}var x={};function $(){let e=x.top??16;return jsxRuntime.jsx(sonner.Toaster,{position:"top-center",offset:e,gap:8,expand:true,closeButton:false,toastOptions:{unstyled:true,className:"lg-toast-wrapper"},style:{"--width":"560px"}})}function Je(e){let o=e[0];return typeof o=="object"&&o!==null&&!qe__default.default.isValidElement(o)?o:{content:o,duration:e[1],onClose:e[2]}}function pe(e,o,t,r=()=>o.onClose?.()){let a=t===0?1/0:t,s=false,n=()=>{s||(s=true,r());},i=o.action,u=_(i?.href),l=i?.onClick??(u?()=>window.open(u,"_blank","noopener,noreferrer"):void 0),d=sonner.toast.custom(p=>jsxRuntime.jsx(te,{type:e,content:o.content,icon:o.icon,closable:o.closable,className:o.className,onClose:()=>sonner.toast.dismiss(p),actionLabel:l?i?.label:void 0,onAction:l?()=>{sonner.toast.dismiss(p),l();}:void 0}),{...o.key!==void 0&&{id:o.key},duration:a,onAutoClose:n,onDismiss:n});return ()=>{sonner.toast.dismiss(d),n();}}var R=new Set;function Ve(e,o){let t=o.duration!==void 0?o.duration<0?x.duration??3e3:o.duration:x.duration??3e3;if(de(o,x)){let r=false,a,s=()=>{},n=()=>{r||(r=true,a!==void 0&&clearTimeout(a),R.delete(s),o.onClose?.());},i=ce(e,o,t,{onAccepted:()=>{t>0&&!r&&(a=setTimeout(n,t));},onFallback:()=>pe(e,{...o,onClose:void 0},t,n),onAction:()=>{n(),o.action?.onClick?.();}});if(i)return s=()=>{r||(i.dismiss(),n());},R.add(s),s}return pe(e,o,t)}function E(e){return (...o)=>{let t=Je(o);return Ve(e,t)}}var Do={info:E("info"),success:E("success"),warning:E("warning"),error:E("error"),destroy:()=>{Array.from(R).forEach(e=>e()),R.clear(),ue(),sonner.toast.dismiss();},config:e=>{x={...x,...e};}};exports.a=H;exports.b=$;exports.c=Do;exports.d=b;exports.e=he;exports.f=ve;exports.g=we;exports.h=Pe;exports.i=Le;exports.j=oe;exports.k=so;
@@ -1 +0,0 @@
1
- import {b as b$1}from'./chunk-CHYJKCAM.mjs';import {c}from'./chunk-PEXFBRR4.mjs';import {a}from'./chunk-DN2VKVCV.mjs';import qe,{createContext,useContext,useMemo,useRef,useEffect}from'react';import {Toaster,toast}from'sonner';import {XCircleFill,ExclamationCircleFill1,CheckCircleFill,ExclamationCircleFill,XLg}from'lingee-icon';import {jsx,jsxs}from'react/jsx-runtime';var Te={locale:"zh-CN",Button:{},Breadcrumb:{more:"\u66F4\u591A",back:"\u8FD4\u56DE",label:"\u9762\u5305\u5C51\u5BFC\u822A",scrollLeft:"\u5411\u5DE6\u6EDA\u52A8",scrollRight:"\u5411\u53F3\u6EDA\u52A8"},Select:{loading:"\u52A0\u8F7D\u4E2D",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",loadFailed:"\u52A0\u8F7D\u5931\u8D25",notFound:"\u641C\u7D22\u65E0\u7ED3\u679C",clear:"\u6E05\u7A7A"},Dropdown:{clear:"\u6E05\u9664",loading:"\u52A0\u8F7D\u4E2D",loadError:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",empty:"\u6682\u65E0\u6570\u636E"},Tabs:{scrollLeft:"\u5411\u5DE6\u6EDA\u52A8",scrollRight:"\u5411\u53F3\u6EDA\u52A8"},Carousel:{carousel:"\u8F6E\u64AD",prev:"\u4E0A\u4E00\u5F20",next:"\u4E0B\u4E00\u5F20",goToPage:"\u8DF3\u8F6C\u5230\u7B2C {page} \u5F20"},Form:{required:"{label}\u4E0D\u80FD\u4E3A\u7A7A",requiredNoLabel:"\u6B64\u9879\u4E0D\u80FD\u4E3A\u7A7A"},Tag:{close:"\u5173\u95ED"},Upload:{retry:"\u91CD\u65B0\u4E0A\u4F20",remove:"\u79FB\u9664\u6587\u4EF6",removeShort:"\u79FB\u9664",dragText:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\uFF0C\u6216",clickUpload:"\u70B9\u51FB\u4E0A\u4F20"},ColorPicker:{placeholder:"\u8BF7\u9009\u62E9\u989C\u8272"},DatePicker:{placeholder:"\u5E74/\u6708/\u65E5",today:"\u4ECA\u5929",prevYear:"\u4E0A\u4E00\u5E74",nextYear:"\u4E0B\u4E00\u5E74",prevMonth:"\u4E0A\u4E00\u6708",nextMonth:"\u4E0B\u4E00\u6708",prevDecade:"\u4E0A\u4E00\u7EC4\u5E74\u4EFD",nextDecade:"\u4E0B\u4E00\u7EC4\u5E74\u4EFD",months:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],yearFormat:"{year}\u5E74",monthFormat:"{month}\u6708"},RangePicker:{startPlaceholder:"\u5E74/\u6708/\u65E5",endPlaceholder:"\u5E74/\u6708/\u65E5"},TimePicker:{now:"\u73B0\u5728",confirm:"\u786E\u5B9A",placeholder:"\u65F6:\u5206",placeholderFull:"\u65F6:\u5206:\u79D2"},Table:{loading:"\u52A0\u8F7D\u4E2D",empty:"\u6682\u65E0\u6570\u636E",loadError:"\u52A0\u8F7D\u5931\u8D25"},Tree:{empty:"\u6682\u65E0\u6570\u636E"},Pagination:{total:"\u5171 {total} \u6761",prevPage:"\u4E0A\u4E00\u9875",nextPage:"\u4E0B\u4E00\u9875",itemsPerPage:"{size}\u6761/\u9875",jumpTo:"\u8DF3\u81F3",page:"\u9875"},Dialog:{close:"\u5173\u95ED"},Drawer:{close:"\u5173\u95ED"},Input:{clear:"\u6E05\u7A7A",expand:"\u5C55\u5F00\u8F93\u5165\u6846"},Alert:{close:"\u5173\u95ED"},Toast:{close:"\u5173\u95ED\u6D88\u606F"},Spin:{loading:"\u52A0\u8F7D\u4E2D"},Empty:{retry:"\u91CD\u8BD5"},InfiniteScroll:{loading:"\u52A0\u8F7D\u4E2D",noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",loadFailed:"\u52A0\u8F7D\u5931\u8D25"},Sidebar:{expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u52A0\u8F7D\u4E2D",empty:"\u6682\u65E0\u6570\u636E",loadError:"\u52A0\u8F7D\u5931\u8D25"},PersonPicker:{title:"\u9009\u62E9\u4EBA\u5458",ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",searchPlaceholder:"\u641C\u7D22\u59D3\u540D\u3001\u5DE5\u53F7",tabRecentContacts:"\u6700\u8FD1\u8054\u7CFB\u4EBA",tabRecentGroups:"\u6700\u8FD1\u7FA4\u7EC4",tabOrganization:"\u9009\u62E9\u7EC4\u7EC7",tabPerson:"\u9009\u62E9\u4EBA\u5458",selectAll:"\u5168\u9009",selectedTitle:"\u5DF2\u9009",groupPerson:"\u4EBA\u5458",groupGroup:"\u7FA4\u7EC4",groupOrg:"\u7EC4\u7EC7",remove:"\u79FB\u9664",drillDown:"\u67E5\u770B\u4E0B\u7EA7",jumpTo:"\u8DF3\u8F6C\u5230",empty:"\u6682\u65E0\u6570\u636E",searchEmpty:"\u641C\u7D22\u65E0\u7ED3\u679C",loadFailed:"\u52A0\u8F7D\u5931\u8D25",loadFailedDetail:"\u670D\u52A1\u54CD\u5E94\u5F02\u5E38\u6216\u7F51\u7EDC\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"}},b=Te;var D=new Map,G=0;function U(){return G+=1,{id:G}}function Y(e,o,t){D.set(e.id,{site:o,depth:t});}function j(e){D.delete(e.id);}function xe(){let e;for(let o of D.values())(!e||o.depth>=e.depth)&&(e=o);return e?.site}function H(){return xe()==="lingee"}var K={dialog:{}},w=createContext(K),N=new Map,q=0;function J(){return q+=1,{id:q}}function V(e,o,t){N.set(e.id,{config:o,depth:t});}function X(e){N.delete(e.id);}function he(){let e;for(let o of N.values())(!e||o.depth>=e.depth)&&(e=o);return e?.config??K}function ve(){return useContext(w)}var be={locale:"en-US",Button:{},Breadcrumb:{more:"More",back:"Back",label:"Breadcrumb",scrollLeft:"Scroll left",scrollRight:"Scroll right"},Select:{loading:"Loading",loadError:"Failed to load, please retry",loadFailed:"Failed to load",notFound:"No results found",clear:"Clear"},Dropdown:{clear:"Clear",loading:"Loading",loadError:"Failed to load, please retry",empty:"No data"},Tabs:{scrollLeft:"Scroll left",scrollRight:"Scroll right"},Carousel:{carousel:"Carousel",prev:"Previous slide",next:"Next slide",goToPage:"Go to slide {page}"},Form:{required:"{label} is required",requiredNoLabel:"This field is required"},Tag:{close:"Close"},Upload:{retry:"Retry upload",remove:"Remove file",removeShort:"Remove",dragText:"Drag files here, or ",clickUpload:"click to upload"},ColorPicker:{placeholder:"Select a color"},DatePicker:{placeholder:"YYYY/MM/DD",today:"Today",prevYear:"Previous year",nextYear:"Next year",prevMonth:"Previous month",nextMonth:"Next month",prevDecade:"Previous decade",nextDecade:"Next decade",months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yearFormat:"{year}",monthFormat:"{month}"},RangePicker:{startPlaceholder:"Start date",endPlaceholder:"End date"},TimePicker:{now:"Now",confirm:"OK",placeholder:"HH:mm",placeholderFull:"HH:mm:ss"},Table:{loading:"Loading",empty:"No data",loadError:"Failed to load"},Tree:{empty:"No data"},Pagination:{total:"{total} items",prevPage:"Previous page",nextPage:"Next page",itemsPerPage:"{size} / page",jumpTo:"Go to",page:""},Dialog:{close:"Close"},Drawer:{close:"Close"},Input:{clear:"Clear",expand:"Expand input"},Alert:{close:"Close"},Toast:{close:"Close message"},Spin:{loading:"Loading"},Empty:{retry:"Retry"},InfiniteScroll:{loading:"Loading",noMore:"No more items",loadFailed:"Failed to load"},Sidebar:{expand:"Expand",collapse:"Collapse",loading:"Loading",empty:"No data",loadError:"Failed to load"},PersonPicker:{title:"Select people",ok:"OK",cancel:"Cancel",searchPlaceholder:"Search by name or employee ID",tabRecentContacts:"Recent contacts",tabRecentGroups:"Recent groups",tabOrganization:"Organization",tabPerson:"People",selectAll:"Select all",selectedTitle:"Selected",groupPerson:"People",groupGroup:"Groups",groupOrg:"Departments",remove:"Remove",drillDown:"View children",jumpTo:"Jump to ",empty:"No data",searchEmpty:"No results",loadFailed:"Failed to load",loadFailedDetail:"The service is unavailable or the network is unreachable",retry:"Retry"}},we=be;var Q=createContext(b),ee=createContext(void 0),W=createContext(-1);function Pe({locale:e=b,site:o,dialog:t,children:r}){let a=useContext(W)+1,s=useContext(w),n=t?.zIndex,i=s.dialog.zIndex,u=useMemo(()=>({dialog:{zIndex:n??i}}),[n,i]),l=useRef();l.current||(l.current=U());let d=l.current,p=useRef();p.current||(p.current=J());let m=p.current;Y(d,o,a),V(m,u,a),useEffect(()=>()=>{j(d),X(m);},[m,d]);let C=jsx(W.Provider,{value:a,children:jsx(w.Provider,{value:u,children:jsx(ee.Provider,{value:o,children:jsxs(Q.Provider,{value:e,children:[r,a===0&&jsx($,{})]})})})});return a===0?jsx(c,{children:C}):C}Pe.displayName="LingeeProvider";function Le(){return useContext(Q)}function oe(e){return Le()[e]}function so(){return useContext(ee)}var Ae={info:jsx(ExclamationCircleFill,{size:20}),success:jsx(CheckCircleFill,{size:20}),warning:jsx(ExclamationCircleFill1,{size:20}),error:jsx(XCircleFill,{size:20})};function te({type:e,content:o,icon:t,closable:r,className:a$1,onClose:s,actionLabel:n,onAction:i}){let u=oe("Toast"),l=()=>{if(t===null)return null;let d=t!==void 0?t:Ae[e];return jsx("span",{className:"lg-toast__icon",children:d})};return jsxs("div",{className:a("lg-toast",`lg-toast--${e}`,a$1),children:[l(),jsx("span",{className:"lg-toast__content",children:o}),n&&i&&jsx(b$1,{className:"lg-toast__action",variant:"link",size:"sm",onClick:i,children:n}),r&&jsx("button",{className:"lg-toast__close",onClick:s,"aria-label":u.close,type:"button",children:jsx(XLg,{size:16})})]})}var re="lingee-web-bridge",ie="1.0.0",Oe="host",Fe="iframe",Me="lingee-web-bridge:host-toast-show",ze="lingee-web-bridge:host-toast-dismiss",Be="lingee-web-bridge:host-toast-probe",Ge="lingee-web-bridge:host-toast-ready";function ae(){if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();let e=Date.now();return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,o=>{let t=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(o==="x"?t:t&3|8).toString(16)})}function Ue(e,o){return {_protocol:re,_version:ie,_source:e,_nonce:ae(),_traceId:"",payload:o}}function Ye(e,o){if(typeof e!="object"||e===null)return false;let t=e;return t._protocol===re&&t._version===ie&&t._source===o&&typeof t._nonce=="string"&&"payload"in t}function T(){return typeof window<"u"&&window.parent!==window}var h=false,g=new Map,ne=false;function je(e){if(!Ye(e,Oe))return false;let o=e.payload;return !!o&&typeof o=="object"&&o.type===Ge}function I(e){window.parent.postMessage(Ue(Fe,e),"*");}function S(){ne||!T()||(ne=true,window.addEventListener("message",e=>{e.source===window.parent&&je(e.data)&&(h=true);}),window.addEventListener("pagehide",()=>{!h||g.size===0||P();}),I({type:Be}));}function O(){return S(),h}function se(e){if(S(),!h||!e.content)return null;let o=ae();I({type:Me,toastId:o,content:e.content.slice(0,500),level:e.level,duration:e.duration,key:e.key});let t=e.duration??3e3,r=t>0?window.setTimeout(()=>g.delete(o),t+500):void 0;return g.set(o,r),o}function P(e){if(S(),!!h){if(e){let o=g.get(e);o!==void 0&&window.clearTimeout(o),g.delete(e);}else g.forEach(o=>{o!==void 0&&window.clearTimeout(o);}),g.clear();I({type:ze,toastId:e});}}S();function L(){if(!(typeof window>"u"))return window.lingeeBridge}function le(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e)}function _(e){if(!(typeof e!="string"||!e))try{let o=new URL(e);return o.protocol==="http:"||o.protocol==="https:"?o.href:void 0}catch{return}}function de(e,o={}){if(!(T()?O():H()&&typeof L()?.showToast=="function"))return false;if(e.action!==void 0){if(T()||typeof L()?.showActionToast!="function")return false;let{label:r,onClick:a,href:s,command:n}=e.action;if(typeof r!="string"||!r||!a&&!_(s)&&!n)return false}return !(le(e.content)===void 0||e.icon!==void 0||e.className!==void 0||e.closable||o.getContainer!==void 0||o.top!==void 0||o.maxCount!==void 0)}function ce(e,o,t,r={}){let a=le(o.content);if(a===void 0)return null;let s={level:e,content:a,duration:t,key:o.key};if(T()){let c=se(s);return c?(r.onAccepted?.(),{dismiss:()=>P(c)}):null}let n=L(),i=o.action,u;if(i){let c=n?.showActionToast;if(!c)return null;let F=_(i.href),me={label:i.label,...F?{href:F}:{},...i.command?{command:i.command}:{}};u=()=>c({...s,action:me},i.onClick?()=>r.onAction?.():void 0);}else if(n?.showToast){let c=n.showToast;u=()=>c(s);}if(!u)return null;let l=null,d=null,p=false,m=false,C=()=>{p||m||d||(d=r.onFallback?.()??null);},ge=u;return Promise.resolve().then(()=>ge()).then(c=>{if(!c?.ok||!c.toastId){C();return}if(m=true,l=c.toastId,p){n?.dismissToast?.(l);return}r.onAccepted?.();}).catch(c=>{console.error("[lingee-ui] showToast failed:",c),C();}),{dismiss:()=>{if(!p){if(p=true,d){d(),d=null;return}l&&n?.dismissToast?.(l);}}}}function ue(){if(T())return O()?(P(),true):false;let e=L();return !H()||typeof e?.dismissToast!="function"?false:(e.dismissToast().catch(o=>{console.error("[lingee-ui] dismissToast failed:",o);}),true)}var x={};function $(){let e=x.top??16;return jsx(Toaster,{position:"top-center",offset:e,gap:8,expand:true,closeButton:false,toastOptions:{unstyled:true,className:"lg-toast-wrapper"},style:{"--width":"560px"}})}function Je(e){let o=e[0];return typeof o=="object"&&o!==null&&!qe.isValidElement(o)?o:{content:o,duration:e[1],onClose:e[2]}}function pe(e,o,t,r=()=>o.onClose?.()){let a=t===0?1/0:t,s=false,n=()=>{s||(s=true,r());},i=o.action,u=_(i?.href),l=i?.onClick??(u?()=>window.open(u,"_blank","noopener,noreferrer"):void 0),d=toast.custom(p=>jsx(te,{type:e,content:o.content,icon:o.icon,closable:o.closable,className:o.className,onClose:()=>toast.dismiss(p),actionLabel:l?i?.label:void 0,onAction:l?()=>{toast.dismiss(p),l();}:void 0}),{...o.key!==void 0&&{id:o.key},duration:a,onAutoClose:n,onDismiss:n});return ()=>{toast.dismiss(d),n();}}var R=new Set;function Ve(e,o){let t=o.duration!==void 0?o.duration<0?x.duration??3e3:o.duration:x.duration??3e3;if(de(o,x)){let r=false,a,s=()=>{},n=()=>{r||(r=true,a!==void 0&&clearTimeout(a),R.delete(s),o.onClose?.());},i=ce(e,o,t,{onAccepted:()=>{t>0&&!r&&(a=setTimeout(n,t));},onFallback:()=>pe(e,{...o,onClose:void 0},t,n),onAction:()=>{n(),o.action?.onClick?.();}});if(i)return s=()=>{r||(i.dismiss(),n());},R.add(s),s}return pe(e,o,t)}function E(e){return (...o)=>{let t=Je(o);return Ve(e,t)}}var Do={info:E("info"),success:E("success"),warning:E("warning"),error:E("error"),destroy:()=>{Array.from(R).forEach(e=>e()),R.clear(),ue(),toast.dismiss();},config:e=>{x={...x,...e};}};export{H as a,$ as b,Do as c,b as d,he as e,ve as f,we as g,Pe as h,Le as i,oe as j,so as k};
@@ -1 +0,0 @@
1
- import {j}from'./chunk-S5TTZBPX.mjs';import {b as b$1}from'./chunk-CHYJKCAM.mjs';import {a}from'./chunk-DN2VKVCV.mjs';import Bl,{useState,useRef,useCallback,useEffect,useLayoutEffect}from'react';import {cva}from'class-variance-authority';import*as b from'@radix-ui/react-tabs';import {ChevronLeft,ChevronRight}from'lingee-icon';import {jsxs,jsx}from'react/jsx-runtime';var C={arrows:true,step:200,fade:true,scrollIntoView:true},Sl=cva("lg-tabs",{variants:{variant:{segmented:"lg-tabs--segmented",rounded:"lg-tabs--rounded",solid:"lg-tabs--solid",outline:"lg-tabs--outline",underline:"lg-tabs--underline"},size:{sm:"lg-tabs--sm",md:"lg-tabs--md"}},defaultVariants:{variant:"segmented",size:"md"}}),ol=typeof window<"u"?useLayoutEffect:useEffect;function Ll({items:o,activeKey:d,defaultActiveKey:tl,onChange:N,variant:n="segmented",size:sl="md",overflow:bl,scrollOptions:k,wrap:nl=false,scrollable:cl=false,glassy:il=false,transparent:dl=false,animated:B=true,destroyInactivePanel:M=false,className:ul,dir:vl,...fl},pl){let V=j("Tabs"),O=bl??(cl?"scroll":nl?"wrap":"none"),X=O==="wrap"&&(n==="segmented"||n==="rounded")?"none":O,a$1=X==="scroll",A=X==="wrap",P=k?.arrows??C.arrows,T=k?.step??C.step,H=k?.fade??C.fade,$=k?.scrollIntoView??C.scrollIntoView,u=d!==void 0,ml=o.find(l=>!l.disabled)?.key,W=u?void 0:tl??ml,[hl,wl]=useState(W),t=u?d:hl,y=useRef(o.findIndex(l=>l.key===t)),[j$1,x]=useState("right"),Fl=useCallback(l=>{let g=o.findIndex(F=>F.key===l),r=y.current;g>r?x("right"):g<r&&x("left"),y.current=g,u||wl(l),N?.(l);},[u,N,o]);useEffect(()=>{if(u&&d){let l=o.findIndex(r=>r.key===d),g=y.current;l!==g&&(l>g?x("right"):x("left"),y.current=l);}},[u,d,o]);let q=o.some(l=>l.children!=null),s=useRef(null),E=useRef(new Map),[_l,R]=useState({opacity:0}),h=useRef(false),U=useRef(0),kl=useCallback(l=>g=>{g?E.current.set(l,g):E.current.delete(l);},[]),w=useCallback(l=>{let g=s.current,r=t?E.current.get(t):void 0;if(!g||!r){R(al=>al.opacity===0?al:{opacity:0});return}let F=g.getBoundingClientRect(),f=(n==="underline"?r.querySelector(".lg-tabs__tab-label")??r:r).getBoundingClientRect(),rl=f.left-F.left+g.scrollLeft;if(!A){R({width:f.width,transform:`translateX(${rl}px)`,opacity:1,transition:l?"transform var(--_tabs-slider-duration) var(--lg-transition-timing), width var(--_tabs-slider-duration) var(--lg-transition-timing)":"none"});return}let S=n==="underline",Cl=S?r.getBoundingClientRect():f,L=S?Cl.bottom-F.top:f.top-F.top,Dl=l&&Math.abs(L-U.current)>1;U.current=L,R({width:f.width,...S?null:{height:f.height},top:0,bottom:"auto",transform:`translate(${rl}px, ${L}px)`,opacity:1,transition:Dl?"opacity var(--_tabs-slider-duration) var(--lg-transition-timing)":l?"transform var(--_tabs-slider-duration) var(--lg-transition-timing), width var(--_tabs-slider-duration) var(--lg-transition-timing)":"none"});},[t,n,A]),Y=useRef(w);Y.current=w;let G=useRef(0);ol(()=>{let l=h.current;w(l),l&&(G.current=Date.now()),h.current=true;},[w,t]);let J=o.map(l=>`${l.key}:${l.disabled?1:0}`).join("|");ol(()=>{let l=h.current;h.current=false,w(false),h.current=l;},[J]),useEffect(()=>{if(!s.current)return;let l=new ResizeObserver(()=>{Date.now()-G.current<350||Y.current(false);});return l.observe(s.current),()=>l.disconnect()},[]);let[yl,Q]=useState(false),[Z,xl]=useState(false),[K,El]=useState(false),v=useCallback(()=>{let l=s.current;!l||!a$1||(Q(l.scrollWidth>l.clientWidth+1),xl(l.scrollLeft>1),El(l.scrollLeft+l.clientWidth<l.scrollWidth-1));},[a$1]);useEffect(()=>{if(!a$1){Q(false);return}let l=s.current;if(l)return v(),l.addEventListener("scroll",v),()=>l.removeEventListener("scroll",v)},[a$1,v,J]),useEffect(()=>{let l=s.current;if(!a$1||!l)return;let g=new ResizeObserver(()=>v());return g.observe(l),()=>g.disconnect()},[a$1,v]),useEffect(()=>{if(!a$1||!$||!t)return;let l=E.current.get(t);typeof l?.scrollIntoView=="function"&&l.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"});},[a$1,$,t]);let ll=useCallback((l,g)=>{let r=s.current;r&&(r.scrollBy({left:l==="left"?-T:T,behavior:"smooth"}),g&&g.detail>0&&g.currentTarget.blur());},[T]),z=a$1&&yl&&P!==false,gl=jsxs(b.List,{className:a("lg-tabs__list",a$1&&"lg-tabs__list--scrollable"),ref:s,children:[jsx("span",{className:a(`lg-tabs__slider lg-tabs__slider--${n}`,il&&"lg-tabs__slider--glassy"),style:_l,"aria-hidden":true}),o.map(l=>jsxs(b.Trigger,{value:l.key,disabled:l.disabled,ref:kl(l.key),"aria-label":l.ariaLabel,className:a("lg-tabs__tab",l.disabled&&"lg-tabs__tab--disabled"),children:[l.icon&&jsx("span",{className:"lg-tabs__tab-icon",children:l.icon}),jsx("span",{className:"lg-tabs__tab-label",children:l.label}),l.suffix!=null&&jsx("span",{className:"lg-tabs__tab-suffix",children:l.suffix})]},l.key))]});return jsxs(b.Root,{ref:pl,className:a(Sl({variant:n,size:sl}),A&&"lg-tabs--wrap",a$1&&"lg-tabs--scrollable",dl&&"lg-tabs--transparent",q&&"lg-tabs--has-content",ul),value:d,defaultValue:W,onValueChange:Fl,dir:vl,...fl,children:[a$1?jsxs("div",{className:a("lg-tabs__scroll-wrapper",P==="hover"&&"lg-tabs__scroll-wrapper--hover-controls",!z&&"lg-tabs__scroll-wrapper--no-arrows"),children:[z&&jsx(b$1,{shape:"circle",size:"sm",variant:"text",icon:jsx(ChevronLeft,{}),tooltip:V.scrollLeft,disabled:!Z,onClick:l=>ll("left",l),className:"lg-tabs__scroll-arrow lg-tabs__scroll-arrow--left"}),H&&Z&&jsx("span",{className:"lg-tabs__fade lg-tabs__fade--left","aria-hidden":true}),gl,H&&K&&jsx("span",{className:"lg-tabs__fade lg-tabs__fade--right","aria-hidden":true}),z&&jsx(b$1,{shape:"circle",size:"sm",variant:"text",icon:jsx(ChevronRight,{}),tooltip:V.scrollRight,disabled:!K,onClick:l=>ll("right",l),className:"lg-tabs__scroll-arrow lg-tabs__scroll-arrow--right"})]}):gl,q&&jsx("div",{className:"lg-tabs__content-wrapper",children:o.map(l=>{if(l.children==null)return null;let g=l.key===t;return M&&!g?null:jsx(b.Content,{value:l.key,forceMount:M?void 0:true,className:a("lg-tabs__panel",B&&"lg-tabs__panel--animated",g&&"lg-tabs__panel--active",!g&&"lg-tabs__panel--inactive",B&&j$1==="right"&&"lg-tabs__panel--slide-right",B&&j$1==="left"&&"lg-tabs__panel--slide-left"),children:l.children},l.key)})})]})}var Gl=Bl.forwardRef(Ll);export{Sl as a,Gl as b};