1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34666],{73347:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/excel-app/report-builder",function(){return l(74127)}])},89962:function(e,t,l){"use strict";var a=l(85893),o=l(8997),r=l.n(o),n=l(44335),i=l(67294);t.Z=e=>{let{videoLink:t,showDemoVideo:l,hideDemoVideo:o}=e;return(0,i.useEffect)(()=>{console.log("videoLink: ",t)},[t]),(0,a.jsxs)(n.Z,{show:l,onHide:o,className:r().dialogWrapper,children:[(0,a.jsx)(n.Z.Header,{closeButton:!0,children:(0,a.jsxs)(n.Z.Title,{children:["Demo video ",t]})}),(0,a.jsx)(n.Z.Body,{children:(0,a.jsx)("div",{className:r().videoWrapper,children:(0,a.jsx)("iframe",{className:"responsive-iframe",src:null!=t?t:"https://www.youtube.com/embed/mykAnK8yLu4",title:"MarketXLS Demo Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})]})}},24747:function(e,t,l){"use strict";l.d(t,{b:function(){return i}}),(a||(a={})).upload="/file/upload";var a,o=l(57318),r=l(52388);class n{async upload(e,t,l){let n=new FormData;return n.append("file",e),t&&n.append("s3Bucket",t),l&&n.append("readAccess","true"),(await fetch("".concat((0,r.r)()).concat(a.upload),{body:n,method:o.j.post})).text()}}let i=new n},28176:function(e,t,l){"use strict";function a(e){return e?e.charAt(0).toUpperCase()+e.slice(1):void 0}l.d(t,{f:function(){return a}})},84761:function(e,t,l){"use strict";var a=l(85893),o=l(9473),r=l(42731),n=l.n(r),i=l(81986),s=l(26548),c=l(84091),d=l(7644),u=l(17349),p=l(92814),m=l(14944),h=l(84414),x=l(52858),g=l(7529);t.Z=e=>{let{title:t,leftIcon:l,hideLoginPart:r,hideLogo:v}=e,f=(0,o.v9)(x.dy),b=(0,o.v9)(x.m9);return(0,a.jsx)(i.Z,{fluid:!0,className:"p-0",children:(0,a.jsxs)(s.Z,{className:n().wrapper,children:[(0,a.jsx)(c.Z,{lg:3,className:"d-flex justify-content-center align-items-center mb-4 mb-lg-0",children:!v&&(0,a.jsx)("a",{href:"/",children:(0,a.jsx)("img",{width:200,height:50,alt:"MarketXLS logo",src:h.T.logo})})}),(0,a.jsx)(c.Z,{lg:6,className:"d-flex justify-content-center align-items-center",children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"".concat(n().getAccessText," mb-4"),children:[(0,a.jsx)(p.G,{icon:l||m.G_})," ",t||"Options Scanner & Calculator"," ",(0,a.jsx)(p.G,{icon:u.lTt})]})})}),(0,a.jsx)(c.Z,{lg:3,className:"d-flex justify-content-center align-items-center",children:!r&&(0,a.jsx)("div",{className:"fullWidth",children:b&&!f&&(0,a.jsxs)(d.Z,{variant:"light",size:"lg",onClick:g.X,className:"fullWidth mt-2 colorPrimaryImportant",children:[(0,a.jsx)("img",{src:h.T.userBlueAccount,width:23,height:26,className:"me-1",alt:"User blue account logo"}),"Login"]})})})]})})}},93640:function(e,t,l){"use strict";var a,o;l.d(t,{B:function(){return a}}),(o=a||(a={})).table="table",o.minicards="minicards",o.barchart="barchart"},74127:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return ti}});var a,o,r,n,i,s,c=l(85893),d=l(67294),u=l(81986),p=l(76617),m=l(5317),h=l.n(m),x=l(51458),g=l.n(x),v=l(84414),f=()=>(0,c.jsxs)("span",{className:"".concat(g().poweredByMarketXLS," text-muted"),children:["powered by ",(0,c.jsx)("img",{src:v.T.logo,height:20,width:100,alt:"MarketXLS logo"})," AI"]}),b=l(84761),j=l(54424),C=e=>{let{showHeader:t=!1,header:l,headerElement:a,body:o,footer:r}=e;return(0,c.jsx)(u.Z,{className:h().wrapper,children:(0,c.jsxs)(p.Z,{className:"".concat(h().card," mt-4"),children:[t&&(0,c.jsx)(p.Z.Header,{className:h().header,children:a||(0,c.jsx)(b.Z,{hideLoginPart:!0,title:l,leftIcon:j.faFileLines})}),(0,c.jsx)(p.Z.Body,{children:o}),(0,c.jsxs)(p.Z.Footer,{className:"".concat(h().footer," text-center"),children:[r,(0,c.jsx)(f,{})]})]})})},N=l(73460),k=l(27071),y=l(14820),_=l(26548),w=l(84091),L=l(7644),S=l(66110),R=l(69547),M=l(52042),E=l(23157);(a=n||(n={})).benchmarks="Benchmarks",a.runDate="Run Date",a.granularity="Granularity",a.password="Password",a.commentary="Commentary",a.branded="Branded",a.contactInformation="Contact information",a.lookBackPeriod="Look back period";var A=l(30381),T=l.n(A),P=l(9198),Z=l.n(P);(o=i||(i={})).monthly="Monthly",o.daily="Daily";var D=l(45350);l(33732);var H=l(79513),O=l(24747),B=l(59020),F=l(30416),V=l(9473),I=l(51465),$=l.n(I),W=l(92814),G=l(67394),U=l(81175),K=l(32998),X=l(22292),q=l(6898),z=l(4506),Q=l(71954),Y=l(77943),J=l.n(Y),ee=l(88638),et=l.n(ee),el=l(31835),ea=l(84260),eo=l(73435),er=l(89408),en=l(76969),ei=l(44783),es=l(73935),ec=l(2903),ed=l(23277),eu=l(18716),ep=l.n(eu);let em=d.createContext(null);function eh(e){let{children:t,dropDownRef:l,onClose:a}=e,[o,r]=(0,d.useState)(),[n,i]=(0,d.useState)(),s=(0,d.useCallback)(e=>{r(t=>t?[...t,e]:[e])},[r]),u=(0,d.useMemo)(()=>({registerItem:s}),[s]);return(0,d.useEffect)(()=>{o&&!n&&i(o[0]),n&&n.current&&n.current.focus()},[o,n]),(0,c.jsx)(em.Provider,{value:u,children:(0,c.jsx)("div",{className:"dropdown",ref:l,onKeyDown:e=>{if(!o)return;let t=e.key;["Escape","ArrowUp","ArrowDown","Tab"].includes(t)&&e.preventDefault(),"Escape"===t||"Tab"===t?a():"ArrowUp"===t?i(e=>{if(!e)return o[0];let t=o.indexOf(e)-1;return o[-1===t?o.length-1:t]}):"ArrowDown"===t&&i(e=>e?o[o.indexOf(e)+1]:o[0])},children:t})})}function ex(e){let{disabled:t=!1,buttonLabel:l,buttonAriaLabel:a,buttonClassName:o,buttonIconClassName:r,children:n,stopCloseOnClickSelf:i,wrapper:s}=e,u=(0,d.useRef)(null),p=(0,d.useRef)(null),[m,h]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{let e=p.current,t=u.current;if(m&&null!==e&&null!==t){let{top:l,left:a}=e.getBoundingClientRect();t.style.top="".concat(l-200,"px"),t.style.left="".concat(Math.min(a,window.innerWidth-t.offsetWidth-20),"px")}},[u,p,m]),(0,d.useEffect)(()=>{let e=p.current;if(null!==e&&m){let t=t=>{let l=t.target;!(i&&u.current&&u.current.contains(l))&&(e.contains(l)||h(!1))};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}},[u,p,m,i]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{disabled:t,"aria-label":a||l,className:o,onClick:()=>h(!m),ref:p,children:[r&&(0,c.jsx)("i",{className:r}),l&&(0,c.jsx)("span",{className:"text dropdown-button-text",children:l}),(0,c.jsx)("i",{className:"chevron-down"})]}),m&&(0,es.createPortal)((0,c.jsx)(eh,{dropDownRef:u,onClose:()=>{h(!1),p&&p.current&&p.current.focus()},children:n}),s||document.body)]})}var eg=l(16944),ev=l.n(eg);
1function ef(e){let{label:t,value:l,onChange:a,placeholder:o="","data-test-id":r}=e;return(0,c.jsxs)("div",{className:ev().wrapper,children:[(0,c.jsx)("label",{className:ev().label,children:t}),(0,c.jsx)("input",{type:"text",className:ev().input,placeholder:o,value:l,onChange:e=>{a(e.target.value)},"data-test-id":r})]})}let eb=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000000","#4a4a4a","#9b9b9b","#ffffff"];function ej(e){let{color:t,children:l,onChange:a,disabled:o=!1,wrapper:r,...n}=e,[i,s]=(0,d.useState)(ew("hex",t)),[u,p]=(0,d.useState)(t),m=(0,d.useRef)(null),h=(0,d.useMemo)(()=>({x:i.hsv.s/100*214,y:(100-i.hsv.v)/100*150}),[i.hsv.s,i.hsv.v]),x=(0,d.useMemo)(()=>({x:i.hsv.h/360*214}),[i.hsv]);return(0,d.useEffect)(()=>{null!==m.current&&a&&(a(i.hex),p(i.hex))},[i,a]),(0,d.useEffect)(()=>{if(void 0===t)return;let e=ew("hex",t);s(e),p(e.hex)},[t]),(0,c.jsxs)(ex,{...n,disabled:o,wrapper:r,children:[(0,c.jsxs)("div",{className:ep().colorPickerWrapper,style:{width:214},ref:m,children:[(0,c.jsx)(ef,{label:"Hex",onChange:e=>{p(e),/^#[0-9A-Fa-f]{6}$/i.test(e)&&s(ew("hex",e))},value:u}),(0,c.jsx)("div",{className:ep().colorPickerBasicColor,children:eb.map(e=>(0,c.jsx)("button",{className:e===i.hex?" active":"",style:{backgroundColor:e},onClick:()=>{p(e),s(ew("hex",e))}},e))}),(0,c.jsx)(eC,{className:ep().colorPickerSaturation,style:{backgroundColor:"hsl(".concat(i.hsv.h,", 100%, 50%)")},onChange:e=>{let{x:t,y:l}=e,a=ew("hsv",{...i.hsv,s:t/214*100,v:100-l/150*100});s(a),p(a.hex)},children:(0,c.jsx)("div",{className:ep().colorPickerSaturationCursor,style:{backgroundColor:i.hex,left:h.x,top:h.y}})}),(0,c.jsx)(eC,{className:ep().colorPickerHue,onChange:e=>{let{x:t}=e,l=ew("hsv",{...i.hsv,h:t/214*360});s(l),p(l.hex)},children:(0,c.jsx)("div",{className:ep().colorPickerHueCursor,style:{backgroundColor:"hsl(".concat(i.hsv.h,", 100%, 50%)"),left:x.x}})}),(0,c.jsx)("div",{className:ep().colorPickerColor,style:{backgroundColor:i.hex}})]}),l]})}function eC(e){let{className:t,style:l,onChange:a,children:o}=e,r=(0,d.useRef)(null),n=e=>{if(r.current){var t,l;let{current:o}=r,{width:n,height:i,left:s,top:c}=o.getBoundingClientRect();a({x:(t=e.clientX-s)>n?n:t<0?0:t,y:(l=e.clientY-c)>i?i:l<0?0:l})}};return(0,c.jsx)("div",{ref:r,className:t,style:l,onMouseDown:e=>{if(0!==e.button)return;n(e);let t=e=>{n(e)},l=e=>{document.removeEventListener("mousemove",t,!1),document.removeEventListener("mouseup",l,!1),n(e)};document.addEventListener("mousemove",t,!1),document.addEventListener("mouseup",l,!1)},children:o})}function eN(e){if(e.startsWith("#")){if(4===e.length||5===e.length)return e=e.split("").map((e,t)=>t?e+e:"#").join("");if(7===e.length||9===e.length)return e}else{let t=document.createElement("canvas").getContext("2d");if(!t)throw Error("2d context not supported or canvas already initialized");return t.fillStyle=e,t.fillStyle}return"#000000"}function ek(e){let t=(e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,l,a)=>"#"+t+t+l+l+a+a).substring(1).match(/.{2}/g)||[]).map(e=>parseInt(e,16));return{b:t[2],g:t[1],r:t[0]}}function ey(e){let{r:t,g:l,b:a}=e,o=Math.max(t/=255,l/=255,a/=255),r=o-Math.min(t,l,a);return{h:r?(o===t?(l-a)/r+(l<a?6:0):o===l?2+(a-t)/r:4+(t-l)/r)*60:0,s:o?r/o*100:0,v:100*o}}function e_(e){let{b:t,g:l,r:a}=e;return"#"+[a,l,t].map(e=>e.toString(16).padStart(2,"0")).join("")}function ew(e,t){let l=eN("#121212"),a=ek(l),o=ey(a);return"hex"===e?o=ey(a=ek(l=eN(t))):"rgb"===e?(l=e_(a=t),o=ey(a)):"hsv"===e&&(l=e_(a=function(e){let{h:t,s:l,v:a}=e,o=~~(t/60),r=t/60-o,n=(a/=100)*(1-(l/=100)),i=a*(1-l*r),s=a*(1-l*(1-r)),c=o%6,d=Math.round(255*[a,i,n,n,s,a][c]),u=Math.round(255*[s,a,a,i,n,n][c]);return{b:Math.round(255*[n,n,s,a,a,i][c]),g:u,r:d}}(o=t))),{hex:l,hsv:o,rgb:a}}let eL=new Set(["paragraph","quote","code","h1","h2","ul","ol"]),eS={code:"Code Block",h1:"Large Heading",h2:"Small Heading",h3:"Heading",h4:"Heading",h5:"Heading",ol:"Numbered List",paragraph:"Normal",quote:"Quote",ul:"Bulleted List"};function eR(){return(0,c.jsx)("div",{className:"divider"})}
1function eM(e,t){if(e){if(null==t)e.style.opacity="0",e.style.top="-1000px",e.style.left="-1000px";else{var l,a,o,r;e.style.opacity="1",e.style.top="".concat((null!==(l=t.top)&&void 0!==l?l:0)+(null!==(a=t.height)&&void 0!==a?a:0)+window.pageYOffset+10,"px"),e.style.left="".concat((null!==(o=t.left)&&void 0!==o?o:0)+window.pageXOffset-e.offsetWidth/2+(null!==(r=t.width)&&void 0!==r?r:0)/2,"px")}}}function eE(e){let{editor:t}=e,l=(0,d.useRef)(null),a=(0,d.useRef)(null),o=(0,d.useRef)(!1),[r,n]=(0,d.useState)(""),[i,s]=(0,d.useState)(!1),[u,p]=(0,d.useState)(null),m=(0,d.useCallback)(()=>{var e;let a=(0,K.$getSelection)();if((0,K.$isRangeSelection)(a)){let e=eT(a),t=null==e?void 0:e.getParent();(0,eo.$isLinkNode)(t)?n(t.getURL()):(0,eo.$isLinkNode)(e)?n(e.getURL()):n("")}let r=l.current,i=window.getSelection(),c=document.activeElement;if(null===r)return;let d=t.getRootElement();if(null!==a&&!(null==i?void 0:i.isCollapsed)&&null!==d&&d.contains(null!==(e=null==i?void 0:i.anchorNode)&&void 0!==e?e:null)){let e;let t=null==i?void 0:i.getRangeAt(0);if((null==i?void 0:i.anchorNode)===d){let t=d;for(;null!=t.firstElementChild;)t=t.firstElementChild;e=t.getBoundingClientRect()}else e=null==t?void 0:t.getBoundingClientRect();o.current||eM(r,e),p(a)}else c&&"link-input"===c.className||(eM(r,void 0),p(null),s(!1),n(""));return!0},[t]);return(0,d.useEffect)(()=>(0,en.mergeRegister)(t.registerUpdateListener(e=>{let{editorState:t}=e;t.read(()=>{m()})}),t.registerCommand(K.SELECTION_CHANGE_COMMAND,()=>(m(),!0),1)),[t,m]),(0,d.useEffect)(()=>{t.getEditorState().read(()=>{m()})},[t,m]),(0,d.useEffect)(()=>{if(i&&a.current){var e;null===(e=a.current)||void 0===e||e.focus()}},[i]),(0,c.jsx)("div",{ref:l,className:"link-editor",children:i?(0,c.jsx)("input",{ref:a,className:"link-input",value:r,onChange:e=>{n(e.target.value)},onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),null!==u&&(""!==r&&t.dispatchCommand(eo.TOGGLE_LINK_COMMAND,r),s(!1))):"Escape"===e.key&&(e.preventDefault(),s(!1))}}):(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"link-input",children:[(0,c.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:r}),(0,c.jsx)("div",{className:"link-edit",role:"button",tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:()=>{s(!0)}})]})})})}function eA(e){let{onChange:t,className:l,options:a,value:o}=e;return(0,c.jsxs)("select",{className:l,onChange:t,value:o,children:[(0,c.jsx)("option",{hidden:!0,value:""}),a.map(e=>(0,c.jsx)("option",{value:e,children:e},e))]})}function eT(e){let t=null==e?void 0:e.anchor,l=null==e?void 0:e.focus,a=null==t?void 0:t.getNode(),o=null==l?void 0:l.getNode();return a===o?a:(null==e?void 0:e.isBackward())?l&&(0,er.$isAtNodeEnd)(l)?a:o:t&&(0,er.$isAtNodeEnd)(t)?o:a}function eP(e){let{editor:t,blockType:l,toolbarRef:a,setShowBlockOptionsDropDown:o}=e,r=(0,d.useRef)(null);return(0,d.useEffect)(()=>{let e=a.current,t=r.current;if(null!==e&&null!==t){let{top:l,left:a}=e.getBoundingClientRect();t.style.top="".concat(l+40,"px"),t.style.left="".concat(a,"px")}},[r,a]),(0,d.useEffect)(()=>{let e=r.current,t=a.current;if(null!==e&&null!==t){let l=l=>{let a=l.target;!a||e.contains(a)||t.contains(a)||o(!1)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}},[r,o,a]),(0,c.jsxs)("div",{className:"dropdown",ref:r,children:[(0,c.jsxs)("button",{className:"item",onClick:()=>{"paragraph"!==l&&t.update(()=>{let e=(0,K.$getSelection)();(0,K.$isRangeSelection)(e)&&(0,er.$wrapNodes)(e,()=>(0,K.$createParagraphNode)())}),o(!1)},children:[(0,c.jsx)("span",{className:"icon paragraph"}),(0,c.jsx)("span",{className:"text",children:"Normal"}),"paragraph"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"h1"!==l&&t.update(()=>{let e=(0,K.$getSelection)();(0,K.$isRangeSelection)(e)&&(0,er.$wrapNodes)(e,()=>(0,ec.$createHeadingNode)("h1"))}),o(!1)},children:[(0,c.jsx)("span",{className:"icon large-heading"}),(0,c.jsx)("span",{className:"text",children:"Large Heading"}),"h1"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"h2"!==l&&t.update(()=>{let e=(0,K.$getSelection)();(0,K.$isRangeSelection)(e)&&(0,er.$wrapNodes)(e,()=>(0,ec.$createHeadingNode)("h2"))}),o(!1)},children:[(0,c.jsx)("span",{className:"icon small-heading"}),(0,c.jsx)("span",{className:"text",children:"Small Heading"}),"h2"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"ul"!==l?t.dispatchCommand(ei.INSERT_UNORDERED_LIST_COMMAND,void 0):t.dispatchCommand(ei.REMOVE_LIST_COMMAND,void 0),o(!1)},children:[(0,c.jsx)("span",{className:"icon bullet-list"}),(0,c.jsx)("span",{className:"text",children:"Bullet List"}),"ul"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"ol"!==l?t.dispatchCommand(ei.INSERT_ORDERED_LIST_COMMAND,void 0):t.dispatchCommand(ei.REMOVE_LIST_COMMAND,void 0),o(!1)},children:[(0,c.jsx)("span",{className:"icon numbered-list"}),(0,c.jsx)("span",{className:"text",children:"Numbered List"}),"ol"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"quote"!==l&&t.update(()=>{let e=(0,K.$getSelection)();(0,K.$isRangeSelection)(e)&&(0,er.$wrapNodes)(e,()=>(0,ec.$createQuoteNode)())}),o(!1)},children:[(0,c.jsx)("span",{className:"icon quote"}),(0,c.jsx)("span",{className:"text",children:"Quote"}),"quote"===l&&(0,c.jsx)("span",{className:"active"})]}),(0,c.jsxs)("button",{className:"item",onClick:()=>{"code"!==l&&t.update(()=>{let e=(0,K.$getSelection)();(0,K.$isRangeSelection)(e)&&(0,er.$wrapNodes)(e,()=>(0,ed.$createCodeNode)())}),o(!1)},children:[(0,c.jsx)("span",{className:"icon code"}),(0,c.jsx)("span",{className:"text",children:"Code Block"}),"code"===l&&(0,c.jsx)("span",{className:"active"})]})]})}function eZ(e){let{wrapper:t}=e,[l]=(0,ea.useLexicalComposerContext)(),a=(0,d.useRef)(null),[o,r]=(0,d.useState)(!1),[n,i]=(0,d.useState)(!1),[s,u]=(0,d.useState)("paragraph"),[p,m]=(0,d.useState)(null),[h,x]=(0,d.useState)(!1),[g,v]=(0,d.useState)(""),[f,b]=(0,d.useState)(!1);console.log(f);let[j,C]=(0,d.useState)(!1),[N,k]=(0,d.useState)(!1),[y,_]=(0,d.useState)(!1),[w,S]=(0,d.useState)(!1),[R,M]=(0,d.useState)(!1),[E,A]=(0,d.useState)(!1),[T,P]=(0,d.useState)("#000"),[Z,D]=(0,d.useState)("#fff"),H=(0,d.useCallback)(()=>{let e=(0,K.$getSelection)();if((0,K.$isRangeSelection)(e)){let t=e.anchor.getNode(),a="root"===t.getKey()?t
1:t.getTopLevelElementOrThrow(),o=a.getKey();if(null!==l.getElementByKey(o)){if(m(o),(0,ei.$isListNode)(a)){let e=(0,en.$getNearestNodeOfType)(t,ei.ListNode);u(e?e.getTag():a.getTag())}else u((0,ec.$isHeadingNode)(a)?a.getTag():a.getType()),(0,ed.$isCodeNode)(a)&&v(a.getLanguage()||(0,ed.getDefaultCodeLanguage)())}k(e.hasFormat("bold")),_(e.hasFormat("italic")),S(e.hasFormat("underline")),M(e.hasFormat("strikethrough")),A(e.hasFormat("code")),b((0,er.$isParentElementRTL)(e));let r=eT(e),n=null==r?void 0:r.getParent();(0,eo.$isLinkNode)(n)||(0,eo.$isLinkNode)(r)?C(!0):C(!1),P((0,er.$getSelectionStyleValueForProperty)(e,"color","#000")),D((0,er.$getSelectionStyleValueForProperty)(e,"background-color","#fff"))}},[l]);(0,d.useEffect)(()=>(0,en.mergeRegister)(l.registerUpdateListener(e=>{let{editorState:t}=e;t.read(()=>{H()})}),l.registerCommand(K.SELECTION_CHANGE_COMMAND,()=>(H(),!1),1),l.registerCommand(K.CAN_UNDO_COMMAND,e=>(r(e),!1),1),l.registerCommand(K.CAN_REDO_COMMAND,e=>(i(e),!1),1)),[l,H]);let O=(0,d.useMemo)(()=>(0,ed.getCodeLanguages)(),[]),B=(0,d.useCallback)(e=>{l.update(()=>{if(null!==p){let t=(0,K.$getNodeByKey)(p);(0,ed.$isCodeNode)(t)&&t.setLanguage(e.target.value)}})},[l,p]),F=(0,d.useCallback)(()=>{j?l.dispatchCommand(eo.TOGGLE_LINK_COMMAND,null):l.dispatchCommand(eo.TOGGLE_LINK_COMMAND,"https://")},[l,j]),V=(0,d.useCallback)(e=>{l.update(()=>{let t=(0,K.$getSelection)();(0,K.$isRangeSelection)(t)&&(0,er.$patchStyleText)(t,e)})},[l]),I=(0,d.useCallback)(e=>{V({color:e})},[V]),$=(0,d.useCallback)(e=>{V({"background-color":e})},[V]);return(0,c.jsxs)("div",{className:"toolbar",ref:a,children:[(0,c.jsx)("button",{disabled:!o,onClick:()=>{l.dispatchCommand(K.UNDO_COMMAND,void 0)},className:"toolbar-item spaced","aria-label":"Undo",children:(0,c.jsx)("i",{className:"format undo"})}),(0,c.jsx)("button",{disabled:!n,onClick:()=>{l.dispatchCommand(K.REDO_COMMAND,void 0)},className:"toolbar-item","aria-label":"Redo",children:(0,c.jsx)("i",{className:"format redo"})}),(0,c.jsx)(eR,{}),eL.has(s)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{className:"toolbar-item block-controls",onClick:()=>x(!h),"aria-label":"Formatting Options",children:[(0,c.jsx)("span",{className:"icon block-type "+s}),(0,c.jsx)("span",{className:"text",children:eS[s]}),(0,c.jsx)("i",{className:"chevron-down"})]}),h&&(0,es.createPortal)((0,c.jsx)(eP,{editor:l,blockType:s,toolbarRef:a,setShowBlockOptionsDropDown:x}),t||document.body),(0,c.jsx)(eR,{})]}),"code"===s?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eA,{className:"toolbar-item code-language",onChange:e=>{B(e)},options:O,value:g}),(0,c.jsx)("i",{className:"chevron-down inside"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item spaced "+(N?"active":""),"aria-label":"Format Bold",children:(0,c.jsx)("i",{className:"format bold"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item spaced "+(y?"active":""),"aria-label":"Format Italics",children:(0,c.jsx)("i",{className:"format italic"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item spaced "+(w?"active":""),"aria-label":"Format Underline",children:(0,c.jsx)("i",{className:"format underline"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_TEXT_COMMAND,"strikethrough")},className:"toolbar-item spaced "+(R?"active":""),"aria-label":"Format Strikethrough",children:(0,c.jsx)("i",{className:"format strikethrough"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_TEXT_COMMAND,"code")},className:"toolbar-item spaced "+(E?"active":""),"aria-label":"Insert Code",children:(0,c.jsx)("i",{className:"format code"})}),(0,c.jsx)("button",{onClick:F,className:"toolbar-item spaced "+(j?"active":""),"aria-label":"Insert Link",children:(0,c.jsx)("i",{className:"format link"})}),j&&(0,es.createPortal)((0,c.jsx)(eE,{editor:l}),t||document.body),(0,c.jsx)(eR,{}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_ELEMENT_COMMAND,"left")},className:"toolbar-item spaced","aria-label":"Left Align",children:(0,c.jsx)("i",{className:"format left-align"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_ELEMENT_COMMAND,"center")},className:"toolbar-item spaced","aria-label":"Center Align",children:(0,c.jsx)("i",{className:"format center-align"})}),(0,c.jsx)("button",{onClick:()=>{l.dispatchCommand(K.FORMAT_ELEMENT_COMMAND,"right")},className:"toolbar-item spaced","aria-label":"Right Align",children:(0,c.jsx)("i",{className:"format right-align"})}),(0,c.jsx)(L.Z,{variant:"light",onClick:()=>{l.dispatchCommand(K.FORMAT_ELEMENT_COMMAND,"justify")},className:"toolbar-item","aria-label":"Justify Align",children:(0,c.jsx)("i",{className:"format justify-align"})}),(0,c.jsx)(ej,{disabled:!1,buttonClassName:"toolbar-item color-picker",buttonAriaLabel:"Formatting text color",buttonIconClassName:"icon font-color",color:T,onChange:I,title:"text color",wrapper:t}),(0,c.jsx)(ej,{disabled:!1,buttonClassName:"toolbar-item color-picker",buttonAriaLabel:"Formatting background color",buttonIconClassName:"icon bg-color",color:Z,onChange:$,title:"bg color",wrapper:t})," "]})]})}var eD=l(87592),eH=l(91058),eO=l(67846),eB=l(38957),eF=l(69421),eV=l(87632),eI=l(36571);let e$={ltr:"ltr",rtl:"rtl",placeholder:"editor-placeholder",paragraph:"editor-paragraph",quote:"editor-quote",heading:{h1:"editor-heading-h1",h2:"editor-heading-h2",h3:"editor-heading-h3",h4:"editor-heading-h4",h5:"editor-heading-h5"},list:{nested:{listitem:"editor-nested-listitem"},ol:"editor-list-ol",ul:"editor-list-ul",listitem:"editor-listitem"},image:"editor-image",link:"editor-link",text:{bold:"editor-text-bold",italic:"editor-text-italic",overflowed:"editor-text-overflowed",hashtag:"editor-text-hashtag",underline:"editor-text-underline",strikethrough:"editor-text-strikethrough",underlineStrikethrough:"editor-text-underlineStrikethrough",code:"editor-text-code"},code:"editor-code",codeHighlight:{atrule:"editor-tokenAttr",attr:"editor-tokenAttr",boolean:"editor-tokenProperty",builtin:"editor-tokenSelector",cdata:"editor-tokenComment",char:"editor-tokenSelector",class:"editor-tokenFunction","class-name":"editor-tokenFunction",comment:"editor-tokenComment",constant:"editor-tokenProperty",deleted:"editor-tokenProperty",doctype:"editor-tokenComment",entity:"editor-tokenOperator",function:"editor-tokenFunction",important:"editor-tokenVariable",inserted:"editor-tokenSelector",keyword:"editor-tokenAttr",namespace:"editor-tokenVariable",number:"editor-tokenProperty",o
1perator:"editor-tokenOperator",prolog:"editor-tokenComment",property:"editor-tokenProperty",punctuation:"editor-tokenPunctuation",regex:"editor-tokenVariable",selector:"editor-tokenSelector",string:"editor-tokenSelector",symbol:"editor-tokenProperty",tag:"editor-tokenProperty",url:"editor-tokenOperator",variable:"editor-tokenVariable"}};function eW(e){console.error(e)}var eG=e=>{let{htmlText:t,onChangeHTML:l}=e;console.log("htmlText: ",t);let a=(0,d.useRef)(null),o={namespace:"MyEditor",theme:e$,onError:eW,nodes:[ec.HeadingNode,ei.ListNode,ei.ListItemNode,ec.QuoteNode,ed.CodeNode,ed.CodeHighlightNode,eH.TableNode,eH.TableCellNode,eH.TableRowNode,eo.AutoLinkNode,eo.LinkNode]},r=(e,t)=>{e.read(()=>{var e;let a=(0,K.$getRoot)(),o=(0,K.$getSelection)();if(a.isEmpty()||1===a.getChildrenSize()&&(null===(e=a.getFirstChild())||void 0===e?void 0:e.isEmpty()))l("");else{let e=(0,eD.$generateHtmlFromNodes)(t);l(e.replaceAll("<br>","<br/>")),console.log(e)}console.log(a,o)})};return(0,c.jsx)("div",{className:et().wrapper,ref:a,children:(0,c.jsx)(X.LexicalComposer,{initialConfig:o,children:(0,c.jsxs)("div",{className:"editor-container",children:[(0,c.jsx)(eZ,{wrapper:null==a?void 0:a.current}),(0,c.jsxs)("div",{className:"editor-inner",children:[(0,c.jsx)(el.RichTextPlugin,{contentEditable:(0,c.jsx)(q.ContentEditable,{}),placeholder:(0,c.jsx)("div",{}),ErrorBoundary:J()}),(0,c.jsx)(Q.OnChangePlugin,{onChange:(e,t)=>
1{r(e,t)}}),(0,c.jsx)(z.HistoryPlugin,{}),(0,c.jsx)(eO.AutoFocusPlugin,{}),(0,c.jsx)(eB.ListPlugin,{}),(0,c.jsx)(eF.LinkPlugin,{}),(0,c.jsx)(eV.MarkdownShortcutPlugin,{transformers:eI.TRANSFORMERS})]})]})})})},eU=l(9151),eK=l(11776);let eX=e=>{var t;let l=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.value;return(0,c.jsx)(D.c.MultiValueLabel,{...e,children:l})};var eq=e=>{let{type:t,value:l,setValue:a,minLookBackPeriod:o}=e,r=(0,V.I0)(),s=(0,d.forwardRef)((e,t)=>{let{value:l,onClick:a,onChange:o}=e;return(0,c.jsx)("div",{className:$().dateCustomInput,ref:t,children:(0,c.jsxs)(H.Z,{onClick:a,role:"button",children:[(0,c.jsx)(R.Z.Control,{value:l,onChange:o}),(0,c.jsx)(H.Z.Text,{children:(0,c.jsx)(W.G,{icon:G.fT,titleId:"calendarIcon"})})]})})});switch(t){case n.benchmarks:let[u,p]=(0,d.useState)(),[m,h]=(0,d.useState)([]),[x,g]=(0,d.useState)([]),[v,f]=(0,d.useState)([]),[b,j]=(0,d.useState)("");return(0,d.useEffect)(()=>{(async()=>{p(!0),h((await eK.F.getWebStockList(b)).map(e=>{var t;return{label:"".concat(e.ticker," - ").concat(null!==(t=e.company_name)&&void 0!==t?t:""),value:e.ticker}})),p(!1)})()},[b]),(0,d.useEffect)(()=>{a(v.map(e=>e.value))},[v]),(0,c.jsx)("div",{children:(0,c.jsx)(eU.Z,{instanceId:"stockMultiSelect",isMulti:!0,options:[...m,...x],value:v,onChange:e=>{f(e?[...e]:[])},onInputChange:e=>{j(null!=e?e:"")},onCreateOption:e=>{let t=e.toUpperCase();p(!0);let l={label:t,value:t};g(e=>[...e,l]),f(e=>[...e,l]),p(!1)},isDisabled:u,isLoading:u,components:{MultiValueLabel:eX}})});case n.lookBackPeriod:return(0,c.jsx)("div",{className:$().shortField,children:(0,c.jsx)(H.Z,{children:(0,c.jsx)(R.Z.Control,{type:"number",value:l,min:null!=o?o:0,onChange:e=>a(parseInt(e.target.value))})})});case n.runDate:return(0,c.jsx)(Z(),{customInput:d.createElement(s),dateFormat:"yyyy-MM-dd",selected:l&&"string"==typeof l?T()(l,"yyyy-MM-DD").toDate():null,onChange:e=>{let t=T()(e).format("yyyy-MM-DD");console.log(t),a(t)}});case n.granularity:let C=[{label:i.monthly,value:i.monthly},{label:i.daily,value:i.daily}];return(0,c.jsx)(E.ZP,{className:$().shortField,instanceId:"reportTypes",options:C,value:l?{label:l,value:l}:C[0],onChange:e=>{var t;a(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:i.monthly)}});case n.password:case n.commentary:return(0,c.jsx)(R.Z.Control,{type:"text",value:l,onChange:e=>a(e.target.value)});case n.branded:let N=(0,d.useRef)(null);return(0,c.jsxs)(R.Z.Group,{controlId:"formFile",children:[(0,c.jsx)(R.Z.Label,{children:"Upload your logo (PNG or JPG file)"}),(0,c.jsxs)(H.Z,{children:[(0,c.jsx)(R.Z.Control,{type:"file",accept:"image/jpeg, image/png",ref:N,onChange:e=>{var t,l,o,n;let i=(null===(t=e.target)||void 0===t?void 0:t.files)&&(null===(o=e.target)||void 0===o?void 0:null===(l=o.files)||void 0===l?void 0:l.length)>0?null===(n=e.target)||void 0===n?void 0:n.files[0]:null;console.log(i),i&&O.b.upload(i,"mxls-templates/images",!0).then(e=>{a(e),r((0,B.c0)({title:"File uploaded",description:"Image uploaded successfully",color:F.A.success}))})}}),(0,c.jsx)(H.Z.Text,{children:(0,c.jsx)(W.G,{titleId:"removeFileIcon",icon:U.YI,role:"button",onClick:()=>{a(""),(null==N?void 0:N.current)&&(N.current.value="")},"data-toggle":"tooltip","data-placement":"bottom",title:"Remove file"})})]})]});case n.contactInformation:return(0,c.jsx)(eG,{onChangeHTML:e=>{a(e)}});default:return(0,c.jsx)("span",{children:l})}};(r=s||(s={})).effecientFrontierReport="effecient_frontier_report",r.portfolioFactSheet="fact_sheet";var ez=l(87618);class eQ{getReport(e,t,l){var a;let o={};t.forEach(e=>{e.symbol&&(o[e.symbol]=e.allocation)});let r={};l.forEach(e=>{e.type!==n.granularity&&e.type!==n.lookBackPeriod&&e.type!==n.runDate&&e.type!==n.commentary&&(r[e.type]=e.value)});let s=l.find(e=>e.type===n.granularity),c=l.find(e=>e.type===n.lookBackPeriod),d=(null==c?void 0:c.value)==null||isNaN(Number(null==c?void 0:c.value))?12:Number(c.value),u=l.find(e=>e.type===n.runDate),p=l.find(e=>e.type===n.commentary);return ez.M.post("".concat("https://ds.marketxls.com/marketxls/api/v1.1","/portfolio/").concat(e,"/").concat(d,"/0.04/").concat((null!==(a=null==s?void 0:s.value)&&void 0!==a?a:i.monthly).toString().toLowerCase(),"/").concat((null==u?void 0:u.value)||"b","/").concat((null==p?void 0:p.value)||"c"),{portfolio:o,userDetails:r},void 0,void 0,!0)}}let eY=new eQ;var eJ=l(15495),e0=l.n(eJ),e1=l(40221),e2=l(32666),e4=l(44691),e7=l(22927),e5=l(4727),e9=l(89962),e8=l(41664),e6=l.n(e8);let e3="Backspace",te=(0,d.memo)((0,d.forwardRef)((e,t)=>{let l,a;
1let o=(a=!0,e.eventKey===e3?l="":e.charPress?(l=e.charPress,a=!1):(l=e.value,"F2"===e.eventKey&&(a=!1)),{value:l,highlightAllOnFocus:a}),[r,n]=(0,d.useState)(o.value),[i,s]=(0,d.useState)(o.highlightAllOnFocus),u=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=u.current;if(e.focus(),i)e.select(),s(!1);else{let t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}},[]);let p=e=>["ArrowLeft","ArrowRight"].indexOf(e.key)>-1,m=e=>!!/[a-zA-Z]/.test(e),h=e=>m(e.key),x=e=>e.key===e3,g=e=>{let t=e.key;return"Enter"===t||"Tab"===t},v=t=>{if(p(t)||x(t)){t.stopPropagation();return}g(t)||h(t)||!t.preventDefault||t.preventDefault(),g(t)&&e.stopEditing()};return(0,d.useImperativeHandle)(t,()=>({getValue:()=>null==r?void 0:r.slice(0,20)})),(0,c.jsx)("input",{ref:u,value:null!=r?r:"",onChange:e=>{var t;return n(null===(t=e.target.value)||void 0===t?void 0:t.toUpperCase())},onKeyDown:e=>v(e)})})),tt="Backspace",tl=(0,d.memo)((0,d.forwardRef)((e,t)=>{let l,a;let o=(a=!0,e.eventKey===tt?l="":e.charPress?(l=e.charPress,a=!1):(l=e.value,"F2"===e.eventKey&&(a=!1)),{value:l,highlightAllOnFocus:a}),[r,n]=(0,d.useState)(o.value),[i,s]=(0,d.useState)(o.highlightAllOnFocus),u=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=u.current;if(e.focus(),i)e.select(),s(!1);else{let t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}},[]);let p=e.charPress&&0>"1234567890.,".indexOf(e.charPress),m=e=>["ArrowLeft","ArrowRight"].indexOf(e.key)>-1,h=e=>!!/[,.\d]/.test(e),x=e=>h(e.key),g=e=>e.key===tt,v=e=>{let t=e.key;return"Enter"===t||"Tab"===t},f=t=>{if(m(t)||g(t)){t.stopPropagation();return}v(t)||x(t)||!t.preventDefault||t.preventDefault(),v(t)&&e.stopEditing()};return(0,d.useImperativeHandle)(t,()=>({getValue:()=>r,isCancelBeforeStart:()=>p,isCancelAfterEnd:()=>r>1e6})),(0,c.jsx)("input",{ref:u,value:null!=r?r:"",onChange:e=>{var t;return n(null===(t=e.target.value)||void 0===t?void 0:t.replace(",","."))},onKeyDown:e=>f(e)})}));var ta=l(22734),to=l.n(ta),tr=()=>(0,c.jsx)("svg",{width:"175",height:"32",viewBox:"0 0 175 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{id:"logo 2",clipPath:"url(#clip0_0_1)",children:[(0,c.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M148.93 18.8296L145 18.9071L145.057 19.9855C145.455 23.8471 149.379 26 152.91 26C156.787 26 161 23.5506 161 19.2269C161 18.7458 160.939 18.2532 160.847 17.7878C160.001 14.2573 156.467 13.397 153.358 13.0099C151.935 12.8755 149.246 12.7914 149.104 10.8521C149.064 10.2977 149.159 9.71146 149.504 9.26321C150.254 8.2916 151.688 7.90268 152.86 7.88072C154.358 7.85279 156.215 8.48119 156.579 10.1377L156.665 10.527L160.512 10.372L160.439 9.84938C159.906 6.01473 156.64 4 152.998 4C150.575 4 147.927 4.95022 146.412 6.93498C145.481 8.15615 145.073 9.66226 145.203 11.1931L145.241 11.6494L145.248 11.6491L145.298 11.9259C145.982 15.7867 149.558 16.5949 152.892 16.9332C154.031 17.0487 156.676 17.1986 156.99 18.5982C157.034 18.7933 157.066 18.9968 157.066 19.1972C157.066 21.2008 154.59 22.0896 152.939 22.0896C151.456 22.0896 149.172 21.3356 148.986 19.5893L148.93 18.8296Z",fill:"#0067B8"}),(0,c.jsx)("path",{id:"Vector_2",fillRule:"evenodd",clipRule:"evenodd",d:"M134.748 5H131V26H144V22.1777H134.748V5Z",fill:"#0067B8"}),(0,c.jsx)("path",{id:"Vector_3",fillRule:"evenodd",clipRule:"evenodd",d:"M110 5L117.66 15.3464L110.005 26H114.747L120.003 18.473L125.288 26H130L123.791 17.359L118.796 10.4477L120.005 12.0745L114.75 5H110Z",fill:"#0067B8"}),(0,c.jsx)("path",{id:"Vector_4",fillRule:"evenodd",clipRule:"evenodd",d:"M97.6985 19.9828H93.8616L93.7309 20.2313C92.8929 21.8283 91.2678 22.5703 89.5137 22.5703C87.4116 22.5703 85.298 21.0904 84.8372 18.9919L84.7533 18.6109H97.8235L97.9022 18.2438C98.0044 17.7657 98.0272 17.2454 97.9674 16.7436C97.6567 12.1044 94.1482 9 89.5422 9C84.5506 9 81 12.4728 81 17.4855C81 22.4267 84.537 26 89.4849 26C93.0487 26 96.2901 24.0342 97.4842 20.5994L97.6985 19.9828ZM85.1754 14.9096C85.9706 13.1683 87.6955 12.4007 89.5422 12.4007C91.384 12.4007 93.0372 13.1625 93.7879 14.9163L93.9754 15.3537H84.9727L85.1754 14.9096Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_5",fillRule:"evenodd",clipRule:"evenodd",d:"M69.6312 5H69.2951H66V26H69.6312V20.9879L71.0962 19.3723L75.9805 26H79.8029V25.12L73.4783 16.7327L80 9.55964H75.4792L71.
11601 14.3002L69.6312 16.1773V5Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_6",fillRule:"evenodd",clipRule:"evenodd",d:"M57.7338 9.33808H54V26H57.7338V16.9995C57.7338 13.9714 60.4852 11.7727 63.4008 12.6461L64 12.8256V9.31846L63.6395 9.23385C61.7803 8.79819 59.8174 8.91408 58.2337 10.0715L57.7338 10.4371V9.33808Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_7",fillRule:"evenodd",clipRule:"evenodd",d:"M48.1823 25.7411H52V9.25878H48.1757L48.1944 10.56L47.687 10.2239C46.3079 9.31005 44.5809 9 42.9412 9C37.9222 9 34 12.4005 34 17.4282C34 22.5767 37.8243 26.02 43.0018 25.9999C44.5775 25.9938 46.3581 25.605 47.686 24.7422L48.1823 24.4195V25.7411ZM48.1823 17.4855C48.1823 20.361 46.0313 22.503 43.1059 22.5706C40.0143 22.6419 37.8177 20.4375 37.8177 17.4282C37.8177 14.4576 39.8683 12.4436 42.8896 12.4012C45.8909 12.3591 48.1823 14.5292 48.1823 17.4855Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_8",d:"M101.739 29H105.532V12.8746H109V9.64953H105.532V5H101.736V9.64953H98V12.8746H101.736V27.0803L101.739 29Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_9",fillRule:"evenodd",clipRule:"evenodd",d:"M21.4402 16.0814C21.4402 14.2856 22.9517 12.8027 24.782 12.8027C26.6124 12.8027 28.124 14.2855 28.124 16.0814V26H32V16.0814C32 12.1866 28.752 9 24.782 9C22.7019 9 20.8203 9.87524 19.5 11.2685C18.1797 9.87524 16.298 9 14.2178 9C10.248 9 7 12.1866 7 16.0814V26H10.876V16.0814C10.876 14.2856 12.3875 12.8027 14.2178 12.8027C16.0482 12.8027 17.5598 14.2855 17.5598 16.0814V26H17.5642H21.4358H21.4402V16.0814Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_10",fillRule:"evenodd",clipRule:"evenodd",d:"M175 3.49997C175 5.4329 173.433 7 171.5 7C169.567 7 168 5.43299 168 3.49997C168 1.56701 169.567 0 171.5 0C173.433 0 175 1.56701 175 3.49997ZM168.564 3.49997C168.564 5.12141 169.879 6.43594 171.5 6.43594C173.122 6.43594 174.436 5.1215 174.436 3.49997C174.436 1.8785 173.121 0.564057 171.5 0.564057C169.879 0.564057 168.564 1.8785 168.564 3.49997Z",fill:"black"}),(0,c.jsx)("path",{id:"Vector_11",fillRule:"evenodd",clipRule:"evenodd",d:"M171.485 3.90352H170.687V3.54003H170.676V2.54167H171.485C171.855 2.54167 172.158 2.84809 172.158 3.22255C172.158 3.59711 171.855 3.90352 171.485 3.90352ZM172.117 4.30486L173 6H172.255L171.427 4.41086H170.687V5.97551H170V4.41086V3.54003V2H171.63C172.285 2 172.821 2.54238 172.821 3.20535C172.821 3.69314 172.531 4.11562 172.117 4.30486Z",fill:"black"}),(0,c.jsx)("g",{id:"border2",className:to().border2,children:(0,c.jsx)("path",{d:"M110 31H159.942C162.724 31 165 28.8356 165 26.19V6.8099C165 4.16437 162.72 2 159.942 2H129.451L121.955 11.4931",stroke:"#0067B8",strokeWidth:"3"})}),(0,c.jsx)("path",{id:"border1",className:to().border1,d:"M102.5 30.5H103.736H105.5L3.51525 31C2.13577 31 1 29.7959 1 28.3238V4.67603C1 3.20414 2.1318 2 3.51525 2H121",stroke:"black",strokeWidth:"3"})]})});k.ModuleRegistry.registerModules([y.I]);let tn=e=>e.columnApi.getAllDisplayedColumns()[0]===e.column;var ti=()=>{let e=(0,V.I0)(),t=(0,d.useRef)(null),[l]=(0,d.useState)([{field:"checkboxBtn",headerName:"",checkboxSelection:tn,headerCheckboxSelection:tn,pinned:"left",width:50},{field:"symbol",editable:!0,width:90,cellEditor:te},{field:"allocation",editable:!0,width:100,cellEditor:tl}]),[a,o]=(0,d.useState)([{type:n.granularity,value:i.monthly},{type:n.lookBackPeriod,value:12},{type:n.runDate,value:""},{type:n.benchmarks,value:[]},{type:n.branded,value:""},{type:n.password,value:""},{type:n.commentary,value:""},{type:n.contactInformation,value:""}]),r=[{label:"Efficient Frontier Report",value:s.effecientFrontierReport},{label:"Portfolio Fact Sheet",value:s.portfolioFactSheet}],[u,p]=(0,d.useState)(r[0]),[m,h]=(0,d.useState)(),[x,g]=(0,d.useState)(!1),[f,b]=(0,d.useState)(),[j,k]=(0,d.useState)(!1),[y,A]=(0,d.useState)(!1);return(0,c.jsx)(C,{headerElement:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(_.Z,{className:"p-3 align-items-center",children:[(0,c.jsx)(w.Z,{md:3,lg:3,className:"align-items-center",children:(0,c.jsx)(e6(),{href:"/",children:(0,c.jsx)("img",{width:200,height:50,alt:"MarketXLS logo",src:v.T.logo})})}),(0,c.jsx)(w.Z,{children:(0,c.jsx)("h1",{className:"m-0 text-center",children:"Report Builder"})}),(0,c.jsxs)(w.Z,{md:6,lg:5,xl:5,className:"text-end",children:[(0,c.jsx)(e9.Z,{showDemoVideo:j,hideDemoVideo:()=>k(!1),videoLink:"https://www.youtube.com/embed/OF3CnlW4mWA"}),(0,c.jsx)(L.Z,{className:"me-1",onClick:()=>{k(!0)},variant:"primary",children:"Demo Video"}),(0,c.jsx)(L.Z,{className:"me-1 ".concat(e0().sampleBtn),href:"https://mxls-templates.s3.us-west-2.amazonaws.com/report-xlUmo.pdf",target:"_blank",variant:"primary",children:"Sample sheet"}),(0,c.jsx)(L.Z,{className:"me-1 ".concat(e0().buyBtn),href:e5.U.pricing,variant:"success",children:"Buy now"}),(0,c.jsxs)(L.Z,{href:e5.U.authorizationLogin,variant:"light",children:[(0,c.jsx)("img",{src:v.T.userBlueAccount,width:23,height:26,className:"me-1",alt:"User blue account icon"}),"Login"]})]})]})}),body:(0,c.jsxs)("div",{className:e0().bodyWrapper,children:[(0,c.jsxs)(_.Z,{className:"mb-4",ref:t,children:[(0,c.jsx)(w.Z,{children:(0,c.jsxs)(_.Z,{className:"align-items-center",children:[(0,c.jsx)(w.Z,{children:(0,c.jsx)("h6",{className:"m-0",children:"Select report"})}),(0,c.jsx)(w.Z,{className:"text-right",children:(0,c.jsx)(E.ZP,{instanceId:"reportTypes",options:r,className:e0().reportTypes,value:u,onChange:e=>{null!=e&&p({label:e.label,value:e.value})}})})]})}),(0,c.jsx)(w.Z,{})]}),(0,c.jsxs)(_.Z,{children:[(0,c.jsxs)(w.Z,{sm:12,md:6,lg:5,xl:4,children:[(0,c.jsxs)("div",{className:"d-flex justify-content-between align-items-end",children:[(0,c.jsx)("div",{className:"fst-italic",children:"Max Symbols : 100"}),(0,c.jsxs)("div",{children:[(0,c.jsx)(L.Z,{"data-toggle":"tooltip","data-
1placement":"bottom",title:"Paste stocks and allocations from excel table",className:"mb-1 me-1",onClick:()=>{navigator.clipboard.readText().then(e=>{let t=e.split("\r\n").filter(e=>!!e).map(e=>{var t;let l=e.split(" "),a=l[1];null!=a&&a.includes(",")&&(a=a.replaceAll(",",""));let o=null==a||isNaN(Number(a))?0:Number(a);return{symbol:null===(t=l[0])||void 0===t?void 0:t.toUpperCase(),allocation:o}});null==f||f.applyTransaction({add:t})})},children:(0,c.jsx)(W.G,{icon:e4.O4})}),(0,c.jsx)(L.Z,{"data-toggle":"tooltip","data-placement":"bottom",title:"Add row",onClick:()=>{null==f||f.applyTransaction({add:[{}]})},className:"mb-1 me-1",children:(0,c.jsx)(W.G,{icon:e1.XS})}),(0,c.jsx)(L.Z,{"data-toggle":"tooltip","data-placement":"bottom",title:"Remove row",onClick:()=>{let e=null==f?void 0:f.getSelectedRows();null==f||f.applyTransaction({remove:e})},className:"mb-1 me-1",children:(0,c.jsx)(W.G,{icon:e2.Kl})}),(0,c.jsx)(L.Z,{"data-toggle":"tooltip","data-placement":"bottom",title:"Remove all rows",className:"mb-1",onClick:()=>{null==f||f.selectAll();let e=null==f?void 0:f.getSelectedRows();null==f||f.applyTransaction({remove:e})},children:(0,c.jsx)(W.G,{icon:e7.$})})]})]}),(0,c.jsx)("div",{className:"ag-theme-alpine",style:{height:"300px"},children:(0,c.jsx)(N.AgGridReact,{rowData:[],columnDefs:l,onGridReady:e=>{b(e.api)},singleClickEdit:!0,stopEditingWhenCellsLoseFocus:!0,rowSelection:"multiple"})}),(0,c.jsx)("div",{className:"fst-italic",children:"Assets supported : US Equities, ETFs, Mutual Funds, Cryptocurrencies & Forex"})]}),(0,c.jsx)(w.Z,{sm:12,md:6,lg:7,xl:8,children:(0,c.jsx)(_.Z,{children:(0,c.jsxs)(w.Z,{children:[(0,c.jsx)("h4",{className:"text-center boldText",children:"Parameters"}),(0,c.jsx)("div",{className:e0().firstRowParams,children:a.slice(0,4).map(e=>{var t;return(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:e0().blockWrapper,children:(0,c.jsxs)("div",{className:e0().block,children:[(0,c.jsx)("div",{className:e0().blockTitle,children:e.type}),(0,c.jsx)("div",{children:(0,c.jsx)(eq,{type:e.type,value:e.value,minLookBackPeriod:(null===(t=a.find(e=>e.type===n.granularity))||void 0===t?void 0:t.value)===i.monthly?12:30,setValue:t=>{let l=a.findIndex(t=>t.type===e.type);if(l>-1){let e=[...a];e[l].value=t;let c=e[a.findIndex(e=>e.type===n.lookBackPeriod)];if(e[l].type===n.granularity){var r,s;e[l].value===i.monthly&&(null!==(r=null==c?void 0:c.value)&&void 0!==r?r:0)<12&&(c.value=12),e[l].value===i.daily&&(null!==(s=null==c?void 0:c.value)&&void 0!==s?s:0)<30&&(c.value=30)}o(e)}}})})]})})},e.type)})}),(0,c.jsx)("hr",{className:"me-2 mt-1 mb-1"}),(0,c.jsx)(S.Z,{className:"fullWidth",borderless:!0,children:(0,c.jsx)("tbody",{children:a.slice(4,a.length-1).map(e=>(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:e0().tableHeader,children:e.type}),(0,c.jsx)("td",{children:(0,c.jsx)(eq,{type:e.type,value:e.value,setValue:t=>{let l=a.findIndex(t=>t.type===e.type);if(l>-1){let e=[...a];e[l].value=t,o(e)}}})})]},e.type))})})]})})})]}),(0,c.jsx)("div",{className:"pt-2",children:a.slice(a.length-1,a.length).map(e=>(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)("div",{className:"text-center boldText",children:e.type}),(0,c.jsx)("div",{children:(0,c.jsx)(eq,{type:e.type,value:e.value,setValue:t=>{let l=a.findIndex(t=>t.type===e.type);if(l>-1){let e=[...a];e[l].value=t,o(e)}}})})]},e.type))})]}),footer:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_.Z,{className:"mt-3",children:(0,c.jsxs)(w.Z,{className:"text-center",children:[!y&&m&&(0,c.jsxs)("div",{className:"mb-2",children:[(0,c.jsx)(R.Z.Text,{className:"text-muted",children:x?(0,c.jsx)(M.Z,{variant:"danger",className:"d-inline p-2 m-1",children:m}):m}),"\xa0",(0,c.jsx)(L.Z,{variant:"secondary",size:"sm",onClick:()=>{var t,l,a;null===(a=navigator.clipboard)||void 0===a||null===(l=a.writeText(m))||void 0===l||null===(t=l.then(()=>{e((0,B.c0)({title:"Action success",description:"Link copied to clipboard",color:F.A.success}))}))||void 0===t||t.catch(e=>console.error(e))},children:"Share"})]}),y?(0,c.jsx)(tr,{}):(0,c.jsx)(L.Z,{onClick:()=>{A(!0);let t=[];null==f||f.forEachNode(e=>{let l=null==e?void 0:e.data;if(null==l?void 0:l.symbol){let e=null==l?void 0:l.allocation;
1t.push({symbol:l.symbol,allocation:e&&!isNaN(Number(e))?Number(e):0})}}),eY.getReport(u.value,t,a).then(t=>{let l=!1;(null==t?void 0:t.startsWith("https://"))?e((0,B.c0)({title:"Data uploaded",description:"Report generated",color:F.A.success})):(l=!0,e((0,B.c0)({title:"Could not generate report",description:"Error generating report",color:F.A.danger}))),g(l),h(t),A(!1)}).catch(e=>{A(!1),g(!0),h(e.type)})},children:"Generate Report"})]})})})})}},8997:function(e){e.exports={dialogWrapper:"DemoVideo7MinutesDialog_dialogWrapper__37plO",videoWrapper:"DemoVideo7MinutesDialog_videoWrapper__w93Ez"}},5317:function(e){e.exports={wrapper:"BuilderWrapper_wrapper__i8eif",card:"BuilderWrapper_card__Cgf9k",footer:"BuilderWrapper_footer__I0xx3",header:"BuilderWrapper_header__G5pQe"}},51458:function(e){e.exports={poweredByMarketXLS:"PoweredByMarketXLS_poweredByMarketXLS__LZ5TW"}},22734:function(e){e.exports={border1:"AnimatedLogo_border1__iXPK8",borderLeft:"AnimatedLogo_borderLeft__ZSFR3",border2:"AnimatedLogo_border2__tQMGl",borderRight:"AnimatedLogo_borderRight__dwu8y"}},88638:function(e){e.exports={wrapper:"Editor_wrapper__MbpTB"}},18716:function(e){e.exports={colorPickerWrapper:"ColorPicker_colorPickerWrapper__WDiqi",colorPickerBasicColor:"ColorPicker_colorPickerBasicColor__Og9QY",active:"ColorPicker_active__rKil4",colorPickerSaturation:"ColorPicker_colorPickerSaturation__Zxgeb",colorPickerSaturationCursor:"ColorPicker_colorPickerSaturationCursor__S_ewz",colorPickerHue:"ColorPicker_colorPickerHue__bRIu4",colorPickerHueCursor:"ColorPicker_colorPickerHueCursor__RZqaw","color-picker-color":"ColorPicker_color-picker-color__yEOA5"}},16944:function(e){e.exports={wrapper:"Input_wrapper__KEZFl",label:"Input_label__sYZ0j",input:"Input_input__EBLp6"}},51465:function(e){e.exports={shortField:"ParametersValueEditor_shortField__Gyy5m",dateCustomInput:"ParametersValueEditor_dateCustomInput__IPn5r"}},42731:function(e){e.exports={wrapper:"OptionHeader_wrapper__pbhIN",howDoesItWork:"OptionHeader_howDoesItWork__ONcgj",getAccessText:"OptionHeader_getAccessText__TKShZ"}},15495:function(e){e.exports={sampleBtn:"ReportBuilder_sampleBtn__MBq7P",buyBtn:"ReportBuilder_buyBtn__s9c6a",bodyWrapper:"ReportBuilder_bodyWrapper__2n_I1",tableHeader:"ReportBuilder_tableHeader___vCS_",reportTypes:"ReportBuilder_reportTypes__RilPJ",firstRowParams:"ReportBuilder_firstRowParams__vDtvr",blockWrapper:"ReportBuilder_blockWrapper__JbMGt",block:"ReportBuilder_block___mvjB",blockTitle:"ReportBuilder_blockTitle__7rsEj"}}},function(e){e.O(0,[49774,38523,74885,92814,48764,92077,61501,753,84872,70321,85141,6909,31979,1051,11776,92888,40179],function(){return e(e.s=73347)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.