@pcoi/components 0.1.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/index.d.ts +829 -609
- package/dist/index.js +3517 -2
- package/dist/styles.css +2 -0
- package/package.json +35 -31
- package/dist/components.css +0 -1
- package/dist/index.mjs +0 -994
- package/src/Badge/Badge.css +0 -40
- package/src/Badge/Badge.tsx +0 -36
- package/src/Badge/index.ts +0 -2
- package/src/Button/Button.css +0 -93
- package/src/Button/Button.figma.tsx +0 -27
- package/src/Button/Button.test.tsx +0 -32
- package/src/Button/Button.tsx +0 -47
- package/src/Button/index.ts +0 -1
- package/src/Callout/Callout.css +0 -48
- package/src/Callout/Callout.figma.tsx +0 -25
- package/src/Callout/Callout.tsx +0 -43
- package/src/Callout/index.ts +0 -1
- package/src/Card/Card.css +0 -88
- package/src/Card/Card.figma.tsx +0 -28
- package/src/Card/Card.tsx +0 -60
- package/src/Card/index.ts +0 -1
- package/src/ChatInterface/ChatInterface.css +0 -50
- package/src/ChatInterface/ChatInterface.integration.test.tsx +0 -123
- package/src/ChatInterface/ChatInterface.tsx +0 -125
- package/src/ChatInterface/index.ts +0 -6
- package/src/ChatMessage/ChatMessage.css +0 -55
- package/src/ChatMessage/ChatMessage.tsx +0 -71
- package/src/ChatMessage/index.ts +0 -2
- package/src/ChatMessageList/ChatMessageList.css +0 -24
- package/src/ChatMessageList/ChatMessageList.test.tsx +0 -70
- package/src/ChatMessageList/ChatMessageList.tsx +0 -56
- package/src/ChatMessageList/index.ts +0 -2
- package/src/Checkbox/Checkbox.css +0 -97
- package/src/Checkbox/Checkbox.tsx +0 -70
- package/src/Checkbox/index.ts +0 -2
- package/src/CitationMark/CitationMark.css +0 -40
- package/src/CitationMark/CitationMark.tsx +0 -38
- package/src/CitationMark/index.ts +0 -2
- package/src/CitedExcerpt/CitedExcerpt.css +0 -75
- package/src/CitedExcerpt/CitedExcerpt.tsx +0 -53
- package/src/CitedExcerpt/index.ts +0 -2
- package/src/ComparisonTable/ComparisonTable.css +0 -66
- package/src/ComparisonTable/ComparisonTable.tsx +0 -54
- package/src/ComparisonTable/index.ts +0 -1
- package/src/ContactForm/ContactForm.css +0 -38
- package/src/ContactForm/ContactForm.tsx +0 -58
- package/src/ContactForm/index.ts +0 -1
- package/src/DataTable/DataTable.css +0 -56
- package/src/DataTable/DataTable.tsx +0 -104
- package/src/DataTable/index.ts +0 -2
- package/src/DocumentOverlay/DocumentOverlay.css +0 -57
- package/src/DocumentOverlay/DocumentOverlay.test.tsx +0 -95
- package/src/DocumentOverlay/DocumentOverlay.tsx +0 -87
- package/src/DocumentOverlay/index.ts +0 -2
- package/src/Footer/Footer.css +0 -72
- package/src/Footer/Footer.tsx +0 -59
- package/src/Footer/index.ts +0 -1
- package/src/FormField/FormField.css +0 -78
- package/src/FormField/FormField.figma.tsx +0 -28
- package/src/FormField/FormField.tsx +0 -103
- package/src/FormField/index.ts +0 -2
- package/src/HowStep/HowStep.css +0 -48
- package/src/HowStep/HowStep.figma.tsx +0 -23
- package/src/HowStep/HowStep.tsx +0 -38
- package/src/HowStep/index.ts +0 -1
- package/src/LogoMark/LogoMark.css +0 -16
- package/src/LogoMark/LogoMark.tsx +0 -24
- package/src/LogoMark/index.ts +0 -2
- package/src/Modal/Modal.css +0 -101
- package/src/Modal/Modal.figma.tsx +0 -28
- package/src/Modal/Modal.test.tsx +0 -46
- package/src/Modal/Modal.tsx +0 -144
- package/src/Modal/index.ts +0 -2
- package/src/Nav/Nav.css +0 -161
- package/src/Nav/Nav.tsx +0 -105
- package/src/Nav/index.ts +0 -1
- package/src/Panel/Panel.css +0 -35
- package/src/Panel/Panel.tsx +0 -61
- package/src/Panel/index.ts +0 -2
- package/src/PromptBar/PromptBar.css +0 -68
- package/src/PromptBar/PromptBar.figma.tsx +0 -25
- package/src/PromptBar/PromptBar.test.tsx +0 -83
- package/src/PromptBar/PromptBar.tsx +0 -93
- package/src/PromptBar/index.ts +0 -2
- package/src/RadioGroup/RadioGroup.css +0 -117
- package/src/RadioGroup/RadioGroup.tsx +0 -112
- package/src/RadioGroup/index.ts +0 -2
- package/src/SectionHeader/SectionHeader.css +0 -38
- package/src/SectionHeader/SectionHeader.figma.tsx +0 -23
- package/src/SectionHeader/SectionHeader.tsx +0 -55
- package/src/SectionHeader/index.ts +0 -1
- package/src/Select/Select.css +0 -90
- package/src/Select/Select.figma.tsx +0 -33
- package/src/Select/Select.tsx +0 -100
- package/src/Select/index.ts +0 -2
- package/src/SignalsPanel/SignalsPanel.css +0 -51
- package/src/SignalsPanel/SignalsPanel.tsx +0 -35
- package/src/SignalsPanel/index.ts +0 -1
- package/src/SuggestionCard/SuggestionCard.css +0 -51
- package/src/SuggestionCard/SuggestionCard.tsx +0 -34
- package/src/SuggestionCard/index.ts +0 -2
- package/src/SuggestionCards/SuggestionCards.css +0 -15
- package/src/SuggestionCards/SuggestionCards.test.tsx +0 -27
- package/src/SuggestionCards/SuggestionCards.tsx +0 -40
- package/src/SuggestionCards/index.ts +0 -2
- package/src/Toast/Toast.css +0 -85
- package/src/Toast/Toast.tsx +0 -82
- package/src/Toast/index.ts +0 -2
- package/src/Toggle/Toggle.css +0 -110
- package/src/Toggle/Toggle.figma.tsx +0 -24
- package/src/Toggle/Toggle.tsx +0 -73
- package/src/Toggle/index.ts +0 -2
- package/src/TypingIndicator/TypingIndicator.css +0 -70
- package/src/TypingIndicator/TypingIndicator.tsx +0 -37
- package/src/TypingIndicator/index.ts +0 -2
- package/src/index.ts +0 -39
- package/src/styles/utilities.css +0 -14
- package/src/styles.css +0 -33
- package/src/types.ts +0 -66
package/dist/index.js
CHANGED
|
@@ -1,2 +1,3517 @@
|
|
|
1
|
-
|
|
2
|
-
Operational Intelligence`,copyright:a=`© ${new Date().getFullYear()} PCOI. Operational intelligence you own.`,className:l="",...i},r)=>e.jsxs("footer",{ref:r,className:`pcoi-footer ${l}`,...i,children:[e.jsxs("div",{className:"pcoi-footer__inner",children:[e.jsxs("div",{className:"pcoi-footer__brand",children:[e.jsx(w,{className:"pcoi-footer__logo"}),e.jsx("p",{className:"pcoi-footer__tagline",children:c})]}),e.jsx("nav",{className:"pcoi-footer__links","aria-label":"Footer",children:s.map(o=>e.jsx("a",{href:o.href,"data-track-id":o.trackingId,children:o.label},o.href))})]}),e.jsx("div",{className:"pcoi-footer__bottom",children:e.jsx("p",{children:a})})]}));Y.displayName="Footer";const V=d.forwardRef(({label:s,name:c,options:a,placeholder:l,error:i,required:r=!1,disabled:o=!1,className:n="",...p},t)=>{const h=`pcoi-field-${c}`,m=i?`${h}-error`:void 0,u=["pcoi-select",i?"pcoi-select--error":"",o?"pcoi-select--disabled":"",n].filter(Boolean).join(" ");return e.jsxs("div",{className:u,children:[e.jsxs("label",{htmlFor:h,className:"pcoi-select__label",children:[s,r&&e.jsx("span",{className:"pcoi-select__required","aria-hidden":"true",children:"*"})]}),e.jsxs("div",{className:"pcoi-select__wrapper",children:[e.jsxs("select",{ref:t,id:h,name:c,required:r,disabled:o,"aria-invalid":!!i,"aria-describedby":m,className:"pcoi-select__native",defaultValue:l?"":void 0,...p,children:[l&&e.jsx("option",{value:"",disabled:!0,hidden:!0,children:l}),a.map(f=>e.jsx("option",{value:f.value,disabled:f.disabled,children:f.label},f.value))]}),e.jsx("span",{className:"pcoi-select__chevron","aria-hidden":"true",children:e.jsx(y.ChevronDownIcon,{size:16})})]}),i&&e.jsx("span",{id:m,className:"pcoi-select__error",role:"alert",children:i})]})});V.displayName="Select";const W=d.forwardRef(({label:s,name:c,error:a,disabled:l=!1,className:i="",...r},o)=>{const n=`pcoi-field-${c}`,p=a?`${n}-error`:void 0,t=["pcoi-checkbox",a?"pcoi-checkbox--error":"",l?"pcoi-checkbox--disabled":"",i].filter(Boolean).join(" ");return e.jsxs("div",{className:t,children:[e.jsxs("label",{htmlFor:n,className:"pcoi-checkbox__control",children:[e.jsx("input",{ref:o,type:"checkbox",id:n,name:c,disabled:l,"aria-invalid":!!a,"aria-describedby":p,className:"pcoi-checkbox__input",...r}),e.jsx("span",{className:"pcoi-checkbox__box","aria-hidden":"true"}),e.jsx("span",{className:"pcoi-checkbox__label",children:s})]}),a&&e.jsx("span",{id:p,className:"pcoi-checkbox__error",role:"alert",children:a})]})});W.displayName="Checkbox";const K=d.forwardRef(({label:s,name:c,error:a,disabled:l=!1,className:i="",...r},o)=>{const n=`pcoi-field-${c}`,p=a?`${n}-error`:void 0,t=["pcoi-toggle",a?"pcoi-toggle--error":"",l?"pcoi-toggle--disabled":"",i].filter(Boolean).join(" ");return e.jsxs("div",{className:t,children:[e.jsxs("label",{htmlFor:n,className:"pcoi-toggle__control",children:[e.jsx("input",{ref:o,type:"checkbox",id:n,name:c,disabled:l,"aria-invalid":!!a,"aria-describedby":p,className:"pcoi-toggle__input",role:"switch",...r}),e.jsx("span",{className:"pcoi-toggle__track","aria-hidden":"true",children:e.jsx("span",{className:"pcoi-toggle__thumb"})}),e.jsx("span",{className:"pcoi-toggle__label",children:s})]}),a&&e.jsx("span",{id:p,className:"pcoi-toggle__error",role:"alert",children:a})]})});K.displayName="Toggle";const G=d.forwardRef(({label:s,name:c,options:a,defaultValue:l,error:i,required:r=!1,disabled:o=!1,onChange:n,className:p="",...t},h)=>{const m=i?`pcoi-field-${c}-error`:void 0,u=["pcoi-radio-group",i?"pcoi-radio-group--error":"",o?"pcoi-radio-group--disabled":"",p].filter(Boolean).join(" "),f=_=>{n==null||n(_.target.value)};return e.jsxs("fieldset",{ref:h,className:u,"aria-invalid":!!i,"aria-describedby":m,...t,children:[e.jsxs("legend",{className:"pcoi-radio-group__legend",children:[s,r&&e.jsx("span",{className:"pcoi-radio-group__required","aria-hidden":"true",children:"*"})]}),e.jsx("div",{className:"pcoi-radio-group__options",children:a.map(_=>{const v=`pcoi-field-${c}-${_.value}`;return e.jsxs("label",{htmlFor:v,className:"pcoi-radio-group__option",children:[e.jsx("input",{type:"radio",id:v,name:c,value:_.value,defaultChecked:l===_.value,required:r,disabled:o||_.disabled,onChange:f,className:"pcoi-radio-group__input"}),e.jsx("span",{className:"pcoi-radio-group__circle","aria-hidden":"true"}),e.jsx("span",{className:"pcoi-radio-group__label",children:_.label})]},_.value)})}),i&&e.jsx("span",{id:m,className:"pcoi-radio-group__error",role:"alert",children:i})]})});G.displayName="RadioGroup";const J=d.forwardRef(({title:s,headingLevel:c="h3",action:a,children:l,flush:i=!1,className:r="",...o},n)=>{const p=c,t=["pcoi-panel",i?"pcoi-panel--flush":"",r].filter(Boolean).join(" ");return e.jsxs("div",{ref:n,className:t,...o,children:[(s||a)&&e.jsxs("div",{className:"pcoi-panel__header",children:[s&&e.jsx(p,{className:"pcoi-panel__title",children:s}),a&&e.jsx("div",{className:"pcoi-panel__action",children:a})]}),e.jsx("div",{className:"pcoi-panel__body",children:l})]})});J.displayName="Panel";const Q=d.forwardRef(({columns:s,rows:c,rowKey:a,emptyText:l="No data available",ariaLabel:i,className:r="",...o},n)=>{const p=(t,h)=>a?typeof a=="function"?a(t,h):String(t[a]):String(h);return e.jsx("div",{ref:n,className:`pcoi-data-table ${r}`,...o,children:e.jsxs("table",{className:"pcoi-data-table__table","aria-label":i,children:[e.jsx("thead",{className:"pcoi-data-table__head",children:e.jsx("tr",{className:"pcoi-data-table__head-row",children:s.map(t=>e.jsx("th",{className:`pcoi-data-table__th${t.align?` pcoi-data-table__th--${t.align}`:""}`,children:t.header},t.key))})}),e.jsx("tbody",{className:"pcoi-data-table__body",children:c.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:s.length,className:"pcoi-data-table__empty",children:l})}):c.map((t,h)=>e.jsx("tr",{className:"pcoi-data-table__row",children:s.map(m=>{const u=t[m.key];return e.jsx("td",{className:`pcoi-data-table__td${m.align?` pcoi-data-table__td--${m.align}`:""}`,children:m.render?m.render(u,t):String(u??"")},m.key)})},p(t,h)))})]})})});Q.displayName="DataTable";const g=d.forwardRef(({children:s,variant:c="default",className:a="",...l},i)=>{const r=["pcoi-badge",`pcoi-badge--${c}`,a].filter(Boolean).join(" ");return e.jsx("span",{ref:i,className:r,...l,children:s})});g.displayName="Badge";const C=d.forwardRef(({open:s,onClose:c,title:a,headingLevel:l="h2",size:i="default",children:r,footer:o,className:n="",...p},t)=>{const h=d.useRef(null),m=d.useRef(null),u=l,f=a?"pcoi-modal-title":void 0,_=d.useCallback(x=>{if(x.key==="Escape"){c();return}if(x.key==="Tab"&&h.current){const j=h.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(j.length===0)return;const F=j[0],T=j[j.length-1];x.shiftKey&&document.activeElement===F?(x.preventDefault(),T.focus()):!x.shiftKey&&document.activeElement===T&&(x.preventDefault(),F.focus())}},[c]);d.useEffect(()=>(s&&(m.current=document.activeElement,document.addEventListener("keydown",_),document.body.style.overflow="hidden",requestAnimationFrame(()=>{var j;const x=(j=h.current)==null?void 0:j.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');x==null||x.focus()})),()=>{var x;document.removeEventListener("keydown",_),document.body.style.overflow="",(x=m.current)==null||x.focus()}),[s,_]);const v=x=>{x.target===x.currentTarget&&c()};if(!s)return null;const ae=["pcoi-modal",n].filter(Boolean).join(" ");return P.createPortal(e.jsx("div",{className:ae,onClick:v,children:e.jsxs("div",{ref:h,className:`pcoi-modal__dialog${i==="wide"?" pcoi-modal__dialog--wide":""}`,role:"dialog","aria-modal":"true","aria-labelledby":f,...p,children:[e.jsxs("div",{className:"pcoi-modal__header",children:[a&&e.jsx(u,{id:f,className:"pcoi-modal__title",children:a}),e.jsx("button",{type:"button",className:"pcoi-modal__close",onClick:c,"aria-label":"Close modal",children:e.jsx(y.CloseIcon,{size:20})})]}),e.jsx("div",{className:"pcoi-modal__body",children:r}),o&&e.jsx("div",{className:"pcoi-modal__footer",children:o})]})}),document.body)});C.displayName="Modal";const X=d.forwardRef(({message:s,variant:c="info",open:a,onClose:l,duration:i=5e3,className:r="",...o},n)=>{const p=d.useCallback(()=>{l==null||l()},[l]);if(d.useEffect(()=>{if(!a||i===0)return;const h=setTimeout(p,i);return()=>clearTimeout(h)},[a,i,p]),!a)return null;const t=["pcoi-toast",`pcoi-toast--${c}`,r].filter(Boolean).join(" ");return P.createPortal(e.jsx("div",{ref:n,className:t,role:"alert",...o,children:e.jsxs("div",{className:"pcoi-toast__content",children:[e.jsx("span",{className:"pcoi-toast__message",children:s}),l&&e.jsx("button",{type:"button",className:"pcoi-toast__close",onClick:p,"aria-label":"Dismiss notification",children:e.jsx(y.CloseIcon,{size:16})})]})}),document.body)});X.displayName="Toast";const Z=d.forwardRef(({index:s,sourceLabel:c,className:a="",...l},i)=>{const r=["pcoi-citation-mark",a].filter(Boolean).join(" ");return e.jsx("button",{ref:i,type:"button",className:r,title:c??`Citation ${s}`,"aria-label":c??`Citation ${s}`,...l,children:s})});Z.displayName="CitationMark";const k=d.forwardRef(({label:s,icon:c,className:a="",...l},i)=>{const r=["pcoi-suggestion-card",a].filter(Boolean).join(" ");return e.jsxs("button",{ref:i,type:"button",className:r,...l,children:[c&&e.jsx("span",{className:"pcoi-suggestion-card__icon",children:c}),e.jsx("span",{className:"pcoi-suggestion-card__label",children:s})]})});k.displayName="SuggestionCard";const R=d.forwardRef(({index:s,excerpt:c,sourceTitle:a,onSourceClick:l,className:i="",...r},o)=>{const n=["pcoi-cited-excerpt",i].filter(Boolean).join(" ");return e.jsxs("div",{ref:o,className:n,...r,children:[e.jsx("button",{type:"button",className:"pcoi-cited-excerpt__source",onClick:l,"aria-label":`View source: ${a}`,children:a}),e.jsxs("div",{className:"pcoi-cited-excerpt__body",children:[e.jsxs("button",{type:"button",className:"pcoi-cited-excerpt__index",onClick:l,"aria-label":`Citation ${s}, view source: ${a}`,children:["[",s,"]"]}),e.jsx("p",{className:"pcoi-cited-excerpt__text",children:c})]})]})});R.displayName="CitedExcerpt";const $=d.forwardRef(({value:s,onChange:c,onSubmit:a,placeholder:l="Ask a question…",disabled:i=!1,loading:r=!1,className:o="",...n},p)=>{const t=d.useRef(null),h=d.useCallback(f=>{f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),s.trim()&&!i&&!r&&a(s.trim()))},[s,i,r,a]),m=d.useCallback(()=>{s.trim()&&!i&&!r&&a(s.trim())},[s,i,r,a]),u=["pcoi-prompt-bar",o].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:u,...n,children:[e.jsx("textarea",{ref:t,className:"pcoi-prompt-bar__input",value:s,onChange:f=>c(f.target.value),onKeyDown:h,placeholder:l,disabled:i,rows:1,"aria-label":l}),e.jsx("div",{className:"pcoi-prompt-bar__actions",children:e.jsx(b,{variant:"primary",className:"pcoi-prompt-bar__send",onClick:m,disabled:i||r||!s.trim(),"aria-label":"Send message",children:e.jsx("span",{className:"pcoi-prompt-bar__send-icon",children:e.jsx(y.ArrowRightIcon,{size:16})})})})]})});$.displayName="PromptBar";const S=d.forwardRef(({role:s,children:c,citations:a,timestamp:l,onCitationClick:i,className:r="",...o},n)=>{const p=["pcoi-chat-message",`pcoi-chat-message--${s}`,r].filter(Boolean).join(" ");return e.jsxs("div",{ref:n,className:p,...o,children:[e.jsx("div",{className:"pcoi-chat-message__header",children:e.jsx(g,{variant:s==="assistant"?"default":"info",children:s==="assistant"?"PCOI":"You"})}),e.jsx("div",{className:"pcoi-chat-message__body",children:c}),a&&a.length>0&&e.jsx("div",{className:"pcoi-chat-message__citations",children:a.map(t=>e.jsx(R,{index:t.index,excerpt:t.excerpt,sourceTitle:t.sourceTitle,onSourceClick:()=>i==null?void 0:i(t)},t.index))}),l&&e.jsx("time",{className:"pcoi-chat-message__timestamp",children:l})]})});S.displayName="ChatMessage";const I=d.forwardRef(({suggestions:s,onSelect:c,className:a="",...l},i)=>{const r=["pcoi-suggestion-cards",a].filter(Boolean).join(" ");return e.jsx("div",{ref:i,className:r,...l,children:s.map(o=>e.jsx(k,{label:o.label,icon:o.icon,onClick:()=>c(o)},o.id))})});I.displayName="SuggestionCards";const B=d.forwardRef(({children:s,className:c="",...a},l)=>{const i=d.useRef(null);d.useEffect(()=>{const o=i.current;if(!o)return;const n=()=>{requestAnimationFrame(()=>{const t=o.lastElementChild;t?t.scrollIntoView({block:"nearest"}):o.scrollTop=o.scrollHeight})},p=new MutationObserver(n);return p.observe(o,{childList:!0,subtree:!0}),n(),()=>p.disconnect()},[]);const r=["pcoi-chat-message-list",c].filter(Boolean).join(" ");return e.jsx("div",{ref:l,className:r,role:"log","aria-label":"Conversation",...a,children:e.jsx("div",{ref:i,className:"pcoi-chat-message-list__inner",children:s})})});B.displayName="ChatMessageList";const U=d.forwardRef(({open:s,onClose:c,title:a,sourceLabel:l,children:i,highlightId:r,highlightIndex:o,className:n="",...p},t)=>{const h=d.useRef(null);d.useEffect(()=>{s&&r&&h.current&&requestAnimationFrame(()=>{var _;const f=(_=h.current)==null?void 0:_.querySelector(`#${CSS.escape(r)}`);f&&(f.scrollIntoView({behavior:"smooth",block:"center"}),f.classList.add("pcoi-doc-overlay__highlight"),o!==void 0&&f.setAttribute("data-highlight-index",`[${o}]`))})},[s,r,o]);const m=["pcoi-doc-overlay",n].filter(Boolean).join(" "),u=l?d.createElement("div",{className:"pcoi-doc-overlay__source"},d.createElement(g,null,l)):void 0;return d.createElement(C,{ref:t,open:s,onClose:c,title:a,size:"wide",footer:u,className:m,...p},d.createElement("div",{ref:h,className:"pcoi-doc-overlay__content"},i))});U.displayName="DocumentOverlay";const E=d.forwardRef(({label:s="PCOI",className:c="",...a},l)=>{const i=["pcoi-typing-indicator",c].filter(Boolean).join(" ");return e.jsxs("div",{ref:l,className:i,role:"status","aria-live":"polite","aria-label":`${s} is typing`,...a,children:[e.jsx("div",{className:"pcoi-typing-indicator__header",children:e.jsx(g,{children:s})}),e.jsxs("div",{className:"pcoi-typing-indicator__dots","aria-hidden":"true",children:[e.jsx("span",{className:"pcoi-typing-indicator__dot"}),e.jsx("span",{className:"pcoi-typing-indicator__dot"}),e.jsx("span",{className:"pcoi-typing-indicator__dot"})]})]})});E.displayName="TypingIndicator";const ee=d.forwardRef(({messages:s,suggestions:c,promptValue:a,onPromptChange:l,onPromptSubmit:i,onSuggestionSelect:r,onCitationClick:o,placeholder:n,loading:p=!1,className:t="",...h},m)=>{const u=s.length===0,f=["pcoi-chat",u?"pcoi-chat--empty":"",t].filter(Boolean).join(" ");return e.jsxs("div",{ref:m,className:f,...h,children:[u?e.jsx("div",{className:"pcoi-chat__empty-state",children:c&&c.length>0&&r&&e.jsx("div",{className:"pcoi-chat__suggestions",children:e.jsx(I,{suggestions:c,onSelect:r})})}):e.jsxs(B,{className:"pcoi-chat__messages","aria-live":"polite","aria-relevant":"additions",children:[s.map(_=>e.jsx(S,{role:_.role,citations:_.citations,timestamp:_.timestamp,onCitationClick:o,children:_.content},_.id)),p&&e.jsx(E,{})]}),e.jsx("div",{className:"pcoi-chat__prompt",children:e.jsx($,{value:a,onChange:l,onSubmit:i,placeholder:n,loading:p,disabled:p})})]})});ee.displayName="ChatInterface";exports.Badge=g;exports.Button=b;exports.Callout=A;exports.Card=D;exports.ChatInterface=ee;exports.ChatMessage=S;exports.ChatMessageList=B;exports.Checkbox=W;exports.CitationMark=Z;exports.CitedExcerpt=R;exports.ComparisonTable=H;exports.ContactForm=L;exports.DataTable=Q;exports.DocumentOverlay=U;exports.Footer=Y;exports.FormField=N;exports.HowStep=q;exports.LogoMark=w;exports.Modal=C;exports.Nav=O;exports.Panel=J;exports.PromptBar=$;exports.RadioGroup=G;exports.SectionHeader=M;exports.Select=V;exports.SignalsPanel=z;exports.SuggestionCard=k;exports.SuggestionCards=I;exports.Toast=X;exports.Toggle=K;exports.TypingIndicator=E;
|
|
1
|
+
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { IconArrowRight as r, IconCheck as i, IconChevronLeft as a, IconChevronRight as o, IconCopy as s, IconMenu as c, IconPlaceholder as l, IconSearch as u, IconSortAsc as d, IconSortDefault as f, IconSortDesc as p, IconWarning as m } from "@pcoi/icons";
|
|
3
|
+
import { useCallback as h, useEffect as g, useId as _, useRef as v, useState as y } from "react";
|
|
4
|
+
var b = {
|
|
5
|
+
agentCard: "pcoi-agentCard-dSWnP",
|
|
6
|
+
header: "pcoi-header-jlsPN",
|
|
7
|
+
name: "pcoi-name-ftL8F",
|
|
8
|
+
spacer: "pcoi-spacer-zmuoQ",
|
|
9
|
+
badge: "pcoi-badge-BNfvi",
|
|
10
|
+
output: "pcoi-output-36l8y"
|
|
11
|
+
}, x = { statusDot: "pcoi-statusDot-2Cjjk" };
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/StatusDot/StatusDot.tsx
|
|
14
|
+
function S({ status: e = "active", ariaLabel: n, ...r }) {
|
|
15
|
+
return /* @__PURE__ */ t("span", {
|
|
16
|
+
...r,
|
|
17
|
+
className: x.statusDot,
|
|
18
|
+
"data-status": e,
|
|
19
|
+
role: n ? "status" : void 0,
|
|
20
|
+
"aria-label": n,
|
|
21
|
+
"aria-hidden": n ? void 0 : !0
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/AgentCard/AgentCard.tsx
|
|
26
|
+
function C({ name: e, status: r, badge: i, output: a, state: o = "collapsed", ...s }) {
|
|
27
|
+
return /* @__PURE__ */ n("div", {
|
|
28
|
+
...s,
|
|
29
|
+
className: b.agentCard,
|
|
30
|
+
"data-state": o,
|
|
31
|
+
children: [/* @__PURE__ */ n("div", {
|
|
32
|
+
className: b.header,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ t(S, { status: r }),
|
|
35
|
+
/* @__PURE__ */ t("span", {
|
|
36
|
+
className: `${b.name} type-mono-step-number`,
|
|
37
|
+
children: e
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ t("span", {
|
|
40
|
+
className: b.spacer,
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}),
|
|
43
|
+
i ? /* @__PURE__ */ t("span", {
|
|
44
|
+
className: b.badge,
|
|
45
|
+
children: i
|
|
46
|
+
}) : null
|
|
47
|
+
]
|
|
48
|
+
}), o === "expanded" && a ? /* @__PURE__ */ t("p", {
|
|
49
|
+
className: `${b.output} type-mono-code`,
|
|
50
|
+
children: a
|
|
51
|
+
}) : null]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
var w = {
|
|
55
|
+
agentList: "pcoi-agentList-wSvY4",
|
|
56
|
+
cell: "pcoi-cell-lY3KQ"
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/AgentList/AgentList.tsx
|
|
60
|
+
function T({ agents: e, ariaLabel: n = "Agents", ...r }) {
|
|
61
|
+
return /* @__PURE__ */ t("div", {
|
|
62
|
+
...r,
|
|
63
|
+
className: w.agentList,
|
|
64
|
+
role: "list",
|
|
65
|
+
"aria-label": n,
|
|
66
|
+
children: e.map((e, n) => /* @__PURE__ */ t("div", {
|
|
67
|
+
className: w.cell,
|
|
68
|
+
role: "listitem",
|
|
69
|
+
children: /* @__PURE__ */ t(C, { ...e })
|
|
70
|
+
}, n))
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
var E = {
|
|
74
|
+
badge: "pcoi-badge-ojFmb",
|
|
75
|
+
icon: "pcoi-icon-lxyWf",
|
|
76
|
+
label: "pcoi-label-CD3id"
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/Badge/Badge.tsx
|
|
80
|
+
function D({ variant: e }) {
|
|
81
|
+
switch (e) {
|
|
82
|
+
case "success": return /* @__PURE__ */ t("svg", {
|
|
83
|
+
width: "12",
|
|
84
|
+
height: "12",
|
|
85
|
+
viewBox: "0 0 12 12",
|
|
86
|
+
fill: "none",
|
|
87
|
+
"aria-hidden": "true",
|
|
88
|
+
children: /* @__PURE__ */ t("path", {
|
|
89
|
+
d: "M2.5 6L5 8.5L9.5 4",
|
|
90
|
+
stroke: "currentColor",
|
|
91
|
+
strokeWidth: "1.5",
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeLinejoin: "round"
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
case "error": return /* @__PURE__ */ t("svg", {
|
|
97
|
+
width: "12",
|
|
98
|
+
height: "12",
|
|
99
|
+
viewBox: "0 0 12 12",
|
|
100
|
+
fill: "none",
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
children: /* @__PURE__ */ t("path", {
|
|
103
|
+
d: "M3 3L9 9M9 3L3 9",
|
|
104
|
+
stroke: "currentColor",
|
|
105
|
+
strokeWidth: "1.5",
|
|
106
|
+
strokeLinecap: "round"
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
case "warning": return /* @__PURE__ */ n("svg", {
|
|
110
|
+
width: "12",
|
|
111
|
+
height: "12",
|
|
112
|
+
viewBox: "0 0 12 12",
|
|
113
|
+
fill: "none",
|
|
114
|
+
"aria-hidden": "true",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ t("path", {
|
|
117
|
+
d: "M6 1L11 10.5H1L6 1Z",
|
|
118
|
+
stroke: "currentColor",
|
|
119
|
+
strokeWidth: "1.5",
|
|
120
|
+
strokeLinejoin: "round"
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ t("path", {
|
|
123
|
+
d: "M6 5V7",
|
|
124
|
+
stroke: "currentColor",
|
|
125
|
+
strokeWidth: "1.5",
|
|
126
|
+
strokeLinecap: "round"
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ t("circle", {
|
|
129
|
+
cx: "6",
|
|
130
|
+
cy: "9",
|
|
131
|
+
r: "0.5",
|
|
132
|
+
fill: "currentColor"
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
case "info": return /* @__PURE__ */ n("svg", {
|
|
137
|
+
width: "12",
|
|
138
|
+
height: "12",
|
|
139
|
+
viewBox: "0 0 12 12",
|
|
140
|
+
fill: "none",
|
|
141
|
+
"aria-hidden": "true",
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ t("circle", {
|
|
144
|
+
cx: "6",
|
|
145
|
+
cy: "6",
|
|
146
|
+
r: "5",
|
|
147
|
+
stroke: "currentColor",
|
|
148
|
+
strokeWidth: "1.5"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ t("path", {
|
|
151
|
+
d: "M6 5.5V8.5",
|
|
152
|
+
stroke: "currentColor",
|
|
153
|
+
strokeWidth: "1.5",
|
|
154
|
+
strokeLinecap: "round"
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ t("circle", {
|
|
157
|
+
cx: "6",
|
|
158
|
+
cy: "3.5",
|
|
159
|
+
r: "0.5",
|
|
160
|
+
fill: "currentColor"
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
default: return null;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function O({ shape: e, variant: r = "default", showIcon: i = !0, label: a, number: o, ariaLabel: s, ...c }) {
|
|
168
|
+
let l = e === "pill" ? "type-mono-badge" : "type-mono-step-number", u = e === "pill" && r !== "default" && i;
|
|
169
|
+
return /* @__PURE__ */ n("span", {
|
|
170
|
+
...c,
|
|
171
|
+
className: `${E.badge} ${l}`,
|
|
172
|
+
"data-shape": e,
|
|
173
|
+
"data-variant": r,
|
|
174
|
+
"aria-label": s,
|
|
175
|
+
children: [u ? /* @__PURE__ */ t("span", {
|
|
176
|
+
className: E.icon,
|
|
177
|
+
"aria-hidden": "true",
|
|
178
|
+
children: /* @__PURE__ */ t(D, { variant: r })
|
|
179
|
+
}) : null, e === "pill" ? /* @__PURE__ */ t("span", {
|
|
180
|
+
className: E.label,
|
|
181
|
+
children: a
|
|
182
|
+
}) : o]
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
var k = {
|
|
186
|
+
button: "pcoi-button-7BLGt",
|
|
187
|
+
label: "pcoi-label-447Ll",
|
|
188
|
+
icon: "pcoi-icon-mbFTQ",
|
|
189
|
+
spinner: "pcoi-spinner-0n6Qa",
|
|
190
|
+
"button-spinner-spin": "pcoi-button-spinner-spin-EF00s"
|
|
191
|
+
};
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/Button/Button.tsx
|
|
194
|
+
function A({ style: e, size: r = "default", state: i, disabled: a = !1, focused: o, loading: s = !1, loadingPosition: c = "center", startIcon: l, endIcon: u, label: d, fullWidth: f, type: p = "button", success: m = !1, onClick: h, ...g }) {
|
|
195
|
+
let _ = r === "small" ? "type-control-button-nav" : "type-control-button", v = s && c === "start", y = s && c === "end", b = s && c === "start", x = s && c === "end", S = s && c === "center";
|
|
196
|
+
return /* @__PURE__ */ n("button", {
|
|
197
|
+
type: p,
|
|
198
|
+
...g,
|
|
199
|
+
className: k.button,
|
|
200
|
+
"data-style": e,
|
|
201
|
+
"data-size": r,
|
|
202
|
+
"data-state": i || void 0,
|
|
203
|
+
"data-loading": s || void 0,
|
|
204
|
+
"data-loading-position": s ? c : void 0,
|
|
205
|
+
"data-focused": o || void 0,
|
|
206
|
+
"data-full-width": f || void 0,
|
|
207
|
+
"data-success": m || void 0,
|
|
208
|
+
disabled: a,
|
|
209
|
+
"aria-disabled": a || m || void 0,
|
|
210
|
+
"aria-busy": s || void 0,
|
|
211
|
+
onClick: h,
|
|
212
|
+
children: [
|
|
213
|
+
l && !v ? /* @__PURE__ */ t("span", {
|
|
214
|
+
className: k.icon,
|
|
215
|
+
"aria-hidden": "true",
|
|
216
|
+
children: l
|
|
217
|
+
}) : null,
|
|
218
|
+
b ? /* @__PURE__ */ t("span", {
|
|
219
|
+
className: k.spinner,
|
|
220
|
+
"data-position": "start",
|
|
221
|
+
role: "progressbar",
|
|
222
|
+
"aria-label": "Loading"
|
|
223
|
+
}) : null,
|
|
224
|
+
/* @__PURE__ */ t("span", {
|
|
225
|
+
className: `${k.label} ${_}`,
|
|
226
|
+
children: d
|
|
227
|
+
}),
|
|
228
|
+
S ? /* @__PURE__ */ t("span", {
|
|
229
|
+
className: k.spinner,
|
|
230
|
+
"data-position": "center",
|
|
231
|
+
role: "progressbar",
|
|
232
|
+
"aria-label": "Loading"
|
|
233
|
+
}) : null,
|
|
234
|
+
x ? /* @__PURE__ */ t("span", {
|
|
235
|
+
className: k.spinner,
|
|
236
|
+
"data-position": "end",
|
|
237
|
+
role: "progressbar",
|
|
238
|
+
"aria-label": "Loading"
|
|
239
|
+
}) : null,
|
|
240
|
+
u && !y ? /* @__PURE__ */ t("span", {
|
|
241
|
+
className: k.icon,
|
|
242
|
+
"aria-hidden": "true",
|
|
243
|
+
children: u
|
|
244
|
+
}) : null
|
|
245
|
+
]
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
var j = {
|
|
249
|
+
callout: "pcoi-callout-uR6-B",
|
|
250
|
+
accentLine: "pcoi-accentLine-tC6Ff",
|
|
251
|
+
quoteBlock: "pcoi-quoteBlock-0hKnU",
|
|
252
|
+
quote: "pcoi-quote-JsRxn",
|
|
253
|
+
attribution: "pcoi-attribution-EfePP"
|
|
254
|
+
};
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/Callout/Callout.tsx
|
|
257
|
+
function ee({ quote: e, attribution: r, ...i }) {
|
|
258
|
+
return /* @__PURE__ */ n("figure", {
|
|
259
|
+
...i,
|
|
260
|
+
className: j.callout,
|
|
261
|
+
children: [
|
|
262
|
+
/* @__PURE__ */ t("span", {
|
|
263
|
+
className: j.accentLine,
|
|
264
|
+
"aria-hidden": "true"
|
|
265
|
+
}),
|
|
266
|
+
/* @__PURE__ */ t("blockquote", {
|
|
267
|
+
className: j.quoteBlock,
|
|
268
|
+
children: /* @__PURE__ */ t("p", {
|
|
269
|
+
className: `${j.quote} type-accent-callout`,
|
|
270
|
+
children: e
|
|
271
|
+
})
|
|
272
|
+
}),
|
|
273
|
+
r ? /* @__PURE__ */ t("figcaption", {
|
|
274
|
+
className: `${j.attribution} type-body-sm-regular`,
|
|
275
|
+
children: r
|
|
276
|
+
}) : null
|
|
277
|
+
]
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
var M = {
|
|
281
|
+
card: "pcoi-card--PlHa",
|
|
282
|
+
iconBox: "pcoi-iconBox-dpCdH",
|
|
283
|
+
label: "pcoi-label-p6ZWC",
|
|
284
|
+
title: "pcoi-title-ZyFMG",
|
|
285
|
+
description: "pcoi-description--3C2P"
|
|
286
|
+
};
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/Card/Card.tsx
|
|
289
|
+
function N({ title: e, description: r, label: i, showIcon: a = !1, showLabel: o, showAction: s = !1, icon: c, onAction: u, accentTitle: d = !1, state: f, actionLabel: p = "Button", actionStartIcon: m, actionEndIcon: h, ...g }) {
|
|
290
|
+
let _ = o ?? !!i;
|
|
291
|
+
return /* @__PURE__ */ n("article", {
|
|
292
|
+
...g,
|
|
293
|
+
className: M.card,
|
|
294
|
+
"data-state": f || void 0,
|
|
295
|
+
children: [
|
|
296
|
+
a ? /* @__PURE__ */ t("span", {
|
|
297
|
+
className: M.iconBox,
|
|
298
|
+
"aria-hidden": "true",
|
|
299
|
+
children: c ?? /* @__PURE__ */ t(l, { size: 24 })
|
|
300
|
+
}) : null,
|
|
301
|
+
_ ? /* @__PURE__ */ t("p", {
|
|
302
|
+
className: `${M.label} type-mono-step-number`,
|
|
303
|
+
children: i
|
|
304
|
+
}) : null,
|
|
305
|
+
/* @__PURE__ */ t("h3", {
|
|
306
|
+
className: `${M.title} type-heading-h3-sm`,
|
|
307
|
+
"data-accent": d || void 0,
|
|
308
|
+
children: e
|
|
309
|
+
}),
|
|
310
|
+
r ? /* @__PURE__ */ t("p", {
|
|
311
|
+
className: `${M.description} type-body-default-regular`,
|
|
312
|
+
children: r
|
|
313
|
+
}) : null,
|
|
314
|
+
s ? /* @__PURE__ */ t(A, {
|
|
315
|
+
style: "ghost",
|
|
316
|
+
size: "small",
|
|
317
|
+
label: p,
|
|
318
|
+
startIcon: m,
|
|
319
|
+
endIcon: h,
|
|
320
|
+
onClick: u
|
|
321
|
+
}) : null
|
|
322
|
+
]
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
var te = { cardShell: "pcoi-cardShell-e8KEa" };
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/CardShell/CardShell.tsx
|
|
328
|
+
function P({ children: e, style: n, className: r, ...i }) {
|
|
329
|
+
return /* @__PURE__ */ t("div", {
|
|
330
|
+
...i,
|
|
331
|
+
className: [te.cardShell, r].filter(Boolean).join(" "),
|
|
332
|
+
style: n,
|
|
333
|
+
children: e
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
var F = {
|
|
337
|
+
chatInterface: "pcoi-chatInterface--DJvA",
|
|
338
|
+
emptyState: "pcoi-emptyState-Wo-Jj",
|
|
339
|
+
heroStack: "pcoi-heroStack-96eq6",
|
|
340
|
+
headingBlock: "pcoi-headingBlock-rnwpn",
|
|
341
|
+
headline: "pcoi-headline-4bOzy",
|
|
342
|
+
formStack: "pcoi-formStack-p4kLs",
|
|
343
|
+
messages: "pcoi-messages-xeCQJ",
|
|
344
|
+
typingRow: "pcoi-typingRow-00pBN",
|
|
345
|
+
promptArea: "pcoi-promptArea-Lausk"
|
|
346
|
+
}, ne = {
|
|
347
|
+
chatMessageList: "pcoi-chatMessageList-NRZOu",
|
|
348
|
+
row: "pcoi-row-8r8b9"
|
|
349
|
+
}, I = {
|
|
350
|
+
chatMessage: "pcoi-chatMessage-cC5lr",
|
|
351
|
+
message: "pcoi-message-muaKY",
|
|
352
|
+
citation: "pcoi-citation-OTLUa"
|
|
353
|
+
};
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/ChatMessage/ChatMessage.tsx
|
|
356
|
+
function re({ sender: e, message: r, senderLabel: i, citation: a, ...o }) {
|
|
357
|
+
return /* @__PURE__ */ n("div", {
|
|
358
|
+
...o,
|
|
359
|
+
className: I.chatMessage,
|
|
360
|
+
"data-sender": e,
|
|
361
|
+
children: [
|
|
362
|
+
e === "ai" && i ? /* @__PURE__ */ t(O, {
|
|
363
|
+
shape: "pill",
|
|
364
|
+
label: i
|
|
365
|
+
}) : null,
|
|
366
|
+
/* @__PURE__ */ t("div", {
|
|
367
|
+
className: `${I.message} type-body-default-regular`,
|
|
368
|
+
children: r
|
|
369
|
+
}),
|
|
370
|
+
e === "ai" && a ? /* @__PURE__ */ t("div", {
|
|
371
|
+
className: I.citation,
|
|
372
|
+
children: a
|
|
373
|
+
}) : null
|
|
374
|
+
]
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/ChatMessageList/ChatMessageList.tsx
|
|
379
|
+
function L({ messages: e, maxWidthFraction: r = .8, ariaLabel: i = "Chat messages", emptyState: a, ...o }) {
|
|
380
|
+
let s = `${(1 - r) * 100}%`;
|
|
381
|
+
return /* @__PURE__ */ n("div", {
|
|
382
|
+
...o,
|
|
383
|
+
className: ne.chatMessageList,
|
|
384
|
+
role: "log",
|
|
385
|
+
"aria-live": "polite",
|
|
386
|
+
"aria-label": i,
|
|
387
|
+
children: [e.length === 0 && a ? a : null, e.map((e, n) => {
|
|
388
|
+
let r = e.sender === "user";
|
|
389
|
+
return /* @__PURE__ */ t("div", {
|
|
390
|
+
className: ne.row,
|
|
391
|
+
"data-sender": e.sender,
|
|
392
|
+
style: {
|
|
393
|
+
paddingLeft: r ? s : void 0,
|
|
394
|
+
paddingRight: r ? void 0 : s
|
|
395
|
+
},
|
|
396
|
+
children: /* @__PURE__ */ t(re, { ...e })
|
|
397
|
+
}, n);
|
|
398
|
+
})]
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
var ie = {
|
|
402
|
+
suggestionCards: "pcoi-suggestionCards-DHfsT",
|
|
403
|
+
cell: "pcoi-cell-Wn6Ff"
|
|
404
|
+
}, ae = {
|
|
405
|
+
suggestionCard: "pcoi-suggestionCard-J8iSW",
|
|
406
|
+
icon: "pcoi-icon-fJVe6",
|
|
407
|
+
label: "pcoi-label-P04-G"
|
|
408
|
+
};
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region src/SuggestionCard/SuggestionCard.tsx
|
|
411
|
+
function oe({ label: e, icon: r, showIcon: i = !0, state: a, focused: o, onClick: s, ariaLabel: c, ...l }) {
|
|
412
|
+
return /* @__PURE__ */ n("button", {
|
|
413
|
+
type: "button",
|
|
414
|
+
...l,
|
|
415
|
+
className: ae.suggestionCard,
|
|
416
|
+
"data-state": a || void 0,
|
|
417
|
+
"data-focused": o || void 0,
|
|
418
|
+
onClick: s,
|
|
419
|
+
"aria-label": c ?? e,
|
|
420
|
+
children: [i ? r ?? /* @__PURE__ */ t(u, {
|
|
421
|
+
size: 24,
|
|
422
|
+
className: ae.icon
|
|
423
|
+
}) : null, /* @__PURE__ */ t("span", {
|
|
424
|
+
className: `${ae.label} type-body-default-regular`,
|
|
425
|
+
children: e
|
|
426
|
+
})]
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region src/SuggestionCards/SuggestionCards.tsx
|
|
431
|
+
function se({ cards: e, onSelect: n, ...r }) {
|
|
432
|
+
return /* @__PURE__ */ t("div", {
|
|
433
|
+
...r,
|
|
434
|
+
className: ie.suggestionCards,
|
|
435
|
+
children: e.map(({ label: e, showIcon: r, ...i }, a) => /* @__PURE__ */ t("div", {
|
|
436
|
+
className: ie.cell,
|
|
437
|
+
children: /* @__PURE__ */ t(oe, {
|
|
438
|
+
label: e,
|
|
439
|
+
showIcon: r,
|
|
440
|
+
onClick: (t) => n?.(e, t),
|
|
441
|
+
...i
|
|
442
|
+
})
|
|
443
|
+
}, a))
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
var R = {
|
|
447
|
+
typingIndicator: "pcoi-typingIndicator-Lc4nb",
|
|
448
|
+
dots: "pcoi-dots-3rf1M",
|
|
449
|
+
dot: "pcoi-dot-UtuWw",
|
|
450
|
+
"typing-bounce": "pcoi-typing-bounce-1UZpC"
|
|
451
|
+
};
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region src/TypingIndicator/TypingIndicator.tsx
|
|
454
|
+
function ce({ sender: e, visible: r = !0, ...i }) {
|
|
455
|
+
return /* @__PURE__ */ n("div", {
|
|
456
|
+
...i,
|
|
457
|
+
className: R.typingIndicator,
|
|
458
|
+
"data-visible": r || void 0,
|
|
459
|
+
role: "status",
|
|
460
|
+
"aria-live": "polite",
|
|
461
|
+
"aria-label": e ? `${e} is typing` : "Typing",
|
|
462
|
+
children: [e ? /* @__PURE__ */ t(O, {
|
|
463
|
+
shape: "pill",
|
|
464
|
+
label: e
|
|
465
|
+
}) : null, /* @__PURE__ */ n("span", {
|
|
466
|
+
className: R.dots,
|
|
467
|
+
"aria-hidden": "true",
|
|
468
|
+
children: [
|
|
469
|
+
/* @__PURE__ */ t("span", { className: R.dot }),
|
|
470
|
+
/* @__PURE__ */ t("span", { className: R.dot }),
|
|
471
|
+
/* @__PURE__ */ t("span", { className: R.dot })
|
|
472
|
+
]
|
|
473
|
+
})]
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
var le = {
|
|
477
|
+
promptBar: "pcoi-promptBar-4K1wU",
|
|
478
|
+
input: "pcoi-input-sv-GN",
|
|
479
|
+
send: "pcoi-send-Np1U7",
|
|
480
|
+
sendIcon: "pcoi-sendIcon-bqFO4"
|
|
481
|
+
};
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region src/PromptBar/PromptBar.tsx
|
|
484
|
+
function ue({ value: e, defaultValue: i, placeholder: a = "Ask a question...", showSend: o = !0, disabled: s, focused: c, state: l, onChange: u, onSubmit: d, ariaLabel: f = "Message input", ...p }) {
|
|
485
|
+
let m = e !== void 0, [h, g] = y(i ?? ""), _ = m ? e : h, v = !s && _.trim().length > 0, b = (e) => {
|
|
486
|
+
m || g(e.target.value), u?.(e.target.value);
|
|
487
|
+
}, x = (e) => {
|
|
488
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), v && d?.(_));
|
|
489
|
+
}, S = () => {
|
|
490
|
+
v && d?.(_);
|
|
491
|
+
};
|
|
492
|
+
return /* @__PURE__ */ n("div", {
|
|
493
|
+
className: le.promptBar,
|
|
494
|
+
"data-state": l,
|
|
495
|
+
"data-focused": c || void 0,
|
|
496
|
+
"data-disabled": s || void 0,
|
|
497
|
+
children: [/* @__PURE__ */ t("input", {
|
|
498
|
+
...p,
|
|
499
|
+
type: "text",
|
|
500
|
+
className: `${le.input} type-body-default-regular`,
|
|
501
|
+
value: _,
|
|
502
|
+
onChange: b,
|
|
503
|
+
onKeyDown: x,
|
|
504
|
+
placeholder: a,
|
|
505
|
+
disabled: s,
|
|
506
|
+
"aria-label": f,
|
|
507
|
+
"aria-disabled": s || void 0
|
|
508
|
+
}), o ? /* @__PURE__ */ t("button", {
|
|
509
|
+
type: "button",
|
|
510
|
+
className: le.send,
|
|
511
|
+
onClick: S,
|
|
512
|
+
disabled: !v,
|
|
513
|
+
"aria-label": "Send message",
|
|
514
|
+
"aria-disabled": !v || void 0,
|
|
515
|
+
children: /* @__PURE__ */ t(r, {
|
|
516
|
+
size: 24,
|
|
517
|
+
className: le.sendIcon
|
|
518
|
+
})
|
|
519
|
+
}) : null]
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
var de = {
|
|
523
|
+
logoMark: "pcoi-logoMark-lRK2n",
|
|
524
|
+
svg: "pcoi-svg-SjF6O"
|
|
525
|
+
};
|
|
526
|
+
//#endregion
|
|
527
|
+
//#region src/LogoMark/LogoMark.tsx
|
|
528
|
+
function fe({ mode: e = "Dark", ...r }) {
|
|
529
|
+
return /* @__PURE__ */ t("span", {
|
|
530
|
+
...r,
|
|
531
|
+
className: de.logoMark,
|
|
532
|
+
"data-theme": e.toLowerCase(),
|
|
533
|
+
children: /* @__PURE__ */ n("svg", {
|
|
534
|
+
className: de.svg,
|
|
535
|
+
viewBox: "0 0 65 32",
|
|
536
|
+
role: "img",
|
|
537
|
+
"aria-label": "PCOI",
|
|
538
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
539
|
+
children: [/* @__PURE__ */ t("g", {
|
|
540
|
+
transform: "translate(5.61 8.21)",
|
|
541
|
+
children: /* @__PURE__ */ t("path", {
|
|
542
|
+
d: "M 0 16.01 L 2.87 16.01 L 2.87 10.6 L 5.94 10.6 C 9.64 10.6 11.62 8.37 11.62 5.3 C 11.62 2.25 9.67 0 5.98 0 L 0 0 L 0 16.01 Z M 2.87 8.23 L 2.87 2.41 L 5.54 2.41 C 7.74 2.41 8.69 3.59 8.69 5.3 C 8.69 7.01 7.74 8.23 5.57 8.23 L 2.87 8.23 Z",
|
|
543
|
+
fill: "var(--text-icon-accent)"
|
|
544
|
+
})
|
|
545
|
+
}), /* @__PURE__ */ t("g", {
|
|
546
|
+
transform: "translate(20.18 8)",
|
|
547
|
+
children: /* @__PURE__ */ t("path", {
|
|
548
|
+
d: "M 7.32 16.43 C 11.1 16.43 13.64 13.95 14.08 10.89 L 11.18 10.89 C 10.81 12.78 9.27 13.87 7.36 13.87 C 4.76 13.87 2.88 11.9 2.88 8.23 C 2.88 4.6 4.74 2.57 7.37 2.57 C 9.28 2.57 10.82 3.65 11.18 5.54 L 14.07 5.54 C 13.56 2.04 10.84 0 7.32 0 C 3.14 0 0 3.05 0 8.23 C 0 13.38 3.11 16.43 7.32 16.43 Z M 24.45 16.43 C 28.63 16.43 31.78 13.39 31.78 8.23 C 31.78 3.05 28.63 0 24.45 0 C 20.25 0 17.09 3.05 17.09 8.23 C 17.09 13.38 20.25 16.43 24.45 16.43 Z M 24.45 13.87 C 21.82 13.87 19.97 11.87 19.97 8.23 C 19.97 4.56 21.82 2.57 24.45 2.57 C 27.04 2.57 28.89 4.55 28.89 8.23 C 28.89 11.88 27.04 13.87 24.45 13.87 Z M 38.25 0.21 L 35.38 0.21 L 35.38 16.22 L 38.25 16.22 L 38.25 0.21 Z",
|
|
549
|
+
fill: "var(--text-icon-primary)"
|
|
550
|
+
})
|
|
551
|
+
})]
|
|
552
|
+
})
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region src/ChatInterface/ChatInterface.tsx
|
|
557
|
+
function pe({ messages: r = [], suggestions: i, typingSenderLabel: a = "AGENT", inputValue: o, inputPlaceholder: s, onInputChange: c, onSubmit: l, onSuggestionSelect: u, state: d, ...f }) {
|
|
558
|
+
let [p, m] = y(""), h = o !== void 0, g = h ? o : p, _ = d ?? (r.length > 0 ? "active" : "empty"), v = (e) => {
|
|
559
|
+
h || m(e), c?.(e);
|
|
560
|
+
}, b = (e) => {
|
|
561
|
+
l?.(e), h || m("");
|
|
562
|
+
};
|
|
563
|
+
return /* @__PURE__ */ t("div", {
|
|
564
|
+
...f,
|
|
565
|
+
className: F.chatInterface,
|
|
566
|
+
"data-state": _,
|
|
567
|
+
children: _ === "empty" ? /* @__PURE__ */ t("div", {
|
|
568
|
+
className: F.emptyState,
|
|
569
|
+
children: /* @__PURE__ */ n("div", {
|
|
570
|
+
className: F.heroStack,
|
|
571
|
+
children: [/* @__PURE__ */ n("div", {
|
|
572
|
+
className: F.headingBlock,
|
|
573
|
+
children: [/* @__PURE__ */ t("h1", {
|
|
574
|
+
className: `type-heading-h1 ${F.headline}`,
|
|
575
|
+
children: "Build your knowledge with"
|
|
576
|
+
}), /* @__PURE__ */ t(fe, { mode: "Dark" })]
|
|
577
|
+
}), /* @__PURE__ */ n("div", {
|
|
578
|
+
className: F.formStack,
|
|
579
|
+
children: [/* @__PURE__ */ t(ue, {
|
|
580
|
+
value: g,
|
|
581
|
+
placeholder: s,
|
|
582
|
+
onChange: v,
|
|
583
|
+
onSubmit: b
|
|
584
|
+
}), i ? /* @__PURE__ */ t(se, {
|
|
585
|
+
cards: i,
|
|
586
|
+
onSelect: u
|
|
587
|
+
}) : null]
|
|
588
|
+
})]
|
|
589
|
+
})
|
|
590
|
+
}) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("div", {
|
|
591
|
+
className: F.messages,
|
|
592
|
+
children: [/* @__PURE__ */ t(L, { messages: r }), _ === "loading" ? /* @__PURE__ */ t("div", {
|
|
593
|
+
className: F.typingRow,
|
|
594
|
+
children: /* @__PURE__ */ t(ce, {
|
|
595
|
+
sender: a,
|
|
596
|
+
visible: !0
|
|
597
|
+
})
|
|
598
|
+
}) : null]
|
|
599
|
+
}), /* @__PURE__ */ t("div", {
|
|
600
|
+
className: F.promptArea,
|
|
601
|
+
"data-disabled": _ === "loading" || void 0,
|
|
602
|
+
children: /* @__PURE__ */ t(ue, {
|
|
603
|
+
value: g,
|
|
604
|
+
placeholder: s,
|
|
605
|
+
disabled: _ === "loading",
|
|
606
|
+
onChange: v,
|
|
607
|
+
onSubmit: b
|
|
608
|
+
})
|
|
609
|
+
})] })
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
var z = {
|
|
613
|
+
checkbox: "pcoi-checkbox-N0OxD",
|
|
614
|
+
control: "pcoi-control-8yUGr",
|
|
615
|
+
input: "pcoi-input-XnCmS",
|
|
616
|
+
box: "pcoi-box-08d-a",
|
|
617
|
+
check: "pcoi-check-2FkDZ",
|
|
618
|
+
dash: "pcoi-dash-PierB",
|
|
619
|
+
label: "pcoi-label-l8z5T",
|
|
620
|
+
errorMessage: "pcoi-errorMessage-kyCwz"
|
|
621
|
+
};
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region src/Checkbox/Checkbox.tsx
|
|
624
|
+
function me({ label: e, checked: r, defaultChecked: i, indeterminate: a, disabled: o, error: s, errorMessage: c, showError: l = !0, focused: u, onChange: d, name: f, id: p, value: m, ...h }) {
|
|
625
|
+
let g = (e) => {
|
|
626
|
+
d?.(e.target.checked, e);
|
|
627
|
+
};
|
|
628
|
+
return /* @__PURE__ */ n("label", {
|
|
629
|
+
...h,
|
|
630
|
+
className: z.checkbox,
|
|
631
|
+
"data-disabled": o || void 0,
|
|
632
|
+
"data-error": s || void 0,
|
|
633
|
+
"data-focused": u || void 0,
|
|
634
|
+
children: [/* @__PURE__ */ n("span", {
|
|
635
|
+
className: z.control,
|
|
636
|
+
children: [
|
|
637
|
+
/* @__PURE__ */ t("input", {
|
|
638
|
+
type: "checkbox",
|
|
639
|
+
className: z.input,
|
|
640
|
+
checked: r,
|
|
641
|
+
defaultChecked: i,
|
|
642
|
+
disabled: o,
|
|
643
|
+
onChange: g,
|
|
644
|
+
name: f,
|
|
645
|
+
id: p,
|
|
646
|
+
value: m,
|
|
647
|
+
"aria-checked": a ? "mixed" : void 0,
|
|
648
|
+
"aria-invalid": s || void 0,
|
|
649
|
+
ref: (e) => {
|
|
650
|
+
e && (e.indeterminate = !!a);
|
|
651
|
+
}
|
|
652
|
+
}),
|
|
653
|
+
/* @__PURE__ */ n("span", {
|
|
654
|
+
className: z.box,
|
|
655
|
+
"aria-hidden": "true",
|
|
656
|
+
"data-indeterminate": a || void 0,
|
|
657
|
+
children: [/* @__PURE__ */ t("svg", {
|
|
658
|
+
className: z.check,
|
|
659
|
+
viewBox: "0 0 20 20",
|
|
660
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
661
|
+
children: /* @__PURE__ */ t("path", {
|
|
662
|
+
d: "M 5 10 L 8.33333 14 L 15 6",
|
|
663
|
+
fill: "none",
|
|
664
|
+
stroke: "currentColor",
|
|
665
|
+
strokeWidth: "1.75",
|
|
666
|
+
strokeLinecap: "round",
|
|
667
|
+
strokeLinejoin: "round"
|
|
668
|
+
})
|
|
669
|
+
}), /* @__PURE__ */ t("span", { className: z.dash })]
|
|
670
|
+
}),
|
|
671
|
+
/* @__PURE__ */ t("span", {
|
|
672
|
+
className: `${z.label} type-body-default-regular`,
|
|
673
|
+
children: e
|
|
674
|
+
})
|
|
675
|
+
]
|
|
676
|
+
}), s && l && c ? /* @__PURE__ */ t("span", {
|
|
677
|
+
className: `${z.errorMessage} type-control-error`,
|
|
678
|
+
children: c
|
|
679
|
+
}) : null]
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
var he = {
|
|
683
|
+
checkboxGroup: "pcoi-checkboxGroup-CIUjU",
|
|
684
|
+
legend: "pcoi-legend-na-sD",
|
|
685
|
+
options: "pcoi-options-9bMnB",
|
|
686
|
+
errorMessage: "pcoi-errorMessage-eo5YI"
|
|
687
|
+
};
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region src/CheckboxGroup/CheckboxGroup.tsx
|
|
690
|
+
function ge({ label: e, options: r, values: i, defaultValues: a, disabled: o, error: s, errorMessage: c, onChange: l, name: u, children: d, ...f }) {
|
|
691
|
+
let p = (e, t, n) => {
|
|
692
|
+
if (!l) return;
|
|
693
|
+
let r = i ?? [];
|
|
694
|
+
l(t ? [...r, e] : r.filter((t) => t !== e), n);
|
|
695
|
+
}, m = u ?? "checkbox-group", h = `${m}-legend`, g = `${m}-error`;
|
|
696
|
+
return /* @__PURE__ */ n("div", {
|
|
697
|
+
...f,
|
|
698
|
+
className: he.checkboxGroup,
|
|
699
|
+
role: "group",
|
|
700
|
+
"data-disabled": o || void 0,
|
|
701
|
+
"data-error": s || void 0,
|
|
702
|
+
"aria-labelledby": h,
|
|
703
|
+
"aria-disabled": o || void 0,
|
|
704
|
+
"aria-invalid": s || void 0,
|
|
705
|
+
"aria-describedby": s && c ? g : void 0,
|
|
706
|
+
children: [
|
|
707
|
+
/* @__PURE__ */ t("span", {
|
|
708
|
+
id: h,
|
|
709
|
+
className: `${he.legend} type-control-label`,
|
|
710
|
+
children: e
|
|
711
|
+
}),
|
|
712
|
+
/* @__PURE__ */ t("div", {
|
|
713
|
+
className: he.options,
|
|
714
|
+
children: d ?? r.map((e) => {
|
|
715
|
+
let { value: n, label: r, disabled: c, ...l } = e;
|
|
716
|
+
return /* @__PURE__ */ t(me, {
|
|
717
|
+
label: r,
|
|
718
|
+
value: n,
|
|
719
|
+
name: u,
|
|
720
|
+
checked: i ? i.includes(n) : void 0,
|
|
721
|
+
defaultChecked: a ? a.includes(n) : void 0,
|
|
722
|
+
disabled: o || c,
|
|
723
|
+
error: s,
|
|
724
|
+
showError: !1,
|
|
725
|
+
onChange: (e, t) => p(n, e, t),
|
|
726
|
+
...l
|
|
727
|
+
}, n);
|
|
728
|
+
})
|
|
729
|
+
}),
|
|
730
|
+
s && c ? /* @__PURE__ */ t("p", {
|
|
731
|
+
className: `${he.errorMessage} type-control-error`,
|
|
732
|
+
id: g,
|
|
733
|
+
children: c
|
|
734
|
+
}) : null
|
|
735
|
+
]
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
var _e = {
|
|
739
|
+
citationMark: "pcoi-citationMark-2qhV-",
|
|
740
|
+
label: "pcoi-label-s1lJO"
|
|
741
|
+
};
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region src/CitationMark/CitationMark.tsx
|
|
744
|
+
function ve({ number: e, href: n, onClick: r, ariaLabel: i, ...a }) {
|
|
745
|
+
let o = i ?? `Citation ${e}`, s = /* @__PURE__ */ t("span", {
|
|
746
|
+
className: `${_e.label} type-mono-code`,
|
|
747
|
+
children: e
|
|
748
|
+
});
|
|
749
|
+
return n ? /* @__PURE__ */ t("a", {
|
|
750
|
+
...a,
|
|
751
|
+
href: n,
|
|
752
|
+
className: _e.citationMark,
|
|
753
|
+
onClick: r,
|
|
754
|
+
"aria-label": o,
|
|
755
|
+
children: s
|
|
756
|
+
}) : r ? /* @__PURE__ */ t("button", {
|
|
757
|
+
type: "button",
|
|
758
|
+
...a,
|
|
759
|
+
className: _e.citationMark,
|
|
760
|
+
onClick: r,
|
|
761
|
+
"aria-label": o,
|
|
762
|
+
children: s
|
|
763
|
+
}) : /* @__PURE__ */ t("span", {
|
|
764
|
+
...a,
|
|
765
|
+
className: _e.citationMark,
|
|
766
|
+
"aria-label": o,
|
|
767
|
+
role: "note",
|
|
768
|
+
children: s
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
var ye = { textLink: "pcoi-textLink-umTb1" };
|
|
772
|
+
//#endregion
|
|
773
|
+
//#region src/TextLink/TextLink.tsx
|
|
774
|
+
function be({ label: e, color: n = "accent", state: r, focused: i, href: a, onClick: o, ...s }) {
|
|
775
|
+
return /* @__PURE__ */ t("a", {
|
|
776
|
+
href: a,
|
|
777
|
+
onClick: o,
|
|
778
|
+
...s,
|
|
779
|
+
className: `${ye.textLink} type-body-sm-regular`,
|
|
780
|
+
"data-color": n,
|
|
781
|
+
"data-state": r,
|
|
782
|
+
"data-focused": i ? "" : void 0,
|
|
783
|
+
children: e
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
var xe = {
|
|
787
|
+
citedExcerpt: "pcoi-citedExcerpt-2qVMr",
|
|
788
|
+
titleSlot: "pcoi-titleSlot-KZs40",
|
|
789
|
+
indexSlot: "pcoi-indexSlot-H1yJ9",
|
|
790
|
+
excerpt: "pcoi-excerpt-2l9vV"
|
|
791
|
+
};
|
|
792
|
+
//#endregion
|
|
793
|
+
//#region src/CitedExcerpt/CitedExcerpt.tsx
|
|
794
|
+
function Se({ index: e, excerpt: r, sourceTitle: i, showSourceTitle: a = !0, onOpenSource: o, ...s }) {
|
|
795
|
+
let c = (e) => {
|
|
796
|
+
e.preventDefault(), o?.();
|
|
797
|
+
}, l = a && !!i;
|
|
798
|
+
return /* @__PURE__ */ n("figure", {
|
|
799
|
+
...s,
|
|
800
|
+
className: xe.citedExcerpt,
|
|
801
|
+
children: [
|
|
802
|
+
l ? /* @__PURE__ */ t("div", {
|
|
803
|
+
className: xe.titleSlot,
|
|
804
|
+
children: /* @__PURE__ */ t(be, {
|
|
805
|
+
label: i,
|
|
806
|
+
onClick: c
|
|
807
|
+
})
|
|
808
|
+
}) : null,
|
|
809
|
+
/* @__PURE__ */ t("div", {
|
|
810
|
+
className: xe.indexSlot,
|
|
811
|
+
children: /* @__PURE__ */ t(be, {
|
|
812
|
+
label: `[${e}]`,
|
|
813
|
+
onClick: c
|
|
814
|
+
})
|
|
815
|
+
}),
|
|
816
|
+
/* @__PURE__ */ t("blockquote", {
|
|
817
|
+
className: `${xe.excerpt} type-body-sm-regular`,
|
|
818
|
+
children: r
|
|
819
|
+
})
|
|
820
|
+
]
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
var B = {
|
|
824
|
+
codeBlock: "pcoi-codeBlock-JiAVx",
|
|
825
|
+
header: "pcoi-header-GGKfh",
|
|
826
|
+
switcher: "pcoi-switcher-w6LiX",
|
|
827
|
+
codeContent: "pcoi-codeContent-DF6X1",
|
|
828
|
+
code: "pcoi-code-8aD-D",
|
|
829
|
+
divider: "pcoi-divider-gdojc",
|
|
830
|
+
previewSlot: "pcoi-previewSlot-s2g--",
|
|
831
|
+
stage: "pcoi-stage-J1hCQ",
|
|
832
|
+
placeholderContent: "pcoi-placeholderContent-xmaQ4",
|
|
833
|
+
placeholderText: "pcoi-placeholderText-elqoj"
|
|
834
|
+
}, Ce = {
|
|
835
|
+
iconButton: "pcoi-iconButton-7thUl",
|
|
836
|
+
icon: "pcoi-icon-pJCYq"
|
|
837
|
+
};
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region src/IconButton/IconButton.tsx
|
|
840
|
+
function V({ ariaLabel: e, icon: n, state: r, disabled: i = !1, focused: a, onClick: o, type: s = "button", ...c }) {
|
|
841
|
+
return /* @__PURE__ */ t("button", {
|
|
842
|
+
type: s,
|
|
843
|
+
...c,
|
|
844
|
+
className: Ce.iconButton,
|
|
845
|
+
"data-state": r || void 0,
|
|
846
|
+
"data-focused": a || void 0,
|
|
847
|
+
disabled: i,
|
|
848
|
+
"aria-disabled": i || void 0,
|
|
849
|
+
"aria-label": e,
|
|
850
|
+
onClick: o,
|
|
851
|
+
children: /* @__PURE__ */ t("span", {
|
|
852
|
+
className: Ce.icon,
|
|
853
|
+
"aria-hidden": "true",
|
|
854
|
+
children: n
|
|
855
|
+
})
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
var we = {
|
|
859
|
+
dropdownMenu: "pcoi-dropdownMenu-mlLRk",
|
|
860
|
+
item: "pcoi-item-85aL5"
|
|
861
|
+
};
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region src/DropdownMenu/DropdownMenu.tsx
|
|
864
|
+
function Te({ items: e, density: n = "default", selectedValue: r, onSelect: i, ariaLabel: a, autoFocus: o = !0, id: s, ...c }) {
|
|
865
|
+
let [l, u] = y(() => {
|
|
866
|
+
if (r !== void 0) {
|
|
867
|
+
let t = e.findIndex((e) => e.value === r && !e.disabled);
|
|
868
|
+
if (t >= 0) return t;
|
|
869
|
+
}
|
|
870
|
+
return e.findIndex((e) => !e.disabled);
|
|
871
|
+
}), d = v([]), f = v(!1);
|
|
872
|
+
g(() => {
|
|
873
|
+
l < 0 || !f.current && (f.current = !0, !o) || d.current[l]?.focus();
|
|
874
|
+
}, [l]);
|
|
875
|
+
let p = (t) => {
|
|
876
|
+
if (e.length === 0) return;
|
|
877
|
+
let n = l;
|
|
878
|
+
for (let r = 0; r < e.length; r++) if (n = (n + t + e.length) % e.length, !e[n].disabled) {
|
|
879
|
+
u(n);
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
}, m = (t, n) => {
|
|
883
|
+
if (t.key === "ArrowDown") t.preventDefault(), p(1);
|
|
884
|
+
else if (t.key === "ArrowUp") t.preventDefault(), p(-1);
|
|
885
|
+
else if (t.key === "Home") {
|
|
886
|
+
t.preventDefault();
|
|
887
|
+
let n = e.findIndex((e) => !e.disabled);
|
|
888
|
+
n >= 0 && u(n);
|
|
889
|
+
} else if (t.key === "End") {
|
|
890
|
+
t.preventDefault();
|
|
891
|
+
for (let t = e.length - 1; t >= 0; t--) if (!e[t].disabled) {
|
|
892
|
+
u(t);
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
} else if (t.key === "Enter" || t.key === " ") {
|
|
896
|
+
t.preventDefault();
|
|
897
|
+
let r = e[n];
|
|
898
|
+
r.disabled || i?.(r.value);
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
return /* @__PURE__ */ t("ul", {
|
|
902
|
+
id: s,
|
|
903
|
+
role: "listbox",
|
|
904
|
+
...c,
|
|
905
|
+
className: we.dropdownMenu,
|
|
906
|
+
"data-density": n,
|
|
907
|
+
"aria-label": a,
|
|
908
|
+
children: e.map((e, a) => {
|
|
909
|
+
let { value: o, label: s, disabled: c, divider: f, ...p } = e;
|
|
910
|
+
return /* @__PURE__ */ t("li", {
|
|
911
|
+
ref: (e) => {
|
|
912
|
+
d.current[a] = e;
|
|
913
|
+
},
|
|
914
|
+
role: "option",
|
|
915
|
+
tabIndex: l === a ? 0 : -1,
|
|
916
|
+
"aria-selected": o === r,
|
|
917
|
+
"aria-disabled": c || void 0,
|
|
918
|
+
...p,
|
|
919
|
+
"data-disabled": c || void 0,
|
|
920
|
+
"data-divider": f || void 0,
|
|
921
|
+
className: `${we.item} ${n === "compact" ? "type-control-error" : "type-body-default-regular"}`,
|
|
922
|
+
onMouseEnter: () => !c && u(a),
|
|
923
|
+
onClick: () => !c && i?.(o),
|
|
924
|
+
onKeyDown: (e) => m(e, a),
|
|
925
|
+
children: s
|
|
926
|
+
}, o);
|
|
927
|
+
})
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
var H = {
|
|
931
|
+
dropdown: "pcoi-dropdown-Pf3Aj",
|
|
932
|
+
label: "pcoi-label-P4JF0",
|
|
933
|
+
required: "pcoi-required-P8ZmK",
|
|
934
|
+
trigger: "pcoi-trigger-4bo26",
|
|
935
|
+
value: "pcoi-value-m0c5e",
|
|
936
|
+
chevron: "pcoi-chevron-Nqb2i",
|
|
937
|
+
triggerWrap: "pcoi-triggerWrap-pZjBa",
|
|
938
|
+
menuContainer: "pcoi-menuContainer-fStEq",
|
|
939
|
+
helper: "pcoi-helper-tGfea",
|
|
940
|
+
srOnly: "pcoi-srOnly-hEJtT"
|
|
941
|
+
};
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region src/Dropdown/Dropdown.tsx
|
|
944
|
+
function Ee() {
|
|
945
|
+
return /* @__PURE__ */ t("svg", {
|
|
946
|
+
viewBox: "0 0 16 16",
|
|
947
|
+
fill: "none",
|
|
948
|
+
"aria-hidden": "true",
|
|
949
|
+
children: /* @__PURE__ */ t("path", {
|
|
950
|
+
d: "M4 6l4 4 4-4",
|
|
951
|
+
stroke: "currentColor",
|
|
952
|
+
strokeWidth: "1.5",
|
|
953
|
+
strokeLinecap: "round",
|
|
954
|
+
strokeLinejoin: "round"
|
|
955
|
+
})
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
function De() {
|
|
959
|
+
return /* @__PURE__ */ t("svg", {
|
|
960
|
+
viewBox: "0 0 16 16",
|
|
961
|
+
fill: "none",
|
|
962
|
+
"aria-hidden": "true",
|
|
963
|
+
children: /* @__PURE__ */ t("path", {
|
|
964
|
+
d: "M4 10l4-4 4 4",
|
|
965
|
+
stroke: "currentColor",
|
|
966
|
+
strokeWidth: "1.5",
|
|
967
|
+
strokeLinecap: "round",
|
|
968
|
+
strokeLinejoin: "round"
|
|
969
|
+
})
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
function Oe({ label: e, showLabel: r = !0, required: i, options: a, value: o, defaultValue: s, placeholder: c = "Select option", density: l = "default", helperText: u, error: d, errorMessage: f, disabled: p, hovered: m, focused: b, open: x, onChange: S, name: C, id: w, ...T }) {
|
|
973
|
+
let E = _(), D = w ?? E, O = `${D}-helper`, k = `${D}-listbox`, A = o !== void 0, [j, ee] = y(s), M = A ? o : j, [N, te] = y(!1), P = (x ?? N) && !p, F = v(null), ne = v(null), I = a.find((e) => e.value === M), re = d && f ? f : u, L = h((e) => {
|
|
974
|
+
x === void 0 && te(e);
|
|
975
|
+
}, [x]), ie = (e) => {
|
|
976
|
+
A || ee(e), S?.(e), L(!1), ne.current?.focus();
|
|
977
|
+
};
|
|
978
|
+
g(() => {
|
|
979
|
+
if (!N) return;
|
|
980
|
+
let e = (e) => {
|
|
981
|
+
F.current && !F.current.contains(e.target) && L(!1);
|
|
982
|
+
};
|
|
983
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
984
|
+
}, [N, L]);
|
|
985
|
+
let ae = (e) => {
|
|
986
|
+
e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === " " ? (e.preventDefault(), L(!0)) : e.key === "Escape" && L(!1);
|
|
987
|
+
}, oe = (e) => {
|
|
988
|
+
e.key === "Escape" ? (e.preventDefault(), L(!1), ne.current?.focus()) : e.key === "Tab" && L(!1);
|
|
989
|
+
}, se = a.map(({ value: e, label: t, disabled: n, ...r }) => ({
|
|
990
|
+
value: e,
|
|
991
|
+
label: t,
|
|
992
|
+
disabled: n,
|
|
993
|
+
...r
|
|
994
|
+
}));
|
|
995
|
+
return /* @__PURE__ */ n("div", {
|
|
996
|
+
ref: F,
|
|
997
|
+
className: H.dropdown,
|
|
998
|
+
"data-density": l,
|
|
999
|
+
"data-disabled": p || void 0,
|
|
1000
|
+
"data-error": d || void 0,
|
|
1001
|
+
"data-hovered": m || void 0,
|
|
1002
|
+
"data-focused": b || void 0,
|
|
1003
|
+
"data-open": P || void 0,
|
|
1004
|
+
children: [
|
|
1005
|
+
r ? /* @__PURE__ */ n("label", {
|
|
1006
|
+
htmlFor: D,
|
|
1007
|
+
className: `${H.label} type-control-label`,
|
|
1008
|
+
children: [e, i ? /* @__PURE__ */ t("span", {
|
|
1009
|
+
className: H.required,
|
|
1010
|
+
"aria-hidden": "true",
|
|
1011
|
+
children: " *"
|
|
1012
|
+
}) : null]
|
|
1013
|
+
}) : /* @__PURE__ */ t("label", {
|
|
1014
|
+
htmlFor: D,
|
|
1015
|
+
className: H.srOnly,
|
|
1016
|
+
children: e
|
|
1017
|
+
}),
|
|
1018
|
+
/* @__PURE__ */ n("div", {
|
|
1019
|
+
className: H.triggerWrap,
|
|
1020
|
+
children: [/* @__PURE__ */ n("button", {
|
|
1021
|
+
ref: ne,
|
|
1022
|
+
id: D,
|
|
1023
|
+
type: "button",
|
|
1024
|
+
...T,
|
|
1025
|
+
className: H.trigger,
|
|
1026
|
+
disabled: p,
|
|
1027
|
+
role: "combobox",
|
|
1028
|
+
"aria-haspopup": "listbox",
|
|
1029
|
+
"aria-expanded": P,
|
|
1030
|
+
"aria-controls": k,
|
|
1031
|
+
"aria-required": i || void 0,
|
|
1032
|
+
"aria-invalid": d || void 0,
|
|
1033
|
+
"aria-describedby": re ? O : void 0,
|
|
1034
|
+
onClick: () => L(!P),
|
|
1035
|
+
onKeyDown: ae,
|
|
1036
|
+
name: C,
|
|
1037
|
+
children: [/* @__PURE__ */ t("span", {
|
|
1038
|
+
className: `${H.value} ${l === "compact" ? "type-control-error" : "type-body-default-regular"}`,
|
|
1039
|
+
"data-empty": !I || void 0,
|
|
1040
|
+
children: I ? I.label : c
|
|
1041
|
+
}), /* @__PURE__ */ t("span", {
|
|
1042
|
+
className: H.chevron,
|
|
1043
|
+
"aria-hidden": "true",
|
|
1044
|
+
children: t(P ? De : Ee, {})
|
|
1045
|
+
})]
|
|
1046
|
+
}), P ? /* @__PURE__ */ t("div", {
|
|
1047
|
+
className: H.menuContainer,
|
|
1048
|
+
onKeyDown: oe,
|
|
1049
|
+
children: /* @__PURE__ */ t(Te, {
|
|
1050
|
+
id: k,
|
|
1051
|
+
items: se,
|
|
1052
|
+
density: l,
|
|
1053
|
+
selectedValue: M,
|
|
1054
|
+
onSelect: ie,
|
|
1055
|
+
ariaLabel: e,
|
|
1056
|
+
autoFocus: !0
|
|
1057
|
+
})
|
|
1058
|
+
}) : null]
|
|
1059
|
+
}),
|
|
1060
|
+
re ? /* @__PURE__ */ t("p", {
|
|
1061
|
+
id: O,
|
|
1062
|
+
className: `${H.helper} type-control-error`,
|
|
1063
|
+
"data-error": d || void 0,
|
|
1064
|
+
children: re
|
|
1065
|
+
}) : null
|
|
1066
|
+
]
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
var ke = {
|
|
1070
|
+
horizontal: "pcoi-horizontal-c4gI9",
|
|
1071
|
+
vertical: "pcoi-vertical-6-PzH",
|
|
1072
|
+
withLabel: "pcoi-withLabel-LUC1Z",
|
|
1073
|
+
line: "pcoi-line-smS1R",
|
|
1074
|
+
label: "pcoi-label-YN-hW"
|
|
1075
|
+
};
|
|
1076
|
+
//#endregion
|
|
1077
|
+
//#region src/Divider/Divider.tsx
|
|
1078
|
+
function Ae({ variant: e = "horizontal", label: r, ...i }) {
|
|
1079
|
+
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
1080
|
+
...i,
|
|
1081
|
+
className: ke.vertical,
|
|
1082
|
+
role: "separator",
|
|
1083
|
+
"aria-orientation": "vertical"
|
|
1084
|
+
}) : e === "withLabel" ? /* @__PURE__ */ n("div", {
|
|
1085
|
+
...i,
|
|
1086
|
+
className: ke.withLabel,
|
|
1087
|
+
role: "separator",
|
|
1088
|
+
children: [
|
|
1089
|
+
/* @__PURE__ */ t("span", {
|
|
1090
|
+
className: ke.line,
|
|
1091
|
+
"aria-hidden": "true"
|
|
1092
|
+
}),
|
|
1093
|
+
/* @__PURE__ */ t("span", {
|
|
1094
|
+
className: `${ke.label} type-body-sm-regular`,
|
|
1095
|
+
children: r ?? ""
|
|
1096
|
+
}),
|
|
1097
|
+
/* @__PURE__ */ t("span", {
|
|
1098
|
+
className: ke.line,
|
|
1099
|
+
"aria-hidden": "true"
|
|
1100
|
+
})
|
|
1101
|
+
]
|
|
1102
|
+
}) : /* @__PURE__ */ t("hr", {
|
|
1103
|
+
...i,
|
|
1104
|
+
className: ke.horizontal
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region src/CodeBlock/CodeBlock.tsx
|
|
1109
|
+
var je = [
|
|
1110
|
+
{
|
|
1111
|
+
value: "code",
|
|
1112
|
+
label: "Code"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
value: "preview",
|
|
1116
|
+
label: "Preview"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
value: "split",
|
|
1120
|
+
label: "Split"
|
|
1121
|
+
}
|
|
1122
|
+
];
|
|
1123
|
+
function Me({ code: e, preview: r, view: a, defaultView: o = "code", onViewChange: c, layout: l = "centered", codeHeight: u = "180px", previewHeight: d = "120px", hideViewSwitcher: f, ariaLabel: p = "Code example", copyButtonData: m, ...h }) {
|
|
1124
|
+
let g = a !== void 0, [_, v] = y(o), b = g ? a : _, [x, S] = y(!1), C = (e) => {
|
|
1125
|
+
g || v(e), c?.(e);
|
|
1126
|
+
}, w = async () => {
|
|
1127
|
+
try {
|
|
1128
|
+
await navigator.clipboard.writeText(e), S(!0), setTimeout(() => S(!1), 2e3);
|
|
1129
|
+
} catch {}
|
|
1130
|
+
}, T = b === "code" || b === "split", E = b === "preview" || b === "split";
|
|
1131
|
+
return /* @__PURE__ */ n("div", {
|
|
1132
|
+
...h,
|
|
1133
|
+
className: B.codeBlock,
|
|
1134
|
+
"aria-label": p,
|
|
1135
|
+
children: [
|
|
1136
|
+
/* @__PURE__ */ n("div", {
|
|
1137
|
+
className: B.header,
|
|
1138
|
+
children: [f ? /* @__PURE__ */ t("span", {}) : /* @__PURE__ */ t("div", {
|
|
1139
|
+
className: B.switcher,
|
|
1140
|
+
children: /* @__PURE__ */ t(Oe, {
|
|
1141
|
+
label: "View",
|
|
1142
|
+
showLabel: !1,
|
|
1143
|
+
density: "compact",
|
|
1144
|
+
options: je,
|
|
1145
|
+
value: b,
|
|
1146
|
+
onChange: (e) => C(e)
|
|
1147
|
+
})
|
|
1148
|
+
}), /* @__PURE__ */ t(V, {
|
|
1149
|
+
...m,
|
|
1150
|
+
ariaLabel: x ? "Copied!" : "Copy code",
|
|
1151
|
+
icon: t(x ? i : s, {}),
|
|
1152
|
+
onClick: w
|
|
1153
|
+
})]
|
|
1154
|
+
}),
|
|
1155
|
+
T ? /* @__PURE__ */ t("pre", {
|
|
1156
|
+
className: B.codeContent,
|
|
1157
|
+
style: b === "split" && u ? { height: u } : void 0,
|
|
1158
|
+
children: /* @__PURE__ */ t("code", {
|
|
1159
|
+
className: `${B.code} type-mono-code`,
|
|
1160
|
+
children: e
|
|
1161
|
+
})
|
|
1162
|
+
}) : null,
|
|
1163
|
+
T && E ? /* @__PURE__ */ t("div", {
|
|
1164
|
+
className: B.divider,
|
|
1165
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
1166
|
+
}) : null,
|
|
1167
|
+
E ? /* @__PURE__ */ t("div", {
|
|
1168
|
+
className: B.previewSlot,
|
|
1169
|
+
"data-layout": l,
|
|
1170
|
+
style: b === "split" && d ? { height: d } : void 0,
|
|
1171
|
+
children: /* @__PURE__ */ t("div", {
|
|
1172
|
+
className: B.stage,
|
|
1173
|
+
children: r ?? /* @__PURE__ */ t("div", {
|
|
1174
|
+
className: B.placeholderContent,
|
|
1175
|
+
children: /* @__PURE__ */ t("span", {
|
|
1176
|
+
className: `${B.placeholderText} type-body-sm-regular`,
|
|
1177
|
+
children: "Drop component preview here"
|
|
1178
|
+
})
|
|
1179
|
+
})
|
|
1180
|
+
})
|
|
1181
|
+
}) : null
|
|
1182
|
+
]
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
var Ne = { codeInline: "pcoi-codeInline-IUDF2" };
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region src/CodeInline/CodeInline.tsx
|
|
1188
|
+
function Pe({ code: e, children: n, ...r }) {
|
|
1189
|
+
return /* @__PURE__ */ t("code", {
|
|
1190
|
+
...r,
|
|
1191
|
+
className: `${Ne.codeInline} type-mono-badge`,
|
|
1192
|
+
children: n ?? e
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
var Fe = {
|
|
1196
|
+
skeleton: "pcoi-skeleton-4WTt-",
|
|
1197
|
+
"skeleton-shimmer": "pcoi-skeleton-shimmer-9ktBq"
|
|
1198
|
+
};
|
|
1199
|
+
//#endregion
|
|
1200
|
+
//#region src/Skeleton/Skeleton.tsx
|
|
1201
|
+
function Ie({ variant: e = "text", width: n, height: r, ...i }) {
|
|
1202
|
+
let a = {};
|
|
1203
|
+
return n !== void 0 && (a.width = typeof n == "number" ? `${n}px` : n), r !== void 0 && (a.height = typeof r == "number" ? `${r}px` : r), /* @__PURE__ */ t("span", {
|
|
1204
|
+
...i,
|
|
1205
|
+
className: Fe.skeleton,
|
|
1206
|
+
"data-variant": e,
|
|
1207
|
+
role: "status",
|
|
1208
|
+
"aria-label": "Loading",
|
|
1209
|
+
"aria-live": "polite",
|
|
1210
|
+
"aria-busy": "true",
|
|
1211
|
+
style: a
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
var U = {
|
|
1215
|
+
scroll: "pcoi-scroll-R6HZN",
|
|
1216
|
+
table: "pcoi-table-V0t-d",
|
|
1217
|
+
srOnly: "pcoi-srOnly-dOZjD",
|
|
1218
|
+
header: "pcoi-header-AAqGB",
|
|
1219
|
+
headerLabel: "pcoi-headerLabel-x-Obs",
|
|
1220
|
+
headerHighlight: "pcoi-headerHighlight-Dmegb",
|
|
1221
|
+
row: "pcoi-row-rDQjL",
|
|
1222
|
+
rowSelectable: "pcoi-rowSelectable-8m8Zj",
|
|
1223
|
+
cell: "pcoi-cell-TE-LH",
|
|
1224
|
+
cellLabel: "pcoi-cellLabel-xkKhl",
|
|
1225
|
+
cellHighlight: "pcoi-cellHighlight-f8Mfz"
|
|
1226
|
+
}, Le = 4, Re = "a, button, input, select, textarea, [tabindex]";
|
|
1227
|
+
function ze({ headers: e, rows: r, caption: i, loading: a, density: o = "default", onRowSelectionChange: s, staticRows: c, ...l }) {
|
|
1228
|
+
let [u, d] = y(0), f = v([]), p = s !== void 0 && !a && !c, m = (e) => {
|
|
1229
|
+
let t = Math.max(0, Math.min(r.length - 1, e));
|
|
1230
|
+
d(t), f.current[t]?.focus();
|
|
1231
|
+
}, h = (e, t, n) => {
|
|
1232
|
+
let r = e.target.closest(Re);
|
|
1233
|
+
r && r !== e.currentTarget || s?.(t, !n);
|
|
1234
|
+
}, g = (e, t, n) => {
|
|
1235
|
+
if (e.target === e.currentTarget) switch (e.key) {
|
|
1236
|
+
case "Enter":
|
|
1237
|
+
case " ":
|
|
1238
|
+
e.preventDefault(), s?.(t, !n);
|
|
1239
|
+
break;
|
|
1240
|
+
case "ArrowDown":
|
|
1241
|
+
e.preventDefault(), m(t + 1);
|
|
1242
|
+
break;
|
|
1243
|
+
case "ArrowUp":
|
|
1244
|
+
e.preventDefault(), m(t - 1);
|
|
1245
|
+
break;
|
|
1246
|
+
case "Home":
|
|
1247
|
+
e.preventDefault(), m(0);
|
|
1248
|
+
break;
|
|
1249
|
+
case "End":
|
|
1250
|
+
e.preventDefault(), m(r.length - 1);
|
|
1251
|
+
break;
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
return /* @__PURE__ */ t("div", {
|
|
1255
|
+
...l,
|
|
1256
|
+
className: U.scroll,
|
|
1257
|
+
children: /* @__PURE__ */ n("table", {
|
|
1258
|
+
className: U.table,
|
|
1259
|
+
"data-density": o,
|
|
1260
|
+
"data-static-rows": c || void 0,
|
|
1261
|
+
role: p ? "grid" : void 0,
|
|
1262
|
+
"aria-multiselectable": p ? !0 : void 0,
|
|
1263
|
+
children: [
|
|
1264
|
+
i ? /* @__PURE__ */ t("caption", {
|
|
1265
|
+
className: U.srOnly,
|
|
1266
|
+
children: i
|
|
1267
|
+
}) : null,
|
|
1268
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
1269
|
+
/* @__PURE__ */ t("th", {
|
|
1270
|
+
scope: "col",
|
|
1271
|
+
className: `${U.header} ${U.headerLabel} type-control-label`,
|
|
1272
|
+
children: e.feature
|
|
1273
|
+
}),
|
|
1274
|
+
/* @__PURE__ */ t("th", {
|
|
1275
|
+
scope: "col",
|
|
1276
|
+
className: `${U.header} type-control-label`,
|
|
1277
|
+
children: e.competitor
|
|
1278
|
+
}),
|
|
1279
|
+
/* @__PURE__ */ t("th", {
|
|
1280
|
+
scope: "col",
|
|
1281
|
+
className: `${U.header} ${U.headerHighlight} type-control-label`,
|
|
1282
|
+
children: e.pcoi
|
|
1283
|
+
})
|
|
1284
|
+
] }) }),
|
|
1285
|
+
/* @__PURE__ */ t("tbody", { children: a ? Array.from({ length: Le }).map((e, r) => /* @__PURE__ */ n("tr", {
|
|
1286
|
+
className: U.row,
|
|
1287
|
+
children: [
|
|
1288
|
+
/* @__PURE__ */ t("th", {
|
|
1289
|
+
scope: "row",
|
|
1290
|
+
className: `${U.cell} ${U.cellLabel}`,
|
|
1291
|
+
children: /* @__PURE__ */ t(Ie, { variant: "text" })
|
|
1292
|
+
}),
|
|
1293
|
+
/* @__PURE__ */ t("td", {
|
|
1294
|
+
className: U.cell,
|
|
1295
|
+
children: /* @__PURE__ */ t(Ie, { variant: "text" })
|
|
1296
|
+
}),
|
|
1297
|
+
/* @__PURE__ */ t("td", {
|
|
1298
|
+
className: `${U.cell} ${U.cellHighlight}`,
|
|
1299
|
+
children: /* @__PURE__ */ t(Ie, { variant: "text" })
|
|
1300
|
+
})
|
|
1301
|
+
]
|
|
1302
|
+
}, `skeleton-${r}`)) : r.map(({ feature: e, competitor: r, pcoi: i, selected: a, ...o }, s) => /* @__PURE__ */ n("tr", {
|
|
1303
|
+
...o,
|
|
1304
|
+
className: p ? `${U.row} ${U.rowSelectable}` : U.row,
|
|
1305
|
+
"data-selected": a || void 0,
|
|
1306
|
+
...p ? {
|
|
1307
|
+
ref: (e) => {
|
|
1308
|
+
f.current[s] = e;
|
|
1309
|
+
},
|
|
1310
|
+
tabIndex: s === u ? 0 : -1,
|
|
1311
|
+
"aria-selected": !!a,
|
|
1312
|
+
onClick: (e) => h(e, s, a),
|
|
1313
|
+
onKeyDown: (e) => g(e, s, a),
|
|
1314
|
+
onFocus: () => d(s)
|
|
1315
|
+
} : void 0,
|
|
1316
|
+
children: [
|
|
1317
|
+
/* @__PURE__ */ t("th", {
|
|
1318
|
+
scope: "row",
|
|
1319
|
+
className: `${U.cell} ${U.cellLabel} type-body-default-regular`,
|
|
1320
|
+
children: e
|
|
1321
|
+
}),
|
|
1322
|
+
/* @__PURE__ */ t("td", {
|
|
1323
|
+
className: `${U.cell} type-body-compact-regular`,
|
|
1324
|
+
children: Be(r)
|
|
1325
|
+
}),
|
|
1326
|
+
/* @__PURE__ */ t("td", {
|
|
1327
|
+
className: `${U.cell} ${U.cellHighlight} type-body-compact-regular`,
|
|
1328
|
+
children: Be(i)
|
|
1329
|
+
})
|
|
1330
|
+
]
|
|
1331
|
+
}, `${e}-${s}`)) })
|
|
1332
|
+
]
|
|
1333
|
+
})
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
function Be(e) {
|
|
1337
|
+
return e;
|
|
1338
|
+
}
|
|
1339
|
+
var Ve = {
|
|
1340
|
+
formField: "pcoi-formField-9S5-x",
|
|
1341
|
+
label: "pcoi-label-Dgk00",
|
|
1342
|
+
required: "pcoi-required-bAf85",
|
|
1343
|
+
input: "pcoi-input-vtSDc",
|
|
1344
|
+
helper: "pcoi-helper-MEzoZ",
|
|
1345
|
+
srOnly: "pcoi-srOnly-73Ok3"
|
|
1346
|
+
};
|
|
1347
|
+
//#endregion
|
|
1348
|
+
//#region src/FormField/FormField.tsx
|
|
1349
|
+
function He({ label: e, showLabel: r = !0, required: i, error: a, errorMessage: o, helperText: s, disabled: c, hovered: l, focused: u, value: d, defaultValue: f, placeholder: p, onChange: m, name: h, id: g, type: v = "text", inputMode: y, autoComplete: b, ...x }) {
|
|
1350
|
+
let S = _(), C = g ?? S, w = `${C}-helper`, T = (e) => {
|
|
1351
|
+
m?.(e.target.value, e);
|
|
1352
|
+
}, E = a && o ? o : s;
|
|
1353
|
+
return /* @__PURE__ */ n("div", {
|
|
1354
|
+
className: Ve.formField,
|
|
1355
|
+
"data-disabled": c || void 0,
|
|
1356
|
+
"data-error": a || void 0,
|
|
1357
|
+
"data-hovered": l || void 0,
|
|
1358
|
+
"data-focused": u || void 0,
|
|
1359
|
+
children: [
|
|
1360
|
+
r ? /* @__PURE__ */ n("label", {
|
|
1361
|
+
htmlFor: C,
|
|
1362
|
+
className: `${Ve.label} type-control-label`,
|
|
1363
|
+
children: [e, i ? /* @__PURE__ */ t("span", {
|
|
1364
|
+
className: Ve.required,
|
|
1365
|
+
"aria-hidden": "true",
|
|
1366
|
+
children: " *"
|
|
1367
|
+
}) : null]
|
|
1368
|
+
}) : /* @__PURE__ */ t("label", {
|
|
1369
|
+
htmlFor: C,
|
|
1370
|
+
className: Ve.srOnly,
|
|
1371
|
+
children: e
|
|
1372
|
+
}),
|
|
1373
|
+
/* @__PURE__ */ t("input", {
|
|
1374
|
+
...x,
|
|
1375
|
+
id: C,
|
|
1376
|
+
name: h,
|
|
1377
|
+
type: v,
|
|
1378
|
+
className: `${Ve.input} type-body-default-regular`,
|
|
1379
|
+
value: d,
|
|
1380
|
+
defaultValue: f,
|
|
1381
|
+
placeholder: p,
|
|
1382
|
+
disabled: c,
|
|
1383
|
+
required: i,
|
|
1384
|
+
"aria-required": i || void 0,
|
|
1385
|
+
"aria-invalid": a || void 0,
|
|
1386
|
+
"aria-describedby": E ? w : void 0,
|
|
1387
|
+
onChange: T,
|
|
1388
|
+
inputMode: y,
|
|
1389
|
+
autoComplete: b
|
|
1390
|
+
}),
|
|
1391
|
+
E ? /* @__PURE__ */ t("p", {
|
|
1392
|
+
id: w,
|
|
1393
|
+
className: `${Ve.helper} type-control-error`,
|
|
1394
|
+
"data-error": a || void 0,
|
|
1395
|
+
children: E
|
|
1396
|
+
}) : null
|
|
1397
|
+
]
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
var Ue = {
|
|
1401
|
+
formFieldArea: "pcoi-formFieldArea-xhsAY",
|
|
1402
|
+
label: "pcoi-label-wfRQy",
|
|
1403
|
+
required: "pcoi-required-qUydw",
|
|
1404
|
+
textarea: "pcoi-textarea-zQ3V1",
|
|
1405
|
+
helper: "pcoi-helper--KwYe",
|
|
1406
|
+
srOnly: "pcoi-srOnly-SAjYr"
|
|
1407
|
+
};
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region src/FormFieldArea/FormFieldArea.tsx
|
|
1410
|
+
function We({ label: e, showLabel: r = !0, required: i, error: a, errorMessage: o, helperText: s, disabled: c, hovered: l, focused: u, value: d, defaultValue: f, placeholder: p, rows: m = 4, onChange: h, name: g, id: v, maxLength: y, resize: b, ...x }) {
|
|
1411
|
+
let S = _(), C = v ?? S, w = `${C}-helper`, T = (e) => {
|
|
1412
|
+
h?.(e.target.value, e);
|
|
1413
|
+
}, E = a && o ? o : s;
|
|
1414
|
+
return /* @__PURE__ */ n("div", {
|
|
1415
|
+
className: Ue.formFieldArea,
|
|
1416
|
+
"data-disabled": c || void 0,
|
|
1417
|
+
"data-error": a || void 0,
|
|
1418
|
+
"data-hovered": l || void 0,
|
|
1419
|
+
"data-focused": u || void 0,
|
|
1420
|
+
children: [
|
|
1421
|
+
r ? /* @__PURE__ */ n("label", {
|
|
1422
|
+
htmlFor: C,
|
|
1423
|
+
className: `${Ue.label} type-control-label`,
|
|
1424
|
+
children: [e, i ? /* @__PURE__ */ t("span", {
|
|
1425
|
+
className: Ue.required,
|
|
1426
|
+
"aria-hidden": "true",
|
|
1427
|
+
children: " *"
|
|
1428
|
+
}) : null]
|
|
1429
|
+
}) : /* @__PURE__ */ t("label", {
|
|
1430
|
+
htmlFor: C,
|
|
1431
|
+
className: Ue.srOnly,
|
|
1432
|
+
children: e
|
|
1433
|
+
}),
|
|
1434
|
+
/* @__PURE__ */ t("textarea", {
|
|
1435
|
+
...x,
|
|
1436
|
+
id: C,
|
|
1437
|
+
name: g,
|
|
1438
|
+
rows: m,
|
|
1439
|
+
className: `${Ue.textarea} type-body-default-regular`,
|
|
1440
|
+
value: d,
|
|
1441
|
+
defaultValue: f,
|
|
1442
|
+
placeholder: p,
|
|
1443
|
+
disabled: c,
|
|
1444
|
+
required: i,
|
|
1445
|
+
maxLength: y,
|
|
1446
|
+
"aria-required": i || void 0,
|
|
1447
|
+
"aria-invalid": a || void 0,
|
|
1448
|
+
"aria-describedby": E ? w : void 0,
|
|
1449
|
+
onChange: T,
|
|
1450
|
+
style: b ? { resize: b } : void 0
|
|
1451
|
+
}),
|
|
1452
|
+
E ? /* @__PURE__ */ t("p", {
|
|
1453
|
+
id: w,
|
|
1454
|
+
className: `${Ue.helper} type-control-error`,
|
|
1455
|
+
"data-error": a || void 0,
|
|
1456
|
+
children: E
|
|
1457
|
+
}) : null
|
|
1458
|
+
]
|
|
1459
|
+
});
|
|
1460
|
+
}
|
|
1461
|
+
var Ge = {
|
|
1462
|
+
shell: "pcoi-shell-1QuJt",
|
|
1463
|
+
form: "pcoi-form-T-Io-",
|
|
1464
|
+
row: "pcoi-row-vckkw",
|
|
1465
|
+
note: "pcoi-note-0OJeq",
|
|
1466
|
+
srOnly: "pcoi-srOnly-AbYls"
|
|
1467
|
+
};
|
|
1468
|
+
//#endregion
|
|
1469
|
+
//#region src/ContactForm/ContactForm.tsx
|
|
1470
|
+
function Ke({ layout: e = "default", onSubmit: r, submitting: a, disabled: o, success: s = !1, successDurationMs: c = 5e3, ...l }) {
|
|
1471
|
+
let u = v(null), [d, f] = y(!1), [p, m] = y(!1);
|
|
1472
|
+
s !== p && (m(s), f(s)), g(() => {
|
|
1473
|
+
if (!d || (u.current?.reset(), !Number.isFinite(c))) return;
|
|
1474
|
+
let e = setTimeout(() => f(!1), c);
|
|
1475
|
+
return () => clearTimeout(e);
|
|
1476
|
+
}, [d, c]);
|
|
1477
|
+
let h = (e) => {
|
|
1478
|
+
if (e.preventDefault(), a || o || d) return;
|
|
1479
|
+
let t = new FormData(e.currentTarget), n = t.get("role");
|
|
1480
|
+
r({
|
|
1481
|
+
name: String(t.get("name") ?? ""),
|
|
1482
|
+
company: String(t.get("company") ?? ""),
|
|
1483
|
+
email: String(t.get("email") ?? ""),
|
|
1484
|
+
role: n ? String(n) : void 0,
|
|
1485
|
+
message: String(t.get("message") ?? "")
|
|
1486
|
+
});
|
|
1487
|
+
};
|
|
1488
|
+
return /* @__PURE__ */ t(P, {
|
|
1489
|
+
className: Ge.shell,
|
|
1490
|
+
children: /* @__PURE__ */ n("form", {
|
|
1491
|
+
...l,
|
|
1492
|
+
ref: u,
|
|
1493
|
+
className: Ge.form,
|
|
1494
|
+
"data-layout": e,
|
|
1495
|
+
onSubmit: h,
|
|
1496
|
+
noValidate: !0,
|
|
1497
|
+
children: [
|
|
1498
|
+
/* @__PURE__ */ n("div", {
|
|
1499
|
+
className: Ge.row,
|
|
1500
|
+
children: [/* @__PURE__ */ t(He, {
|
|
1501
|
+
label: "Name",
|
|
1502
|
+
name: "name",
|
|
1503
|
+
id: "contact-name",
|
|
1504
|
+
placeholder: "Your name",
|
|
1505
|
+
required: !0,
|
|
1506
|
+
disabled: o,
|
|
1507
|
+
autoComplete: "name"
|
|
1508
|
+
}), /* @__PURE__ */ t(He, {
|
|
1509
|
+
label: "Company",
|
|
1510
|
+
name: "company",
|
|
1511
|
+
id: "contact-company",
|
|
1512
|
+
placeholder: "Company name",
|
|
1513
|
+
required: !0,
|
|
1514
|
+
disabled: o,
|
|
1515
|
+
autoComplete: "organization"
|
|
1516
|
+
})]
|
|
1517
|
+
}),
|
|
1518
|
+
/* @__PURE__ */ n("div", {
|
|
1519
|
+
className: Ge.row,
|
|
1520
|
+
children: [/* @__PURE__ */ t(He, {
|
|
1521
|
+
label: "Email",
|
|
1522
|
+
name: "email",
|
|
1523
|
+
id: "contact-email",
|
|
1524
|
+
type: "email",
|
|
1525
|
+
placeholder: "you@company.com",
|
|
1526
|
+
required: !0,
|
|
1527
|
+
disabled: o,
|
|
1528
|
+
autoComplete: "email"
|
|
1529
|
+
}), /* @__PURE__ */ t(He, {
|
|
1530
|
+
label: "Your role",
|
|
1531
|
+
name: "role",
|
|
1532
|
+
id: "contact-role",
|
|
1533
|
+
placeholder: "CEO, COO, VP Ops, etc.",
|
|
1534
|
+
disabled: o,
|
|
1535
|
+
autoComplete: "organization-title"
|
|
1536
|
+
})]
|
|
1537
|
+
}),
|
|
1538
|
+
/* @__PURE__ */ t(We, {
|
|
1539
|
+
label: "What problem are you trying to solve?",
|
|
1540
|
+
name: "message",
|
|
1541
|
+
id: "contact-message",
|
|
1542
|
+
placeholder: "Tell us about the knowledge challenges...",
|
|
1543
|
+
required: !0,
|
|
1544
|
+
rows: 3,
|
|
1545
|
+
disabled: o
|
|
1546
|
+
}),
|
|
1547
|
+
/* @__PURE__ */ t(A, {
|
|
1548
|
+
style: "primary",
|
|
1549
|
+
size: "large",
|
|
1550
|
+
fullWidth: !0,
|
|
1551
|
+
type: "submit",
|
|
1552
|
+
label: d ? "Message Sent" : "Start the Conversation",
|
|
1553
|
+
startIcon: d ? /* @__PURE__ */ t(i, { size: 16 }) : void 0,
|
|
1554
|
+
success: d,
|
|
1555
|
+
loading: a && !d,
|
|
1556
|
+
disabled: o || a && !d
|
|
1557
|
+
}),
|
|
1558
|
+
/* @__PURE__ */ t("p", {
|
|
1559
|
+
className: `${Ge.note} type-control-label`,
|
|
1560
|
+
children: "No sales automation. A real person reads this and responds personally."
|
|
1561
|
+
}),
|
|
1562
|
+
/* @__PURE__ */ t("span", {
|
|
1563
|
+
role: "status",
|
|
1564
|
+
"aria-live": "polite",
|
|
1565
|
+
className: Ge.srOnly,
|
|
1566
|
+
children: d ? "Message sent" : ""
|
|
1567
|
+
})
|
|
1568
|
+
]
|
|
1569
|
+
})
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
var W = {
|
|
1573
|
+
dataTable: "pcoi-dataTable-REe76",
|
|
1574
|
+
header: "pcoi-header-huSNC",
|
|
1575
|
+
body: "pcoi-body-jnzmb",
|
|
1576
|
+
row: "pcoi-row-fH4Op",
|
|
1577
|
+
dataRow: "pcoi-dataRow-50e7y",
|
|
1578
|
+
headerCell: "pcoi-headerCell-gVd-x",
|
|
1579
|
+
sortButton: "pcoi-sortButton-pdwu3",
|
|
1580
|
+
headerLabel: "pcoi-headerLabel-WmGcT",
|
|
1581
|
+
sortIndicator: "pcoi-sortIndicator-8sWln",
|
|
1582
|
+
cell: "pcoi-cell-O-58D",
|
|
1583
|
+
cellValue: "pcoi-cellValue-mSjsb",
|
|
1584
|
+
feedbackRow: "pcoi-feedbackRow-lvRlz",
|
|
1585
|
+
pagination: "pcoi-pagination-Nqv2R",
|
|
1586
|
+
paginationLabel: "pcoi-paginationLabel-UA3t5",
|
|
1587
|
+
paginationRange: "pcoi-paginationRange-OlMEA",
|
|
1588
|
+
paginationDropdown: "pcoi-paginationDropdown-KrIeN"
|
|
1589
|
+
}, qe = {
|
|
1590
|
+
feedbackState: "pcoi-feedbackState-nq6qh",
|
|
1591
|
+
icon: "pcoi-icon-VDUA8",
|
|
1592
|
+
title: "pcoi-title-1n-Yy",
|
|
1593
|
+
description: "pcoi-description-FqGSI",
|
|
1594
|
+
action: "pcoi-action-VJEdD"
|
|
1595
|
+
};
|
|
1596
|
+
//#endregion
|
|
1597
|
+
//#region src/FeedbackState/FeedbackState.tsx
|
|
1598
|
+
function Je({ type: e = "empty", title: r, description: i, action: a, ...o }) {
|
|
1599
|
+
let s = e === "no-results" || e === "error", c = e === "error" ? m : u, l = e === "error" ? "assertive" : "polite";
|
|
1600
|
+
return /* @__PURE__ */ n("div", {
|
|
1601
|
+
...o,
|
|
1602
|
+
className: qe.feedbackState,
|
|
1603
|
+
"data-type": e,
|
|
1604
|
+
role: e === "error" ? "alert" : "status",
|
|
1605
|
+
"aria-live": l,
|
|
1606
|
+
children: [
|
|
1607
|
+
s ? /* @__PURE__ */ t("span", {
|
|
1608
|
+
className: qe.icon,
|
|
1609
|
+
children: /* @__PURE__ */ t(c, { size: 32 })
|
|
1610
|
+
}) : null,
|
|
1611
|
+
/* @__PURE__ */ t("p", {
|
|
1612
|
+
className: `${qe.title} type-body-sm-regular`,
|
|
1613
|
+
children: r
|
|
1614
|
+
}),
|
|
1615
|
+
i ? /* @__PURE__ */ t("p", {
|
|
1616
|
+
className: `${qe.description} type-body-sm-regular`,
|
|
1617
|
+
children: i
|
|
1618
|
+
}) : null,
|
|
1619
|
+
a ? /* @__PURE__ */ t("div", {
|
|
1620
|
+
className: qe.action,
|
|
1621
|
+
children: a
|
|
1622
|
+
}) : null
|
|
1623
|
+
]
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
//#endregion
|
|
1627
|
+
//#region src/DataTable/DataTable.tsx
|
|
1628
|
+
function Ye({ columns: e, rows: r, mode: i = "static", state: s, density: c = "default", sortColumn: l, sortDirection: u = "none", onSort: m, selectedRowIds: h, getRowId: g, onRowSelectionChange: _, page: v = 1, pageSize: y = 10, totalRows: b, rowsPerPageOptions: x = [
|
|
1629
|
+
10,
|
|
1630
|
+
25,
|
|
1631
|
+
50
|
|
1632
|
+
], onPageChange: S, onPageSizeChange: C, onLoadMore: w, emptyTitle: T = "No data", noResultsTitle: E = "No matches", errorTitle: D = "Something went wrong", errorMessage: O, skeletonRows: k = 5, ariaLabel: j = "Data table", getRowData: ee, ...M }) {
|
|
1633
|
+
let N = s ?? (r.length === 0 ? "no-data" : "default"), te = N === "no-data" || N === "no-results" || N === "error", P = N === "loading" || N === "loading-more", F = N === "default" || N === "loading-more" || N === "error-loading-more", ne = i === "paginated", I = (e) => {
|
|
1634
|
+
if (!e.sortable || !m) return;
|
|
1635
|
+
let t = l === e.id && u === "asc" ? "desc" : "asc";
|
|
1636
|
+
m(e.id, t);
|
|
1637
|
+
}, re = m !== void 0, L = _ !== void 0, ie = new Set(h ?? []), ae = (e, t) => g?.(e, t) ?? String(t), oe = (e, t) => {
|
|
1638
|
+
if (!L) return;
|
|
1639
|
+
let n = ae(e, t);
|
|
1640
|
+
_?.(n, !ie.has(n));
|
|
1641
|
+
}, se = (e, t, n) => {
|
|
1642
|
+
L && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), oe(t, n));
|
|
1643
|
+
}, R = b ?? r.length, ce = R === 0 ? 0 : (v - 1) * y + 1, le = Math.min(v * y, R), ue = y > 0 ? Math.max(1, Math.ceil(R / y)) : 1, de = N === "loading" ? k : N === "loading-more" ? r.length + k : void 0, fe = c === "compact" ? 28 : 44, pe = i === "scroll" && de !== void 0 && de > 0 ? { maxHeight: (de - 1) * fe + fe / 2 } : void 0;
|
|
1644
|
+
return /* @__PURE__ */ n("div", {
|
|
1645
|
+
...M,
|
|
1646
|
+
className: W.dataTable,
|
|
1647
|
+
"data-mode": i,
|
|
1648
|
+
"data-state": N,
|
|
1649
|
+
"data-density": c,
|
|
1650
|
+
role: "region",
|
|
1651
|
+
"aria-label": j,
|
|
1652
|
+
children: [
|
|
1653
|
+
/* @__PURE__ */ t("div", {
|
|
1654
|
+
className: W.header,
|
|
1655
|
+
children: /* @__PURE__ */ t("div", {
|
|
1656
|
+
className: W.row,
|
|
1657
|
+
children: e.map((e) => {
|
|
1658
|
+
let r = !!e.sortable && re, i = r && l === e.id && u !== "none", a = r ? i && u === "asc" ? d : i && u === "desc" ? p : f : null;
|
|
1659
|
+
return /* @__PURE__ */ t("div", {
|
|
1660
|
+
className: W.headerCell,
|
|
1661
|
+
"data-sort": i ? u : r ? "none" : void 0,
|
|
1662
|
+
"data-align": e.align ?? "left",
|
|
1663
|
+
style: e.width === void 0 ? void 0 : {
|
|
1664
|
+
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
1665
|
+
flex: "none"
|
|
1666
|
+
},
|
|
1667
|
+
children: r ? /* @__PURE__ */ n("button", {
|
|
1668
|
+
type: "button",
|
|
1669
|
+
className: W.sortButton,
|
|
1670
|
+
onClick: () => I(e),
|
|
1671
|
+
children: [/* @__PURE__ */ t("span", {
|
|
1672
|
+
className: `${W.headerLabel} type-control-label`,
|
|
1673
|
+
children: e.label
|
|
1674
|
+
}), /* @__PURE__ */ t("span", {
|
|
1675
|
+
className: W.sortIndicator,
|
|
1676
|
+
"data-unsorted": !i || void 0,
|
|
1677
|
+
"aria-hidden": "true",
|
|
1678
|
+
children: a ? /* @__PURE__ */ t(a, { size: 16 }) : null
|
|
1679
|
+
})]
|
|
1680
|
+
}) : /* @__PURE__ */ t("span", {
|
|
1681
|
+
className: `${W.headerLabel} type-control-label`,
|
|
1682
|
+
children: e.label
|
|
1683
|
+
})
|
|
1684
|
+
}, e.id);
|
|
1685
|
+
})
|
|
1686
|
+
})
|
|
1687
|
+
}),
|
|
1688
|
+
/* @__PURE__ */ n("div", {
|
|
1689
|
+
className: W.body,
|
|
1690
|
+
style: pe,
|
|
1691
|
+
children: [
|
|
1692
|
+
F ? r.map((n, r) => {
|
|
1693
|
+
let i = ae(n, r), a = L && ie.has(i);
|
|
1694
|
+
return /* @__PURE__ */ t("div", {
|
|
1695
|
+
...ee?.(n, r),
|
|
1696
|
+
className: `${W.row} ${W.dataRow}`,
|
|
1697
|
+
"data-selected": a || void 0,
|
|
1698
|
+
onClick: L ? () => oe(n, r) : void 0,
|
|
1699
|
+
children: e.map((e) => /* @__PURE__ */ t("div", {
|
|
1700
|
+
className: W.cell,
|
|
1701
|
+
"data-align": e.align ?? "left",
|
|
1702
|
+
tabIndex: 0,
|
|
1703
|
+
onKeyDown: (e) => se(e, n, r),
|
|
1704
|
+
style: e.width === void 0 ? void 0 : {
|
|
1705
|
+
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
1706
|
+
flex: "none"
|
|
1707
|
+
},
|
|
1708
|
+
children: /* @__PURE__ */ t("span", {
|
|
1709
|
+
className: `${W.cellValue} type-body-compact-regular`,
|
|
1710
|
+
children: e.render ? e.render(n) : String(n[e.id])
|
|
1711
|
+
})
|
|
1712
|
+
}, e.id))
|
|
1713
|
+
}, i);
|
|
1714
|
+
}) : null,
|
|
1715
|
+
P ? Array.from({ length: k }).map((n, r) => /* @__PURE__ */ t("div", {
|
|
1716
|
+
className: W.row,
|
|
1717
|
+
"aria-hidden": "true",
|
|
1718
|
+
children: e.map((e) => /* @__PURE__ */ t("div", {
|
|
1719
|
+
className: W.cell,
|
|
1720
|
+
"data-align": e.align ?? "left",
|
|
1721
|
+
style: e.width === void 0 ? void 0 : {
|
|
1722
|
+
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
1723
|
+
flex: "none"
|
|
1724
|
+
},
|
|
1725
|
+
children: /* @__PURE__ */ t(Ie, { variant: "text" })
|
|
1726
|
+
}, e.id))
|
|
1727
|
+
}, `skeleton-${r}`)) : null,
|
|
1728
|
+
te ? /* @__PURE__ */ t("div", {
|
|
1729
|
+
className: W.feedbackRow,
|
|
1730
|
+
children: N === "no-data" ? /* @__PURE__ */ t(Je, {
|
|
1731
|
+
type: "empty",
|
|
1732
|
+
title: T
|
|
1733
|
+
}) : N === "no-results" ? /* @__PURE__ */ t(Je, {
|
|
1734
|
+
type: "no-results",
|
|
1735
|
+
title: E
|
|
1736
|
+
}) : /* @__PURE__ */ t(Je, {
|
|
1737
|
+
type: "error",
|
|
1738
|
+
title: D,
|
|
1739
|
+
description: O
|
|
1740
|
+
})
|
|
1741
|
+
}) : null,
|
|
1742
|
+
N === "error-loading-more" ? /* @__PURE__ */ t("div", {
|
|
1743
|
+
className: W.feedbackRow,
|
|
1744
|
+
children: /* @__PURE__ */ t(Je, {
|
|
1745
|
+
type: "error",
|
|
1746
|
+
title: D,
|
|
1747
|
+
description: O,
|
|
1748
|
+
action: w ? /* @__PURE__ */ t(A, {
|
|
1749
|
+
style: "ghost",
|
|
1750
|
+
size: "small",
|
|
1751
|
+
label: "Retry",
|
|
1752
|
+
onClick: w
|
|
1753
|
+
}) : void 0
|
|
1754
|
+
})
|
|
1755
|
+
}) : null
|
|
1756
|
+
]
|
|
1757
|
+
}),
|
|
1758
|
+
ne ? /* @__PURE__ */ n("div", {
|
|
1759
|
+
className: W.pagination,
|
|
1760
|
+
children: [
|
|
1761
|
+
/* @__PURE__ */ t("span", {
|
|
1762
|
+
className: `${W.paginationLabel} type-body-sm-regular`,
|
|
1763
|
+
children: "Rows per page:"
|
|
1764
|
+
}),
|
|
1765
|
+
/* @__PURE__ */ t("div", {
|
|
1766
|
+
className: W.paginationDropdown,
|
|
1767
|
+
children: /* @__PURE__ */ t(Oe, {
|
|
1768
|
+
label: "Rows per page",
|
|
1769
|
+
showLabel: !1,
|
|
1770
|
+
density: "compact",
|
|
1771
|
+
options: x.map((e) => ({
|
|
1772
|
+
value: String(e),
|
|
1773
|
+
label: String(e)
|
|
1774
|
+
})),
|
|
1775
|
+
value: String(y),
|
|
1776
|
+
onChange: (e) => C?.(Number(e))
|
|
1777
|
+
})
|
|
1778
|
+
}),
|
|
1779
|
+
/* @__PURE__ */ n("span", {
|
|
1780
|
+
className: `${W.paginationRange} type-body-sm-regular`,
|
|
1781
|
+
children: [
|
|
1782
|
+
ce,
|
|
1783
|
+
"–",
|
|
1784
|
+
le,
|
|
1785
|
+
" of ",
|
|
1786
|
+
R
|
|
1787
|
+
]
|
|
1788
|
+
}),
|
|
1789
|
+
/* @__PURE__ */ t(V, {
|
|
1790
|
+
ariaLabel: "Previous page",
|
|
1791
|
+
icon: /* @__PURE__ */ t(a, { size: 24 }),
|
|
1792
|
+
disabled: v <= 1,
|
|
1793
|
+
onClick: () => S?.(Math.max(1, v - 1))
|
|
1794
|
+
}),
|
|
1795
|
+
/* @__PURE__ */ t(V, {
|
|
1796
|
+
ariaLabel: "Next page",
|
|
1797
|
+
icon: /* @__PURE__ */ t(o, { size: 24 }),
|
|
1798
|
+
disabled: v >= ue,
|
|
1799
|
+
onClick: () => S?.(Math.min(ue, v + 1))
|
|
1800
|
+
})
|
|
1801
|
+
]
|
|
1802
|
+
}) : null
|
|
1803
|
+
]
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
var Xe = {
|
|
1807
|
+
documentOverlay: "pcoi-documentOverlay-QPAnW",
|
|
1808
|
+
header: "pcoi-header--u-Vq",
|
|
1809
|
+
title: "pcoi-title-eE76n",
|
|
1810
|
+
actions: "pcoi-actions-nCie8",
|
|
1811
|
+
content: "pcoi-content-ws0QD"
|
|
1812
|
+
};
|
|
1813
|
+
//#endregion
|
|
1814
|
+
//#region src/DocumentOverlay/DocumentOverlay.tsx
|
|
1815
|
+
function Ze() {
|
|
1816
|
+
return /* @__PURE__ */ n("svg", {
|
|
1817
|
+
viewBox: "0 0 24 24",
|
|
1818
|
+
fill: "none",
|
|
1819
|
+
"aria-hidden": "true",
|
|
1820
|
+
children: [/* @__PURE__ */ t("path", {
|
|
1821
|
+
d: "M12 4v12M6 10l6 6 6-6",
|
|
1822
|
+
stroke: "currentColor",
|
|
1823
|
+
strokeWidth: "1.5",
|
|
1824
|
+
strokeLinecap: "round",
|
|
1825
|
+
strokeLinejoin: "round"
|
|
1826
|
+
}), /* @__PURE__ */ t("path", {
|
|
1827
|
+
d: "M5 19h14",
|
|
1828
|
+
stroke: "currentColor",
|
|
1829
|
+
strokeWidth: "1.5",
|
|
1830
|
+
strokeLinecap: "round"
|
|
1831
|
+
})]
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
function Qe() {
|
|
1835
|
+
return /* @__PURE__ */ t("svg", {
|
|
1836
|
+
viewBox: "0 0 24 24",
|
|
1837
|
+
fill: "none",
|
|
1838
|
+
"aria-hidden": "true",
|
|
1839
|
+
children: /* @__PURE__ */ t("path", {
|
|
1840
|
+
d: "M6 6L18 18M18 6L6 18",
|
|
1841
|
+
stroke: "currentColor",
|
|
1842
|
+
strokeWidth: "1.5",
|
|
1843
|
+
strokeLinecap: "round"
|
|
1844
|
+
})
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
function $e({ sourceLabel: e, title: r, children: i, onClose: a, onDownload: o, width: s = 900, height: c = 600, closeButtonData: l, downloadButtonData: u, ...d }) {
|
|
1848
|
+
let f = _(), p = v(null), m = v(null);
|
|
1849
|
+
return g(() => (m.current = document.activeElement, p.current?.focus(), () => {
|
|
1850
|
+
m.current instanceof HTMLElement && m.current.focus();
|
|
1851
|
+
}), []), g(() => {
|
|
1852
|
+
let e = (e) => {
|
|
1853
|
+
e.key === "Escape" && (e.stopPropagation(), a());
|
|
1854
|
+
};
|
|
1855
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
1856
|
+
}, [a]), /* @__PURE__ */ n("div", {
|
|
1857
|
+
...d,
|
|
1858
|
+
ref: p,
|
|
1859
|
+
className: Xe.documentOverlay,
|
|
1860
|
+
role: "dialog",
|
|
1861
|
+
"aria-modal": "true",
|
|
1862
|
+
"aria-labelledby": f,
|
|
1863
|
+
tabIndex: -1,
|
|
1864
|
+
style: {
|
|
1865
|
+
width: typeof s == "number" ? `${s}px` : s,
|
|
1866
|
+
height: typeof c == "number" ? `${c}px` : c
|
|
1867
|
+
},
|
|
1868
|
+
children: [/* @__PURE__ */ n("div", {
|
|
1869
|
+
className: Xe.header,
|
|
1870
|
+
children: [
|
|
1871
|
+
/* @__PURE__ */ t(O, {
|
|
1872
|
+
shape: "pill",
|
|
1873
|
+
variant: "default",
|
|
1874
|
+
label: e
|
|
1875
|
+
}),
|
|
1876
|
+
/* @__PURE__ */ t("h2", {
|
|
1877
|
+
id: f,
|
|
1878
|
+
className: `${Xe.title} type-heading-h3-sm`,
|
|
1879
|
+
children: r
|
|
1880
|
+
}),
|
|
1881
|
+
/* @__PURE__ */ n("div", {
|
|
1882
|
+
className: Xe.actions,
|
|
1883
|
+
children: [o ? /* @__PURE__ */ t(V, {
|
|
1884
|
+
...u,
|
|
1885
|
+
ariaLabel: "Download document",
|
|
1886
|
+
icon: /* @__PURE__ */ t(Ze, {}),
|
|
1887
|
+
onClick: o
|
|
1888
|
+
}) : null, /* @__PURE__ */ t(V, {
|
|
1889
|
+
...l,
|
|
1890
|
+
ariaLabel: "Close",
|
|
1891
|
+
icon: /* @__PURE__ */ t(Qe, {}),
|
|
1892
|
+
onClick: a
|
|
1893
|
+
})]
|
|
1894
|
+
})
|
|
1895
|
+
]
|
|
1896
|
+
}), /* @__PURE__ */ t("div", {
|
|
1897
|
+
className: `${Xe.content} type-body-default-regular`,
|
|
1898
|
+
children: i
|
|
1899
|
+
})]
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
var et = { modalOverlay: "pcoi-modalOverlay-Yx0AW" };
|
|
1903
|
+
//#endregion
|
|
1904
|
+
//#region src/ModalOverlay/ModalOverlay.tsx
|
|
1905
|
+
function tt({ children: e, onClick: n, zIndex: r, ...i }) {
|
|
1906
|
+
let a = (e) => {
|
|
1907
|
+
e.target === e.currentTarget && n?.();
|
|
1908
|
+
};
|
|
1909
|
+
return /* @__PURE__ */ t("div", {
|
|
1910
|
+
...i,
|
|
1911
|
+
className: et.modalOverlay,
|
|
1912
|
+
style: r === void 0 ? void 0 : { zIndex: r },
|
|
1913
|
+
"aria-hidden": "true",
|
|
1914
|
+
onClick: a,
|
|
1915
|
+
children: e
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region src/DocumentOverlayScreen/DocumentOverlayScreen.tsx
|
|
1920
|
+
function nt(e) {
|
|
1921
|
+
return /* @__PURE__ */ t(tt, {
|
|
1922
|
+
onClick: e.onClose,
|
|
1923
|
+
children: /* @__PURE__ */ t($e, { ...e })
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
var rt = { focusGlow: "pcoi-focusGlow-KtsUQ" };
|
|
1927
|
+
//#endregion
|
|
1928
|
+
//#region src/FocusGlow/FocusGlow.tsx
|
|
1929
|
+
function it({ visible: e, ...n }) {
|
|
1930
|
+
return /* @__PURE__ */ t("span", {
|
|
1931
|
+
...n,
|
|
1932
|
+
className: rt.focusGlow,
|
|
1933
|
+
"data-visible": e || void 0,
|
|
1934
|
+
"aria-hidden": "true"
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
var G = {
|
|
1938
|
+
footer: "pcoi-footer-mpGwW",
|
|
1939
|
+
top: "pcoi-top-OYj4L",
|
|
1940
|
+
brand: "pcoi-brand--ZwRI",
|
|
1941
|
+
tagline: "pcoi-tagline-vETPk",
|
|
1942
|
+
links: "pcoi-links-G6BSd",
|
|
1943
|
+
linkItem: "pcoi-linkItem-q3V-K",
|
|
1944
|
+
copyright: "pcoi-copyright-c6BP9"
|
|
1945
|
+
};
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region src/Footer/Footer.tsx
|
|
1948
|
+
function at({ breakpoint: e, tagline: r, links: i, copyright: a, ...o }) {
|
|
1949
|
+
return /* @__PURE__ */ n("footer", {
|
|
1950
|
+
...o,
|
|
1951
|
+
className: G.footer,
|
|
1952
|
+
"aria-label": "Footer navigation",
|
|
1953
|
+
"data-breakpoint": e || void 0,
|
|
1954
|
+
children: [/* @__PURE__ */ n("div", {
|
|
1955
|
+
className: G.top,
|
|
1956
|
+
children: [/* @__PURE__ */ n("div", {
|
|
1957
|
+
className: G.brand,
|
|
1958
|
+
children: [/* @__PURE__ */ t(fe, { mode: "Dark" }), r ? /* @__PURE__ */ t("p", {
|
|
1959
|
+
className: `${G.tagline} type-body-sm-regular`,
|
|
1960
|
+
children: r
|
|
1961
|
+
}) : null]
|
|
1962
|
+
}), /* @__PURE__ */ t("ul", {
|
|
1963
|
+
className: G.links,
|
|
1964
|
+
children: i.map(({ label: e, href: n, ...r }) => /* @__PURE__ */ t("li", {
|
|
1965
|
+
className: G.linkItem,
|
|
1966
|
+
children: /* @__PURE__ */ t(be, {
|
|
1967
|
+
color: "neutral",
|
|
1968
|
+
label: e,
|
|
1969
|
+
href: n,
|
|
1970
|
+
...r
|
|
1971
|
+
})
|
|
1972
|
+
}, n))
|
|
1973
|
+
})]
|
|
1974
|
+
}), /* @__PURE__ */ t("p", {
|
|
1975
|
+
className: `${G.copyright} type-body-sm-regular`,
|
|
1976
|
+
children: a
|
|
1977
|
+
})]
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
var ot = { heroBadge: "pcoi-heroBadge-HpnxV" };
|
|
1981
|
+
//#endregion
|
|
1982
|
+
//#region src/HeroBadge/HeroBadge.tsx
|
|
1983
|
+
function st({ label: e, ariaLabel: n, ...r }) {
|
|
1984
|
+
return /* @__PURE__ */ t("span", {
|
|
1985
|
+
...r,
|
|
1986
|
+
className: `${ot.heroBadge} type-mono-section-label`,
|
|
1987
|
+
"aria-label": n,
|
|
1988
|
+
children: e
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
var K = {
|
|
1992
|
+
heroVisual: "pcoi-heroVisual-5dhL7",
|
|
1993
|
+
svg: "pcoi-svg-ijt-8",
|
|
1994
|
+
ring: "pcoi-ring-jj-f1",
|
|
1995
|
+
core: "pcoi-core-27Icd",
|
|
1996
|
+
coreLabel: "pcoi-coreLabel-MwKXc",
|
|
1997
|
+
pulse: "pcoi-pulse-hOGhU",
|
|
1998
|
+
heroPulse: "pcoi-heroPulse-eJrvO",
|
|
1999
|
+
orbitInner: "pcoi-orbitInner-ckJIO",
|
|
2000
|
+
heroOrbit: "pcoi-heroOrbit-B2PZg",
|
|
2001
|
+
orbitOuter: "pcoi-orbitOuter-6r3xY",
|
|
2002
|
+
nodeCounter: "pcoi-nodeCounter-pFeII",
|
|
2003
|
+
heroCounterOrbit: "pcoi-heroCounterOrbit-ACad-",
|
|
2004
|
+
nodeRect: "pcoi-nodeRect-beKRJ",
|
|
2005
|
+
nodeLabel: "pcoi-nodeLabel-Xfrbi"
|
|
2006
|
+
}, ct = [
|
|
2007
|
+
"SOPs",
|
|
2008
|
+
"Field Notes",
|
|
2009
|
+
"Tribal Knowledge"
|
|
2010
|
+
], lt = [
|
|
2011
|
+
"New Hires",
|
|
2012
|
+
"Lead Techs",
|
|
2013
|
+
"Operations"
|
|
2014
|
+
];
|
|
2015
|
+
function ut({ breakpoint: e = "desktop", innerNodes: r = ct, outerNodes: i = lt, animated: a = !0, ...o }) {
|
|
2016
|
+
let s = ft(210, 210, 130, 3), c = ft(210, 210, 190, 3), l = r.length === 3 ? r : ct, u = i.length === 3 ? i : lt;
|
|
2017
|
+
return /* @__PURE__ */ t("figure", {
|
|
2018
|
+
...o,
|
|
2019
|
+
className: K.heroVisual,
|
|
2020
|
+
"data-breakpoint": e,
|
|
2021
|
+
"data-animated": a || void 0,
|
|
2022
|
+
role: "img",
|
|
2023
|
+
"aria-label": "Company brain illustration: a central core surrounded by inner and outer rings of knowledge sources.",
|
|
2024
|
+
children: /* @__PURE__ */ n("svg", {
|
|
2025
|
+
className: K.svg,
|
|
2026
|
+
viewBox: "0 0 420 420",
|
|
2027
|
+
width: "420",
|
|
2028
|
+
height: "420",
|
|
2029
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2030
|
+
"aria-hidden": "true",
|
|
2031
|
+
focusable: "false",
|
|
2032
|
+
children: [
|
|
2033
|
+
/* @__PURE__ */ t("circle", {
|
|
2034
|
+
cx: 210,
|
|
2035
|
+
cy: 210,
|
|
2036
|
+
r: 190,
|
|
2037
|
+
className: K.ring
|
|
2038
|
+
}),
|
|
2039
|
+
/* @__PURE__ */ t("circle", {
|
|
2040
|
+
cx: 210,
|
|
2041
|
+
cy: 210,
|
|
2042
|
+
r: 130,
|
|
2043
|
+
className: K.ring
|
|
2044
|
+
}),
|
|
2045
|
+
a ? /* @__PURE__ */ t("circle", {
|
|
2046
|
+
cx: 210,
|
|
2047
|
+
cy: 210,
|
|
2048
|
+
r: 74,
|
|
2049
|
+
className: K.pulse
|
|
2050
|
+
}) : null,
|
|
2051
|
+
/* @__PURE__ */ t("circle", {
|
|
2052
|
+
cx: 210,
|
|
2053
|
+
cy: 210,
|
|
2054
|
+
r: 65,
|
|
2055
|
+
className: K.core
|
|
2056
|
+
}),
|
|
2057
|
+
/* @__PURE__ */ t("text", {
|
|
2058
|
+
x: 210,
|
|
2059
|
+
y: 196,
|
|
2060
|
+
textAnchor: "middle",
|
|
2061
|
+
className: `${K.coreLabel} type-control-label`,
|
|
2062
|
+
children: "Your"
|
|
2063
|
+
}),
|
|
2064
|
+
/* @__PURE__ */ t("text", {
|
|
2065
|
+
x: 210,
|
|
2066
|
+
y: 214,
|
|
2067
|
+
textAnchor: "middle",
|
|
2068
|
+
className: `${K.coreLabel} type-control-label`,
|
|
2069
|
+
children: "Company"
|
|
2070
|
+
}),
|
|
2071
|
+
/* @__PURE__ */ t("text", {
|
|
2072
|
+
x: 210,
|
|
2073
|
+
y: 232,
|
|
2074
|
+
textAnchor: "middle",
|
|
2075
|
+
className: `${K.coreLabel} type-control-label`,
|
|
2076
|
+
children: "Brain"
|
|
2077
|
+
}),
|
|
2078
|
+
/* @__PURE__ */ t("g", {
|
|
2079
|
+
className: K.orbitOuter,
|
|
2080
|
+
children: c.map((e, n) => /* @__PURE__ */ t(dt, {
|
|
2081
|
+
x: e.x,
|
|
2082
|
+
y: e.y,
|
|
2083
|
+
label: u[n]
|
|
2084
|
+
}, `outer-${n}`))
|
|
2085
|
+
}),
|
|
2086
|
+
/* @__PURE__ */ t("g", {
|
|
2087
|
+
className: K.orbitInner,
|
|
2088
|
+
children: s.map((e, n) => /* @__PURE__ */ t(dt, {
|
|
2089
|
+
x: e.x,
|
|
2090
|
+
y: e.y,
|
|
2091
|
+
label: l[n]
|
|
2092
|
+
}, `inner-${n}`))
|
|
2093
|
+
})
|
|
2094
|
+
]
|
|
2095
|
+
})
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
function dt({ x: e, y: r, label: i }) {
|
|
2099
|
+
let a = Math.max(48, i.length * 7.2 + 24);
|
|
2100
|
+
return /* @__PURE__ */ t("g", {
|
|
2101
|
+
transform: `translate(${e - a / 2}, ${r - 24 / 2})`,
|
|
2102
|
+
children: /* @__PURE__ */ n("g", {
|
|
2103
|
+
className: K.nodeCounter,
|
|
2104
|
+
children: [/* @__PURE__ */ t("rect", {
|
|
2105
|
+
width: a,
|
|
2106
|
+
height: 24,
|
|
2107
|
+
rx: "6",
|
|
2108
|
+
className: K.nodeRect
|
|
2109
|
+
}), /* @__PURE__ */ t("text", {
|
|
2110
|
+
x: a / 2,
|
|
2111
|
+
y: 16,
|
|
2112
|
+
textAnchor: "middle",
|
|
2113
|
+
className: `${K.nodeLabel} type-mono-orbit-node`,
|
|
2114
|
+
children: i
|
|
2115
|
+
})]
|
|
2116
|
+
})
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
function ft(e, t, n, r) {
|
|
2120
|
+
let i = [], a = -Math.PI / 2;
|
|
2121
|
+
for (let o = 0; o < r; o += 1) {
|
|
2122
|
+
let s = a + o * 2 * Math.PI / r;
|
|
2123
|
+
i.push({
|
|
2124
|
+
x: e + n * Math.cos(s),
|
|
2125
|
+
y: t + n * Math.sin(s)
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
return i;
|
|
2129
|
+
}
|
|
2130
|
+
var pt = {
|
|
2131
|
+
howStep: "pcoi-howStep-qb0JO",
|
|
2132
|
+
badgeSlot: "pcoi-badgeSlot-mZHm5",
|
|
2133
|
+
content: "pcoi-content-0V40d",
|
|
2134
|
+
title: "pcoi-title-VFg0E",
|
|
2135
|
+
description: "pcoi-description-rD3Y5"
|
|
2136
|
+
};
|
|
2137
|
+
//#endregion
|
|
2138
|
+
//#region src/HowStep/HowStep.tsx
|
|
2139
|
+
function mt({ stepNumber: e, title: r, description: i, showDivider: a = !0, ...o }) {
|
|
2140
|
+
return /* @__PURE__ */ n("div", {
|
|
2141
|
+
...o,
|
|
2142
|
+
className: pt.howStep,
|
|
2143
|
+
"data-divider": a || void 0,
|
|
2144
|
+
children: [/* @__PURE__ */ t("div", {
|
|
2145
|
+
className: pt.badgeSlot,
|
|
2146
|
+
children: /* @__PURE__ */ t(O, {
|
|
2147
|
+
shape: "circle",
|
|
2148
|
+
number: e,
|
|
2149
|
+
ariaLabel: `Step ${e}`
|
|
2150
|
+
})
|
|
2151
|
+
}), /* @__PURE__ */ n("div", {
|
|
2152
|
+
className: pt.content,
|
|
2153
|
+
children: [/* @__PURE__ */ t("h3", {
|
|
2154
|
+
className: `${pt.title} type-heading-h3`,
|
|
2155
|
+
children: r
|
|
2156
|
+
}), i ? /* @__PURE__ */ t("p", {
|
|
2157
|
+
className: `${pt.description} type-body-default-regular`,
|
|
2158
|
+
children: i
|
|
2159
|
+
}) : null]
|
|
2160
|
+
})]
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
var q = {
|
|
2164
|
+
learningCurveChart: "pcoi-learningCurveChart-qy1fL",
|
|
2165
|
+
svg: "pcoi-svg-yQKOX",
|
|
2166
|
+
headerText: "pcoi-headerText-0akR-",
|
|
2167
|
+
axis: "pcoi-axis-j-Xde",
|
|
2168
|
+
midline: "pcoi-midline-HZQb9",
|
|
2169
|
+
curveHuman: "pcoi-curveHuman-eo1XY",
|
|
2170
|
+
curveSystem: "pcoi-curveSystem-hWQKS",
|
|
2171
|
+
crossoverDot: "pcoi-crossoverDot-NXwMF",
|
|
2172
|
+
crossoverChip: "pcoi-crossoverChip-co2KW",
|
|
2173
|
+
crossoverText: "pcoi-crossoverText-D-qeM",
|
|
2174
|
+
labelLeftHuman: "pcoi-labelLeftHuman-en-uF",
|
|
2175
|
+
labelRightHuman: "pcoi-labelRightHuman-LAASq",
|
|
2176
|
+
labelLeftSystem: "pcoi-labelLeftSystem-Wc0eA",
|
|
2177
|
+
labelRightSystem: "pcoi-labelRightSystem-sN-bW",
|
|
2178
|
+
weekLabel: "pcoi-weekLabel-sMOtN"
|
|
2179
|
+
};
|
|
2180
|
+
//#endregion
|
|
2181
|
+
//#region src/LearningCurveChart/LearningCurveChart.tsx
|
|
2182
|
+
function ht({ humanLabel: e = "Human", systemLabel: r = "System", ...i }) {
|
|
2183
|
+
return /* @__PURE__ */ t("figure", {
|
|
2184
|
+
...i,
|
|
2185
|
+
className: q.learningCurveChart,
|
|
2186
|
+
"aria-label": `Learning curve chart: ${e} contribution declines as ${r} contribution rises over 16 weeks; the two cross around week 8.`,
|
|
2187
|
+
role: "img",
|
|
2188
|
+
children: /* @__PURE__ */ n("svg", {
|
|
2189
|
+
className: q.svg,
|
|
2190
|
+
viewBox: "0 0 460 280",
|
|
2191
|
+
width: "460",
|
|
2192
|
+
height: "280",
|
|
2193
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2194
|
+
"aria-hidden": "true",
|
|
2195
|
+
focusable: "false",
|
|
2196
|
+
children: [
|
|
2197
|
+
/* @__PURE__ */ t("text", {
|
|
2198
|
+
x: "49",
|
|
2199
|
+
y: "22",
|
|
2200
|
+
className: `${q.headerText} type-control-label`,
|
|
2201
|
+
children: "WHO'S ANSWERING THE QUESTIONS?"
|
|
2202
|
+
}),
|
|
2203
|
+
/* @__PURE__ */ t("line", {
|
|
2204
|
+
x1: "49",
|
|
2205
|
+
y1: "49",
|
|
2206
|
+
x2: "49",
|
|
2207
|
+
y2: "229",
|
|
2208
|
+
className: q.axis
|
|
2209
|
+
}),
|
|
2210
|
+
/* @__PURE__ */ t("line", {
|
|
2211
|
+
x1: "49",
|
|
2212
|
+
y1: "229",
|
|
2213
|
+
x2: "409",
|
|
2214
|
+
y2: "229",
|
|
2215
|
+
className: q.axis
|
|
2216
|
+
}),
|
|
2217
|
+
/* @__PURE__ */ t("line", {
|
|
2218
|
+
x1: "49",
|
|
2219
|
+
y1: "139",
|
|
2220
|
+
x2: "409",
|
|
2221
|
+
y2: "139",
|
|
2222
|
+
className: q.midline
|
|
2223
|
+
}),
|
|
2224
|
+
/* @__PURE__ */ t("path", {
|
|
2225
|
+
d: "M 59,64 C 160,64 300,209 399,209",
|
|
2226
|
+
className: q.curveHuman
|
|
2227
|
+
}),
|
|
2228
|
+
/* @__PURE__ */ t("path", {
|
|
2229
|
+
d: "M 59,209 C 160,209 300,59 399,59",
|
|
2230
|
+
className: q.curveSystem
|
|
2231
|
+
}),
|
|
2232
|
+
/* @__PURE__ */ t("rect", {
|
|
2233
|
+
x: "202",
|
|
2234
|
+
y: "118",
|
|
2235
|
+
width: "54",
|
|
2236
|
+
height: "15",
|
|
2237
|
+
rx: "3",
|
|
2238
|
+
className: q.crossoverChip
|
|
2239
|
+
}),
|
|
2240
|
+
/* @__PURE__ */ t("text", {
|
|
2241
|
+
x: "206",
|
|
2242
|
+
y: "128",
|
|
2243
|
+
className: `${q.crossoverText} type-body-xx-sm-regular`,
|
|
2244
|
+
children: "crossover"
|
|
2245
|
+
}),
|
|
2246
|
+
/* @__PURE__ */ t("circle", {
|
|
2247
|
+
cx: "230",
|
|
2248
|
+
cy: "137",
|
|
2249
|
+
r: "6",
|
|
2250
|
+
className: q.crossoverDot
|
|
2251
|
+
}),
|
|
2252
|
+
/* @__PURE__ */ t("text", {
|
|
2253
|
+
x: "59",
|
|
2254
|
+
y: "55",
|
|
2255
|
+
className: `${q.labelLeftHuman} type-body-xx-sm-regular`,
|
|
2256
|
+
children: e
|
|
2257
|
+
}),
|
|
2258
|
+
/* @__PURE__ */ t("text", {
|
|
2259
|
+
x: "55",
|
|
2260
|
+
y: "222",
|
|
2261
|
+
className: `${q.labelLeftSystem} type-body-x-sm-regular`,
|
|
2262
|
+
children: r
|
|
2263
|
+
}),
|
|
2264
|
+
/* @__PURE__ */ t("text", {
|
|
2265
|
+
x: "405",
|
|
2266
|
+
y: "211",
|
|
2267
|
+
className: `${q.labelRightHuman} type-body-xx-sm-regular`,
|
|
2268
|
+
children: e
|
|
2269
|
+
}),
|
|
2270
|
+
/* @__PURE__ */ t("text", {
|
|
2271
|
+
x: "404",
|
|
2272
|
+
y: "57",
|
|
2273
|
+
className: `${q.labelRightSystem} type-body-xx-sm-regular`,
|
|
2274
|
+
children: r
|
|
2275
|
+
}),
|
|
2276
|
+
/* @__PURE__ */ t("text", {
|
|
2277
|
+
x: "59",
|
|
2278
|
+
y: "249",
|
|
2279
|
+
className: `${q.weekLabel} type-body-xx-sm-regular`,
|
|
2280
|
+
children: "Week 1"
|
|
2281
|
+
}),
|
|
2282
|
+
/* @__PURE__ */ t("text", {
|
|
2283
|
+
x: "204",
|
|
2284
|
+
y: "249",
|
|
2285
|
+
className: `${q.weekLabel} type-body-xx-sm-regular`,
|
|
2286
|
+
children: "Week 8"
|
|
2287
|
+
}),
|
|
2288
|
+
/* @__PURE__ */ t("text", {
|
|
2289
|
+
x: "364",
|
|
2290
|
+
y: "249",
|
|
2291
|
+
className: `${q.weekLabel} type-body-xx-sm-regular`,
|
|
2292
|
+
children: "Week 16"
|
|
2293
|
+
})
|
|
2294
|
+
]
|
|
2295
|
+
})
|
|
2296
|
+
});
|
|
2297
|
+
}
|
|
2298
|
+
var gt = {
|
|
2299
|
+
logoMarkP: "pcoi-logoMarkP-9fKOd",
|
|
2300
|
+
svg: "pcoi-svg-zi2tl",
|
|
2301
|
+
path: "pcoi-path-LBri2"
|
|
2302
|
+
};
|
|
2303
|
+
//#endregion
|
|
2304
|
+
//#region src/LogoMarkP/LogoMarkP.tsx
|
|
2305
|
+
function _t({ mode: e = "Dark", ...n }) {
|
|
2306
|
+
let r = e === "On Accent" ? "on-accent" : e.toLowerCase();
|
|
2307
|
+
return /* @__PURE__ */ t("span", {
|
|
2308
|
+
...n,
|
|
2309
|
+
className: gt.logoMarkP,
|
|
2310
|
+
"data-theme": r,
|
|
2311
|
+
children: /* @__PURE__ */ t("svg", {
|
|
2312
|
+
className: gt.svg,
|
|
2313
|
+
viewBox: "0 0 12 16",
|
|
2314
|
+
role: "img",
|
|
2315
|
+
"aria-label": "P",
|
|
2316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2317
|
+
children: /* @__PURE__ */ t("path", {
|
|
2318
|
+
className: gt.path,
|
|
2319
|
+
d: "M 0 16.01 L 2.87 16.01 L 2.87 10.6 L 5.94 10.6 C 9.64 10.6 11.62 8.37 11.62 5.3 C 11.62 2.25 9.67 0 5.98 0 L 0 0 L 0 16.01 Z M 2.87 8.23 L 2.87 2.41 L 5.54 2.41 C 7.74 2.41 8.69 3.59 8.69 5.3 C 8.69 7.01 7.74 8.23 5.57 8.23 L 2.87 8.23 Z"
|
|
2320
|
+
})
|
|
2321
|
+
})
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
var vt = {
|
|
2325
|
+
metricBlock: "pcoi-metricBlock-R0tM6",
|
|
2326
|
+
value: "pcoi-value-VWRm7",
|
|
2327
|
+
label: "pcoi-label-0HFDZ"
|
|
2328
|
+
};
|
|
2329
|
+
//#endregion
|
|
2330
|
+
//#region src/MetricBlock/MetricBlock.tsx
|
|
2331
|
+
function yt({ value: e, label: r, ...i }) {
|
|
2332
|
+
return /* @__PURE__ */ n("div", {
|
|
2333
|
+
...i,
|
|
2334
|
+
className: vt.metricBlock,
|
|
2335
|
+
children: [/* @__PURE__ */ t("p", {
|
|
2336
|
+
className: `${vt.value} type-mono-code-heading`,
|
|
2337
|
+
children: e
|
|
2338
|
+
}), /* @__PURE__ */ t("p", {
|
|
2339
|
+
className: `${vt.label} type-mono-x-sm`,
|
|
2340
|
+
children: r
|
|
2341
|
+
})]
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
var bt = { metricsRow: "pcoi-metricsRow-Nku8S" };
|
|
2345
|
+
//#endregion
|
|
2346
|
+
//#region src/MetricsRow/MetricsRow.tsx
|
|
2347
|
+
function xt({ metrics: e, ...n }) {
|
|
2348
|
+
return /* @__PURE__ */ t("div", {
|
|
2349
|
+
...n,
|
|
2350
|
+
className: bt.metricsRow,
|
|
2351
|
+
children: e.map((e, n) => /* @__PURE__ */ t(yt, {
|
|
2352
|
+
value: e.value,
|
|
2353
|
+
label: e.label
|
|
2354
|
+
}, n))
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
var St = {
|
|
2358
|
+
modal: "pcoi-modal-gMPgi",
|
|
2359
|
+
title: "pcoi-title-X5UV-",
|
|
2360
|
+
titleText: "pcoi-titleText-OyuDn",
|
|
2361
|
+
content: "pcoi-content-M0tlx",
|
|
2362
|
+
actions: "pcoi-actions-SzSYl"
|
|
2363
|
+
};
|
|
2364
|
+
//#endregion
|
|
2365
|
+
//#region src/Modal/Modal.tsx
|
|
2366
|
+
function Ct() {
|
|
2367
|
+
return /* @__PURE__ */ t("svg", {
|
|
2368
|
+
viewBox: "0 0 24 24",
|
|
2369
|
+
fill: "none",
|
|
2370
|
+
"aria-hidden": "true",
|
|
2371
|
+
children: /* @__PURE__ */ t("path", {
|
|
2372
|
+
d: "M6 6L18 18M18 6L6 18",
|
|
2373
|
+
stroke: "currentColor",
|
|
2374
|
+
strokeWidth: "1.5",
|
|
2375
|
+
strokeLinecap: "round"
|
|
2376
|
+
})
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
function wt({ title: e, children: r, actions: i, onClose: a, width: o = 600, closeButtonData: s, specimen: c, ...l }) {
|
|
2380
|
+
let u = _(), d = v(null), f = v(null);
|
|
2381
|
+
return g(() => {
|
|
2382
|
+
if (!c) return f.current = document.activeElement, d.current?.focus(), () => {
|
|
2383
|
+
f.current instanceof HTMLElement && f.current.focus();
|
|
2384
|
+
};
|
|
2385
|
+
}, [c]), g(() => {
|
|
2386
|
+
if (c) return;
|
|
2387
|
+
let e = (e) => {
|
|
2388
|
+
e.key === "Escape" && (e.stopPropagation(), a());
|
|
2389
|
+
};
|
|
2390
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
2391
|
+
}, [a, c]), /* @__PURE__ */ n("div", {
|
|
2392
|
+
...l,
|
|
2393
|
+
ref: d,
|
|
2394
|
+
className: St.modal,
|
|
2395
|
+
role: "dialog",
|
|
2396
|
+
"aria-modal": c ? void 0 : "true",
|
|
2397
|
+
"aria-labelledby": u,
|
|
2398
|
+
tabIndex: c ? void 0 : -1,
|
|
2399
|
+
style: { width: typeof o == "number" ? `${o}px` : o },
|
|
2400
|
+
children: [
|
|
2401
|
+
/* @__PURE__ */ n("div", {
|
|
2402
|
+
className: St.title,
|
|
2403
|
+
children: [/* @__PURE__ */ t("h2", {
|
|
2404
|
+
id: u,
|
|
2405
|
+
className: `${St.titleText} type-heading-h3-sm`,
|
|
2406
|
+
children: e
|
|
2407
|
+
}), /* @__PURE__ */ t(V, {
|
|
2408
|
+
...s,
|
|
2409
|
+
ariaLabel: "Close",
|
|
2410
|
+
icon: /* @__PURE__ */ t(Ct, {}),
|
|
2411
|
+
onClick: a
|
|
2412
|
+
})]
|
|
2413
|
+
}),
|
|
2414
|
+
/* @__PURE__ */ t("div", {
|
|
2415
|
+
className: `${St.content} type-body-default-regular`,
|
|
2416
|
+
children: r
|
|
2417
|
+
}),
|
|
2418
|
+
i ? /* @__PURE__ */ t("div", {
|
|
2419
|
+
className: St.actions,
|
|
2420
|
+
children: i
|
|
2421
|
+
}) : null
|
|
2422
|
+
]
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
var Tt = {
|
|
2426
|
+
nav: "pcoi-nav-tYxFO",
|
|
2427
|
+
brand: "pcoi-brand-qoPom",
|
|
2428
|
+
links: "pcoi-links-8m0hc",
|
|
2429
|
+
linkItem: "pcoi-linkItem-4MoWJ",
|
|
2430
|
+
actions: "pcoi-actions-9XBGN",
|
|
2431
|
+
hamburger: "pcoi-hamburger-vrAjv"
|
|
2432
|
+
};
|
|
2433
|
+
//#endregion
|
|
2434
|
+
//#region src/Nav/Nav.tsx
|
|
2435
|
+
function Et({ breakpoint: e, links: r, cta: i, scrolled: a, onHamburgerToggle: o, menuOpen: s, menuPanelId: l, ...u }) {
|
|
2436
|
+
return /* @__PURE__ */ n("nav", {
|
|
2437
|
+
...u,
|
|
2438
|
+
className: Tt.nav,
|
|
2439
|
+
"aria-label": "Main navigation",
|
|
2440
|
+
"data-breakpoint": e || void 0,
|
|
2441
|
+
"data-scrolled": a || void 0,
|
|
2442
|
+
children: [
|
|
2443
|
+
/* @__PURE__ */ t("div", {
|
|
2444
|
+
className: Tt.brand,
|
|
2445
|
+
children: /* @__PURE__ */ t(fe, { mode: "Dark" })
|
|
2446
|
+
}),
|
|
2447
|
+
/* @__PURE__ */ t("ul", {
|
|
2448
|
+
className: Tt.links,
|
|
2449
|
+
children: r.map(({ label: e, href: n, ...r }) => /* @__PURE__ */ t("li", {
|
|
2450
|
+
className: Tt.linkItem,
|
|
2451
|
+
children: /* @__PURE__ */ t(be, {
|
|
2452
|
+
color: "neutral",
|
|
2453
|
+
label: e,
|
|
2454
|
+
href: n,
|
|
2455
|
+
...r
|
|
2456
|
+
})
|
|
2457
|
+
}, n))
|
|
2458
|
+
}),
|
|
2459
|
+
/* @__PURE__ */ n("div", {
|
|
2460
|
+
className: Tt.actions,
|
|
2461
|
+
children: [i ? /* @__PURE__ */ t(A, {
|
|
2462
|
+
style: "primary",
|
|
2463
|
+
size: "small",
|
|
2464
|
+
label: i.label,
|
|
2465
|
+
onClick: () => {
|
|
2466
|
+
window.location.href = i.href;
|
|
2467
|
+
}
|
|
2468
|
+
}) : null, /* @__PURE__ */ t("button", {
|
|
2469
|
+
type: "button",
|
|
2470
|
+
className: Tt.hamburger,
|
|
2471
|
+
"aria-expanded": !!s,
|
|
2472
|
+
"aria-controls": l,
|
|
2473
|
+
"aria-label": s ? "Close menu" : "Open menu",
|
|
2474
|
+
onClick: o,
|
|
2475
|
+
children: /* @__PURE__ */ t(c, { size: 24 })
|
|
2476
|
+
})]
|
|
2477
|
+
})
|
|
2478
|
+
]
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
var Dt = {
|
|
2482
|
+
notificationBadge: "pcoi-notificationBadge-WBN4Q",
|
|
2483
|
+
count: "pcoi-count-61ani"
|
|
2484
|
+
};
|
|
2485
|
+
//#endregion
|
|
2486
|
+
//#region src/NotificationBadge/NotificationBadge.tsx
|
|
2487
|
+
function Ot({ count: e, max: n = 99, ariaLabel: r, ...i }) {
|
|
2488
|
+
let a = typeof e == "number" && e > n ? `${n}+` : String(e);
|
|
2489
|
+
return /* @__PURE__ */ t("span", {
|
|
2490
|
+
...i,
|
|
2491
|
+
className: Dt.notificationBadge,
|
|
2492
|
+
role: r ? "status" : void 0,
|
|
2493
|
+
"aria-label": r,
|
|
2494
|
+
"aria-hidden": r ? void 0 : !0,
|
|
2495
|
+
children: /* @__PURE__ */ t("span", {
|
|
2496
|
+
className: `${Dt.count} type-mono-xx-sm`,
|
|
2497
|
+
"aria-hidden": "true",
|
|
2498
|
+
children: a
|
|
2499
|
+
})
|
|
2500
|
+
});
|
|
2501
|
+
}
|
|
2502
|
+
var kt = { pipelineStages: "pcoi-pipelineStages-YpCpD" }, At = {
|
|
2503
|
+
pipelineStageChip: "pcoi-pipelineStageChip-a97ue",
|
|
2504
|
+
segment: "pcoi-segment-PSO2k",
|
|
2505
|
+
label: "pcoi-label-qSa3d"
|
|
2506
|
+
};
|
|
2507
|
+
//#endregion
|
|
2508
|
+
//#region src/PipelineStageChip/PipelineStageChip.tsx
|
|
2509
|
+
function jt({ label: e, state: r = "inactive", ...i }) {
|
|
2510
|
+
return /* @__PURE__ */ n("div", {
|
|
2511
|
+
...i,
|
|
2512
|
+
className: At.pipelineStageChip,
|
|
2513
|
+
"data-state": r,
|
|
2514
|
+
children: [/* @__PURE__ */ t("span", {
|
|
2515
|
+
className: At.segment,
|
|
2516
|
+
"aria-hidden": "true"
|
|
2517
|
+
}), /* @__PURE__ */ t("span", {
|
|
2518
|
+
className: `${At.label} type-mono-x-sm`,
|
|
2519
|
+
children: e
|
|
2520
|
+
})]
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
//#endregion
|
|
2524
|
+
//#region src/PipelineStages/PipelineStages.tsx
|
|
2525
|
+
var Mt = [
|
|
2526
|
+
{
|
|
2527
|
+
label: "SCAN",
|
|
2528
|
+
state: "active"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
label: "BUILD",
|
|
2532
|
+
state: "active"
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
label: "SWEEP",
|
|
2536
|
+
state: "active"
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
label: "REVIEW",
|
|
2540
|
+
state: "active"
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
label: "DONE",
|
|
2544
|
+
state: "active"
|
|
2545
|
+
}
|
|
2546
|
+
];
|
|
2547
|
+
function Nt({ stages: e = Mt, ariaLabel: n, ...r }) {
|
|
2548
|
+
return /* @__PURE__ */ t("div", {
|
|
2549
|
+
...r,
|
|
2550
|
+
className: kt.pipelineStages,
|
|
2551
|
+
role: "group",
|
|
2552
|
+
"aria-label": n,
|
|
2553
|
+
children: e.map((e, n) => /* @__PURE__ */ t(jt, {
|
|
2554
|
+
label: e.label,
|
|
2555
|
+
state: e.state
|
|
2556
|
+
}, `${e.label}-${n}`))
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
var Pt = {
|
|
2560
|
+
pipelineCard: "pcoi-pipelineCard-WM2XD",
|
|
2561
|
+
taskName: "pcoi-taskName-nJfDY",
|
|
2562
|
+
description: "pcoi-description-w4tHR",
|
|
2563
|
+
statusRow: "pcoi-statusRow-c8E-8",
|
|
2564
|
+
badgeSlot: "pcoi-badgeSlot-O40vt",
|
|
2565
|
+
timestamp: "pcoi-timestamp-eGtAU"
|
|
2566
|
+
};
|
|
2567
|
+
//#endregion
|
|
2568
|
+
//#region src/PipelineCard/PipelineCard.tsx
|
|
2569
|
+
function Ft({ state: e, selected: r, taskName: i, description: a, timestamp: o, statusBadge: s, onClick: c, ...l }) {
|
|
2570
|
+
let u = !!c, d = (e) => {
|
|
2571
|
+
u && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), c?.(e));
|
|
2572
|
+
};
|
|
2573
|
+
return /* @__PURE__ */ n("div", {
|
|
2574
|
+
...l,
|
|
2575
|
+
className: Pt.pipelineCard,
|
|
2576
|
+
role: u ? "button" : "group",
|
|
2577
|
+
tabIndex: u ? 0 : void 0,
|
|
2578
|
+
"aria-pressed": u ? !!r : void 0,
|
|
2579
|
+
"aria-label": u ? `${i} — ${a}` : void 0,
|
|
2580
|
+
"data-state": e || void 0,
|
|
2581
|
+
"data-selected": r || void 0,
|
|
2582
|
+
onClick: c,
|
|
2583
|
+
onKeyDown: u ? d : void 0,
|
|
2584
|
+
children: [
|
|
2585
|
+
/* @__PURE__ */ t("h3", {
|
|
2586
|
+
className: `${Pt.taskName} type-mono-code-heading-sm`,
|
|
2587
|
+
children: i
|
|
2588
|
+
}),
|
|
2589
|
+
/* @__PURE__ */ t("p", {
|
|
2590
|
+
className: `${Pt.description} type-body-default-regular`,
|
|
2591
|
+
children: a
|
|
2592
|
+
}),
|
|
2593
|
+
/* @__PURE__ */ t(Nt, { ariaLabel: `Pipeline progress for ${i}` }),
|
|
2594
|
+
/* @__PURE__ */ n("div", {
|
|
2595
|
+
className: Pt.statusRow,
|
|
2596
|
+
children: [s ? /* @__PURE__ */ t("div", {
|
|
2597
|
+
className: Pt.badgeSlot,
|
|
2598
|
+
children: s
|
|
2599
|
+
}) : /* @__PURE__ */ t("span", {}), /* @__PURE__ */ t("span", {
|
|
2600
|
+
className: `${Pt.timestamp} type-mono-x-sm`,
|
|
2601
|
+
children: o
|
|
2602
|
+
})]
|
|
2603
|
+
})
|
|
2604
|
+
]
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
var J = {
|
|
2608
|
+
popover: "pcoi-popover-rY8Ot",
|
|
2609
|
+
container: "pcoi-container-y4SB1",
|
|
2610
|
+
header: "pcoi-header-UI1Ao",
|
|
2611
|
+
title: "pcoi-title-4qyXB",
|
|
2612
|
+
body: "pcoi-body-UJEZf",
|
|
2613
|
+
arrow: "pcoi-arrow-uClo-"
|
|
2614
|
+
};
|
|
2615
|
+
//#endregion
|
|
2616
|
+
//#region src/Popover/Popover.tsx
|
|
2617
|
+
function It() {
|
|
2618
|
+
return /* @__PURE__ */ t("svg", {
|
|
2619
|
+
viewBox: "0 0 24 24",
|
|
2620
|
+
fill: "none",
|
|
2621
|
+
"aria-hidden": "true",
|
|
2622
|
+
children: /* @__PURE__ */ t("path", {
|
|
2623
|
+
d: "M6 6L18 18M18 6L6 18",
|
|
2624
|
+
stroke: "currentColor",
|
|
2625
|
+
strokeWidth: "1.5",
|
|
2626
|
+
strokeLinecap: "round"
|
|
2627
|
+
})
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
var Lt = {
|
|
2631
|
+
top: {
|
|
2632
|
+
w: 12,
|
|
2633
|
+
h: 6,
|
|
2634
|
+
d: "M0 6 L6 0 L12 6"
|
|
2635
|
+
},
|
|
2636
|
+
bottom: {
|
|
2637
|
+
w: 12,
|
|
2638
|
+
h: 6,
|
|
2639
|
+
d: "M0 0 L6 6 L12 0"
|
|
2640
|
+
},
|
|
2641
|
+
left: {
|
|
2642
|
+
w: 6,
|
|
2643
|
+
h: 12,
|
|
2644
|
+
d: "M6 0 L0 6 L6 12"
|
|
2645
|
+
},
|
|
2646
|
+
right: {
|
|
2647
|
+
w: 6,
|
|
2648
|
+
h: 12,
|
|
2649
|
+
d: "M0 0 L6 6 L0 12"
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
function Rt({ placement: e }) {
|
|
2653
|
+
let { w: n, h: r, d: i } = Lt[e];
|
|
2654
|
+
return /* @__PURE__ */ t("svg", {
|
|
2655
|
+
width: n,
|
|
2656
|
+
height: r,
|
|
2657
|
+
viewBox: `0 0 ${n} ${r}`,
|
|
2658
|
+
className: J.arrow,
|
|
2659
|
+
"aria-hidden": "true",
|
|
2660
|
+
children: /* @__PURE__ */ t("path", {
|
|
2661
|
+
d: i,
|
|
2662
|
+
fill: "var(--bg-card)",
|
|
2663
|
+
stroke: "var(--border-card)",
|
|
2664
|
+
strokeWidth: "1"
|
|
2665
|
+
})
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
function zt({ children: e, title: r, placement: i = "none", onClose: a, ariaLabel: o, closeButtonData: s, ...c }) {
|
|
2669
|
+
let l = r !== void 0 || a !== void 0, u = o ?? r, d = /* @__PURE__ */ n("div", {
|
|
2670
|
+
className: J.container,
|
|
2671
|
+
role: u ? "dialog" : "group",
|
|
2672
|
+
"aria-label": u,
|
|
2673
|
+
children: [l ? /* @__PURE__ */ n("div", {
|
|
2674
|
+
className: J.header,
|
|
2675
|
+
children: [r ? /* @__PURE__ */ t("p", {
|
|
2676
|
+
className: `${J.title} type-body-compact-regular`,
|
|
2677
|
+
children: r
|
|
2678
|
+
}) : /* @__PURE__ */ t("span", {}), a ? /* @__PURE__ */ t(V, {
|
|
2679
|
+
...s,
|
|
2680
|
+
ariaLabel: "Close",
|
|
2681
|
+
icon: /* @__PURE__ */ t(It, {}),
|
|
2682
|
+
onClick: a
|
|
2683
|
+
}) : null]
|
|
2684
|
+
}) : null, /* @__PURE__ */ t("div", {
|
|
2685
|
+
className: J.body,
|
|
2686
|
+
children: e
|
|
2687
|
+
})]
|
|
2688
|
+
}), f = i === "none" ? null : /* @__PURE__ */ t(Rt, { placement: i });
|
|
2689
|
+
return /* @__PURE__ */ n("div", {
|
|
2690
|
+
...c,
|
|
2691
|
+
className: J.popover,
|
|
2692
|
+
"data-placement": i,
|
|
2693
|
+
children: [
|
|
2694
|
+
(i === "top" || i === "left") && f,
|
|
2695
|
+
d,
|
|
2696
|
+
(i === "bottom" || i === "right") && f
|
|
2697
|
+
]
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
var Bt = {
|
|
2701
|
+
progressBar: "pcoi-progressBar-MmATR",
|
|
2702
|
+
segment: "pcoi-segment-ouq5T"
|
|
2703
|
+
}, Vt = [
|
|
2704
|
+
"active",
|
|
2705
|
+
"active",
|
|
2706
|
+
"active",
|
|
2707
|
+
"active",
|
|
2708
|
+
"active"
|
|
2709
|
+
];
|
|
2710
|
+
function Ht({ segments: e = Vt, ariaLabel: n, value: r, ...i }) {
|
|
2711
|
+
let a = e.filter((e) => e !== "inactive").length, o = e.length, s = r ?? a / o, c = Math.round(s * 100);
|
|
2712
|
+
return /* @__PURE__ */ t("div", {
|
|
2713
|
+
...i,
|
|
2714
|
+
className: Bt.progressBar,
|
|
2715
|
+
role: "progressbar",
|
|
2716
|
+
"aria-label": n,
|
|
2717
|
+
"aria-valuemin": 0,
|
|
2718
|
+
"aria-valuemax": 100,
|
|
2719
|
+
"aria-valuenow": c,
|
|
2720
|
+
children: e.map((e, n) => /* @__PURE__ */ t("span", {
|
|
2721
|
+
className: Bt.segment,
|
|
2722
|
+
"data-status": e,
|
|
2723
|
+
"aria-hidden": "true"
|
|
2724
|
+
}, n))
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
var Ut = {
|
|
2728
|
+
projectHeader: "pcoi-projectHeader-MisVd",
|
|
2729
|
+
identity: "pcoi-identity-XFz3A",
|
|
2730
|
+
badges: "pcoi-badges-zGBWc"
|
|
2731
|
+
}, Wt = {
|
|
2732
|
+
projectIdentity: "pcoi-projectIdentity-9XbA-",
|
|
2733
|
+
title: "pcoi-title--YrM0"
|
|
2734
|
+
}, Gt = { projectIdentifier: "pcoi-projectIdentifier-4-5fC" };
|
|
2735
|
+
//#endregion
|
|
2736
|
+
//#region src/ProjectIdentifier/ProjectIdentifier.tsx
|
|
2737
|
+
function Kt({ identifier: e, maxWidth: n, ...r }) {
|
|
2738
|
+
let i = {};
|
|
2739
|
+
return n !== void 0 && (i.maxWidth = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ t("span", {
|
|
2740
|
+
...r,
|
|
2741
|
+
className: `${Gt.projectIdentifier} type-mono-badge`,
|
|
2742
|
+
title: e,
|
|
2743
|
+
style: i,
|
|
2744
|
+
children: e
|
|
2745
|
+
});
|
|
2746
|
+
}
|
|
2747
|
+
//#endregion
|
|
2748
|
+
//#region src/ProjectIdentity/ProjectIdentity.tsx
|
|
2749
|
+
function qt({ title: e, identifier: r, layout: i = "stacked", ...a }) {
|
|
2750
|
+
return /* @__PURE__ */ n("div", {
|
|
2751
|
+
...a,
|
|
2752
|
+
className: Wt.projectIdentity,
|
|
2753
|
+
"data-layout": i,
|
|
2754
|
+
children: [/* @__PURE__ */ t("p", {
|
|
2755
|
+
className: `${Wt.title} type-mono-code-heading-sm`,
|
|
2756
|
+
children: e
|
|
2757
|
+
}), /* @__PURE__ */ t(Kt, { identifier: r })]
|
|
2758
|
+
});
|
|
2759
|
+
}
|
|
2760
|
+
//#endregion
|
|
2761
|
+
//#region src/ProjectHeader/ProjectHeader.tsx
|
|
2762
|
+
function Jt({ title: e, identifier: r, badges: i, ...a }) {
|
|
2763
|
+
let o = i && i.length > 0;
|
|
2764
|
+
return /* @__PURE__ */ n("div", {
|
|
2765
|
+
...a,
|
|
2766
|
+
className: Ut.projectHeader,
|
|
2767
|
+
children: [/* @__PURE__ */ t("div", {
|
|
2768
|
+
className: Ut.identity,
|
|
2769
|
+
children: /* @__PURE__ */ t(qt, {
|
|
2770
|
+
title: e,
|
|
2771
|
+
identifier: r,
|
|
2772
|
+
layout: "inline"
|
|
2773
|
+
})
|
|
2774
|
+
}), o ? /* @__PURE__ */ t("div", {
|
|
2775
|
+
className: Ut.badges,
|
|
2776
|
+
children: i.map((e, n) => /* @__PURE__ */ t("span", { children: e }, n))
|
|
2777
|
+
}) : null]
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
var Y = {
|
|
2781
|
+
radio: "pcoi-radio-Yxgmg",
|
|
2782
|
+
control: "pcoi-control-HgNTn",
|
|
2783
|
+
input: "pcoi-input--9Ivj",
|
|
2784
|
+
circle: "pcoi-circle-uED22",
|
|
2785
|
+
dot: "pcoi-dot-8apLZ",
|
|
2786
|
+
label: "pcoi-label-rWxpK",
|
|
2787
|
+
errorMessage: "pcoi-errorMessage-yEuqr"
|
|
2788
|
+
};
|
|
2789
|
+
//#endregion
|
|
2790
|
+
//#region src/Radio/Radio.tsx
|
|
2791
|
+
function Yt({ label: e, value: r, checked: i, defaultChecked: a, disabled: o, error: s, errorMessage: c, showError: l = !0, focused: u, onChange: d, name: f, id: p, ...m }) {
|
|
2792
|
+
let h = (e) => {
|
|
2793
|
+
d?.(e.target.value, e);
|
|
2794
|
+
};
|
|
2795
|
+
return /* @__PURE__ */ n("label", {
|
|
2796
|
+
...m,
|
|
2797
|
+
className: Y.radio,
|
|
2798
|
+
"data-disabled": o || void 0,
|
|
2799
|
+
"data-error": s || void 0,
|
|
2800
|
+
"data-focused": u || void 0,
|
|
2801
|
+
children: [/* @__PURE__ */ n("span", {
|
|
2802
|
+
className: Y.control,
|
|
2803
|
+
children: [
|
|
2804
|
+
/* @__PURE__ */ t("input", {
|
|
2805
|
+
type: "radio",
|
|
2806
|
+
className: Y.input,
|
|
2807
|
+
value: r,
|
|
2808
|
+
checked: i,
|
|
2809
|
+
defaultChecked: a,
|
|
2810
|
+
disabled: o,
|
|
2811
|
+
onChange: h,
|
|
2812
|
+
name: f,
|
|
2813
|
+
id: p,
|
|
2814
|
+
"aria-invalid": s || void 0
|
|
2815
|
+
}),
|
|
2816
|
+
/* @__PURE__ */ t("span", {
|
|
2817
|
+
className: Y.circle,
|
|
2818
|
+
"aria-hidden": "true",
|
|
2819
|
+
children: /* @__PURE__ */ t("span", { className: Y.dot })
|
|
2820
|
+
}),
|
|
2821
|
+
/* @__PURE__ */ t("span", {
|
|
2822
|
+
className: `${Y.label} type-body-default-regular`,
|
|
2823
|
+
children: e
|
|
2824
|
+
})
|
|
2825
|
+
]
|
|
2826
|
+
}), s && l && c ? /* @__PURE__ */ t("span", {
|
|
2827
|
+
className: `${Y.errorMessage} type-control-error`,
|
|
2828
|
+
children: c
|
|
2829
|
+
}) : null]
|
|
2830
|
+
});
|
|
2831
|
+
}
|
|
2832
|
+
var Xt = {
|
|
2833
|
+
radioGroup: "pcoi-radioGroup-KZfSK",
|
|
2834
|
+
legend: "pcoi-legend-4w--w",
|
|
2835
|
+
options: "pcoi-options-A507n",
|
|
2836
|
+
errorMessage: "pcoi-errorMessage-9Nqg5"
|
|
2837
|
+
};
|
|
2838
|
+
//#endregion
|
|
2839
|
+
//#region src/RadioGroup/RadioGroup.tsx
|
|
2840
|
+
function Zt({ label: e, options: r, name: i, value: a, defaultValue: o, disabled: s, error: c, errorMessage: l, onChange: u, children: d, ...f }) {
|
|
2841
|
+
let p = (e, t) => {
|
|
2842
|
+
u?.(e, t);
|
|
2843
|
+
}, m = `${i}-legend`, h = `${i}-error`;
|
|
2844
|
+
return /* @__PURE__ */ n("div", {
|
|
2845
|
+
...f,
|
|
2846
|
+
className: Xt.radioGroup,
|
|
2847
|
+
role: "radiogroup",
|
|
2848
|
+
"data-disabled": s || void 0,
|
|
2849
|
+
"data-error": c || void 0,
|
|
2850
|
+
"aria-labelledby": m,
|
|
2851
|
+
"aria-disabled": s || void 0,
|
|
2852
|
+
"aria-invalid": c || void 0,
|
|
2853
|
+
"aria-describedby": c && l ? h : void 0,
|
|
2854
|
+
children: [
|
|
2855
|
+
/* @__PURE__ */ t("span", {
|
|
2856
|
+
id: m,
|
|
2857
|
+
className: `${Xt.legend} type-control-label`,
|
|
2858
|
+
children: e
|
|
2859
|
+
}),
|
|
2860
|
+
/* @__PURE__ */ t("div", {
|
|
2861
|
+
className: Xt.options,
|
|
2862
|
+
children: d ?? r.map((e) => {
|
|
2863
|
+
let { value: n, label: r, disabled: l, ...u } = e;
|
|
2864
|
+
return /* @__PURE__ */ t(Yt, {
|
|
2865
|
+
label: r,
|
|
2866
|
+
value: n,
|
|
2867
|
+
name: i,
|
|
2868
|
+
checked: a === void 0 ? void 0 : a === n,
|
|
2869
|
+
defaultChecked: o === void 0 ? void 0 : o === n,
|
|
2870
|
+
disabled: s || l,
|
|
2871
|
+
error: c,
|
|
2872
|
+
showError: !1,
|
|
2873
|
+
onChange: (e, t) => p(n, t),
|
|
2874
|
+
...u
|
|
2875
|
+
}, n);
|
|
2876
|
+
})
|
|
2877
|
+
}),
|
|
2878
|
+
c && l ? /* @__PURE__ */ t("p", {
|
|
2879
|
+
className: `${Xt.errorMessage} type-control-error`,
|
|
2880
|
+
id: h,
|
|
2881
|
+
children: l
|
|
2882
|
+
}) : null
|
|
2883
|
+
]
|
|
2884
|
+
});
|
|
2885
|
+
}
|
|
2886
|
+
var Qt = {
|
|
2887
|
+
sectionHeader: "pcoi-sectionHeader-qUkBp",
|
|
2888
|
+
label: "pcoi-label-OeslB",
|
|
2889
|
+
title: "pcoi-title-k-wSn",
|
|
2890
|
+
paragraph: "pcoi-paragraph-nPChd",
|
|
2891
|
+
paragraphs: "pcoi-paragraphs-t29aW"
|
|
2892
|
+
};
|
|
2893
|
+
//#endregion
|
|
2894
|
+
//#region src/SectionHeader/SectionHeader.tsx
|
|
2895
|
+
function $t({ paragraphs: e, paragraph1: t, paragraph2: n, paragraph3: r, paragraph4: i }) {
|
|
2896
|
+
if (Array.isArray(e)) return e.filter(Boolean);
|
|
2897
|
+
let a = e ?? 0;
|
|
2898
|
+
return [
|
|
2899
|
+
t,
|
|
2900
|
+
n,
|
|
2901
|
+
r,
|
|
2902
|
+
i
|
|
2903
|
+
].slice(0, a).filter((e) => !!e);
|
|
2904
|
+
}
|
|
2905
|
+
function en({ align: e = "left", showLabel: r, label: i, showTitle: a = !0, title: o, paragraphs: s = 0, paragraph1: c, paragraph2: l, paragraph3: u, paragraph4: d, headingLevel: f = 2, ...p }) {
|
|
2906
|
+
let m = `h${f}`, h = $t({
|
|
2907
|
+
paragraphs: s,
|
|
2908
|
+
paragraph1: c,
|
|
2909
|
+
paragraph2: l,
|
|
2910
|
+
paragraph3: u,
|
|
2911
|
+
paragraph4: d
|
|
2912
|
+
}), g = r ?? !!i, _ = a && !!o;
|
|
2913
|
+
return /* @__PURE__ */ n("div", {
|
|
2914
|
+
...p,
|
|
2915
|
+
className: Qt.sectionHeader,
|
|
2916
|
+
"data-align": e,
|
|
2917
|
+
children: [
|
|
2918
|
+
g ? /* @__PURE__ */ t("p", {
|
|
2919
|
+
className: `${Qt.label} type-mono-section-label`,
|
|
2920
|
+
"aria-hidden": "true",
|
|
2921
|
+
children: i
|
|
2922
|
+
}) : null,
|
|
2923
|
+
_ ? /* @__PURE__ */ t(m, {
|
|
2924
|
+
className: `${Qt.title} type-heading-h1`,
|
|
2925
|
+
children: o
|
|
2926
|
+
}) : null,
|
|
2927
|
+
h.length > 0 ? /* @__PURE__ */ t("div", {
|
|
2928
|
+
className: Qt.paragraphs,
|
|
2929
|
+
children: h.map((e, n) => /* @__PURE__ */ t("p", {
|
|
2930
|
+
className: `${Qt.paragraph} type-body-default-regular`,
|
|
2931
|
+
children: e
|
|
2932
|
+
}, n))
|
|
2933
|
+
}) : null
|
|
2934
|
+
]
|
|
2935
|
+
});
|
|
2936
|
+
}
|
|
2937
|
+
var X = {
|
|
2938
|
+
sidebarNav: "pcoi-sidebarNav-2lxF-",
|
|
2939
|
+
dashboard: "pcoi-dashboard--tjia",
|
|
2940
|
+
dashboardIcon: "pcoi-dashboardIcon-wP8Nj",
|
|
2941
|
+
divider: "pcoi-divider-aSHJe",
|
|
2942
|
+
item: "pcoi-item--YdOr",
|
|
2943
|
+
itemLabel: "pcoi-itemLabel-qDw-z",
|
|
2944
|
+
badge: "pcoi-badge-0owja",
|
|
2945
|
+
spacer: "pcoi-spacer-XvU0A"
|
|
2946
|
+
};
|
|
2947
|
+
//#endregion
|
|
2948
|
+
//#region src/SidebarNav/SidebarNav.tsx
|
|
2949
|
+
function tn() {
|
|
2950
|
+
return /* @__PURE__ */ n("svg", {
|
|
2951
|
+
viewBox: "0 0 24 24",
|
|
2952
|
+
fill: "none",
|
|
2953
|
+
"aria-hidden": "true",
|
|
2954
|
+
children: [
|
|
2955
|
+
/* @__PURE__ */ t("rect", {
|
|
2956
|
+
x: "4",
|
|
2957
|
+
y: "4",
|
|
2958
|
+
width: "7",
|
|
2959
|
+
height: "7",
|
|
2960
|
+
rx: "1",
|
|
2961
|
+
stroke: "currentColor",
|
|
2962
|
+
strokeWidth: "1.5"
|
|
2963
|
+
}),
|
|
2964
|
+
/* @__PURE__ */ t("rect", {
|
|
2965
|
+
x: "13",
|
|
2966
|
+
y: "4",
|
|
2967
|
+
width: "7",
|
|
2968
|
+
height: "7",
|
|
2969
|
+
rx: "1",
|
|
2970
|
+
stroke: "currentColor",
|
|
2971
|
+
strokeWidth: "1.5"
|
|
2972
|
+
}),
|
|
2973
|
+
/* @__PURE__ */ t("rect", {
|
|
2974
|
+
x: "4",
|
|
2975
|
+
y: "13",
|
|
2976
|
+
width: "7",
|
|
2977
|
+
height: "7",
|
|
2978
|
+
rx: "1",
|
|
2979
|
+
stroke: "currentColor",
|
|
2980
|
+
strokeWidth: "1.5"
|
|
2981
|
+
}),
|
|
2982
|
+
/* @__PURE__ */ t("rect", {
|
|
2983
|
+
x: "13",
|
|
2984
|
+
y: "13",
|
|
2985
|
+
width: "7",
|
|
2986
|
+
height: "7",
|
|
2987
|
+
rx: "1",
|
|
2988
|
+
stroke: "currentColor",
|
|
2989
|
+
strokeWidth: "1.5"
|
|
2990
|
+
})
|
|
2991
|
+
]
|
|
2992
|
+
});
|
|
2993
|
+
}
|
|
2994
|
+
function nn({ dashboard: e, items: r, actions: i, ariaLabel: a = "Primary navigation", ...o }) {
|
|
2995
|
+
return /* @__PURE__ */ n("nav", {
|
|
2996
|
+
...o,
|
|
2997
|
+
className: X.sidebarNav,
|
|
2998
|
+
"aria-label": a,
|
|
2999
|
+
children: [
|
|
3000
|
+
e ? /* @__PURE__ */ n("button", {
|
|
3001
|
+
type: "button",
|
|
3002
|
+
className: X.dashboard,
|
|
3003
|
+
"aria-label": e.ariaLabel ?? "Dashboard",
|
|
3004
|
+
onClick: e.onClick,
|
|
3005
|
+
children: [/* @__PURE__ */ t("span", {
|
|
3006
|
+
className: X.dashboardIcon,
|
|
3007
|
+
children: /* @__PURE__ */ t(tn, {})
|
|
3008
|
+
}), e.notificationCount === void 0 ? null : /* @__PURE__ */ t("span", {
|
|
3009
|
+
className: X.badge,
|
|
3010
|
+
children: /* @__PURE__ */ t(Ot, { count: e.notificationCount })
|
|
3011
|
+
})]
|
|
3012
|
+
}) : null,
|
|
3013
|
+
e && r.length > 0 ? /* @__PURE__ */ t("span", {
|
|
3014
|
+
className: X.divider,
|
|
3015
|
+
"aria-hidden": "true"
|
|
3016
|
+
}) : null,
|
|
3017
|
+
r.map((e, r) => {
|
|
3018
|
+
let { label: i, active: a, notificationCount: o, ariaLabel: s, onClick: c, ...l } = e;
|
|
3019
|
+
return /* @__PURE__ */ n("button", {
|
|
3020
|
+
type: "button",
|
|
3021
|
+
...l,
|
|
3022
|
+
className: X.item,
|
|
3023
|
+
"data-active": a || void 0,
|
|
3024
|
+
"aria-current": a ? "page" : void 0,
|
|
3025
|
+
"aria-label": s ?? i,
|
|
3026
|
+
onClick: c,
|
|
3027
|
+
children: [/* @__PURE__ */ t("span", {
|
|
3028
|
+
className: `${X.itemLabel} type-control-button-nav`,
|
|
3029
|
+
children: i
|
|
3030
|
+
}), o === void 0 ? null : /* @__PURE__ */ t("span", {
|
|
3031
|
+
className: X.badge,
|
|
3032
|
+
children: /* @__PURE__ */ t(Ot, { count: o })
|
|
3033
|
+
})]
|
|
3034
|
+
}, `${i}-${r}`);
|
|
3035
|
+
}),
|
|
3036
|
+
i && i.length > 0 ? /* @__PURE__ */ t("span", {
|
|
3037
|
+
className: X.spacer,
|
|
3038
|
+
"aria-hidden": "true"
|
|
3039
|
+
}) : null,
|
|
3040
|
+
i?.map(({ ariaLabel: e, icon: n, onClick: r, ...i }, a) => /* @__PURE__ */ t(V, {
|
|
3041
|
+
ariaLabel: e,
|
|
3042
|
+
icon: n,
|
|
3043
|
+
onClick: r,
|
|
3044
|
+
...i
|
|
3045
|
+
}, a))
|
|
3046
|
+
]
|
|
3047
|
+
});
|
|
3048
|
+
}
|
|
3049
|
+
var Z = {
|
|
3050
|
+
stepper: "pcoi-stepper-Ex6cT",
|
|
3051
|
+
cell: "pcoi-cell-SFXLC",
|
|
3052
|
+
connector: "pcoi-connector-JaKhI",
|
|
3053
|
+
step: "pcoi-step-JTnoH",
|
|
3054
|
+
indicator: "pcoi-indicator-LXTk4",
|
|
3055
|
+
icon: "pcoi-icon-Pwrh1",
|
|
3056
|
+
dot: "pcoi-dot-QH99R",
|
|
3057
|
+
"stepper-pulse": "pcoi-stepper-pulse-xrVnS",
|
|
3058
|
+
label: "pcoi-label-z1OnD"
|
|
3059
|
+
};
|
|
3060
|
+
//#endregion
|
|
3061
|
+
//#region src/Stepper/Stepper.tsx
|
|
3062
|
+
function rn() {
|
|
3063
|
+
return /* @__PURE__ */ t("svg", {
|
|
3064
|
+
viewBox: "0 0 24 24",
|
|
3065
|
+
fill: "none",
|
|
3066
|
+
"aria-hidden": "true",
|
|
3067
|
+
children: /* @__PURE__ */ t("path", {
|
|
3068
|
+
d: "M5 13l4 4L19 7",
|
|
3069
|
+
stroke: "currentColor",
|
|
3070
|
+
strokeWidth: "2",
|
|
3071
|
+
strokeLinecap: "round",
|
|
3072
|
+
strokeLinejoin: "round"
|
|
3073
|
+
})
|
|
3074
|
+
});
|
|
3075
|
+
}
|
|
3076
|
+
function an() {
|
|
3077
|
+
return /* @__PURE__ */ t("svg", {
|
|
3078
|
+
viewBox: "0 0 24 24",
|
|
3079
|
+
fill: "none",
|
|
3080
|
+
"aria-hidden": "true",
|
|
3081
|
+
children: /* @__PURE__ */ t("path", {
|
|
3082
|
+
d: "M7 7l10 10M17 7l-10 10",
|
|
3083
|
+
stroke: "currentColor",
|
|
3084
|
+
strokeWidth: "2",
|
|
3085
|
+
strokeLinecap: "round"
|
|
3086
|
+
})
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
function on({ steps: e, ariaLabel: r, ...i }) {
|
|
3090
|
+
return /* @__PURE__ */ t("ol", {
|
|
3091
|
+
...i,
|
|
3092
|
+
className: Z.stepper,
|
|
3093
|
+
"aria-label": r,
|
|
3094
|
+
children: e.map((r, i) => {
|
|
3095
|
+
let a = i > 0 ? e[i - 1] : null, o = a ? a.state === "complete" ? "success" : a.state === "error" ? "error" : "inactive" : null;
|
|
3096
|
+
return /* @__PURE__ */ n("li", {
|
|
3097
|
+
className: Z.cell,
|
|
3098
|
+
"aria-current": r.state === "active" ? "step" : void 0,
|
|
3099
|
+
children: [o ? /* @__PURE__ */ t("span", {
|
|
3100
|
+
className: Z.connector,
|
|
3101
|
+
"data-state": o,
|
|
3102
|
+
"aria-hidden": "true"
|
|
3103
|
+
}) : null, /* @__PURE__ */ n("div", {
|
|
3104
|
+
className: Z.step,
|
|
3105
|
+
children: [/* @__PURE__ */ n("span", {
|
|
3106
|
+
className: Z.indicator,
|
|
3107
|
+
"data-state": r.state,
|
|
3108
|
+
children: [
|
|
3109
|
+
r.state === "complete" ? /* @__PURE__ */ t("span", {
|
|
3110
|
+
className: Z.icon,
|
|
3111
|
+
children: /* @__PURE__ */ t(rn, {})
|
|
3112
|
+
}) : null,
|
|
3113
|
+
r.state === "active" ? /* @__PURE__ */ t("span", { className: Z.dot }) : null,
|
|
3114
|
+
r.state === "error" ? /* @__PURE__ */ t("span", {
|
|
3115
|
+
className: Z.icon,
|
|
3116
|
+
children: /* @__PURE__ */ t(an, {})
|
|
3117
|
+
}) : null
|
|
3118
|
+
]
|
|
3119
|
+
}), /* @__PURE__ */ t("span", {
|
|
3120
|
+
className: `${Z.label} type-mono-section-label`,
|
|
3121
|
+
children: r.label
|
|
3122
|
+
})]
|
|
3123
|
+
})]
|
|
3124
|
+
}, `${r.label}-${i}`);
|
|
3125
|
+
})
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
3128
|
+
var sn = {
|
|
3129
|
+
tabToggle: "pcoi-tabToggle-TPoUP",
|
|
3130
|
+
tab: "pcoi-tab-9MqUY",
|
|
3131
|
+
label: "pcoi-label-MI9ME"
|
|
3132
|
+
};
|
|
3133
|
+
//#endregion
|
|
3134
|
+
//#region src/TabToggle/TabToggle.tsx
|
|
3135
|
+
function cn({ tabs: e, value: n, defaultValue: r, ariaLabel: i, onChange: a, focused: o, ...s }) {
|
|
3136
|
+
let c = n !== void 0, [l, u] = y(r ?? e[0].value), d = c ? n : l, f = v([]), p = _(), m = (e) => {
|
|
3137
|
+
c || u(e), a?.(e);
|
|
3138
|
+
}, h = (t, n) => {
|
|
3139
|
+
if (t.key === "ArrowRight" || t.key === "ArrowLeft") {
|
|
3140
|
+
t.preventDefault();
|
|
3141
|
+
let r = (n + (t.key === "ArrowRight" ? 1 : -1) + e.length) % e.length, i = e[r];
|
|
3142
|
+
m(i.value), f.current[r]?.focus();
|
|
3143
|
+
}
|
|
3144
|
+
};
|
|
3145
|
+
return /* @__PURE__ */ t("div", {
|
|
3146
|
+
...s,
|
|
3147
|
+
className: sn.tabToggle,
|
|
3148
|
+
role: "tablist",
|
|
3149
|
+
"aria-label": i,
|
|
3150
|
+
"data-focused": o || void 0,
|
|
3151
|
+
children: e.map((e, n) => {
|
|
3152
|
+
let { value: r, label: i, controls: a, ...o } = e, s = r === d;
|
|
3153
|
+
return /* @__PURE__ */ t("button", {
|
|
3154
|
+
ref: (e) => {
|
|
3155
|
+
f.current[n] = e;
|
|
3156
|
+
},
|
|
3157
|
+
type: "button",
|
|
3158
|
+
role: "tab",
|
|
3159
|
+
id: `${p}-tab-${r}`,
|
|
3160
|
+
...o,
|
|
3161
|
+
className: sn.tab,
|
|
3162
|
+
"data-active": s || void 0,
|
|
3163
|
+
"aria-selected": s,
|
|
3164
|
+
"aria-controls": a,
|
|
3165
|
+
tabIndex: s ? 0 : -1,
|
|
3166
|
+
onClick: () => m(r),
|
|
3167
|
+
onKeyDown: (e) => h(e, n),
|
|
3168
|
+
children: /* @__PURE__ */ t("span", {
|
|
3169
|
+
className: `${sn.label} ${s ? "type-control-nav" : "type-body-sm-regular"}`,
|
|
3170
|
+
children: i
|
|
3171
|
+
})
|
|
3172
|
+
}, r);
|
|
3173
|
+
})
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
var Q = {
|
|
3177
|
+
taskDetailPanel: "pcoi-taskDetailPanel-Zjlb-",
|
|
3178
|
+
header: "pcoi-header-ie6I9",
|
|
3179
|
+
headerIdentity: "pcoi-headerIdentity-iFGbK",
|
|
3180
|
+
headerRight: "pcoi-headerRight-z-Krm",
|
|
3181
|
+
taskInfo: "pcoi-taskInfo-K7wLp",
|
|
3182
|
+
taskLabel: "pcoi-taskLabel-bHuMt",
|
|
3183
|
+
taskDescription: "pcoi-taskDescription-6nKMK",
|
|
3184
|
+
taskStatus: "pcoi-taskStatus-ruUqX",
|
|
3185
|
+
actions: "pcoi-actions-uTuS5"
|
|
3186
|
+
};
|
|
3187
|
+
//#endregion
|
|
3188
|
+
//#region src/TaskDetailPanel/TaskDetailPanel.tsx
|
|
3189
|
+
function ln() {
|
|
3190
|
+
return /* @__PURE__ */ t("svg", {
|
|
3191
|
+
viewBox: "0 0 16 16",
|
|
3192
|
+
fill: "none",
|
|
3193
|
+
"aria-hidden": "true",
|
|
3194
|
+
children: /* @__PURE__ */ t("path", {
|
|
3195
|
+
d: "M4 4L12 12M12 4L4 12",
|
|
3196
|
+
stroke: "currentColor",
|
|
3197
|
+
strokeWidth: "1.5",
|
|
3198
|
+
strokeLinecap: "round"
|
|
3199
|
+
})
|
|
3200
|
+
});
|
|
3201
|
+
}
|
|
3202
|
+
function un({ projectTitle: e, projectIdentifier: r, tabs: i, activeTab: a, onTabChange: o, onClose: s, taskLabel: c, taskDescription: l, taskStatus: u, taskSeverity: d = "none", actions: f, metrics: p, agents: m, closeButtonData: h, ...g }) {
|
|
3203
|
+
return /* @__PURE__ */ n("aside", {
|
|
3204
|
+
...g,
|
|
3205
|
+
className: Q.taskDetailPanel,
|
|
3206
|
+
"aria-label": `Task detail: ${e}`,
|
|
3207
|
+
children: [
|
|
3208
|
+
/* @__PURE__ */ n("div", {
|
|
3209
|
+
className: Q.header,
|
|
3210
|
+
children: [/* @__PURE__ */ t("div", {
|
|
3211
|
+
className: Q.headerIdentity,
|
|
3212
|
+
children: /* @__PURE__ */ t(qt, {
|
|
3213
|
+
title: e,
|
|
3214
|
+
identifier: r,
|
|
3215
|
+
layout: "stacked"
|
|
3216
|
+
})
|
|
3217
|
+
}), /* @__PURE__ */ n("div", {
|
|
3218
|
+
className: Q.headerRight,
|
|
3219
|
+
children: [i ? /* @__PURE__ */ t(cn, {
|
|
3220
|
+
tabs: i,
|
|
3221
|
+
value: a,
|
|
3222
|
+
ariaLabel: "Panel view",
|
|
3223
|
+
onChange: o
|
|
3224
|
+
}) : null, /* @__PURE__ */ t(V, {
|
|
3225
|
+
...h,
|
|
3226
|
+
ariaLabel: "Close panel",
|
|
3227
|
+
icon: /* @__PURE__ */ t(ln, {}),
|
|
3228
|
+
onClick: s
|
|
3229
|
+
})]
|
|
3230
|
+
})]
|
|
3231
|
+
}),
|
|
3232
|
+
/* @__PURE__ */ n("div", {
|
|
3233
|
+
className: Q.taskInfo,
|
|
3234
|
+
children: [
|
|
3235
|
+
/* @__PURE__ */ t("p", {
|
|
3236
|
+
className: `${Q.taskLabel} type-mono-section-label`,
|
|
3237
|
+
children: c
|
|
3238
|
+
}),
|
|
3239
|
+
/* @__PURE__ */ t("p", {
|
|
3240
|
+
className: `${Q.taskDescription} type-body-default-regular`,
|
|
3241
|
+
children: l
|
|
3242
|
+
}),
|
|
3243
|
+
u && d !== "none" ? /* @__PURE__ */ t("p", {
|
|
3244
|
+
className: `${Q.taskStatus} type-body-sm-regular`,
|
|
3245
|
+
"data-severity": d,
|
|
3246
|
+
children: u
|
|
3247
|
+
}) : null
|
|
3248
|
+
]
|
|
3249
|
+
}),
|
|
3250
|
+
f ? /* @__PURE__ */ t("div", {
|
|
3251
|
+
className: Q.actions,
|
|
3252
|
+
children: f
|
|
3253
|
+
}) : null,
|
|
3254
|
+
p ? /* @__PURE__ */ t(xt, { metrics: p }) : null,
|
|
3255
|
+
m && m.length > 0 ? /* @__PURE__ */ t(T, { agents: m }) : null
|
|
3256
|
+
]
|
|
3257
|
+
});
|
|
3258
|
+
}
|
|
3259
|
+
var dn = {
|
|
3260
|
+
toast: "pcoi-toast-W8zgW",
|
|
3261
|
+
icon: "pcoi-icon-CfP6t",
|
|
3262
|
+
message: "pcoi-message-jrKD-",
|
|
3263
|
+
action: "pcoi-action-PgLIr"
|
|
3264
|
+
};
|
|
3265
|
+
//#endregion
|
|
3266
|
+
//#region src/Toast/Toast.tsx
|
|
3267
|
+
function fn() {
|
|
3268
|
+
return /* @__PURE__ */ t("svg", {
|
|
3269
|
+
viewBox: "0 0 24 24",
|
|
3270
|
+
fill: "none",
|
|
3271
|
+
"aria-hidden": "true",
|
|
3272
|
+
children: /* @__PURE__ */ t("path", {
|
|
3273
|
+
d: "M5 13l4 4L19 7",
|
|
3274
|
+
stroke: "currentColor",
|
|
3275
|
+
strokeWidth: "1.75",
|
|
3276
|
+
strokeLinecap: "round",
|
|
3277
|
+
strokeLinejoin: "round"
|
|
3278
|
+
})
|
|
3279
|
+
});
|
|
3280
|
+
}
|
|
3281
|
+
function pn() {
|
|
3282
|
+
return /* @__PURE__ */ n("svg", {
|
|
3283
|
+
viewBox: "0 0 24 24",
|
|
3284
|
+
fill: "none",
|
|
3285
|
+
"aria-hidden": "true",
|
|
3286
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
3287
|
+
cx: "12",
|
|
3288
|
+
cy: "12",
|
|
3289
|
+
r: "9",
|
|
3290
|
+
stroke: "currentColor",
|
|
3291
|
+
strokeWidth: "1.5"
|
|
3292
|
+
}), /* @__PURE__ */ t("path", {
|
|
3293
|
+
d: "M9 9l6 6M15 9l-6 6",
|
|
3294
|
+
stroke: "currentColor",
|
|
3295
|
+
strokeWidth: "1.5",
|
|
3296
|
+
strokeLinecap: "round"
|
|
3297
|
+
})]
|
|
3298
|
+
});
|
|
3299
|
+
}
|
|
3300
|
+
function mn() {
|
|
3301
|
+
return /* @__PURE__ */ n("svg", {
|
|
3302
|
+
viewBox: "0 0 24 24",
|
|
3303
|
+
fill: "none",
|
|
3304
|
+
"aria-hidden": "true",
|
|
3305
|
+
children: [
|
|
3306
|
+
/* @__PURE__ */ t("path", {
|
|
3307
|
+
d: "M12 4l9 16H3L12 4z",
|
|
3308
|
+
stroke: "currentColor",
|
|
3309
|
+
strokeWidth: "1.5",
|
|
3310
|
+
strokeLinejoin: "round"
|
|
3311
|
+
}),
|
|
3312
|
+
/* @__PURE__ */ t("path", {
|
|
3313
|
+
d: "M12 10v4",
|
|
3314
|
+
stroke: "currentColor",
|
|
3315
|
+
strokeWidth: "1.5",
|
|
3316
|
+
strokeLinecap: "round"
|
|
3317
|
+
}),
|
|
3318
|
+
/* @__PURE__ */ t("circle", {
|
|
3319
|
+
cx: "12",
|
|
3320
|
+
cy: "17",
|
|
3321
|
+
r: "0.75",
|
|
3322
|
+
fill: "currentColor"
|
|
3323
|
+
})
|
|
3324
|
+
]
|
|
3325
|
+
});
|
|
3326
|
+
}
|
|
3327
|
+
function hn() {
|
|
3328
|
+
return /* @__PURE__ */ n("svg", {
|
|
3329
|
+
viewBox: "0 0 24 24",
|
|
3330
|
+
fill: "none",
|
|
3331
|
+
"aria-hidden": "true",
|
|
3332
|
+
children: [
|
|
3333
|
+
/* @__PURE__ */ t("circle", {
|
|
3334
|
+
cx: "12",
|
|
3335
|
+
cy: "12",
|
|
3336
|
+
r: "9",
|
|
3337
|
+
stroke: "currentColor",
|
|
3338
|
+
strokeWidth: "1.5"
|
|
3339
|
+
}),
|
|
3340
|
+
/* @__PURE__ */ t("path", {
|
|
3341
|
+
d: "M12 11v6",
|
|
3342
|
+
stroke: "currentColor",
|
|
3343
|
+
strokeWidth: "1.5",
|
|
3344
|
+
strokeLinecap: "round"
|
|
3345
|
+
}),
|
|
3346
|
+
/* @__PURE__ */ t("circle", {
|
|
3347
|
+
cx: "12",
|
|
3348
|
+
cy: "8",
|
|
3349
|
+
r: "0.75",
|
|
3350
|
+
fill: "currentColor"
|
|
3351
|
+
})
|
|
3352
|
+
]
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
function gn() {
|
|
3356
|
+
return /* @__PURE__ */ t("svg", {
|
|
3357
|
+
viewBox: "0 0 24 24",
|
|
3358
|
+
fill: "none",
|
|
3359
|
+
"aria-hidden": "true",
|
|
3360
|
+
children: /* @__PURE__ */ t("path", {
|
|
3361
|
+
d: "M6 6L18 18M18 6L6 18",
|
|
3362
|
+
stroke: "currentColor",
|
|
3363
|
+
strokeWidth: "1.5",
|
|
3364
|
+
strokeLinecap: "round"
|
|
3365
|
+
})
|
|
3366
|
+
});
|
|
3367
|
+
}
|
|
3368
|
+
var _n = {
|
|
3369
|
+
success: fn,
|
|
3370
|
+
error: pn,
|
|
3371
|
+
warning: mn,
|
|
3372
|
+
info: hn
|
|
3373
|
+
};
|
|
3374
|
+
function vn({ message: e, variant: r = "info", action: i, onClose: a, closeButtonData: o, ...s }) {
|
|
3375
|
+
let c = _n[r], l = r === "error" || r === "warning";
|
|
3376
|
+
return /* @__PURE__ */ n("div", {
|
|
3377
|
+
...s,
|
|
3378
|
+
className: dn.toast,
|
|
3379
|
+
"data-variant": r,
|
|
3380
|
+
role: l ? "alert" : "status",
|
|
3381
|
+
"aria-live": l ? "assertive" : "polite",
|
|
3382
|
+
children: [
|
|
3383
|
+
/* @__PURE__ */ t("span", {
|
|
3384
|
+
className: dn.icon,
|
|
3385
|
+
children: /* @__PURE__ */ t(c, {})
|
|
3386
|
+
}),
|
|
3387
|
+
/* @__PURE__ */ t("p", {
|
|
3388
|
+
className: `${dn.message} type-body-default-regular`,
|
|
3389
|
+
children: e
|
|
3390
|
+
}),
|
|
3391
|
+
i ? /* @__PURE__ */ t("div", {
|
|
3392
|
+
className: dn.action,
|
|
3393
|
+
children: i
|
|
3394
|
+
}) : null,
|
|
3395
|
+
a ? /* @__PURE__ */ t(V, {
|
|
3396
|
+
...o,
|
|
3397
|
+
ariaLabel: "Dismiss notification",
|
|
3398
|
+
icon: /* @__PURE__ */ t(gn, {}),
|
|
3399
|
+
onClick: a
|
|
3400
|
+
}) : null
|
|
3401
|
+
]
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
var $ = {
|
|
3405
|
+
toggle: "pcoi-toggle-bb-Dx",
|
|
3406
|
+
control: "pcoi-control-20cuU",
|
|
3407
|
+
input: "pcoi-input-TTX4q",
|
|
3408
|
+
track: "pcoi-track-IG1z9",
|
|
3409
|
+
thumb: "pcoi-thumb-sIlG5",
|
|
3410
|
+
label: "pcoi-label-32k4L",
|
|
3411
|
+
errorMessage: "pcoi-errorMessage-oFXYi"
|
|
3412
|
+
};
|
|
3413
|
+
//#endregion
|
|
3414
|
+
//#region src/Toggle/Toggle.tsx
|
|
3415
|
+
function yn({ label: e, checked: r, defaultChecked: i, disabled: a, error: o, errorMessage: s, focused: c, onChange: l, name: u, id: d, ...f }) {
|
|
3416
|
+
let p = (e) => {
|
|
3417
|
+
l?.(e.target.checked, e);
|
|
3418
|
+
};
|
|
3419
|
+
return /* @__PURE__ */ n("label", {
|
|
3420
|
+
...f,
|
|
3421
|
+
className: $.toggle,
|
|
3422
|
+
"data-disabled": a || void 0,
|
|
3423
|
+
"data-error": o || void 0,
|
|
3424
|
+
"data-focused": c || void 0,
|
|
3425
|
+
children: [/* @__PURE__ */ n("span", {
|
|
3426
|
+
className: $.control,
|
|
3427
|
+
children: [
|
|
3428
|
+
/* @__PURE__ */ t("input", {
|
|
3429
|
+
type: "checkbox",
|
|
3430
|
+
role: "switch",
|
|
3431
|
+
className: $.input,
|
|
3432
|
+
checked: r,
|
|
3433
|
+
defaultChecked: i,
|
|
3434
|
+
disabled: a,
|
|
3435
|
+
onChange: p,
|
|
3436
|
+
name: u,
|
|
3437
|
+
id: d,
|
|
3438
|
+
"aria-invalid": o || void 0
|
|
3439
|
+
}),
|
|
3440
|
+
/* @__PURE__ */ t("span", {
|
|
3441
|
+
className: $.track,
|
|
3442
|
+
"aria-hidden": "true",
|
|
3443
|
+
children: /* @__PURE__ */ t("span", { className: $.thumb })
|
|
3444
|
+
}),
|
|
3445
|
+
/* @__PURE__ */ t("span", {
|
|
3446
|
+
className: `${$.label} type-body-default-regular`,
|
|
3447
|
+
children: e
|
|
3448
|
+
})
|
|
3449
|
+
]
|
|
3450
|
+
}), o && s ? /* @__PURE__ */ t("span", {
|
|
3451
|
+
className: `${$.errorMessage} type-control-error`,
|
|
3452
|
+
children: s
|
|
3453
|
+
}) : null]
|
|
3454
|
+
});
|
|
3455
|
+
}
|
|
3456
|
+
var bn = {
|
|
3457
|
+
tooltip: "pcoi-tooltip-Q1YfF",
|
|
3458
|
+
bubble: "pcoi-bubble-kSxRs",
|
|
3459
|
+
arrow: "pcoi-arrow-ZP3ev"
|
|
3460
|
+
}, xn = {
|
|
3461
|
+
top: {
|
|
3462
|
+
w: 12,
|
|
3463
|
+
h: 6,
|
|
3464
|
+
d: "M0 6 L6 0 L12 6"
|
|
3465
|
+
},
|
|
3466
|
+
bottom: {
|
|
3467
|
+
w: 12,
|
|
3468
|
+
h: 6,
|
|
3469
|
+
d: "M0 0 L6 6 L12 0"
|
|
3470
|
+
},
|
|
3471
|
+
left: {
|
|
3472
|
+
w: 6,
|
|
3473
|
+
h: 12,
|
|
3474
|
+
d: "M6 0 L0 6 L6 12"
|
|
3475
|
+
},
|
|
3476
|
+
right: {
|
|
3477
|
+
w: 6,
|
|
3478
|
+
h: 12,
|
|
3479
|
+
d: "M0 0 L6 6 L0 12"
|
|
3480
|
+
}
|
|
3481
|
+
};
|
|
3482
|
+
function Sn({ placement: e }) {
|
|
3483
|
+
let { w: n, h: r, d: i } = xn[e];
|
|
3484
|
+
return /* @__PURE__ */ t("svg", {
|
|
3485
|
+
width: n,
|
|
3486
|
+
height: r,
|
|
3487
|
+
viewBox: `0 0 ${n} ${r}`,
|
|
3488
|
+
className: bn.arrow,
|
|
3489
|
+
"aria-hidden": "true",
|
|
3490
|
+
children: /* @__PURE__ */ t("path", {
|
|
3491
|
+
d: i,
|
|
3492
|
+
fill: "var(--bg-card)",
|
|
3493
|
+
stroke: "var(--border-card)",
|
|
3494
|
+
strokeWidth: "1"
|
|
3495
|
+
})
|
|
3496
|
+
});
|
|
3497
|
+
}
|
|
3498
|
+
function Cn({ content: e, placement: r = "none", id: i, ...a }) {
|
|
3499
|
+
let o = /* @__PURE__ */ t("div", {
|
|
3500
|
+
className: `${bn.bubble} type-body-sm-regular`,
|
|
3501
|
+
children: e
|
|
3502
|
+
}), s = r === "none" ? null : /* @__PURE__ */ t(Sn, { placement: r });
|
|
3503
|
+
return /* @__PURE__ */ n("div", {
|
|
3504
|
+
...a,
|
|
3505
|
+
className: bn.tooltip,
|
|
3506
|
+
"data-placement": r,
|
|
3507
|
+
role: "tooltip",
|
|
3508
|
+
id: i,
|
|
3509
|
+
children: [
|
|
3510
|
+
(r === "top" || r === "left") && s,
|
|
3511
|
+
o,
|
|
3512
|
+
(r === "bottom" || r === "right") && s
|
|
3513
|
+
]
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
//#endregion
|
|
3517
|
+
export { C as AgentCard, T as AgentList, O as Badge, A as Button, ee as Callout, N as Card, P as CardShell, pe as ChatInterface, re as ChatMessage, L as ChatMessageList, me as Checkbox, ge as CheckboxGroup, ve as CitationMark, Se as CitedExcerpt, Me as CodeBlock, Pe as CodeInline, ze as ComparisonTable, Ke as ContactForm, Ye as DataTable, Ae as Divider, $e as DocumentOverlay, nt as DocumentOverlayScreen, Oe as Dropdown, Te as DropdownMenu, Je as FeedbackState, it as FocusGlow, at as Footer, He as FormField, We as FormFieldArea, st as HeroBadge, ut as HeroVisual, mt as HowStep, V as IconButton, ht as LearningCurveChart, fe as LogoMark, _t as LogoMarkP, yt as MetricBlock, xt as MetricsRow, wt as Modal, tt as ModalOverlay, Et as Nav, Ot as NotificationBadge, Ft as PipelineCard, jt as PipelineStageChip, Nt as PipelineStages, zt as Popover, Ht as ProgressBar, Jt as ProjectHeader, Kt as ProjectIdentifier, qt as ProjectIdentity, ue as PromptBar, Yt as Radio, Zt as RadioGroup, en as SectionHeader, nn as SidebarNav, Ie as Skeleton, S as StatusDot, on as Stepper, oe as SuggestionCard, se as SuggestionCards, cn as TabToggle, un as TaskDetailPanel, be as TextLink, vn as Toast, yn as Toggle, Cn as Tooltip, ce as TypingIndicator };
|