@zeniai/web-components 4.4.70 → 4.4.71-betaAK1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/Editor-D13LiK8V.cjs +269 -0
  2. package/dist/Editor-KtRfSJyD.js +919 -0
  3. package/dist/{SessionTimeoutPopup-D12fxo7a.cjs → SessionTimeoutPopup-JoJimbHb.cjs} +16408 -16947
  4. package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-aNJh0VqE.js} +73179 -74943
  5. package/dist/TaskDescriptionEditor-C_mttT9G.js +700 -0
  6. package/dist/TaskDescriptionEditor-DLuXATNl.cjs +197 -0
  7. package/dist/cockpit.cjs.js +254 -254
  8. package/dist/cockpit.esm.js +1449 -1449
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +112 -112
  11. package/dist/underline-C1X4r0Bi.js +223 -0
  12. package/dist/underline-CtPZKkkA.cjs +76 -0
  13. package/dist/vendor-@stripe-stripe-js-Bg6HyFI3.cjs +8 -0
  14. package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
  15. package/package.json +1 -1
  16. package/dist/assets/illustrative/ai-cfo.svg +0 -13
  17. package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
  18. package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
  19. package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
  20. package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
  21. package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
  22. package/dist/assets/interface/arrow-2-left.svg +0 -4
  23. package/dist/assets/interface/autofill-3.svg +0 -3
  24. package/dist/assets/interface/graph-trend.svg +0 -11
  25. package/dist/assets/interface/growth-round.svg +0 -5
  26. package/dist/assets/interface/saving-money-egg.svg +0 -15
  27. package/dist/assets/interface/treasury-thumbnail.png +0 -0
  28. package/dist/assets/logos/gmail-logo.svg +0 -20
  29. package/dist/assets/logos/microsoft365-logo.svg +0 -25
  30. package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
@@ -0,0 +1,269 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-react-CzqSQR9J.cjs"),m=require("@emotion/styled"),G=require("@lexical/code"),S=require("@lexical/link"),N=require("@lexical/list"),je=require("@lexical/markdown"),fe=require("@lexical/react/LexicalAutoFocusPlugin"),Ee=require("@lexical/react/LexicalComposer"),Ce=require("@lexical/react/LexicalContentEditable"),ye=require("@lexical/react/LexicalErrorBoundary"),Re=require("@lexical/react/LexicalHistoryPlugin"),Ne=require("@lexical/react/LexicalLinkPlugin"),Se=require("@lexical/react/LexicalListPlugin"),ke=require("@lexical/react/LexicalMarkdownShortcutPlugin"),$e=require("@lexical/react/LexicalRichTextPlugin"),J=require("@lexical/rich-text"),z=require("@lexical/table"),re=require("@mui/material/styles"),o=require("./SessionTimeoutPopup-JoJimbHb.cjs"),i=require("lexical"),d=require("./underline-CtPZKkkA.cjs"),n=require("react"),ne=require("@lexical/react/LexicalComposerContext"),I=require("@lexical/html"),X=require("@lexical/selection"),F=require("@lexical/utils"),Le=require("react-dom");function ve(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(l,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const Y=ve(n);class ie extends i.ParagraphNode{__customClass;static getType(){return"custom-paragraph"}constructor(l,r){super(r),this.__customClass=l}createDOM(l){const r=super.createDOM(l);return r.classList.add(this.__customClass),r}updateDOM(l,r,c){const x=super.updateDOM(l,r,c);return this.__customClass!==l.__customClass&&(r.classList.remove(l.__customClass),r.classList.add(this.__customClass)),x}exportJSON(){return{...super.exportJSON(),type:"custom-paragraph",customClass:this.__customClass}}}function Z(e){return i.$applyNodeReplacement(new ie(e))}function Me(){const[e]=ne.useLexicalComposerContext();return n.useEffect(()=>G.registerCodeHighlighting(e),[e]),null}const Te=e=>Y.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Y.createElement("path",{d:"M6.60533 4.32937L7.53159 1.82613C7.69249 1.39129 8.30751 1.39129 8.46841 1.82613L9.39467 4.32937C9.7849 5.38384 10.6162 6.2151 11.6706 6.60533L14.1739 7.53158C14.6087 7.69249 14.6087 8.30751 14.1739 8.46841L11.6706 9.39467C10.6162 9.7849 9.7849 10.6162 9.39467 11.6706L8.46841 14.1739C8.30751 14.6087 7.69248 14.6087 7.53158 14.1739L6.60533 11.6706C6.2151 10.6162 5.38384 9.7849 4.32937 9.39467L1.82613 8.46841C1.39129 8.30751 1.39129 7.69248 1.82613 7.53158L4.32937 6.60533C5.38384 6.2151 6.2151 5.38384 6.60533 4.32937Z",fill:"currentColor",stroke:"currentColor"})),{cockpit:{monthEndReport:{toolbarPluginTooltip:_e,editorZeniGPTButton:ee}},common:{documents:H,strings:K,texts:{bold:Ae,indent:Oe,italic:we,link:De,outdent:Pe,redo:Ie,underline:Fe,undo:qe}}}=o.appLocale.getLocalizedStrings(),D=1;function te(){return t.jsxRuntimeExports.jsx("div",{className:"divider"})}function oe(e,l){l===null?(e.style.opacity="0",e.style.top="-1000px",e.style.left="-1000px"):(e.style.opacity="1",e.style.top=`${l.top+l.height+window.pageYOffset+10}px`,e.style.left=`${l.left+window.pageXOffset-e.offsetWidth/2+l.width/2}px`)}function Be({editor:e}){const l=re.useTheme(),r=n.useRef(null),c=n.useRef(null),x=n.useRef(!1),[f,y]=n.useState(""),[k,s]=n.useState(!1),[q,P]=n.useState(null),v=n.useCallback(()=>{const p=i.$getSelection();if(i.$isRangeSelection(p)){const E=le(p),R=E.getParent();S.$isLinkNode(R)?y(R.getURL()):S.$isLinkNode(E)?y(E.getURL()):y("")}const O=r.current,$=window.getSelection(),w=document.activeElement;if(O===null)return;const T=e.getRootElement();if(p!==null&&$!=null&&!$.isCollapsed&&T!==null&&T.contains($.anchorNode)){const E=$.getRangeAt(0);let R;if($.anchorNode===T){let _=T;for(;_.firstElementChild!=null;)_=_.firstElementChild;R=_.getBoundingClientRect()}else R=E.getBoundingClientRect();x.current||oe(O,R),P(p)}else(!w||w.className!=="link-input")&&(oe(O,null),P(null),s(!1),y(""));return!0},[e]);return n.useEffect(()=>F.mergeRegister(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{v()})}),e.registerCommand(i.SELECTION_CHANGE_COMMAND,()=>(v(),!0),D)),[e,v]),n.useEffect(()=>{e.getEditorState().read(()=>{v()})},[e,v]),n.useEffect(()=>{k&&c.current!=null&&c.current?.focus()},[k]),t.jsxRuntimeExports.jsx(Ge,{ref:r,children:k?t.jsxRuntimeExports.jsx("input",{ref:c,className:"link-input",value:f,onChange:p=>{y(p.target.value)},onKeyDown:p=>{p.key==="Enter"?(p.preventDefault(),q!==null&&(f!==""&&e.dispatchCommand(S.TOGGLE_LINK_COMMAND,f),s(!1))):p.key==="Escape"&&(p.preventDefault(),s(!1))}}):t.jsxRuntimeExports.jsxs(Je,{className:"link-input",children:[t.jsxRuntimeExports.jsx(Xe,{href:f,target:"_blank",rel:"noopener noreferrer",children:f}),t.jsxRuntimeExports.jsx(u,{className:"link-edit",type:"button",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{s(!0)},children:t.jsxRuntimeExports.jsx(o.SvgEdit,{style:{width:o.Space.sp3,height:o.Space.sp3,color:l.colors.primary}})})]})})}function le(e){const l=e.anchor,r=e.focus,c=e.anchor.getNode(),x=e.focus.getNode();return c===x?c:e?.isBackward()?X.$isAtNodeEnd(r)?c:x:X.$isAtNodeEnd(l)?x:c}function Ue({fileAttached:e,enableZeniGPTFeature:l,isZeniGPTResponseLoading:r,customerRequestData:c,initialHtmlString:x,handleFileInputClick:f,improveUsingZeniGPTClick:y,setZeniRequestsHtml:k}){const[s]=ne.useLexicalComposerContext(),q=n.useRef(null),[P,v]=n.useState(!1),[p,O]=n.useState(!1),[$,w]=n.useState("paragraph"),[,T]=n.useState(!1),[E,R]=n.useState(!1),[_,ae]=n.useState(!1),[ce,de]=n.useState(!1),[pe,ue]=n.useState(!1),Q=n.useCallback(a=>{const h=new DOMParser().parseFromString(a,"text/html"),L=h.getElementsByTagName("p");for(let C=L.length-1;C>=0;C--){const j=L[C];j.textContent?.trim()===""&&(j.innerHTML="")}const A=I.$generateNodesFromDOM(s,h),b=i.$getRoot();b.clear(),b.append(...A)},[s]);n.useEffect(()=>{s.update(()=>{x!=null&&x.length>0&&Q(x)})},[s,x,Q]),n.useEffect(()=>{s.update(()=>{r===!0?s.setEditable(!1):s.setEditable(!0)})},[s,r]),n.useEffect(()=>F.mergeRegister(s.registerCommand(i.BLUR_COMMAND,()=>{const a=I.$generateHtmlFromNodes(s,null);return k?.(a),!0},D)),[s,k]);const me=()=>{s.update(()=>{const a=I.$generateHtmlFromNodes(s,null);y?.(a)})},V=n.useCallback(a=>{s.update(()=>{const M=new DOMParser,h=Z(o.PARAGRAPH_CLASS_NAME),L=N.$createListNode("bullet");a.forEach(j=>{const U=M.parseFromString(j,"text/html"),ge=I.$generateNodesFromDOM(s,U),W=N.$createListItemNode();ge.forEach(be=>{W.append(be)}),L.append(W)}),h.append(L);const A=Z(o.PARAGRAPH_CLASS_NAME);A.append(i.$createTextNode(""));const b=i.$getRoot(),C=b.getFirstChild();C?C.insertBefore(h):b.append(h),C?C.insertBefore(A):b.append(A),b.getFirstChild()===null&&b.append(i.$createParagraphNode().append(i.$createTextNode(K.empty))),setTimeout(()=>{s.update(()=>{const j=N.ListNode.clone(L);h.replace(j)})},1e3)})},[s]);n.useEffect(()=>{c.length>0&&V(c)},[c,V]);const B=n.useCallback(()=>{const a=i.$getSelection();if(i.$isRangeSelection(a)){const M=a.anchor.getNode(),h=M.getKey()==="root"?M:M.getTopLevelElementOrThrow(),L=h.getKey();if(s.getElementByKey(L)!==null)if(N.$isListNode(h)){const j=F.$getNearestNodeOfType(M,N.ListNode),U=j?j.getTag():h.getTag();w(U)}else{const j=J.$isHeadingNode(h)?h.getTag():h.getType();w(j)}ue(a.hasFormat("bold")),ae(a.hasFormat("italic")),de(a.hasFormat("underline")),T(X.$isParentElementRTL(a));const b=le(a),C=b.getParent();S.$isLinkNode(C)||S.$isLinkNode(b)?R(!0):R(!1)}},[s]);n.useEffect(()=>F.mergeRegister(s.registerUpdateListener(({editorState:a})=>{a.read(()=>{B()})}),s.registerCommand(i.SELECTION_CHANGE_COMMAND,a=>(B(),!1),D),s.registerCommand(i.CAN_UNDO_COMMAND,a=>(v(a),!1),D),s.registerCommand(i.CAN_REDO_COMMAND,a=>(O(a),!1),D)),[s,B]);const xe=n.useCallback(()=>{E?s.dispatchCommand(S.TOGGLE_LINK_COMMAND,null):s.dispatchCommand(S.TOGGLE_LINK_COMMAND,"https://")},[s,E]),he=()=>{$!=="ul"?s.dispatchCommand(N.INSERT_UNORDERED_LIST_COMMAND,void 0):s.dispatchCommand(N.REMOVE_LIST_COMMAND,void 0)};return t.jsxRuntimeExports.jsxs("div",{className:"toolbar",ref:q,children:[t.jsxRuntimeExports.jsxs(se,{children:[t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:Ae}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item spaced "+(pe?"active":""),style:{padding:o.Space.sp1},disabled:r,"aria-label":"Format Bold",children:t.jsxRuntimeExports.jsx(d.SvgBold,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:we}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item spaced "+(_?"active":""),style:{padding:o.Space.sp1},disabled:r,"aria-label":"Format Italics",children:t.jsxRuntimeExports.jsx(d.SvgItalic,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:Fe}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item spaced "+(ce?"active":""),style:{padding:o.Space.sp1},disabled:r,"aria-label":"Format Underline",children:t.jsxRuntimeExports.jsx(d.SvgUnderline,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:De}),children:t.jsxRuntimeExports.jsxs(u,{type:"button",onClick:xe,className:"toolbar-item spaced "+(E?"active":""),style:{padding:o.Space.sp1},disabled:r,"aria-label":"Insert Link",children:[t.jsxRuntimeExports.jsx(Qe,{className:"format link"}),t.jsxRuntimeExports.jsx(d.SvgLink,{className:"format"})]})}),E&&Le.createPortal(t.jsxRuntimeExports.jsx(Be,{editor:s}),document.body),t.jsxRuntimeExports.jsx(te,{}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:_e.list}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:he,className:"toolbar-item spaced "+($==="ul"?"active":""),style:{padding:o.Space.sp1},disabled:r,"aria-label":"Format Underline",children:t.jsxRuntimeExports.jsx(d.SvgList,{className:"format"})})}),t.jsxRuntimeExports.jsx(te,{}),t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_ELEMENT_COMMAND,"left")},className:"toolbar-item spaced",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Left Align",children:t.jsxRuntimeExports.jsx(d.SvgLeft,{className:"format"})}),t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_ELEMENT_COMMAND,"center")},className:"toolbar-item spaced",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Center Align",children:t.jsxRuntimeExports.jsx(d.SvgCentre,{className:"format"})}),t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_ELEMENT_COMMAND,"right")},className:"toolbar-item spaced",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Right Align",children:t.jsxRuntimeExports.jsx(d.SvgRight,{className:"format"})}),t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.FORMAT_ELEMENT_COMMAND,"justify")},className:"toolbar-item",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Justify Align",children:t.jsxRuntimeExports.jsx(d.SvgJustify,{className:"format"})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:Oe}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.INDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Indent",children:t.jsxRuntimeExports.jsx(d.SvgIndent,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:Pe}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:()=>{s.dispatchCommand(i.OUTDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:o.Space.sp1},disabled:r,"aria-label":"Outdent",children:t.jsxRuntimeExports.jsx(d.SvgOutdent,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",style:{padding:`2px ${o.Space.sp2}`},title:t.jsxRuntimeExports.jsxs(Ve,{children:[t.jsxRuntimeExports.jsxs(g,{children:[H.attachFile,K.space]}),t.jsxRuntimeExports.jsx(g,{children:H.formatImageAndDocumentAttachments}),t.jsxRuntimeExports.jsxs(g,{children:[K.space,H.attachmentFileSize700KB]})]}),children:t.jsxRuntimeExports.jsx(u,{type:"button",onClick:f,className:"toolbar-item",style:{padding:o.Space.sp1},disabled:r||e,"aria-label":"Attachment",children:t.jsxRuntimeExports.jsx(o.SvgEmailAttachment,{className:"format"})})})]}),t.jsxRuntimeExports.jsxs(se,{children:[l?t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"top",title:t.jsxRuntimeExports.jsx(g,{children:ee.tooltip}),children:t.jsxRuntimeExports.jsxs(He,{isZeniGPTResponseLoading:r,type:"button",onClick:me,disabled:r,children:[t.jsxRuntimeExports.jsx(Ke,{}),t.jsxRuntimeExports.jsx(ze,{children:ee.label})]})}):null,t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:qe}),children:t.jsxRuntimeExports.jsx(u,{type:"button",disabled:!P||r,onClick:()=>{s.dispatchCommand(i.UNDO_COMMAND,void 0)},className:"toolbar-item spaced",style:{padding:o.Space.sp1},"aria-label":"Undo",children:t.jsxRuntimeExports.jsx(o.SvgUndo,{className:"format"})})}),t.jsxRuntimeExports.jsx(o.Tooltip,{placement:"bottom",title:t.jsxRuntimeExports.jsx(g,{children:Ie}),children:t.jsxRuntimeExports.jsx(u,{type:"button",disabled:!p||r,onClick:()=>{s.dispatchCommand(i.REDO_COMMAND,void 0)},className:"toolbar-item",style:{padding:o.Space.sp1},"aria-label":"Redo",children:t.jsxRuntimeExports.jsx(d.SvgRedo,{className:"format"})})})]})]})}const u=m.button``,se=m.div`
2
+ display: flex;
3
+ align-items: center;
4
+ gap: ${o.Space.sp1};
5
+ `,g=m.div`
6
+ padding: 2px ${o.Space.sp2};
7
+ color: ${o.Colors.neutralGrey4Light};
8
+ `,ze=m(o.SmallMedium)`
9
+ color: ${o.Colors.neutralGrey5Light};
10
+ `,He=m.button`
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ min-width: 165px;
15
+ background-color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.brandColorSapphireLight:e.theme.colors.brandColorSapphire};
16
+ color: ${o.Colors.neutralGrey5Light};
17
+ border-radius: ${o.Space.sp1};
18
+ border: none;
19
+ height: 26px;
20
+ &:hover {
21
+ background-color: ${o.Colors.brandColorSapphireDark};
22
+ }
23
+ `,Ke=m(Te)`
24
+ height: ${o.Space.sp3};
25
+ width: ${o.Space.sp3};
26
+ margin-right: ${o.Space.sp1};
27
+ color: ${o.Colors.brandColorPearl};
28
+ `,Ge=m.div`
29
+ position: absolute;
30
+ z-index: 100;
31
+ top: -10000px;
32
+ left: -10000px;
33
+ margin-top: -6px;
34
+ max-width: 300px;
35
+ width: 100%;
36
+ opacity: 0;
37
+ border: 1px solid ${e=>e.theme.colors.grey3};
38
+ background-color: ${e=>e.theme.colors.grey5};
39
+ box-shadow: ${o.Space.sp0} 5px 10px ${o.Colors.overlayLight};
40
+ border-radius: ${o.Space.sp2};
41
+ transition: opacity 0.5s;
42
+ z-index: 10000;
43
+
44
+ .link-input {
45
+ display: block;
46
+ box-sizing: border-box;
47
+ padding: ${o.Space.sp3};
48
+ border-radius: ${o.Space.sp3};
49
+ background-color: ${e=>e.theme.colors.grey5};
50
+ font-size: 15px;
51
+ color: ${e=>e.theme.colors.primary};
52
+ border: 0;
53
+ outline: 0;
54
+ position: relative;
55
+ font-family: inherit;
56
+ }
57
+
58
+ button.link-edit {
59
+ display: flex;
60
+ align-items: center;
61
+ width: 35px;
62
+ position: absolute;
63
+ right: ${o.Space.sp0};
64
+ top: ${o.Space.sp0};
65
+ bottom: ${o.Space.sp0};
66
+ cursor: pointer;
67
+ background: none;
68
+ border: none;
69
+ padding: 0;
70
+ margin: 0;
71
+
72
+ &:focus {
73
+ outline: none;
74
+ }
75
+ }
76
+
77
+ .link-input a {
78
+ color: ${e=>e.theme.colors.link};
79
+ text-decoration: none;
80
+ display: block;
81
+ white-space: nowrap;
82
+ overflow: hidden;
83
+ margin-right: 30px;
84
+ text-overflow: ellipsis;
85
+ }
86
+
87
+ .link-input a:hover {
88
+ text-decoration: underline;
89
+ }
90
+
91
+ .button {
92
+ width: 20px;
93
+ height: 20px;
94
+ display: inline-block;
95
+ padding: 6px;
96
+ border-radius: ${o.Space.sp2};
97
+ cursor: pointer;
98
+ margin: 0 2px;
99
+ }
100
+
101
+ .button.hovered {
102
+ width: 20px;
103
+ height: 20px;
104
+ display: inline-block;
105
+ background-color: ${e=>e.theme.colors.background};
106
+ }
107
+
108
+ .button i,
109
+ .actions i {
110
+ background-size: contain;
111
+ display: inline-block;
112
+ height: 20px;
113
+ width: 20px;
114
+ vertical-align: -0.25em;
115
+ }
116
+ `,Je=m.div``,Xe=m.a``,Qe=m.i``,Ve=m.div`
117
+ display: flex;
118
+ flex-direction: column; /* Align children vertically */
119
+ align-items: center; /* Center children horizontally */
120
+ justify-content: center; /* Center children vertically */
121
+ height: 100%; /* Adjust to your desired height */
122
+ width: 100%; /* Adjust to your desired width */
123
+ `,{cockpit:{monthEndReport:{editorPlaceholder:We}}}=o.appLocale.getLocalizedStrings(),Ye=m(o.LargeRegular)`
124
+ color: ${e=>e.theme.colors.grey2};
125
+ overflow: hidden;
126
+ position: absolute;
127
+ text-overflow: ellipsis;
128
+ top: ${o.Space.sp3};
129
+ left: 12px;
130
+ user-select: none;
131
+ display: inline-block;
132
+ pointer-events: none;
133
+ `,Ze=m(o.StandardRegular)`
134
+ position: relative;
135
+ margin: ${o.Space.sp0};
136
+ border-radius: ${o.Space.sp2};
137
+ color: ${e=>e.theme.colors.primary};
138
+ text-align: left;
139
+ border: 1px solid ${e=>e.theme.colors.grey2};
140
+ overflow: hidden;
141
+
142
+ &:hover {
143
+ border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
144
+
145
+ .toolbar {
146
+ border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
147
+ }
148
+ }
149
+
150
+ &:focus-within {
151
+ border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
152
+
153
+ .toolbar {
154
+ border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
155
+ }
156
+ }
157
+
158
+ .editor-input {
159
+ min-height: 120px;
160
+ max-height: 360px;
161
+ overflow: auto;
162
+ resize: none;
163
+ ${o.textStyles.largeRegular.css};
164
+ color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary};
165
+ position: relative;
166
+ tab-size: 1;
167
+ outline: 0;
168
+ padding: ${o.Space.sp3} 12px;
169
+
170
+ .editor__link {
171
+ color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.link};
172
+ text-decoration: none;
173
+ }
174
+ .editor__link:hover {
175
+ text-decoration: underline;
176
+ cursor: pointer;
177
+ }
178
+ }
179
+
180
+ .editor-input p {
181
+ margin: 0;
182
+ }
183
+
184
+ .toolbar {
185
+ display: flex;
186
+ margin-bottom: 1px;
187
+ background: ${e=>e.theme.colors.grey5};
188
+ padding: ${o.Space.sp1};
189
+ border-top-left-radius: 10px;
190
+ border-top-right-radius: 10px;
191
+ vertical-align: middle;
192
+ border-bottom: 1px solid ${e=>e.theme.colors.grey2};
193
+ justify-content: space-between;
194
+ }
195
+
196
+ .toolbar button.toolbar-item {
197
+ border: 0;
198
+ display: flex;
199
+ background: none;
200
+ border-radius: ${o.Space.sp2};
201
+ padding: ${o.Space.sp2};
202
+ cursor: pointer;
203
+ vertical-align: middle;
204
+ }
205
+
206
+ .toolbar button.toolbar-item:disabled {
207
+ cursor: not-allowed;
208
+ }
209
+
210
+ .toolbar button.toolbar-item.spaced {
211
+ margin-right: 2px;
212
+ }
213
+
214
+ .toolbar button.toolbar-item svg.format {
215
+ background-size: contain;
216
+ display: inline-block;
217
+ height: ${o.Space.sp3};
218
+ width: ${o.Space.sp3};
219
+ vertical-align: -0.25em;
220
+ display: flex;
221
+ color: ${e=>e.theme.colors.grey1};
222
+ }
223
+
224
+ .toolbar button.toolbar-item:disabled svg.format {
225
+ opacity: 0.2;
226
+ }
227
+
228
+ .toolbar button.toolbar-item.active {
229
+ svg.format {
230
+ color: ${e=>e.theme.colors.primary};
231
+ }
232
+ }
233
+
234
+ .toolbar .toolbar-item:hover:not([disabled]) {
235
+ svg.format {
236
+ color: ${e=>e.theme.colors.primary};
237
+ }
238
+ }
239
+
240
+ .toolbar .divider {
241
+ width: 1px;
242
+ background-color: ${e=>e.theme.colors.background};
243
+ margin: ${o.Space.sp0} ${o.Space.sp1};
244
+ }
245
+
246
+ .toolbar .toolbar-item .text {
247
+ display: flex;
248
+ width: 200px;
249
+ vertical-align: middle;
250
+ ${o.textStyles.standardRegular.css};
251
+ color: ${e=>e.theme.colors.primary};
252
+ text-overflow: ellipsis;
253
+ width: 70px;
254
+ overflow: hidden;
255
+ height: 20px;
256
+ text-align: left;
257
+ }
258
+ `,et=m.div`
259
+ position: absolute;
260
+ display: flex;
261
+ justify-content: center;
262
+ align-items: center;
263
+ height: 100%;
264
+ width: 100%;
265
+ z-index: 1;
266
+ `,tt=m.div`
267
+ background-color: transparent;
268
+ position: relative;
269
+ `;function ot(){return t.jsxRuntimeExports.jsx(Ye,{children:We})}const st={namespace:"",onError(e){throw e},nodes:[J.HeadingNode,N.ListNode,N.ListItemNode,J.QuoteNode,G.CodeNode,G.CodeHighlightNode,z.TableNode,z.TableCellNode,z.TableRowNode,S.AutoLinkNode,S.LinkNode,ie],theme:d.theme};function rt({fileAttached:e,enableZeniGPTFeature:l,isZeniGPTResponseLoading:r,initialHtmlString:c,customerRequestData:x,handleFileInputClick:f,improveUsingZeniGPTClick:y,setZeniRequestsHtml:k}){const s=re.useTheme();return t.jsxRuntimeExports.jsxs(Ee.LexicalComposer,{initialConfig:st,children:[t.jsxRuntimeExports.jsx(d.EditorGlobalStyles,{}),t.jsxRuntimeExports.jsxs(Ze,{isZeniGPTResponseLoading:r,children:[r?t.jsxRuntimeExports.jsx(et,{children:t.jsxRuntimeExports.jsx(o.ActivityIndicator,{size:"Standard",start:!0,style:{display:"flex",padding:o.Space.sp4,borderRadius:"100%",backgroundColor:s.colors.grey5,border:`2px solid ${s.colors.grey3}`,boxShadow:`${o.Space.sp0} 2px ${o.Space.sp1} ${s.colors.dropShadowNormal}`}})}):null,t.jsxRuntimeExports.jsx(Ue,{handleFileInputClick:f,fileAttached:e,customerRequestData:x,enableZeniGPTFeature:l,isZeniGPTResponseLoading:r,initialHtmlString:c,improveUsingZeniGPTClick:y,setZeniRequestsHtml:k}),t.jsxRuntimeExports.jsxs(tt,{children:[t.jsxRuntimeExports.jsx($e.RichTextPlugin,{contentEditable:t.jsxRuntimeExports.jsx(Ce.ContentEditable,{className:o.EDITOR_CLASS_NAME}),placeholder:t.jsxRuntimeExports.jsx(ot,{}),ErrorBoundary:ye}),t.jsxRuntimeExports.jsx(d.CustomPastePlugin,{}),t.jsxRuntimeExports.jsx(d.CustomTabPlugin,{}),t.jsxRuntimeExports.jsx(Re.HistoryPlugin,{}),t.jsxRuntimeExports.jsx(fe.AutoFocusPlugin,{}),t.jsxRuntimeExports.jsx(Me,{}),t.jsxRuntimeExports.jsx(Se.ListPlugin,{}),t.jsxRuntimeExports.jsx(Ne.LinkPlugin,{}),t.jsxRuntimeExports.jsx(d.PlaygroundAutoLinkPlugin,{}),t.jsxRuntimeExports.jsx(d.ListMaxIndentLevelPlugin,{maxDepth:7}),t.jsxRuntimeExports.jsx(ke.MarkdownShortcutPlugin,{transformers:je.TRANSFORMERS})]})]})]})}exports.default=rt;