1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PagePreview-BgMvVfA0.js","assets/react-DJo-hRcj.js","assets/index-HmRGQEHV.js","assets/vendors-D9FTVJXp.js","assets/lodash-5mjDUwsr.js","assets/vendors-DrQ26gQT.css","assets/mui-core-CIySj9_k.js","assets/mui-x-BIGgJFSO.js","assets/index-BnKm7cSP.css","assets/Plus-BVBQ6ebh.js","assets/History-DSHOnls5.js","assets/Upload-DvRhdjMy.js","assets/Copy-BH_bRIJE.js","assets/Delete-DIg5qwZg.js","assets/Share-Q_p-io_U.js","assets/Help-DZCEY72v.js","assets/ExternalLink-BnPYlI9E.js","assets/DownloadTemplate-BrJh0jPA.js","assets/Data-SU5Zmf9T.js","assets/index-5m9SxA6J.js","assets/Check-CB4u6cLS.js","assets/index-DbgK0TD7.js","assets/SharedComponents-R9XUbcB5.js","assets/LogoSkeleton-xtVwDN2G.js","assets/Layout-lHkxg3IM.js","assets/useCheckPermissionSidebar-D3ccSZS-.js","assets/Project-DlhDQHoA.js","assets/index-QNzS2lw3.js","assets/useUrlParams-BXmEcjdH.js","assets/index-d7XnxQEx.js","assets/ModalV2-B3Lw--tU.js","assets/Search-B65Y6qYp.js","assets/LocalStorageManager-DIHYtoBS.js","assets/toastifyV2-ajHTjSAj.js","assets/org-switch-rules-CALv74Cz.js","assets/DashboardQueryRepository-rzvXeoKZ.js","assets/Search-DN2UMn43.js","assets/Building-D1EpsYc0.js","assets/languageManager-kFJuVfzY.js","assets/LocalStorageManager-Cf9EMmua.js","assets/constants-BhQb0AAi.js","assets/getHttpStatusCode-D6Fy-dO9.js","assets/getTenantId-BCRwxyc4.js","assets/withAuth-gm5TvnaD.js","assets/surveyGatingRules-Z5UPFuIg.js","assets/index-UJqEWu_P.js","assets/ControlledInput-CyLjPzwd.js","assets/sanitize-S6gPbizU.js","assets/index-DKkg6NMG.js","assets/BookItemTree-BgSx6dnX.js","assets/Add-BvDZ6U0u.js","assets/Folder-EUEsHvd1.js","assets/Website-Ce9IzXCL.js","assets/ChevronUp-DTheeA5i.js","assets/Edit-Blbz8Uv9.js","assets/index-DtYWCwiY.js","assets/AddLink-BIJGhmrG.js","assets/index-Dq-P2DxH.js","assets/index-CyMVyXqf.js","assets/index-qruQKfkm.js","assets/UserGroupQueryRepository-CAZssx8C.js","assets/index-5wmBTkW3.js","assets/index-COFIAjmF.js","assets/index-BXXaGjYJ.js","assets/Plus-C9bmOFUl.js","assets/ReportBookQueryRepository-B53CF_7H.js","assets/SectionPreview-BikxhwgM.js","assets/LinkPreview-CaXn4h99.js"])))=>i.map(i=>d[i]); 2var p1=Object.defineProperty;var m1=(t,n,r)=>n in t?p1(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var Y=(t,n,r)=>m1(t,typeof n!="symbol"?n+"":n,r);import{j as e,r as c,R as Ve}from"./react-DJo-hRcj.js";import{I as y,av as ze,aw as J,aH as ee,c8 as Pe,b_ as $e,bq as le,ag as Ie,cP as h1,bc as Re,bY as O1,b$ as x1,bZ as Oe,bV as E1,bW as g1,bd as Ze,bU as ye,bn as R1,bo as ve,cv as I1,ba as b1,cp as T1,be as S1,bX as f1}from"./vendors-D9FTVJXp.js";import{a as de,S as x,T as S,c as w,B as L,A as v,C as _1,Z as We,a7 as j1,l as be,bv as ce,d as ae,g as H,e as qe,t as Ce,V as Qe,br as P1,bZ as L1,bs as A1,P as ke,b as D1,a0 as y1,E as v1,bY as k1,ba as B1}from"./index-HmRGQEHV.js";import{S as w1}from"./index-5m9SxA6J.js";import{H as N1}from"./index-DbgK0TD7.js";import"./SharedComponents-R9XUbcB5.js";import{L as M1}from"./LogoSkeleton-xtVwDN2G.js";import{L as xe}from"./Layout-lHkxg3IM.js";import{w as U1}from"./withAuth-gm5TvnaD.js";import{ap as X,q as Te,bx as K1,af as oe,al as G1,s as Le,ar as F1,a9 as H1,by as V1,bz as z1}from"./mui-core-CIySj9_k.js";import{C as te}from"./index-UJqEWu_P.js";import{C as Be}from"./ControlledInput-CyLjPzwd.js";import{e as $1}from"./sanitize-S6gPbizU.js";import{a as Q}from"./toastifyV2-ajHTjSAj.js";import{B as A}from"./index-DKkg6NMG.js";import{B as Xe,a as F,b as Z1}from"./BookItemTree-BgSx6dnX.js";import{A as W1}from"./Add-BvDZ6U0u.js";import{F as q1}from"./Folder-EUEsHvd1.js";import{W as Q1}from"./Website-Ce9IzXCL.js";import{D as Ae}from"./Delete-DIg5qwZg.js";import{C as X1}from"./ChevronUp-DTheeA5i.js";import{E as Y1}from"./Edit-Blbz8Uv9.js";import{l as J1,t as e2,m as t2,k as r2,n as n2,o as o2,q as s2,r as a2,s as i2,x as l2}from"./mui-x-BIGgJFSO.js";import{E as Ye,T as re,U as Je,u as c2}from"./useCheckPermissionSidebar-D3ccSZS-.js";import{M as ne}from"./ModalV2-B3Lw--tU.js";import{C as d2}from"./index-DtYWCwiY.js";import{A as C2}from"./AddLink-BIJGhmrG.js";import{S as u2}from"./index-Dq-P2DxH.js";import{S as p2}from"./index-CyMVyXqf.js";import{S as we}from"./lodash-5mjDUwsr.js";import{N as Ne,T as m2,a as h2}from"./index-qruQKfkm.js";import{U as O2}from"./UserGroupQueryRepository-CAZssx8C.js";import{I as x2}from"./index-5wmBTkW3.js";import{E as E2}from"./index-COFIAjmF.js";import{A as Me}from"./index-BXXaGjYJ.js";import{A as g2}from"./Project-DlhDQHoA.js";import{R as R2}from"./ReportBookQueryRepository-B53CF_7H.js";const I2=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"medium":return 24;case"large":return 32;default:return 16}},C=r??i(),l=o??i();return e.jsx(X,{...a,viewBox:"0 0 28 28",sx:{width:C,height:l,...s},children:e.jsxs("svg",{fill:"none",children:[e.jsx("path",{d:"M13.6171 1.41848C13.9028 1.2989 14.231 1.31929 14.5024 1.47886L24.419 7.3122C24.7219 7.49037 24.9078 7.81528 24.9078 8.16669V19.8334C24.9078 20.1848 24.7219 20.5097 24.419 20.6878L14.5024 26.5212C14.1921 26.7036 13.8077 26.7036 13.4975 26.5212L3.58081 20.6878C3.27792 20.5097 3.09204 20.1848 3.09204 19.8334V8.16669C3.09204 7.81528 3.27792 7.49037 3.58081 7.3122L13.4975 1.47886L13.6171 1.41848ZM5.07446 8.73293V19.266L13.9999 24.516L22.9254 19.266V8.73293L13.9999 3.48293L5.07446 8.73293Z",fill:"currentColor"}),e.jsx("path",{d:"M8.34204 17.5V15.1667C8.34204 14.619 8.78557 14.1755 9.33325 14.1755C9.88093 14.1755 10.3245 14.619 10.3245 15.1667V17.5C10.3245 18.0477 9.88093 18.4912 9.33325 18.4912C8.78557 18.4912 8.34204 18.0477 8.34204 17.5ZM13.0087 17.5V12.8333C13.0087 12.2857 13.4522 11.8421 13.9999 11.8421C14.5476 11.8421 14.9911 12.2857 14.9911 12.8333V17.5C14.9911 18.0477 14.5476 18.4912 13.9999 18.4912C13.4522 18.4912 13.0087 18.0477 13.0087 17.5ZM17.6754 17.5V10.5C17.6754 9.95232 18.1189 9.50879 18.6666 9.50879C19.2143 9.50879 19.6578 9.95232 19.6578 10.5V17.5C19.6578 18.0477 19.2143 18.4912 18.6666 18.4912C18.1189 18.4912 17.6754 18.0477 17.6754 17.5Z",fill:"currentColor"})]})})},b2=["image/png","image/jpeg","image/jpg"],T2=10;function De(t={}){const{t:n}=y(),{maxSizeMB:r=T2,allowedTypes:o=b2,onSuccess:s,onError:a}=t,[i,C]=c.useState(!1),[l,d]=c.useState(null),[h,b]=c.useState(null),[E,u]=c.useState(null),I=c.useCallback(()=>{C(!1),d(null),b(null),u(null)},[]),p=c.useCallback(O=>{if(!o.includes(O.type))return n("REPORT_BOOK.IMAGE_DIALOG.SELECT_IMAGE_ERROR");const T=r*1024*1024;return O.size>T?n("REPORT_BOOK.IMAGE_DIALOG.SIZE_ERROR_WITH_LIMIT",{limit:r,defaultValue:`Image size must not exceed ${r}MB`}):null},[o,r,n]),g=c.useCallback(async O=>{const T=p(O);return T?(u(T),a?.(T),null):(u(null),C(!0),new Promise(_=>{const f=new FileReader;f.onloadend=async()=>{try{const P=f.result.split(",")[1];d(f.result);
2const B=(await de.post("/strapi-upload",{base64Content:P,isMultipart:!0})).data[0]?.url||"";if(B)b($1(B)),s?.(B),_(B);else{const K=n("REPORT_BOOK.IMAGE_DIALOG.UPLOAD_FAILED");u(K),a?.(K),_(null)}}catch(P){console.error("Upload error:",P);const k=n("REPORT_BOOK.IMAGE_DIALOG.UPLOAD_FAILED");u(k),d(null),a?.(k),_(null)}finally{C(!1)}},f.readAsDataURL(O)}))},[p,s,a,n]),m=c.useCallback(async O=>{const T=O.target.files?.[0];T&&await g(T)},[g]);return{isUploading:i,previewUrl:l,uploadedUrl:h,error:E,upload:g,handleFileChange:m,reset:I,setPreviewUrl:d}}function S2(){const{t}=y(),{control:n,setValue:r,watch:o}=ze(),s=o("logoUrl"),a=c.useRef(null),{isUploading:i,previewUrl:C,upload:l,reset:d}=De({maxSizeMB:5,onSuccess:u=>{r("logoUrl",u)},onError:u=>{r("logoUrl",""),Q.error({title:u})}}),h=C||s||null,b=async(u,I)=>{const p=u.target.files?.[0];a.current&&(a.current.value=""),p&&(await l(p),I(null))},E=u=>{u(null),d(),r("logoUrl",""),a.current&&(a.current.value="")};return e.jsx(x,{overflowY:"auto",flex:"1 1 auto",sx:{"@media (hover: hover)":{"&::-webkit-scrollbar":{width:"4px",transition:"background 0.3s ease"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"20px",transition:"background 0.3s ease"},"&:hover::-webkit-scrollbar-thumb":{background:"#E4E7EC"},scrollbarWidth:"thin",scrollbarColor:"transparent transparent",transition:"background 0.3s ease","&:hover":{scrollbarColor:"#E4E7EC transparent"}}},children:e.jsxs(x,{p:"32px 32px 0px 32px",divider:e.jsx(G1,{orientation:"horizontal",variant:"middle",sx:{marginTop:8,marginBottom:8,marginLeft:0,marginRight:0,border:"1px dashed #DEE0E6"}}),component:"section","aria-label":t("REPORT_BOOK.SETUP.SECTION_LABEL"),children:[e.jsxs(x,{direction:"row",component:"section","aria-labelledby":"info-section-title",children:[e.jsxs(x,{width:320,gap:1,children:[e.jsx(S,{variant:"bodyMedium",id:"info-section-title",children:t("REPORT_BOOK.SETUP.INFORMATION_TITLE")}),e.jsx(S,{variant:"bodySmRegular",pr:"80px",color:w.content.neutral.placeholder,children:t("REPORT_BOOK.SETUP.INFORMATION_DESCRIPTION")})]}),e.jsxs(x,{gap:6,flex:1,children:[e.jsx(x,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:e.jsx(J,{name:"logoFile",control:n,render:({field:u})=>e.jsxs(x,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"100%",children:[e.jsxs(x,{direction:"row",gap:4,alignItems:"center",children:[e.jsxs(L,{sx:{width:"60px",height:"60px",backgroundColor:"#F2F4F7",borderRadius:"50%",textAlign:"center",alignContent:"center",position:"relative"},role:"img","aria-label":t(h?"REPORT_BOOK.SETUP.LOGO_PREVIEW":"REPORT_BOOK.SETUP.NO_LOGO"),children:[h&&!i&&e.jsx(L,{sx:{position:"absolute",right:"-5px",bottom:"-5px"},children:e.jsx(Te,{size:"small",onClick:()=>E(u.onChange),color:"error","aria-label":t("REPORT_BOOK.SETUP.REMOVE_LOGO"),children:e.jsx(K1,{fontSize:"small"})})}),h?i?e.jsx(oe,{size:24,"aria-label":t("REPORT_BOOK.SETUP.UPLOADING")}):e.jsx("img",{src:h,alt:t("REPORT_BOOK.SETUP.LOGO_PREVIEW"),style:{width:"100%",maxWidth:"40px"}}):e.jsx(I2,{size:"large",htmlColor:"#98A1B3","aria-hidden":"true"})]}),e.jsxs(x,{gap:1,children:[e.jsx(S,{variant:"bodyMBaseMedium",children:t("REPORT_BOOK.SETUP.LOGO_TITLE")}),e.jsx(S,{variant:"bodyMBaseRegular",color:"#667085",children:t("REPORT_BOOK.SETUP.LOGO_DESCRIPTION")})]})]}),e.jsx(v,{onClick:()=>a.current?.click(),variant:"tertiary",size:"md","aria-label":t("REPORT_BOOK.SETUP.UPLOAD_IMAGE_BUTTON"),disabled:i,children:t("REPORT_BOOK.SETUP.UPLOAD_IMAGE")}),e.jsx("input",{ref:a,type:"file",accept:"image/*",style:{display:"none"},onChange:I=>b(I,u.onChange),disabled:i,"aria-label":t("REPORT_BOOK.SETUP.LOGO_FILE_INPUT")})]})})}),e.jsx(x,{children:e.jsx(Be,{name:"name",label:t("REPORT_BOOK.SETUP.NAME_LABEL"),placeholder:t("REPORT_BOOK.SETUP.NAME_PLACEHOLDER"),size:"md",required:!0})}),e.jsx(x,{children:e.jsx(Be,{name:"description",placeholder:t("REPORT_BOOK.SETUP.DESCRIPTION_PLACEHOLDER"),label:t("REPORT_BOOK.SETUP.DESCRIPTION_LABEL"),maxLength:100,multiline:!0,rows:2})})]})]}),e.jsxs(x,{direction:"row",component:"section","aria-labelledby":"theme-section-title",children:[e.jsxs(x,{width:320,gap:1,children:[e.jsx(S,{variant:"bodyMedium",id:"theme-section-title",children:t("REPORT_BOOK.SETUP.APPEARANCE_TITLE")}),e.jsx(S,{variant:"bodySmRegular",pr:"80px",color:w.content.neutral.placeholder,children:t("REPORT_BOOK.SETUP.APPEARANCE_DESCRIPTION")})]}),e.jsxs(x,{gap:6,flex:1,children:[e.jsx(J,{name:"themeColor",control:n,defaultValue:"#154DBD",render:({field:u})=>e.jsx(te,{value:u.value||"#154DBD",onChange:u.onChange,label:t("REPORT_BOOK.SETUP.THEME_BACKGROUND_LABEL"),description:t("REPORT_BOOK.SETUP.THEME_BACKGROUND_DESCRIPTION"),renderColorPicker:({color:I,onChange:p})=>e.jsx(ee,{color:I,onChange:g=>p(g.hex)})})}),e.jsx(J,{name:"textColor",control:n,defaultValue:"#FFFFFF",render:({field:u})=>e.jsx(te,{value:u.value||"#FFFFFF",onChange:u.onChange,label:t("REPORT_BOOK.SETUP.TEXT_COLOR_LABEL"),description:t("REPORT_BOOK.SETUP.TEXT_COLOR_DESCRIPTION"),renderColorPicker:({color:I,onChange:p})=>e.jsx(ee,{color:I,onChange:g=>p(g.hex)})})}),e.jsx(J,{name:"selectedTextColor",control:n,defaultValue:"#FFFFFF",render:({field:u})=>e.jsx(te,{value:u.value||"#FFFFFF",onChange:u.onChange,label:t("REPORT_BOOK.SETUP.SELECTED_TEXT_COLOR_LABEL"),description:t("REPORT_BOOK.SETUP.SELECTED_TEXT_COLOR_DESCRIPTION"),renderColorPicker:({color:I,onChange:p})=>e.jsx(ee,{color:I,onChange:g=>p(g.hex)})})}
2),e.jsx(J,{name:"selectedBackgroundColor",control:n,defaultValue:"#113C93",render:({field:u})=>e.jsx(te,{value:u.value||"#113C93",onChange:u.onChange,label:t("REPORT_BOOK.SETUP.SELECTED_BG_COLOR_LABEL"),description:t("REPORT_BOOK.SETUP.SELECTED_BG_COLOR_DESCRIPTION"),renderColorPicker:({color:I,onChange:p})=>e.jsx(ee,{color:I,onChange:g=>p(g.hex)})})})]})]})]})})}class e1{toCollection(n){return Xe.fromData(n)}toDataArray(n){return n.toDataArray()}canMoveUp(n,r){return this.toCollection(n).canMoveUp(r)}canMoveDown(n,r){return this.toCollection(n).canMoveDown(r)}getSiblings(n,r){const o=this.toCollection(n).getSiblings(r);return F.toDataArray(o)}findById(n,r){return this.toCollection(n).findByKey(r)?.toData()??null}addSection({items:n,name:r,parentId:o,dashboard:s}){const a=this.toCollection(n),i=a.getMaxOrder(o),C=F.fromData({tempId:F.generateTempId(),type:A.SECTION,name:r.trim(),parentId:o,dashboard:s,order:i+1});return this.toDataArray(a.add(C))}addLink({items:n,data:r,parentId:o}){const s=this.toCollection(n),a=s.getMaxOrder(o),i=F.fromData({tempId:F.generateTempId("temp-link"),type:A.LINK,name:r.name,externalUrl:r.externalUrl,parentId:o,order:a+1});return this.toDataArray(s.add(i))}addStaticImage({items:n,data:r,parentId:o}){const s=this.toCollection(n),a=s.getMaxOrder(o),i=F.fromData({tempId:F.generateTempId("temp-static-image"),type:A.STATIC_IMAGE,name:r.name,imageUrl:r.imageUrl,backgroundColor:r.backgroundColor,backgroundStyle:r.backgroundStyle,parentId:o,order:a+1});return this.toDataArray(s.add(i))}async addDashboards({items:n,dashboardIds:r,parentId:o,fetchDashboard:s}){const a=await Promise.all(r.map(l=>s(l)));let i=this.toCollection(n);const C=i.getMaxOrder(o);return a.forEach((l,d)=>{const h=`temp-section-${l.id}-${Date.now()}-${d}`,b=F.fromData({tempId:h,type:A.SECTION,name:l.name||`Dashboard ${l.id}`,dashboard:{id:l.id,name:l.name||`Dashboard ${l.id}`},parentId:o,order:C+d+1});i=i.add(b),(l.pages||[]).forEach((u,I)=>{const p=`temp-page-${u.id}-${Date.now()}-${I}`,g=F.fromData({tempId:p,type:A.PAGE,name:u.name||`Page ${u.id}`,pageId:u.id,dashboard:{id:l.id,name:l.name||`Dashboard ${l.id}`},parentId:h,order:I});i=i.add(g)})}),this.toDataArray(i)}deleteItem(n,r){return this.toDataArray(this.toCollection(n).deleteItem(r))}moveItem({items:n,itemId:r,direction:o}){return this.toDataArray(this.toCollection(n).moveItem(r,o))}moveToPosition({items:n,itemId:r,newParentId:o,newIndex:s}){return this.toDataArray(this.toCollection(n).moveToPosition({itemId:r,newParentId:o,newIndex:s}))}renameItem({items:n,itemId:r,newName:o}){return this.toDataArray(this.toCollection(n).renameItem(r,o))}updateItem({items:n,itemId:r,updates:o}){return this.toDataArray(this.toCollection(n).updateItem(r,o))}}const Ue=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"large":return 32;case"medium":return 24;default:return 16}},C=r!==void 0?r:i(),l=o!==void 0?o:i();return e.jsx(X,{...a,sx:{width:C,height:l,...s},children:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M19.9984 5.01953H8.05565C7.61178 5.01953 7.25195 5.37936 7.25195 5.82323V18.8255C7.25195 19.2694 7.61178 19.6292 8.05565 19.6292H19.9984C20.4423 19.6292 20.8021 19.2694 20.8021 18.8255V5.82323C20.8021 5.37936 20.4423 5.01953 19.9984 5.01953Z",fill:"#2563EB"}),e.jsx("path",{d:"M22.1949 20.976H1.80369C1.35983 20.976 1 20.6161 1 20.1723V3.80369C1 3.35983 1.35983 3 1.80369 3H8.04592C8.30251 3 8.54363 3.1225 8.69497 3.32969L10.7536 6.14876C10.9049 6.35595 11.1461 6.47846 11.4027 6.47846H22.1949C22.6388 6.47846 22.9986 6.83829 22.9986 7.28215V20.1723C22.9986 20.6161 22.6388 20.976 22.1949 20.976Z",fill:"#3B82F6"})]})})},f2=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"large":return 32;case"medium":return 24;default:return 16}},C=r!==void 0?r:i(),l=o!==void 0?o:i();return e.jsx(X,{...a,sx:{width:C,height:l,...s},children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 21C1 20.4477 1.44772 20 2 20H3.5L3.5 12.5681C3.49997 12.3157 3.49994 12.0699 3.51694 11.8618C3.53562 11.6332 3.57969 11.3634 3.71799 11.092C3.90973 10.7157 4.21569 10.4097 4.59202 10.218C4.86344 10.0797 5.13318 10.0356 5.36177 10.017C5.56993 9.99994 5.81573 9.99997 6.06812 10L8.5 10L8.5 8.56811C8.49997 8.31573 8.49994 8.06993 8.51694 7.86178C8.53562 7.63318 8.57969 7.36345 8.71799 7.09202C8.90973 6.7157 9.21569 6.40974 9.59202 6.21799C9.86344 6.0797 10.1332 6.03563 10.3618 6.01695C10.5699 5.99994 10.8157 5.99997 11.0681 6L13.5 6.00001L13.5 4.56813C13.5 4.31574 13.4999 4.06994 13.5169 3.86178C13.5356 3.63318 13.5797 3.36345 13.718 3.09202C13.9097 2.7157 14.2157 2.40974 14.592 2.21799C14.8634 2.0797 15.1332 2.03563 15.3618 2.01695C15.5699 1.99994 15.8157 1.99997 16.0681 2L17.9319 2C18.1843 1.99997 18.4301 1.99994 18.6382 2.01695C18.8668 2.03563 19.1366 2.0797 19.408 2.21799C19.7843 2.40974 20.0903 2.7157 20.282 3.09202C20.4203 3.36345 20.4644 3.63318 20.4831 3.86178C20.5001 4.06993 20.5 4.31572 20.5 4.56809L20.5 20H22C22.5523 20 23 20.4477 23 21C23 21.5523 22.5523 22 22 22H14.5H9.50083H4.50048L2 22C1.44772 22 1 21.5523 1 21ZM5.5 20L8.5 20L8.5 12H6.1C5.80347 12 5.64122 12.0008 5.52463 12.0103C5.51999 12.0107 5.5156 12.0111 5.51145 12.011
25C5.51107 12.0156 5.51068 12.02 5.5103 12.0246C5.50078 12.1412 5.5 12.3035 5.5 12.6L5.5 20ZM10.5 20H13.5V8.00001L11.1 8.00001C10.8035 8.00001 10.6412 8.00078 10.5246 8.01031C10.52 8.01069 10.5156 8.01107 10.5114 8.01146C10.5111 8.01561 10.5107 8.02 10.5103 8.02464C10.5008 8.14123 10.5 8.30348 10.5 8.60001L10.5 20ZM15.5 20H18.5V4.60001C18.5 4.30348 18.4992 4.14123 18.4897 4.02464C18.4893 4.02 18.4889 4.0156 18.4885 4.01145C18.4844 4.01107 18.48 4.01069 18.4754 4.01031C18.3588 4.00078 18.1965 4.00001 17.9 4.00001H16.1C15.8035 4.00001 15.6412 4.00078 15.5246 4.01031C15.52 4.01069 15.5156 4.01108 15.5114 4.01146C15.5111 4.01561 15.5107 4.02 15.5103 4.02464C15.5008 4.14123 15.5 4.30348 15.5 4.60001V20Z",fill:n})})})},t1=t=>e.jsx(X,{...t,children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C7.73455 22 7.71056 22 7.68669 22L6.89416 22C6.62378 22 6.358 22.0001 6.14403 21.9811C6.13603 21.9804 6.12769 21.9797 6.119 21.9788C5.98945 21.9729 5.8659 21.9654 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM7.8 20C7.66483 20 7.53648 20 7.41441 19.9998L15.5757 11.8385C15.7854 11.6288 15.9007 11.5146 15.9899 11.4389C15.9934 11.4359 15.9968 11.4331 16 11.4304C16.0032 11.4331 16.0066 11.4359 16.0101 11.4389C16.0993 11.5146 16.2146 11.6288 16.4243 11.8385L20 15.4142V16.2C20 17.0566 19.9992 17.6389 19.9624 18.089C19.9266 18.5274 19.8617 18.7516 19.782 18.908C19.5903 19.2843 19.2843 19.5903 18.908 19.782C18.7516 19.8617 18.5274 19.9266 18.089 19.9624C17.6389 19.9992 17.0566 20 16.2 20H7.8ZM20 12.5858L17.8159 10.4017C17.6375 10.2232 17.4637 10.0494 17.3045 9.91424C17.1296 9.76581 16.9078 9.60624 16.618 9.5121C16.2163 9.38159 15.7837 9.38159 15.382 9.5121C15.0922 9.60624 14.8704 9.76581 14.6955 9.91424C14.5363 10.0494 14.3625 10.2232 14.1841 10.4017L5.63227 18.9535C5.44105 19.1447 5.25309 19.3326 5.11519 19.4973C5.07261 19.5482 5.01522 19.6185 4.95696 19.7065C4.64245 19.5142 4.38624 19.2382 4.21799 18.908C4.1383 18.7516 4.07337 18.5274 4.03755 18.089C4.00078 17.6389 4 17.0566 4 16.2V7.8C4 6.94342 4.00078 6.36113 4.03755 5.91104C4.07337 5.47262 4.1383 5.24842 4.21799 5.09202C4.40973 4.7157 4.7157 4.40973 5.09202 4.21799C5.24842 4.1383 5.47262 4.07337 5.91104 4.03755C6.36113 4.00078 6.94342 4 7.8 4H16.2C17.0566 4 17.6389 4.00078 18.089 4.03755C18.5274 4.07337 18.7516 4.1383 18.908 4.21799C19.2843 4.40973 19.5903 4.7157 19.782 5.09202C19.8617 5.24842 19.9266 5.47262 19.9624 5.91104C19.9992 6.36113 20 6.94342 20 7.8V12.5858ZM8.5 7.5C7.94772 7.5 7.5 7.94772 7.5 8.5C7.5 9.05229 7.94772 9.5 8.5 9.5C9.05229 9.5 9.5 9.05229 9.5 8.5C9.5 7.94772 9.05229 7.5 8.5 7.5ZM5.5 8.5C5.5 6.84315 6.84315 5.5 8.5 5.5C10.1569 5.5 11.5 6.84315 11.5 8.5C11.5 10.1569 10.1569 11.5 8.5 11.5C6.84315 11.5 5.5 10.1569 5.5 8.5Z",fill:"currentColor"})})}),ie=Le(Te)({"&:hover":{color:"#154DBD"}}),r1=c.forwardRef((t,n)=>{const{id:r,itemId:o,label:s,disabled:a,children:i,onAddContent:C,onRename:l,onMoveUp:d,onMoveDown:h,onDelete:b,bookItems:E,bookItemService:u,...I}=t,{t:p}=y(),{getRootProps:g,getContentProps:m,getIconContainerProps:O,getLabelProps:T,getGroupTransitionProps:_,getDragAndDropOverlayProps:f,status:P,publicAPI:k}=J1({id:r||o,itemId:o,children:i,label:s,disabled:a,rootRef:n}),N=k.getItem(o),B=N?.itemType,K=!!i,U=u.canMoveUp(E??[],o),G=u.canMoveDown(E??[],o),V=()=>{switch(B){case A.SECTION:return K&&P.expanded?e.jsx(q1,{}):e.jsx(Ue,{});case A.PAGE:return e.jsx(f2,{});case A.LINK:return e.jsx(Q1,{});case A.STATIC_IMAGE:return e.jsx(t1,{});default:return e.jsx(Ue,{})}};return e.jsx(e2,{itemId:o,children:e.jsxs(t2,{...g(I),children:[e.jsxs(r2,{...m(),sx:{display:"flex",alignItems:"center",borderRadius:"6px",marginBottom:"2px",py:.5,pr:.5,height:"32px",mr:"-6px",position:"relative","&.Mui-selected.Mui-focused":{backgroundColor:"#ECF0FA"}
2,"&:hover .node-actions":{opacity:1}},children:[e.jsx(n2,{...O(),sx:{width:"12px",marginRight:"2px",color:"#667085","& svg":{fontSize:"16px"}},children:e.jsx(o2,{status:P})}),V(),e.jsx(s2,{...T(),sx:{fontSize:"14px",fontWeight:400,ml:2,flex:1,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}),e.jsxs(L,{className:"node-actions",sx:{opacity:0,transition:"opacity 0.2s",display:"flex",position:"absolute",top:"2px",right:"0px",background:"rgba(255, 255, 255, 1)",borderRadius:"5px",height:"28px",paddingLeft:"1px",paddingRight:"1px"},children:[B===A.SECTION&&e.jsx(ie,{size:"small",onClick:R=>{R.stopPropagation(),C(R,o)},title:p("REPORT_BOOK.TREE_NODE.ADD_CONTENT_TOOLTIP"),children:e.jsx(W1,{fontSize:"small"})}),e.jsx(ie,{size:"small",onClick:R=>{R.stopPropagation(),l(o)},title:p("REPORT_BOOK.TREE_NODE.EDIT_TOOLTIP"),"aria-label":`${p("REPORT_BOOK.TREE_NODE.EDIT_TOOLTIP")} ${N.name}`,children:e.jsx(Y1,{fontSize:"small"})}),e.jsx(ie,{size:"small",onClick:R=>{R.stopPropagation(),d(o)},disabled:!U,title:p("REPORT_BOOK.TREE_NODE.MOVE_UP_TOOLTIP"),children:e.jsx(X1,{fontSize:"small"})}),e.jsx(ie,{size:"small",onClick:R=>{R.stopPropagation(),h(o)},disabled:!G,title:p("REPORT_BOOK.TREE_NODE.MOVE_DOWN_TOOLTIP"),children:e.jsx(_1,{fontSize:"small"})}),e.jsx(ie,{size:"small",onClick:R=>{R.stopPropagation(),b(o)},title:p("REPORT_BOOK.TREE_NODE.DELETE_TOOLTIP"),children:e.jsx(Ae,{fontSize:"small"})})]}),e.jsx(a2,{...f()})]}),i&&e.jsx(i2,{..._()})]})})});r1.displayName="BookItemCustomTreeItem";function _2(){const{t}=y();return e.jsxs(x,{gap:3,sx:{border:`1px solid ${w.border.main}`,borderRadius:"8px",alignItems:"center",textAlign:"center",justifyContent:"center",height:"500px"},children:[e.jsx(x,{sx:{backgroundColor:w.background.disabled,width:"64px",height:"64px",borderRadius:"50%",justifyContent:"center",alignItems:"center"},children:e.jsx(Ye,{size:"medium"})}),e.jsxs(x,{gap:.5,children:[e.jsx(S,{variant:"bodyMedium",sx:{mb:1},children:t("REPORT_BOOK.CONTENT.NO_CONTENT")}),e.jsx(S,{variant:"bodySmRegular",color:w.content.neutral.neutralLight,sx:{mb:3},children:t("REPORT_BOOK.CONTENT.NO_CONTENT_DESCRIPTION")})]})]})}function n1(t,n=null){return t.filter(r=>F.isSameId(r.parentId,n)).sort((r,o)=>r.order-o.order).map(r=>{const o=String(r.id??r.tempId),s=n1(t,r.id??r.tempId??null);return{id:o,label:r.name,itemType:r.type,itemData:r,...s.length>0?{children:s}:{}}})}function j2({items:t,onItemsChange:n,onItemSelect:r,onAddContent:o,onRename:s,onDelete:a}){const[i,C]=c.useState([]),[l,d]=c.useState(""),h=c.useMemo(()=>new e1,[]),b=c.useCallback(m=>{d(m);const O=h.findById(t,m);O&&r(O)},[t,h,r]),E=c.useCallback((m,O)=>{const T=h.moveItem({items:t,itemId:m,direction:O});n(T)},[t,h,n]),u=c.useCallback(m=>{const O=m.newPosition.parentId||null,_=h.findById(t,m.itemId)?.type===A.SECTION,f=h.moveToPosition({items:t,itemId:m.itemId,newParentId:O,newIndex:m.newPosition.index});n(f),_&&C(P=>P.filter(k=>k!==m.itemId))},[t,h,n]),I=c.useCallback(m=>{const O=m.newPosition.parentId||null;if(O!==null){const T=h.findById(t,String(O));if(!T||T.type!==A.SECTION)return!1}return!0},[t,h]),p=c.useMemo(()=>n1(t),[t]),g=c.useMemo(()=>({item:{onAddContent:o,onRename:s,onMoveUp:m=>E(m,-1),onMoveDown:m=>E(m,1),onDelete:a,bookItems:t,bookItemService:h}}),[o,s,E,a,t,h]);return e.jsx(x,{sx:{flex:1,display:"flex",flexDirection:"column"},children:p.length===0?e.jsx(_2,{}):e.jsx(L,{sx:{flex:1,overflow:"auto",paddingRight:"16px"},children:e.jsx(l2,{items:p,slots:{item:r1},slotProps:g,expandedItems:i,onExpandedItemsChange:(m,O)=>C(O),selectedItems:l,onSelectedItemsChange:(m,O)=>{O&&b(O)},experimentalFeatures:{indentationAtItemLevel:!0,itemsReordering:!0},itemsReordering:!0,canMoveItemToNewPosition:I,onItemPositionChange:u})})})}const P2=Ve.memo(j2),o1=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"medium":return 24;case"large":return 32;default:return 16}},C=r??i(),l=o??i();return e.jsx(X,{...a,viewBox:"0 0 16 16",sx:{width:C,height:l,...s},children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.89998 1.44279C2.90558 1.44279 2.91118 1.44279 2.91681 1.44279L6.28857 1.44279C6.4439 1.44277 6.58872 1.44276 6.7102 1.45269C6.8418 1.46344 6.98875 1.48825 7.13466 1.56259C7.34149 1.66798 7.50964 1.83614 7.61503 2.04297C7.68937 2.18887 7.71418 2.33583 7.72494 2.46743C7.7348
26 2.5889 7.73485 2.73372 7.73484 2.88905V4.3681C7.73485 4.52344 7.73486 4.66825 7.72494 4.78973C7.71418 4.92133 7.68937 5.06828 7.61503 5.21419C7.50964 5.42102 7.34149 5.58918 7.13466 5.69456C6.98875 5.76891 6.8418 5.79372 6.7102 5.80447C6.58872 5.81439 6.4439 5.81438 6.28857 5.81437H2.89998C2.74465 5.81438 2.59983 5.81439 2.47836 5.80447C2.34676 5.79372 2.1998 5.76891 2.0539 5.69456C1.84707 5.58918 1.67891 5.42102 1.57352 5.21419C1.49918 5.06828 1.47437 4.92133 1.46361 4.78973C1.45369 4.66825 1.4537 4.52344 1.45371 4.3681L1.45372 2.90588C1.45372 2.90026 1.45372 2.89465 1.45371 2.88905C1.4537 2.73372 1.45369 2.5889 1.46361 2.46743C1.47437 2.33583 1.49918 2.18887 1.57352 2.04297C1.67891 1.83614 1.84707 1.66798 2.0539 1.56259C2.1998 1.48825 2.34676 1.46344 2.47836 1.45269C2.59983 1.44276 2.74465 1.44277 2.89998 1.44279ZM2.49653 2.44326C2.47889 2.45334 2.46426 2.46796 2.45419 2.48561C2.45252 2.49252 2.44885 2.51092 2.44584 2.54768C2.4396 2.62409 2.43922 2.72792 2.43922 2.90588V4.35128C2.43922 4.52923 2.4396 4.63307 2.44584 4.70948C2.44885 4.74623 2.45252 4.76463 2.45419 4.77155C2.46426 4.7892 2.47889 4.80382 2.49653 4.8139C2.50345 4.81557 2.52185 4.81924 2.55861 4.82224C2.63502 4.82848 2.73885 4.82887 2.91681 4.82887H6.27175C6.4497 4.82887 6.55354 4.82848 6.62994 4.82224C6.6667 4.81924 6.6851 4.81557 6.69202 4.8139C6.70966 4.80382 6.72429 4.7892 6.73437 4.77155C6.73604 4.76464 6.73971 4.74624 6.74271 4.70948C6.74895 4.63307 6.74934 4.52923 6.74934 4.35128V2.90588C6.74934 2.72792 6.74895 2.62409 6.74271 2.54768C6.73971 2.51092 6.73604 2.49252 6.73437 2.48561C6.72429 2.46796 6.70966 2.45334 6.69202 2.44326C6.6851 2.44159 6.6667 2.43792 6.62994 2.43492C6.55354 2.42867 6.4497 2.42829 6.27175 2.42829H2.91681C2.73885 2.42829 2.63502 2.42867 2.55861 2.43492C2.52185 2.43792 2.50345 2.44159 2.49653 2.44326ZM10.175 1.44279H13.1113C13.2666 1.44277 13.4114 1.44276 13.5329 1.45269C13.6645 1.46344
213.8115 1.48825 13.9574 1.56259C14.1642 1.66798 14.3323 1.83614 14.4377 2.04297C14.5121 2.18888 14.5369 2.33583 14.5476 2.46743C14.5576 2.5889 14.5576 2.73372 14.5575 2.88905V7.64679C14.5576 7.80212 14.5576 7.94694 14.5476 8.06842C14.5369 8.20002 14.5121 8.34697 14.4377 8.49288C14.3323 8.69971 14.1642 8.86787 13.9574 8.97325C13.8115 9.04759 13.6645 9.07241 13.5329 9.08316C13.4114 9.09308 13.2666 9.09307 13.1113 9.09306H10.175C10.0197 9.09307 9.87487 9.09308 9.7534 9.08316C9.6218 9.07241 9.47485 9.04759 9.32894 8.97325C9.12211 8.86787 8.95395 8.69971 8.84857 8.49288C8.77423 8.34697 8.74941 8.20002 8.73866 8.06842C8.72874 7.94695 8.72875 7.80214 8.72876 7.64682V2.88903C8.72875 2.7337 8.72874 2.5889 8.73866 2.46743C8.74941 2.33583 8.77423 2.18888 8.84857 2.04297C8.95395 1.83614 9.12211 1.66798 9.32894 1.56259C9.47485 1.48825 9.6218 1.46344 9.7534 1.45269C9.87488 1.44276 10.0197 1.44277 10.175 1.44279ZM9.77158 2.44326C9.75394 2.45334 9.73931 2.46796 9.72923 2.48561C9.72756 2.49252 9.72389 2.51092 9.72089 2.54768C9.71465 2.62409 9.71426 2.72792 9.71426 2.90588V7.62997C9.71426 7.80792 9.71465 7.91176 9.72089 7.98816C9.72389 8.02492 9.72756 8.04332 9.72923 8.05024C9.73931 8.06788 9.75394 8.08251 9.77158 8.09259C9.7785 8.09426 9.7969 8.09793 9.83366 8.10093C9.91006 8.10717 10.0139 8.10756 10.1919 8.10756H13.0944C13.2724 8.10756 13.3762 8.10717 13.4526 8.10093C13.4894 8.09793 13.5078 8.09426 13.5147 8.09259C13.5324 8.08251 13.547 8.06788 13.5571 8.05024C13.5587 8.04332 13.5624 8.02492 13.5654 7.98816C13.5717 7.91176 13.572 7.80792 13.572 7.62997V2.90588C13.572 2.72792 13.5717 2.62409 13.5654 2.54768C13.5624 2.51092 13.5587 2.49252 13.5571 2.48561C13.547 2.46796 13.5324 2.45334 13.5147 2.44326C13.5078 2.44159 13.4894 2.43792 13.4526 2.43492C13.3762 2.42867 13.2724 2.42829 13.0944 2.42829H10.1919C10.0139 2.42829 9.91006 2.42867 9.83366 2.43492C9.7969 2.43792 9.7785 2.44159 9.77158 2.44326ZM2.88906 6.90137H6.28857C6.4439 6.90136 6.58872 6.90135 6.7102 6.91127C6.8418 6.92202 6.98875 6.94683 7.13466 7.02118C7.34149 7.12656 7.50964 7.29472 7.61503 7.50155C7.68937 7.64746 7.71418 7.79441 7.72494 7.92601C7.73486 8.04748 7.73485 8.1923 7.73484 8.34764L7.73484 13.1113C7.73485 13.2666 7.73486 13.4114 7.72494 13.5329C7.71418 13.6645 7.68937 13.8115 7.61503 13.9574C7.50964 14.1642 7.34149 14.3323 7.13466 14.4377C6.98875 14.5121 6.8418 14.5369 6.7102 14.5476C6.58872 14.5576 6.4439 14.5576 6.28857 14.5575H2.88906C2.73372 14.5576 2.5889 14.5576 2.46743 14.5476C2.33583 14.5369 2.18888 14.5121 2.04297 14.4377C1.83614 14.3323 1.66798 14.1642 1.5626 13.9574C1.48825 13.8115 1.46344 13.6645 1.45269 13.5329C1.44276 13.4114 1.44278 13.2666 1.44279 13.1113L1.44279 8.34764C1.44278 8.1923 1.44276 8.04749 1.45269 7.92601C1.46344 7.79441 1.48825 7.64746 1.5626 7.50155C1.66798 7.29472 1.83614 7.12656 2.04297 7.02118C2.18888 6.94683 2.33583 6.92202 2.46743 6.91127C2.5889 6.90135 2.73372 6.90136 2.88906 6.90137ZM2.48561 7.90184C2.46796 7.91192 2.45334 7.92654 2.44326 7.94419C2.44159 7.95111 2.43792 7.96951 2.43492 8.00626C2.42867 8.08267 2.42829 8.18651 2.42829 8.36446L2.42829 13.0944C2.42829 13.2724 2.42867 13.3762 2.43492 13.4526C2.43792 13.4894 2.44159 13.5078 2.44326 13.5147C2.45334 13.5324 2.46796 13.547 2.48561 13.5571C2.49252 13.5587 2.51092 13.5624 2.54768 13.5654C2.62409 13.5717 2.72792 13.572 2.90588 13.572H6.27175C6.4497 13.572 6.55353 13.5717 6.62994 13.5654C6.6667 13.5624 6.6851 13.5587 6.69202 13.5571C6.70966 13.547 6.72429 13.5324 6.73436 13.5147C6.73603 13.5078 6.73971 13.4894 6.74271 13.4526C6.74895 13.3762 6.74934 13.2724 6.74934 13.0944L6.74934 8.36446C6.74934 8.1865 6.74895 8.08267 6.74271 8.00626C6.73971 7.9695 6.73604 7.9511 6.73437 7.94419C6.72429 7.92654 6.70966 7.91192 6.69202 7.90184C6.6851 7.90017 6.6667 7.8965 6.62994 7.8935C6.55354 7.88726 6.4497 7.88687 6.27175 7.88687H2.90588C2.72792 7.88687 2.62409 7.88726 2.54768 7.8935C2.51092 7.8965 2.49252 7.90017 2.48561 7.90184ZM10.175 10.186H13.1113C13.2666 10.1859 13.4114 10.1859 13.5329 10.1959C13.6645 10.2066 13.8115 10.2314 13.9574 10.3058C14.1642 10.4111 14.3323 10.5793 14.4377 10.7861C14.5121 10.932 14.5369 11.079 14.5476 11.2106C14.5576 11.3321 14.5576 11.4769 14.5575 11.6322V13.1113C14.5576 13.2666 14.5576 13.4114 14.5476 13.5329C14.5369 13.6645 14.5121 13.8114 14.4377 13.9574C14.3323 14.1642 14.1642 14.3323 13.9574 14.4377C13.8115 14.5121 13.6645 14.5369 13.5329 14.5476C13.4114 14.5576 13.2666 14.5575 13.1113 14.5575H10.175C10.0197 14.5575 9.87488 14.5576 9.7534
214.5476C9.6218 14.5369 9.47485 14.5121 9.32894 14.4377C9.12211 14.3323 8.95395 14.1642 8.84857 13.9574C8.77423 13.8114 8.74941 13.6645 8.73866 13.5329C8.72874 13.4114 8.72875 13.2666 8.72876 13.1113V11.6322C8.72875 11.4769 8.72874 11.3321 8.73866 11.2106C8.74941 11.079 8.77423 10.932 8.84857 10.7861C8.95395 10.5793 9.12211 10.4111 9.32894 10.3058C9.47485 10.2314 9.6218 10.2066 9.7534 10.1959C9.87487 10.1859 10.0197 10.1859 10.175 10.186ZM9.77158 11.1864C9.75394 11.1965 9.73931 11.2111 9.72923 11.2288C9.72756 11.2357 9.72389 11.2541 9.72089 11.2908C9.71465 11.3673 9.71426 11.4711 9.71426 11.649V13.0944C9.71426 13.2724 9.71465 13.3762 9.72089 13.4526C9.72389 13.4894 9.72756 13.5078 9.72923 13.5147C9.73931 13.5324 9.75394 13.547 9.77158 13.5571C9.7785 13.5587 9.7969 13.5624 9.83366 13.5654C9.91006 13.5717 10.0139 13.572 10.1919 13.572H13.0944C13.2724 13.572 13.3762 13.5717 13.4526 13.5654C13.4894 13.5624 13.5078 13.5587 13.5147 13.5571C13.5324 13.547 13.547 13.5324 13.5571 13.5147C13.5587 13.5078 13.5624 13.4894 13.5654 13.4526C13.5717 13.3762 13.572 13.2724 13.572 13.0944V11.649C13.572 11.4711 13.5717 11.3673 13.5654 11.2908C13.5624 11.2541 13.5587 11.2357 13.5571 11.2288C13.547 11.2111 13.5324 11.1965 13.5147 11.1864C13.5078 11.1848 13.4894 11.1811 13.4526 11.1781C13.3762 11.1718 13.2724 11.1715 13.0944 11.1715H10.1919C10.0139 11.1715 9.91006 11.1718 9.83366 11.1781C9.7969 11.1811 9.7785 11.1848 9.77158 11.1864Z",fill:n}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.89664 1.3335H6.29191C6.44468 1.33348 6.59316 1.33347 6.71909 1.34376C6.8575 1.35507 7.02042 1.38173 7.18427 1.46522C7.41167 1.58108 7.59654 1.76596 7.71241 1.99335C7.79589 2.15721 7.82256 2.32012 7.83386 2.45853C7.84415 2.58447 7.84414 2.73295 7.84413 2.88573V4.37143C7.84414 4.5242 7.84415 4.67269 7.83386 4.79863C7.82256 4.93703 7.79589 5.09995 7.71241 5.26381C7.59654 5.4912 7.41167 5.67608 7.18427 5.79194C7.02042 5.87543 6.8575 5.90209 6.71909 5.9134C6.59316 5.92369 6.44468 5.92367 6.29191 5.92366H2.89664C2.74387 5.92367 2.59539 5.92369 2.46946 5.9134C2.33105 5.90209 2.16813 5.87543 2.00428 5.79194C1.77688 5.67608 1.59201 5.4912 1.47614 5.26381C1.39266 5.09995 1.366 4.93703 1.35469 4.79863C1.3444 4.67269 1.34441 4.52421 1.34442 4.37144V2.88571C1.34441 2.73294 1.3444 2.58446 1.35469 2.45853C1.366 2.32012 1.39266 2.15721 1.47614 1.99335C1.59201 1.76596 1.77688 1.58108 2.00428 1.46522C2.16813 1.38173 2.33105 1.35507 2.46946 1.34376C2.59539 1.33347 2.74387 1.33348 2.89664 1.3335ZM2.89997 1.55208C2.74325 1.55206 2.60335 1.55213 2.48726 1.56161C2.36246 1.57181 2.23147 1.59477 2.10351 1.65997C1.91725 1.75488 1.76581 1.90632 1.6709 2.09259C1.6057 2.22054 1.58274 2.35153 1.57254 2.47633C1.56306 2.59242 1.56299 2.73233 1.563 2.88904V4.3681C1.56299 4.52482 1.56306 4.66474 1.57254 4.78083C1.58274 4.90562 1.6057 5.03661 1.6709 5.16457C1.76581 5.35084 1.91725 5.50228 2.10351 5.59718C2.23147 5.66238 2.36246 5.68535 2.48726 5.69554C2.60335 5.70503 2.74325 5.70509 2.89997 5.70508H6.28857C6.44529 5.70509 6.5852 5.70503 6.7013 5.69554C6.82609 5.68535 6.95708 5.66238 7.08504 5.59718C7.27131 5.50228 7.42274 5.35084 7.51765 5.16457C7.58285 5.03661 7.60581 4.90562 7.61601 4.78083C7.6255 4.66474 7.62556 4.52483 7.62555 4.3681V2.88905C7.62556 2.73233 7.6255 2.59242 7.61601 2.47633C7.60581 2.35153 7.58285 2.22054 7.51765 2.09259C7.42274 1.90632 7.27131 1.75488 7.08504 1.65997C6.95708 1.59477 6.82609
21.57181 6.7013 1.56161C6.5852 1.55213 6.4453 1.55206 6.28858 1.55208H2.89997ZM10.1717 1.3335H13.1146C13.2674 1.33348 13.4159 1.33347 13.5418 1.34376C13.6802 1.35507 13.8431 1.38173 14.007 1.46522C14.2344 1.58108 14.4192 1.76596 14.5351 1.99335C14.6186 2.15721 14.6453 2.32012 14.6566 2.45853C14.6669 2.58446 14.6668 2.73293 14.6668 2.8857V7.65015C14.6668 7.80291 14.6669 7.95139 14.6566 8.07731C14.6453 8.21572 14.6186 8.37864 14.5351 8.54249C14.4192 8.76989 14.2344 8.95476 14.007 9.07063C13.8431 9.15412 13.6802 9.18078 13.5418 9.19209C13.4159 9.20237 13.2674 9.20236 13.1147 9.20235H10.1716C10.0189 9.20236 9.87043 9.20237 9.7445 9.19209C9.6061 9.18078 9.44318 9.15412 9.27933 9.07063C9.05193 8.95476 8.86705 8.76989 8.75119 8.54249C8.6677 8.37864 8.64104 8.21572 8.62974 8.07732C8.61945 7.95139 8.61946 7.80293 8.61947 7.65018V2.88567C8.61946 2.73292 8.61945 2.58445 8.62974 2.45853C8.64104 2.32012 8.6677 2.15721 8.75119 1.99335C8.86705 1.76596 9.05193 1.58108 9.27933 1.46522C9.44318 1.38173 9.6061 1.35507 9.7445 1.34376C9.87044 1.33347 10.0189 1.33348 10.1717 1.3335ZM10.175 1.55208C10.0183 1.55206 9.8784 1.55213 9.7623 1.56161C9.63751 1.57181 9.50652 1.59477 9.37856 1.65997C9.19229 1.75488 9.04085 1.90632 8.94595 2.09258C8.88075 2.22054 8.85778 2.35153 8.84759 2.47633C8.8381 2.59241 8.83804 2.73231 8.83805 2.88903V7.64683C8.83804 7.80354 8.8381 7.94343 8.84759 8.05951C8.85778 8.18431 8.88075 8.3153 8.94595 8.44326C9.04085 8.62953 9.19229 8.78097 9.37856 8.87587C9.50652 8.94107 9.63751 8.96404 9.7623 8.97423C9.87839 8.98372 10.0183 8.98378 10.175 8.98377H13.1113C13.268 8.98378 13.4079 8.98372 13.524 8.97423C13.6488 8.96404 13.7798 8.94107 13.9077 8.87587C14.094 8.78097 14.2454 8.62953 14.3404 8.44326C14.4056 8.3153 14.4285 8.18431 14.4387 8.05952C14.4482 7.94342 14.4483 7.80352 14.4483 7.64679V2.88904C14.4483 2.73233 14.4482 2.59242 14.4387 2.47633C14.4285 2.35153 14.4056 2.22054 14.3404 2.09259C14.2454 1.90632 14.094 1.75488 13.9077 1.65997C13.7798 1.59477 13.6488 1.57181 13.524 1.56161C13.4079 1.55213 13.268 1.55206 13.1113 1.55208H10.175ZM2.91681 2.53758C2.73692 2.53758 2.6384 2.53805 2.56751 2.54384C2.56328 2.54419 2.55939 2.54454 2.55581 2.54489C2.55547 2.54846 2.55511 2.55235 2.55477 2.55658C2.54898 2.62748 2.54851 2.72599 2.54851 2.90588V4.35128C2.54851 4.53117 2.54898 4.62968 2.55477 4.70058C2.55511 4.70481 2.55546 4.7087 2.55581 4.71227C2.55939 4.71262 2.56328 4.71297 2.56751 4.71332C2.6384 4.71911 2.73692 4.71958 2.91681 4.71958H6.27175C6.45164 4.71958 6.55015 4.71911 6.62104 4.71332C6.62527 4.71297 6.62917 4.71262 6.63274 4.71227C6.63309 4.7087 6.63344 4.70481 6.63378 4.70058C6.63957 4.62968 6.64005 4.53117 6.64005 4.35128V2.90588C6.64005 2.72599 6.63957 2.62748 6.63378 2.55658C6.63344 2.55235 6.63309 2.54846 6.63274 2.54489C6.62917 2.54454 6.62527 2.54419 6.62104 2.54384C6.55015 2.53805 6.45163 2.53758 6.27175 2.53758H2.91681ZM2.54971 2.32599C2.63163 2.3193 2.74078 2.319 2.91681 2.319H6.27175C6.44777 2.319 6.55692 2.3193 6.63884 2.32599C6.67953 2.32931 6.70379 2.33367 6.71767 2.33702L6.73275 2.34066L6.74622 2.34836C6.78082 2.36812 6.8095 2.3968 6.82927 2.43141L6.83696 2.44488L6.8406 2.45995C6.84395 2.47383 6.84831 2.4981 6.85164 2.53878C6.85833 2.6207 6.85863 2.72985 6.85863 2.90588V4.35128C6.85863 4.5273 6.85833 4.63645 6.85164 4.71838C6.84831 4.75906 6.84395 4.78333 6.8406 4.79721L6.83696 4.81228L6.82927 4.82575C6.8095 4.86036 6.78082 4.88904 6.74622 4.9088L6.73275 4.91649L6.71767 4.92014C6.70379 4.92349 6.67953 4.92784 6.63884 4.93117C6.55692 4.93786 6.44777 4.93816 6.27175 4.93816H2.91681C2.74078 4.93816 2.63163 4.93786 2.54971 4.93117C2.50902 4.92784 2.48476 4.92349 2.47089 4.92014L2.45581 4.9165L2.44233 4.9088C2.40773 4.88904 2.37905 4.86036 2.35928 4.82575L2.35159 4.81228L2.34795 4.7972C2.3446 4.78332 2.34024 4.75906 2.33692 4.71838C2.33022 4.63645 2.32993 4.5273 2.32993 4.35128V2.90588C2.32993 2.72985 2.33022 2.6207 2.33692 2.53878C2.34024 2.4981 2.3446 2.47383 2.34795 2.45996L2.35159 2.44488L2.35928 2.43141C2.37905 2.3968 2.40773 2.36812 2.44233 2.34836L2.4558 2.34066L2.47088 2.33702C2.48476 2.33367 2.50902 2.32931 2.54971 2.32599ZM10.1919 2.53758C10.012 2.53758 9.91345 2.53805 9.84255 2.54384C9.83833 2.54419 9.83443 2.54454 9.83086 2.54489C9.83051 2.54846 9.83016 2.55235 9.82982 2.55658C9.82402 2.62748 9.82355 2.72599 9.82355 2.90588V7.62997C9.82355 7.80985 9.82402 7.90837 9.82982 7.97927C9.83016 7.98349 9.83051 7.98739 9.83086 7.99096C9.83443 7.99131 9.83833 7.99166 9.84256 7.992C9.91345 7.9978 10.012 7.99827 10.1919 7.99827H13.0944C13.2743 7.99827 13.3729 7.9978 13.4437 7.992C13.448 7.99166 13.4519 7.99131 13.4554 7.99096C13.4558 7.98739 13.4561 7.98349 13.4565 7.97927C13.4623 7.90837 13.4627 7.80986 13.4627 7.62997V2.90588C13.4627 2.72599 13.4623 2.62748 13.4565 2.55658C13.4561 2.55235 13.4558 2.54846 13.4554 2.54489C13.4519 2.54454 13.448 2.54419 13.4437 2.54384C13.3729 2.53805 13.2743 2.53758 13.0944 2.53758H10.1919ZM9.82476 2.32599C9.90668 2.3193 10.0158 2.319 10.1919 2.319H13.0944C13.2705 2.319 13.3796 2.3193 13.4615 2.32599C13.5022 2.32931 13.5265 2.33367 13.5404 2.33702L13.5555 2.34066L13.5689 2.34836C13.6035 2.36812 13.6322 2.3968 13.652 2.4314L13.6597 2.44487L13.6633 2.45995C13.6667 2.47383 13.671 2.4981 13.6743 2.53878C13.681 2.6207 13.6813 2.72986 13.6813 2.90588V7.62997C13.6813 7.80599 13.681 7.91514 13.6743 7.99706C13.671 8.03775 13.6667 8.06201 13.6633 8.07589L13.6597 8.09097L13.652 8.10444C13.6322 8.13905 13.6035 8.16773 13.5689 8.18749L13.5555 8.19518L13.5404 8.19882C13.5265 8.20217 13.5022 8.20653 13.4615 8.20986C13.3796 8.21655 13.2705 8.21685 13.0944 8.21685H10.1919C10.0158 8.21685 9.90668 8.21655 9.82475 8.20986C9.78408 8.20653 9.75981 8.20218 9.74593 8.19882L9.73085 8.19518L9.71738 8.18749C9.68278 8.16773 9.6541 8.13905 9.63433 8.10444L9.62664 8.09097L9.623 8.07589C9.61965 8.06201 9.61529 8.03775 9.61196 7.99706C9.60527 7.91514 9.60497 7.80599 9.60497 7.62997V2.90588C9.60497 2.72985 9.60527 2.6207 9.61196 2.53878C9.61529 2.4981 9.61965 2.47383 9.623 2.45995L9.62664 2.44487L9.63433 2.4314C9.6541 2.3968 9.68278 2.36812 9.71738 2.34836L9.73085 2.34066L9.74593 2.33702C9.75981 2.33367 9.78407 2.32931 9.82476 2.32599ZM2.8857 6.79208H6.29193C6.44469 6.79207 6.59317 6.79205 6.7191 6.80234C6.8575 6.81365 7.02042 6.84031 7.18427 6.9238C7.41167 7.03966 7.59654 7.22454 7.71241 7.45193C7.79589 7.61579 7.82256 7.77871 7.83386 7.91711C7.84415 8.04305 7.84414 8.19154 7.84413 8.34431L7.84412 13.1146C7.84414 13.2674 7.84415 13.4159 7.83386 13.5418C7.82256 13.6802 7.79589 13.8431 7.71241 14.007C7.59654 14.2344 7.41167 14.4192 7.18427 14.5351C7.02042 14.6186 6.8575 14.6453 6.7191 14.6566C6.59316 14.6669 6.44469 14.6668 6.29193 14.6668H2.8857C2.73293 14.6668 2.58446 14.6669 2.45853 14.6566C2.32012 14.6453 2.15721 14.6186 1.99335 14.5351C1.76596 14.4192 1.58108 14.2344 1.46522 14.007C1.38173 13.8431 1.35507 13.6802 1.34376 13.5418C1.33347 13.4159 1.33348 13.2674 1.3335 13.1146L1.3335 8.3443C1.33348 8.19153 1.33347 8.04305 1.34376 7.91711C1.35507 7.77871 1.38173 7.61579 1.46522 7.45193C1.58108 7.22454 1.76596 7.03966 1.99335 6.9238C2.15721 6.84031 2.32012 6.81365 2.45853
26.80234C2.58446 6.79205 2.73294 6.79207 2.8857 6.79208ZM2.88905 7.01066C2.73233 7.01065 2.59242 7.01071 2.47633 7.0202C2.35153 7.03039 2.22054 7.05336 2.09259 7.11856C1.90632 7.21346 1.75488 7.3649 1.65997 7.55117C1.59478 7.67913 1.57181 7.81012 1.56161 7.93491C1.55213 8.051 1.55206 8.19091 1.55208 8.34764L1.55208 13.1113C1.55206 13.268 1.55213 13.4079 1.56161 13.524C1.57181 13.6488 1.59477 13.7798 1.65997 13.9077C1.75488 14.094 1.90632 14.2454 2.09258 14.3404C2.22054 14.4055 2.35153 14.4285 2.47633 14.4387C2.59242 14.4482 2.73233 14.4483 2.88904 14.4482H6.28858C6.4453 14.4483 6.5852 14.4482 6.70129 14.4387C6.82609 14.4285 6.95708 14.4056 7.08504 14.3404C7.2713 14.2454 7.42274 14.094 7.51765 13.9077C7.58285 13.7798 7.60581 13.6488 7.61601 13.524C7.62549 13.4079 7.62556 13.268 7.62555 13.1113L7.62555 8.34763C7.62556 8.19091 7.6255 8.051 7.61601 7.93491C7.60581 7.81012 7.58285 7.67913 7.51765 7.55117C7.42274 7.3649 7.27131 7.21346 7.08504 7.11856C6.95708 7.05336 6.82609 7.03039 6.7013 7.0202C6.5852 7.01071 6.4453 7.01065 6.28858 7.01066H2.88905ZM2.90588 7.99616C2.72599 7.99616 2.62748 7.99663 2.55658 8.00243C2.55235 8.00277 2.54846 8.00312 2.54489 8.00347C2.54454 8.00704 2.54419 8.01093 2.54384 8.01516C2.53805 8.08606 2.53758 8.18457 2.53758 8.36446L2.53758 13.0944C2.53758 13.2743 2.53805 13.3728 2.54384 13.4437C2.54419 13.448 2.54454 13.4519 2.54489 13.4554C2.54846 13.4558 2.55235 13.4561 2.55658 13.4565C2.62748 13.4623 2.72599 13.4627 2.90588 13.4627H6.27175C6.45163 13.4627 6.55015 13.4623 6.62104 13.4565C6.62527 13.4561 6.62917 13.4558 6.63274 13.4554C6.63309 13.4519 6.63344 13.448 6.63378 13.4437C6.63957 13.3728 6.64005 13.2743 6.64005 13.0944L6.64005 8.36446C6.64005 8.18457 6.63957 8.08606 6.63378 8.01516C6.63344 8.01094 6.63309 8.00704 6.63274 8.00347C6.62917 8.00312 6.62527 8.00277 6.62104 8.00243C6.55015 7.99663 6.45164 7.99616 6.27175 7.99616H2.90588ZM2.53878 7.78457C2.6207 7.77788 2.72986 7.77758 2.90588 7.77758H6.27175C6.44777 7.77758 6.55692 7.77788 6.63884 7.78457C6.67952 7.7879 6.70379 7.79225 6.71767 7.79561L6.73275 7.79925L6.74622 7.80694C6.78083 7.8267 6.8095 7.85538 6.82927 7.88999L6.83696 7.90346L6.8406 7.91854C6.84395 7.93241 6.84831 7.95668 6.85164 7.99736C6.85833 8.07929 6.85863 8.18844 6.85863 8.36446L6.85862 13.0944C6.85862 13.2705 6.85833 13.3796 6.85164 13.4615C6.84831 13.5022 6.84395 13.5265 6.8406 13.5404L6.83696 13.5555L6.82927 13.5689C6.8095 13.6035 6.78082 13.6322 6.74622 13.652L6.73275 13.6597L6.71767 13.6633C6.70379 13.6667 6.67953 13.671 6.63884 13.6743C6.55692 13.681 6.44777 13.6813 6.27175 13.6813H2.90588C2.72985 13.6813 2.6207 13.681 2.53878 13.6743C2.4981 13.671 2.47383 13.6667 2.45995 13.6633L2.44488 13.6597L2.43141 13.652C2.3968 13.6322 2.36812 13.6035 2.34836 13.5689L2.34066 13.5554L2.33702 13.5404C2.33367 13.5265 2.32931 13.5022 2.32599 13.4615C2.3193 13.3796 2.319 13.2705 2.319 13.0944L2.319 8.36446C2.319 8.18844 2.3193 8.07929 2.32599 7.99736C2.32931 7.95668 2.33367 7.93242 2.33702 7.91854L2.34066 7.90346L2.34836 7.88999C2.36812 7.85538 2.3968 7.8267 2.43141 7.80694L2.44488 7.79925L2.45995 7.79561C2.47383 7.79225 2.4981 7.7879 2.53878 7.78457ZM10.1716 10.0767H13.1147C13.2674 10.0767 13.4159 10.0766 13.5418 10.0869C13.6802 10.0982 13.8431 10.1249 14.007 10.2084C14.2344 10.3242 14.4192 10.5091 14.5351 10.7365C14.6186 10.9004 14.6453 11.0633 14.6566 11.2017C14.6669 11.3276 14.6668 11.4761 14.6668 11.6289V13.1146C14.6668 13.2674 14.6669 13.4159 14.6566 13.5418C14.6453 13.6802 14.6186 13.8431 14.5351 14.007C14.4192 14.2344 14.2344 14.4192 14.007 14.5351C13.8431 14.6186 13.6802 14.6453 13.5418 14.6566C13.4159 14.6669 13.2674 14.6668 13.1146 14.6668H10.1717C10.0189 14.6668 9.87043 14.6669 9.7445 14.6566C9.6061 14.6453 9.44318 14.6186 9.27933 14.5351C9.05193 14.4192 8.86705 14.2344 8.75119 14.007C8.6677 13.8431 8.64104 13.6802 8.62974 13.5418C8.61945 13.4159 8.61946 13.2674 8.61947 13.1147V11.6288C8.61946 11.4761 8.61945 11.3276 8.62974 11.2017C8.64104 11.0633 8.6677 10.9004 8.75119 10.7365C8.86705 10.5091 9.05193 10.3242 9.27933 10.2084C9.44318 10.1249 9.6061 10.0982 9.7445 10.0869C9.87042 10.0766 10.0189 10.0767 10.1716 10.0767ZM10.175 10.2952C10.0183 10.2952 9.87839 10.2953 9.7623 10.3048C9.63751 10.315 9.50652 10.3379 9.37856 10.4031C9.19229 10.498 9.04085 10.6495 8.94595 10.8358C8.88075 10.9637 8.85
2778 11.0947 8.84759 11.2195C8.8381 11.3356 8.83804 11.4755 8.83805 11.6322V13.1113C8.83804 13.268 8.8381 13.4079 8.84759 13.524C8.85778 13.6488 8.88075 13.7798 8.94595 13.9077C9.04085 14.094 9.19229 14.2454 9.37856 14.3404C9.50652 14.4055 9.63751 14.4285 9.7623 14.4387C9.8784 14.4482 10.0183 14.4483 10.175 14.4482H13.1113C13.268 14.4483 13.4079 14.4482 13.524 14.4387C13.6488 14.4285 13.7798 14.4055 13.9077 14.3404C14.094 14.2454 14.2454 14.094 14.3404 13.9077C14.4056 13.7798 14.4285 13.6488 14.4387 13.524C14.4482 13.4079 14.4483 13.268 14.4483 13.1113V11.6322C14.4483 11.4755 14.4482 11.3356 14.4387 11.2195C14.4285 11.0947 14.4056 10.9637 14.3404 10.8358C14.2454 10.6495 14.094 10.498 13.9077 10.4031C13.7798 10.3379 13.6488 10.315 13.524 10.3048C13.4079 10.2953 13.268 10.2952 13.1113 10.2952H10.175ZM10.1919 11.2807C10.012 11.2807 9.91345 11.2812 9.84255 11.287C9.83833 11.2874 9.83443 11.2877 9.83086 11.2881C9.83051 11.2916 9.83016 11.2955 9.82982 11.2997C9.82402 11.3706 9.82355 11.4692 9.82355 11.649V13.0944C9.82355 13.2743 9.82402 13.3728 9.82982 13.4437C9.83016 13.448 9.83051 13.4519 9.83086 13.4554C9.83443 13.4558 9.83833 13.4561 9.84256 13.4565C9.91345 13.4623 10.012 13.4627 10.1919 13.4627H13.0944C13.2743 13.4627 13.3729 13.4623 13.4437 13.4565C13.448 13.4561 13.4519 13.4558 13.4554 13.4554C13.4558 13.4519 13.4561 13.448 13.4565 13.4437C13.4623 13.3728 13.4627 13.2743 13.4627 13.0944V11.649C13.4627 11.4692 13.4623 11.3706 13.4565 11.2997C13.4561 11.2955 13.4558 11.2916 13.4554 11.2881C13.4519 11.2877 13.448 11.2874 13.4437 11.287C13.3729 11.2812 13.2743 11.2807 13.0944 11.2807H10.1919ZM9.82476 11.0692C9.90668 11.0625 10.0158 11.0622 10.1919 11.0622H13.0944C13.2705 11.0622 13.3796 11.0625 13.4615 11.0692C13.5022 11.0725 13.5265 11.0768 13.5404 11.0802L13.5554 11.0838L13.5689 11.0915C13.6035 11.1113 13.6322 11.14 13.652 11.1746L13.6597 11.188L13.6633 11.2031C13.6667 11.217 13.671 11.2413 13.6743 11.2819C13.681 11.3639 13.6813 11.473 13.6813 11.649V13.0944C13.6813 13.2705 13.681 13.3796 13.6743 13.4615C13.671 13.5022 13.6667 13.5265 13.6633 13.5404L13.6597 13.5555L13.652 13.5689C13.6322 13.6035 13.6035 13.6322 13.5689 13.652L13.5555 13.6597L13.5404 13.6633C13.5265 13.6667 13.5022 13.671 13.4615 13.6743C13.3796 13.681 13.2705 13.6813 13.0944 13.6813H10.1919C10.0158 13.6813 9.90668 13.681 9.82475 13.6743C9.78408 13.671 9.75981 13.6667 9.74593 13.6633L9.73085 13.6597L9.71738 13.652C9.68277 13.6322 9.65409 13.6035 9.63433 13.5689L9.62664 13.5554L9.623 13.5404C9.61964 13.5265 9.61529 13.5022 9.61196 13.4615C9.60527 13.3796 9.60497 13.2705 9.60497 13.0944V11.649C9.60497 11.473 9.60527 11.3639 9.61196 11.2819C9.61529 11.2413 9.61965 11.217 9.623 11.2031L9.62664 11.188L9.63433 11.1746C9.6541 11.14 9.68278 11.1113 9.71738 11.0915L9.73085 11.0838L9.74593 11.0802C9.7598 11.0768 9.78407 11.0725 9.82476 11.0692Z",fill:n})]})})},L2=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"large":return 32;case"medium":return 24;default:return 16}},C=r!==void 0?r:i(),l=o!==void 0?o:i();return e.jsx(X,{...a,sx:{width:C,height:l,...s},children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05487C9.96938 4.01326 9.8127 4.00022 9.02229 4.00022H5.2C4.62345 4.00022 4.25117 4.00099 3.96784 4.02414C3.69617 4.04634 3.59546 4.08402 3.54601 4.10921C3.35785 4.20508 3.20487 4.35806 3.109 4.54622C3.0838 4.59567 3.04612 4.69639 3.02393 4.96805C3.00357 5.2172 3.00052 5.53511 3.00007 6.00022H11.382L10.99 5.21635C10.6366 4.50939 10.5548 4.37508 10.4637 4.2858C10.3578 4.18208 10.2301 4.1032 10.09 4.05487ZM13.618 6.00022L12.7789 4.32192C12.7602 4.28453 12.7417 4.24744 12.7234 4.21065C12.4586 3.6794 12.2258 3.21221 11.8631 2.85696C11.5454 2.54581 11.1625 2.30918 10.7421 2.16418C10.2622 1.99863 9.74022 1.99932 9.14666 2.00011C9.10555 2.00016 9.0641 2.00022 9.02229 2.00022L5.16146 2.00021C4.63431 2.0002 4.17955 2.00018 3.80497 2.03078C3.40963 2.06309 3.01641 2.1344 2.63803 2.3272C2.07354 2.61482 1.6146 3.07376 1.32698 3.63824C1.13419 4.01662 1.06287 4.40984 1.03057 4.80519C0.999967 5.17976 0.999983 5.63452 1 6.16167L1 16.2415C0.999989 17.0465 0.999978 17.7108 1.0442 18.252C1.09012 18.8141 1.188
268 19.3308 1.43598 19.8162C1.81947 20.5688 2.43139 21.1807 3.18404 21.5642C3.66938 21.8115 4.18608 21.9101 4.74818 21.956C5.28937 22.0002 5.95372 22.0002 6.75868 22.0002H17.2413C18.0463 22.0002 18.7106 22.0002 19.2518 21.956C19.8139 21.9101 20.3306 21.8115 20.816 21.5642C21.5686 21.1807 22.1805 20.5688 22.564 19.8162C22.8113 19.3308 22.9099 18.8141 22.9558 18.252C23 17.7109 23 17.0465 23 16.2415V11.7589C23 10.9539 23 10.2896 22.9558 9.74839C22.9099 9.18629 22.8113 8.66959 22.564 8.18425C22.1805 7.4316 21.5686 6.81968 20.816 6.43619C20.3306 6.1889 19.8139 6.09033 19.2518 6.04441C18.7106 6.00019 18.0463 6.0002 17.2413 6.00022L13.618 6.00022ZM12.9799 8.00022C12.9938 8.00051 13.0077 8.00051 13.0217 8.00022H17.2C18.0566 8.00022 18.6389 8.00099 19.089 8.03777C19.5274 8.07359 19.7516 8.13851 19.908 8.2182C20.2843 8.40995 20.5903 8.71591 20.782 9.09223C20.8617 9.24863 20.9266 9.47284 20.9625 9.91125C20.9992 10.3613 21 10.9436 21 11.8002V16.2002C21 17.0568 20.9992 17.6391 20.9625 18.0892C20.9266 18.5276 20.8617 18.7518 20.782 18.9082C20.5903 19.2845 20.2843 19.5905 19.908 19.7822C19.7516 19.8619 19.5274 19.9268 19.089 19.9627C18.6389 19.9994 18.0566 20.0002 17.2 20.0002H6.8C5.94342 20.0002 5.36113 19.9994 4.91104 19.9627C4.47262 19.9268 4.24842 19.8619 4.09202 19.7822C3.7157 19.5905 3.40974 19.2845 3.21799 18.9082C3.1383 18.7518 3.07337 18.5276 3.03755 18.0892C3.00078 17.6391 3 17.0568 3 16.2002V8.00022H12.9799ZM12 10.0002C12.5523 10.0002 13 10.4479 13 11.0002V13.0002H15C15.5523 13.0002 16 13.4479 16 14.0002C16 14.5525 15.5523 15.0002 15 15.0002H13V17.0002C13 17.5525 12.5523 18.0002 12 18.0002C11.4477 18.0002 11 17.5525 11 17.0002V15.0002H9C8.44772 15.0002 8 14.5525 8 14.0002C8 13.4479 8.44772 13.0002 9 13.0002H11V11.0002C11 10.4479 11.4477 10.0002 12 10.0002Z",fill:n})})})};function Ee({onClick:t,sx:n,icon:r,label:o,caption:s,"aria-label":a}){const i=C=>{t&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),t(C))};return e.jsx(x,{onClick:t,role:"button",tabIndex:0,onKeyDown:i,"aria-label":a??(typeof o=="string"?o:void 0),sx:{width:"100%",borderRadius:"4px",paddingX:2,paddingY:1.5,"&:hover":{backgroundColor:"#F2F4F7",cursor:"pointer"},"&:focus-visible":{outline:"2px solid #1976d2",outlineOffset:"2px"},...n},children:e.jsxs(x,{gap:2,direction:"row",alignItems:"center",children:[e.jsx(x,{"aria-hidden":"true",sx:{borderRadius:"50%",border:"1px #DEE0E6 solid",width:"32px",height:"32px",alignItems:"center",justifyItems:"center",justifyContent:"center"},children:r}),e.jsxs(x,{children:[e.jsx(S,{variant:"bodySmRegular",color:w.content.neutral.neutralStrong,children:o}),s&&e.jsx(S,{variant:"captionRegular",color:w.content.neutral.neutralLight,children:s})]})]})})}const Z={DASHBOARD:"dashboard",SECTION:"section",LINK:"link",STATIC_IMAGE:"static_image"},ge=Le(H1)({padding:0,minHeight:"auto","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{backgroundColor:"#F2F4F7"},"& .MuiSvgIcon-root":{marginRight:0}});function A2({anchorEl:t,open:n,onClose:r,onSelect:o}){const{t:s}=y(),a=i=>{o(i),r()};return e.jsxs(F1,{anchorEl:t,open:n,onClose:r,"aria-label":s("REPORT_BOOK.CONTENT.MENU_LABEL"),children:[e.jsx(ge,{disableGutters:!0,onClick:()=>a(Z.DASHBOARD),children:e.jsx(Ee,{icon:e.jsx(o1,{}),label:s("REPORT_BOOK.CONTENT.ADD_REPORT"),caption:s("REPORT_BOOK.CONTENT.ADD_REPORT_DESCRIPTION")})}),e.jsx(ge,{disableGutters:!0,onClick:()=>a(Z.SECTION),children:e.jsx(Ee,{icon:e.jsx(L2,{}),label:s("REPORT_BOOK.CONTENT.ADD_SECTION"),caption:s("REPORT_BOOK.CONTENT.ADD_SECTION_DESCRIPTION")})}),e.jsx(ge,{disableGutters:!0,onClick:()=>a(Z.LINK),children:e.jsx(Ee,{icon:e.jsx(C2,{}),label:s("REPORT_BOOK.CONTENT.ADD_LINK"),caption:s("REPORT_BOOK.CONTENT.ADD_LINK_DESCRIPTION")})}),e.jsx(ge,{disableGutters:!0,onClick:()=>a(Z.STATIC_IMAGE),children:e.jsx(Ee,{icon:e.jsx(t1,{}),label:s("REPORT_BOOK.CONTENT.ADD_STATIC_IMAGE"),caption:s("REPORT_BOOK.CONTENT.ADD_STATIC_IMAGE_DESCRIPTION")})})]})}function D2({open:t,onClose:n,onAdd:r}){const{t:o}=y(),[s,a]=c.useState(""),[i,C]=c.useState(""),[l,d]=c.useState({}),h=u=>{if(!u.trim())return!1;try{const I=new URL(u);return I.protocol==="http:"||I.protocol==="https:"}catch{return!1}},b=()=>{a(""),C(""),d({}),n()},E=()=>{const u={};
2if(s.trim()||(u.name=o("REPORT_BOOK.LINK_DIALOG.NAME_REQUIRED")),i.trim()?h(i)||(u.url=o("REPORT_BOOK.LINK_DIALOG.URL_INVALID")):u.url=o("REPORT_BOOK.LINK_DIALOG.URL_REQUIRED"),Object.keys(u).length>0){d(u);return}r({name:s.trim(),externalUrl:i.trim()}),b()};return e.jsx(ne,{open:t,onClose:b,title:o("REPORT_BOOK.LINK_DIALOG.TITLE"),actions:e.jsxs(e.Fragment,{children:[e.jsx(v,{size:"md",onClick:b,variant:"tertiary",children:o("Cancel")}),e.jsx(v,{size:"md",onClick:E,variant:"primary",disabled:s===""||i==="",children:o("Add")})]}),children:e.jsxs(x,{gap:4,children:[e.jsx(re,{required:!0,value:s,label:o("REPORT_BOOK.LINK_DIALOG.NAME_LABEL"),placeholder:o("REPORT_BOOK.LINK_DIALOG.NAME_PLACEHOLDER"),onChange:u=>{a(u),l.name&&d({...l,name:void 0})},size:"md",error:!!l.name,helperText:l.name,onKeyPress:u=>{u.key==="Enter"&&E()}}),e.jsx(re,{required:!0,value:i,label:o("REPORT_BOOK.LINK_DIALOG.URL_LABEL"),placeholder:o("REPORT_BOOK.LINK_DIALOG.URL_PLACEHOLDER"),onChange:u=>{C(u),l.url&&d({...l,url:void 0})},size:"md",error:!!l.url,helperText:l.url,onKeyPress:u=>{u.key==="Enter"&&E()}})]})})}function y2({open:t,onClose:n,onAdd:r}){const{control:o,watch:s}=ze(),{t:a}=y(),[i,C]=c.useState(""),[l,d]=c.useState({}),h=c.useRef(null),b=s("backgroundColor"),E=s("backgroundStyle")?.value||"auto",{isUploading:u,previewUrl:I,uploadedUrl:p,handleFileChange:g,reset:m}=De({maxSizeMB:10,onError:f=>d(P=>({...P,image:f}))}),O=()=>{C(""),d({}),m(),n()},T=async f=>{d(P=>({...P,image:void 0})),await g(f)},_=()=>{const f={};if(i.trim()||(f.name=a("REPORT_BOOK.IMAGE_DIALOG.NAME_REQUIRED")),p||(f.image=a("REPORT_BOOK.IMAGE_DIALOG.IMAGE_REQUIRED")),Object.keys(f).length>0){d(f);return}r({name:i.trim(),imageUrl:p||"",backgroundColor:b,backgroundStyle:E}),O()};return e.jsx(ne,{open:t,onClose:O,title:a("REPORT_BOOK.IMAGE_DIALOG.TITLE"),actions:e.jsxs(e.Fragment,{children:[e.jsx(v,{size:"md",onClick:O,variant:"tertiary",children:a("Cancel")}),e.jsx(v,{size:"md",onClick:_,variant:"primary",disabled:u||i==="",children:a("Add")})]}),children:e.jsxs(x,{gap:4,children:[e.jsx(re,{value:i,label:a("REPORT_BOOK.IMAGE_DIALOG.NAME_LABEL"),placeholder:a("REPORT_BOOK.IMAGE_DIALOG.NAME_PLACEHOLDER"),onChange:f=>{C(f),l.name&&d({...l,name:void 0})},error:!!l.name,helperText:l.name,required:!0}),e.jsxs(x,{gap:1.5,children:[e.jsx(S,{variant:"bodySmMedium",required:!0,children:a("REPORT_BOOK.IMAGE_DIALOG.UPLOAD_LABEL")}),e.jsx("input",{ref:h,type:"file",accept:"image/png,image/jpeg",onChange:T,style:{display:"none"}}),I?e.jsxs(L,{sx:{position:"relative",width:"100%",height:150,borderRadius:1,overflow:"hidden",border:"1px solid",borderColor:"divider"},children:[e.jsx(L,{alt:"Preview",sx:{width:"100%",height:"100%",backgroundColor:b||"grey.100",backgroundImage:`url(${I})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:E}}),e.jsx(v,{size:"sm",variant:"primary",onClick:()=>h.current?.click(),sx:{position:"absolute",bottom:8,right:8},disabled:u,children:u?e.jsx(oe,{size:20}):a("REPORT_BOOK.IMAGE_DIALOG.CHANGE")})]}):e.jsx(L,{onClick:()=>!u&&h.current?.click(),sx:{width:"100%",height:150,border:"2px dashed",borderColor:l.image?"error.main":"divider",borderRadius:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:u?"wait":"pointer","&:hover":{borderColor:u?"divider":"primary.main",backgroundColor:"action.hover"}},children:u?e.jsx(oe,{size:40}):e.jsxs(e.Fragment,{children:[e.jsx(Je,{size:40,sx:{color:"action.disabled",mb:1}}),e.jsx(S,{variant:"bodyMBaseRegular",color:"text.secondary",children:a("REPORT_BOOK.IMAGE_DIALOG.CLICK_TO_UPLOAD")}),e.jsx(S,{variant:"bodyMBaseRegular",color:"text.disabled",children:a("REPORT_BOOK.IMAGE_DIALOG.FILE_LIMIT")})]})}),l.image&&e.jsx(S,{variant:"bodyMBaseRegular",color:"error",sx:{mt:.5},children:l.image})]}),e.jsxs(x,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[e.jsx(S,{variant:"bodySmMedium",children:a("REPORT_BOOK.IMAGE_DIALOG.BACKGROUND_SIZE")}),e.jsx(L,{sx:{width:"120px"},children:e.jsx(u2,{name:"backgroundStyle",defaultValue:"Auto",options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],size:"md"})})]}),e.jsxs(x,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[e.jsx(S,{variant:"bodySmMedium",children:a("REPORT_BOOK.IMAGE_DIALOG.BACKGROUND_COLOR")}),e.jsx(J,{name:"backgroundColor",control:o,defaultValue:"#FFFFFF",render:({field:f})=>e.jsx(te,{value:f.value||"#FFFFFF",onChange:f.onChange,renderColorPicker:({color:P,onChange:k})=>e.jsx(ee,{color:P,onChange:N=>k(N.hex)})})})]})]})})}function s1(t){const n=[];return t.forEach(r=>{if(r.id.startsWith("dashboard-")){const o=parseInt(r.value,10);Number.isNaN(o)||n.push(o)}r.children&&r.children.length>0&&n.push(...s1(r.children))}),n}function v2(t,n=[],r=[]){const o=s=>{const i=s.reports.filter(h=>!r.includes(h.id)).map(h=>new Ne({id:`dashboard-${h.id}`,value:`${h.id}`,label:h.name,name:h.name,children:[],expanded:!0,selected:n.includes(h.id)}
2)),C=(s.children||[]).map(h=>o(h)),l=[...i,...C],d=l.length>0&&l.every(h=>h.selected);return new Ne({id:`folder-${s.id}`,value:`${s.id}`,label:s.name,name:s.name,children:l,expanded:!0,selected:d})};return t.map(s=>o(s))}function k2({folderTree:t,selectedDashboardIds:n,excludedDashboardIds:r,onSelectionChange:o,searchTerm:s}){const[a,i]=c.useState({checked:[],halfChecked:[]}),C=c.useMemo(()=>v2(t,n,r),[t,n,r]),l=c.useMemo(()=>we(C)?null:new m2({options:C}),[C]);c.useEffect(()=>{if(!l)return;const u=l.getAllSelectedNodes().filter(g=>g.id.startsWith("dashboard-")).map(g=>g.id),p=l.getHalfSelectedNodes().map(g=>g.id);i({checked:u,halfChecked:p})},[l,n]);const d=c.useCallback(b=>{if(!l)return;l.selectedNodeId(b);const u=l.getAllSelectedNodes().filter(O=>O.id.startsWith("dashboard-")),I=u.map(O=>O.id),g=l.getHalfSelectedNodes().map(O=>O.id);i({checked:I,halfChecked:g});const m=s1(u);o(m)},[l,o]),h=c.useCallback(()=>{},[]);return!l||we(t)?e.jsx(L,{sx:{textAlign:"center",p:4},children:e.jsx(S,{variant:"bodyMBaseRegular",color:"text.secondary",children:s?"No dashboards found matching your search":"No dashboards available"})}):e.jsx(h2,{treeManager:l,selected:a,searchValue:s,onNodeSelect:d,onChange:h,height:"calc(100vh - 500px)"})}function B2({open:t,onClose:n,onSelect:r,selectedDashboardIds:o}){const{t:s}=y(),{projectId:a}=Pe(),[i,C]=c.useState(""),[l,d]=c.useState([]),h=$e(),b=c.useMemo(()=>new O2({projectId:a,queryClient:h}),[a,h]),{data:E,isLoading:u}=le({...b.getReportFoldes(),enabled:t}),I=E?.data?.data||[],p=T=>{d(T)},g=()=>{r(l),d([]),C("")},m=()=>{d([]),C(""),n()},O=c.useMemo(()=>{const T=_=>_.reduce((f,P)=>{const k=(P.reports||[]).filter(B=>!o.includes(B.id)),N=T(P.children||[]);return f+k.length+N},0);return I.length>0&&T(I)===0},[I,o]);return e.jsx(x,{children:e.jsxs(ne,{open:t,title:s("REPORT_BOOK.DASHBOARD_SELECTOR.TITLE")||"Dashboard",onClose:m,actions:e.jsxs(e.Fragment,{children:[e.jsx(v,{size:"md",variant:"tertiary",onClick:m,children:s("Cancel")}),e.jsxs(v,{size:"md",variant:"primary",onClick:g,disabled:l.length===0,children:[s("Add")," ",l.length>0?`(${l.length})`:""]})]}),children:[e.jsx(L,{sx:{mb:2},children:e.jsx(p2,{fullWidth:!0,placeholder:s("REPORT_BOOK.DASHBOARD_SELECTOR.SEARCH_PLACEHOLDER"),value:i,onChange:T=>C(T),size:"md"})}),e.jsx(x,{sx:{height:"400px",overflow:"scroll"},children:u?e.jsx(L,{sx:{display:"flex",justifyContent:"center",p:4},children:e.jsx(We,{})}):O?e.jsx(L,{sx:{textAlign:"center",p:4},children:e.jsx(S,{variant:"bodyMBaseRegular",color:"text.secondary",children:s("REPORT_BOOK.DASHBOARD_SELECTOR.ALL_ADDED")})}):e.jsx(k2,{folderTree:I,selectedDashboardIds:l,excludedDashboardIds:o,onSelectionChange:p,searchTerm:i.trim()})})]})})}function w2({dialogs:t,selectedDashboardIds:n,onDashboardsSelected:r,onSectionConfirm:o,onDeleteConfirm:s,onRenameConfirm:a,onAddLink:i,onAddStaticImage:C}){const l=c.useRef(null),{t:d}=y(),{isUploading:h,previewUrl:b,error:E,handleFileChange:u}=De({maxSizeMB:10,onSuccess:p=>t.setNewImageUrl(p)}),I=async p=>{await u(p)};return e.jsxs(e.Fragment,{children:[t.selectorOpen&&e.jsx(B2,{open:t.selectorOpen,onClose:()=>t.setSelectorOpen(!1),onSelect:r,selectedDashboardIds:n}),t.sectionDialogOpen&&e.jsx(ne,{open:t.sectionDialogOpen,onClose:t.closeSectionDialog,title:d("REPORT_BOOK.SECTION_DIALOG.TITLE"),helperText:d("REPORT_BOOK.SECTION_DIALOG.HELPER_TEXT"),actions:e.jsxs(e.Fragment,{children:[e.jsx(v,{size:"md",onClick:t.closeSectionDialog,variant:"tertiary",children:d("Cancel")}),e.jsx(v,{size:"md",onClick:o,variant:"primary",disabled:!t.sectionName.trim(),children:d("Add")})]}),children:e.jsx(re,{required:!0,label:d("REPORT_BOOK.SECTION_DIALOG.NAME_LABEL"),value:t.sectionName,placeholder:d("REPORT_BOOK.SECTION_DIALOG.NAME_PLACEHOLDER"),onChange:p=>t.setSectionName(p),size:"md"})}),t.deleteDialogOpen&&e.jsx(ne,{open:t.deleteDialogOpen,onClose:t.closeDeleteDialog,title:d("REPORT_BOOK.DELETE_DIALOG.TITLE"),children:e.jsx(d2,{message:d("REPORT_BOOK.DELETE_DIALOG.MESSAGE"),onClose:t.closeDeleteDialog,onConfirm:s,confirmLabel:d("Delete"),cancelLabel:d("Cancel"),variant:"danger"})}),t.renameDialogOpen&&e.jsx(ne,{open:t.renameDialogOpen,onClose:t.closeRenameDialog,title:d("update_item"),actions:e.jsxs(e.Fragment,{children:[e.jsx(v,{size:"md",onClick:t.closeRenameDialog,variant:"tertiary",children:d("Cancel")}),e.jsx(v,{size:"md",onClick:a,variant:"primary",disabled:!t.newName.trim(),children:d("Save")})]}),children:e.jsxs(x,{gap:4,children:[e.jsx(re,{label:d("REPORT_BOOK.RENAME_DIALOG.NAME_LABEL"),value:t.newName,placeholder:d("REPORT_BOOK.RENAME_DIALOG.NAME_PLACEHOLDER"),onChange:p=>t.setNewName(p),size:"md"}),t.renameItem?.type==="STATIC_IMAGE"&&e.jsxs(e.Fragment,{children:[e.jsxs(x,{gap:1.5,children:[e.jsx(S,{variant:"bodyMBaseMedium",children:d("REPORT_BOOK.IMAGE_DIALOG.UPLOAD_LABEL")}),e.jsx("input",{ref:l,type:"file",accept:"image/png,image/jpeg",onChange:I,style:{display:"none"}}),b||t.renameItem?.imageUrl?e.jsxs(L,{sx:{position:"relative",width:"100%",height:150,borderRadius:1,overflow:"hidden",border:"1px solid",borderColor:"divider"},children:[e.jsx(L,{alt:"Preview",sx:{width:"100%",height:"100%",backgroundColor:t.newBackgroun
2dColor||t.renameItem?.backgroundColor,backgroundImage:`url(${b||t.renameItem?.imageUrl})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:t.newBackgroundStyle||t.renameItem?.backgroundStyle}}),e.jsx(v,{size:"sm",variant:"primary",onClick:()=>l.current?.click(),sx:{position:"absolute",bottom:8,right:8},disabled:h,children:h?e.jsx(oe,{size:20}):d("REPORT_BOOK.IMAGE_DIALOG.CHANGE")})]}):e.jsx(L,{onClick:()=>!h&&l.current?.click(),sx:{width:"100%",height:150,border:"2px dashed",borderColor:E?"error.main":"divider",borderRadius:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:h?"wait":"pointer","&:hover":{borderColor:h?"divider":"primary.main",backgroundColor:"action.hover"}},children:h?e.jsx(oe,{size:40}):e.jsxs(e.Fragment,{children:[e.jsx(Je,{size:40,sx:{color:"action.disabled",mb:1}}),e.jsx(S,{variant:"bodySmRegular",color:"text.secondary",children:d("REPORT_BOOK.IMAGE_DIALOG.CLICK_TO_UPLOAD")}),e.jsx(S,{variant:"bodySmRegular",color:"text.disabled",children:d("REPORT_BOOK.IMAGE_DIALOG.FILE_LIMIT")})]})}),E&&e.jsx(S,{variant:"bodySmRegular",color:"error",sx:{mt:.5},children:E})]}),e.jsxs(x,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[e.jsx(S,{variant:"bodySmMedium",children:d("REPORT_BOOK.IMAGE_DIALOG.BACKGROUND_SIZE")}),e.jsx(j1,{value:t.newBackgroundStyle,onChange:p=>t.setNewBackgroundStyle(p.target.value),options:[{value:"auto",label:"Auto"},{value:"cover",label:"Cover"},{value:"contain",label:"Contain"}],placeholder:d("background_size")})]}),e.jsxs(x,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[e.jsx(S,{variant:"bodySmMedium",children:d("REPORT_BOOK.IMAGE_DIALOG.BACKGROUND_COLOR")}),e.jsx(te,{value:t.newBackgroundColor||"#FFFFFF",onChange:p=>t.setNewBackgroundColor(p),renderColorPicker:({color:p,onChange:g})=>e.jsx(ee,{color:p,onChange:m=>g(m.hex)})})]})]}),t.renameItem?.type==="LINK"&&e.jsx(x,{children:e.jsx(re,{label:"URL",value:t.newExternalUrl||t.renameItem?.externalUrl||"",placeholder:"URL",onChange:p=>t.setNewExternalUrl(p),size:"md"})})]})}),e.jsx(A2,{anchorEl:t.menuAnchor,open:!!t.menuAnchor,onClose:t.closeMenu,onSelect:t.selectContentType}),e.jsx(D2,{open:t.linkDialogOpen,onClose:t.closeLinkDialog,onAdd:i}),e.jsx(y2,{open:t.staticImageDialogOpen,onClose:t.closeStaticImageDialog,onAdd:C})]})}const N2=be(()=>Ie(()=>import("./PagePreview-BgMvVfA0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]))),M2=be(()=>Ie(()=>import("./SectionPreview-BikxhwgM.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,51,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,52,13,53,54,55,56,57,58,59,60,61,12,62,63,64,65]))),U2=be(()=>Ie(()=>import("./LinkPreview-CaXn4h99.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,52,61,12,16]))),K2=be(()=>Ie(()=>Promise.resolve().then(()=>H2),void 0));function Ke({message:t}){return e.jsxs(L,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"2px dashed",borderColor:"divider",borderRadius:2,p:4,textAlign:"center"},children:[e.jsx(o1,{sx:{fontSize:64,color:"action.disabled",mb:2}}),e.jsx(S,{variant:"bodyMBaseMedium",color:"text.secondary",children:t})]})}function G2(){return e.jsx(L,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(We,{})})}function F2({item:t}){if(!t)return e.jsx(Ke,{message:"Select an item to preview"});const n=[A.PAGE,A.SECTION,A.LINK,A.STATIC_IMAGE];return e.jsxs(c.Suspense,{fallback:e.jsx(G2,{}),children:[t.type===A.PAGE&&e.jsx(N2,{item:t}),t.type===A.SECTION&&e.jsx(M2,{item:t}),t.type===A.LINK&&e.jsx(U2,{item:t}),t.type===A.STATIC_IMAGE&&e.jsx(K2,{item:t}),!n.includes(t.type)&&e.jsx(Ke,{message:"Unknown item type"})]})}function a1({item:t}){const[n,r]=c.useState(!0),[o,s]=c.useState(!1);return c.useEffect(()=>{if(!t.imageUrl)return;r(!0),s(!1);const a=new Image;return a.onload=()=>{r(!1),s(!1)},a.onerror=()=>{r(!1),s(!0)},a.src=t.imageUrl,()=>{a.onload=null,a.onerror=null}},[t.imageUrl]),t.imageUrl?o?e.jsx(L,{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%)"},children:e.jsx(z1,{sx:{fontSize:80,color:"error.light",opacity:.6}})}):e.jsxs(L,{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[n&&e.jsx(L,{sx:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(oe,{size:40,sx:{color:"grey.400"}})}),e.jsx(L,{sx:{width:"100%",height:"100%",opacity:n?0:1,transition:"opacity 0.3s ease-in-out",backgroundColor:t.backgroundColor,backgroundSize:t.backgroundStyle,backgroundImage:`url(${t.imageUrl})`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}})]}):e.jsx(L,{sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%)"},children:e.jsx(V1,{sx:{fontSize:80,color:"grey.400",opacity:.6}})})}const H2=Object.freeze(Object.defineProperty({__proto__:null,default:a1},Symbol.toStringTag,{value:"Module"})),V2=({size:t="small",fill:n="currentColor",width:r,height:o,sx:s,...a})=>{const i=()=>{switch(t){case"smaller":return 12;case"small":return 16;case"medium":return 24;case"large":return 32;default:return 16}},C=r??i(),l=o??i();return e.jsx(X,{...a,viewBox:"0 0 16 16",sx:{width:C,height:l,...s},children:e.jsx("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M25.7317 25.7325C26.088 25.3763 26.5436 25.1361 27.0388 25.0433C27.534 24.9505 28.0456 25.0095 28.5067 25.2125L53.5067 36.2125C53.9798 36.423 54.3759 36.7751 54.6405 37.2202C54.9051 37.6653 55.0251 38.1815 54.9839 38.6977C54.9428 39.2138 54.7425 39.7045 54.4108 40.1021C54.0791 40.4997 53.6322 40.7846 53.1317 40.9175L43.4567 43.455L40.9167 53.135C40.7844 53.6362 40.4996 54.0839 40.1016 54.4162C39.7037 54.7484 39.2123 54.9487 38.6955 54.9893C38.1787 55.0299 37.662 54.9089 37.217 54.643C36.7721 54.3771 36.4207 53.9794 36.2117 53.505L25.2117 28.505C25.0092 28.0442 24.9506 27.5331 25.0433 27.0384C25.1361 26.5437 25.376 26.0886 25.7317 25.7325ZM15.8617 40.5975C16.0923 40.3587 16.3682 40.1683 16.6732 40.0372C16.9782 39.9062 17.3063 39.8373 17.6382 39.8344C17.9702 39.8315 18.2994 39.8947 18.6066 40.0204C18.9138 40.1461 19.193 40.3318 19.4277 40.5665C19.6624 40.8012 19.8481 41.0804 19.9738 41.3876C20.0995 41.6949 20.1627 42.0241 20.1598 42.356C20.157 42.688 20.088 43.016 19.957 43.321C19.8259 43.626 19.6355 43.9019 19.3967 44.1325L14.0942 49.435C13.6227 49.8904 12.9912 50.1424 12.3357 50.1367C11.6802 50.131 11.0532 49.8681 10.5897 49.4045C10.1262 48.941 9.86323 48.314 9.85753 47.6585C9.85184 47.003 10.1038 46.3715 10.5592 45.9L15.8617 40.5975ZM12.5117 27.4875C13.1748 27.4875 13.8106 27.7509 14.2795 28.2197C14.7483 28.6886 15.0117 29.3245 15.0117 29.9875C15.0117 30.6505 14.7483 31.2864 14.2795 31.7553C13.8106 32.2241 13.1748 32.4875 12.5117 32.4875H5.01172C4.34868 32.4875 3.71279 32.2241 3.24395 31.7553C2.77511 31.2864 2.51172 30.6505 2.51172 29.9875C2.51172 29.3245 2.77511 28.6886 3.24395 28.2197C3.71279 27.7509 4.34868 27.4875 5.01172 27.4875H12.5117ZM10.5592 10.5625C11.028 10.
20938 11.6638 9.83053 12.3267 9.83053C12.9896 9.83053 13.6254 10.0938 14.0942 10.5625L19.3967 15.8675C19.8409 16.3411 20.0833 16.969 20.0728 17.6182C20.0622 18.2674 19.7995 18.887 19.3402 19.346C18.881 19.8049 18.2611 20.0672 17.6119 20.0773C16.9627 20.0874 16.335 19.8445 15.8617 19.4L10.5592 14.1C10.0905 13.6312 9.82725 12.9954 9.82725 12.3325C9.82725 11.6696 10.0905 11.0313 10.5592 10.5625ZM45.9142 10.55C46.1435 10.3058 46.4196 10.1102 46.726 9.97476C47.0324 9.83934 47.3629 9.76688 47.6978 9.76168C48.0328 9.75647 48.3653 9.81864 48.6758 9.94448C48.9862 10.0703 49.2682 10.2573 49.505 10.4942C49.7418 10.7312 49.9286 11.0133 50.0542 11.3239C50.1798 11.6344 50.2417 11.967 50.2363 12.302C50.2309 12.6369 50.1582 12.9673 50.0225 13.2736C49.8869 13.5799 49.6911 13.8559 49.4467 14.085L44.1467 19.385C43.6755 19.8407 43.0442 20.0932 42.3887 20.088C41.7332 20.0827 41.106 19.8202 40.6421 19.357C40.1783 18.8939 39.9149 18.267 39.9087 17.6115C39.9026 16.956 40.1541 16.3243 40.6092 15.8525L45.9142 10.55ZM27.4992 12.5V5C27.4992 4.33696 27.7626 3.70107 28.2314 3.23223C28.7003 2.76339 29.3362 2.5 29.9992 2.5C30.6623 2.5 31.2981 2.76339 31.767 3.23223C32.2358 3.70107 32.4992 4.33696 32.4992 5V12.5C32.4992 13.163 32.2358 13.7989 31.767 14.2678C31.2981 14.7366 30.6623 15 29.9992 15C29.3362 15 28.7003 14.7366 28.2314 14.2678C27.7626 13.7989 27.4992 13.163 27.4992 12.5Z",fill:n})})})};function z2(){const{t}=y();return e.jsxs(x,{gap:5,alignItems:"center",children:[e.jsx(V2,{htmlColor:"#154DBD",width:"52px",height:"52px"}),e.jsxs(x,{gap:.5,alignItems:"center",children:[e.jsx(S,{variant:"bodyMedium",color:w.content.neutral.neutralStrong,children:t("REPORT_BOOK.CONTENT.SELECT_ITEM_PREVIEW")}),e.jsx(S,{variant:"bodySmRegular",color:w.content.neutral.neutralLight,children:t("REPORT_BOOK.CONTENT.CHOOSE_REPORT")})]})]})}function $2(){const[t,n]=c.useState(!1),[r,o]=c.useState(null),[s,a]=c.useState(null),[i,C]=c.useState(!1),[l,d]=c.useState(null),[h,b]=c.useState(""),[E,u]=c.useState(!1),[I,p]=c.useState(null),[g,m]=c.useState(!1),[O,T]=c.useState(null),[_,f]=c.useState(!1),[P,k]=c.useState(null),[N,B]=c.useState(""),[K,U]=c.useState(""),[G,V]=c.useState(""),[R,j]=c.useState(""),[W,z]=c.useState(""),[ue,pe]=c.useState(!1),[Se,me]=c.useState(null),fe=c.useCallback((M,u1=null)=>{o(u1),a(M.currentTarget)},[]),se=c.useCallback(()=>a(null),[]),_e=c.useCallback(M=>{switch(se(),M){case Z.DASHBOARD:n(!0);break;case Z.SECTION:C(!0),d(r),b("");break;case Z.LINK:m(!0),T(r);break;case Z.STATIC_IMAGE:pe(!0),me(r);break}},[r,se]),je=c.useCallback(()=>{C(!1),d(null),b("")},[]),D=c.useCallback(M=>{u(!0),p(M)},[]),$=c.useCallback(()=>{u(!1),p(null)},[]),he=c.useCallback(M=>{f(!0),k(M),B(M.name),U(M.backgroundColor||""),V(M.backgroundStyle||""),j(M.imageUrl||""),z(M.externalUrl||"")},[]),q=c.useCallback(()=>{f(!1),k(null),B("")},[]),d1=c.useCallback(()=>{m(!1),T(null)},[]),C1=c.useCallback(()=>{pe(!1),me(null)},[]);return{selectorOpen:t,setSelectorOpen:n,selectedParent:r,menuAnchor:s,openAddContentMenu:fe,closeMenu:se,selectContentType:_e,sectionDialogOpen:i,sectionDialogParentId:l,sectionName:h,setSectionName:b,closeSectionDialog:je,deleteDialogOpen:E,deleteItemId:I,openDeleteDialog:D,closeDeleteDialog:$,linkDialogOpen:g,linkDialogParentId:O,closeLinkDialog:d1,renameDialogOpen:_,renameItem:P,newName:N,newExternalUrl:W,newBackgroundColor:K,newBackgroundStyle:G,newImageUrl:R,setNewExternalUrl:z,setNewName:B,setNewImageUrl:j,setNewBackgroundColor:U,setNewBackgroundStyle:V,openRenameDialog:he,closeRenameDialog:q,staticImageDialogOpen:ue,staticImageParentId:Se,closeStaticImageDialog:C1,hasAnyDialogOpen:t||i||E||g||_||ue||s!==null}}function Z2({bookItems:t,onItemsChange:n,selectedItem:r,setSelectedItem:o,dialogs:s,fetchDashboardPages:a}){const i=c.useMemo(()=>new e1,[]),C=async m=>{const O=await i.addDashboards({items:t,dashboardIds:m,parentId:s.selectedParent,fetchDashboard:a});n(O),s.setSelectorOpen(!1)},l=()=>{if(!s.sectionName.trim())return;const m=i.addSection({items:t,name:s.sectionName,parentId:s.sectionDialogParentId});n(m),s.closeSectionDialog()},d=()=>{if(s.deleteItemId===null)return;const m=i.deleteItem(t,String(s.deleteItemId));n(m),o(null),s.closeDeleteDialog()},h=()=>
2{if(!s.newName.trim()||!s.renameItem)return;const m=String(s.renameItem.id??s.renameItem.tempId),O=i.updateItem({items:t,itemId:m,updates:{name:s.newName,...s.renameItem.type==="STATIC_IMAGE"&&{backgroundColor:s.newBackgroundColor||void 0,backgroundStyle:s.newBackgroundStyle||void 0,imageUrl:s.newImageUrl||s.renameItem.imageUrl},...s.renameItem.type==="LINK"&&{externalUrl:s.newExternalUrl||s.renameItem.externalUrl}}});if(n(O),String(r?.id??r?.tempId??"")===m){const _=i.findById(O,m);_&&o(_)}s.closeRenameDialog()},b=m=>{const O=i.addLink({items:t,data:m,parentId:s.linkDialogParentId});n(O),s.closeLinkDialog()},E=m=>{const O=i.addStaticImage({items:t,data:m,parentId:s.staticImageParentId});n(O),s.closeStaticImageDialog()},u=c.useCallback((m,O)=>{s.openAddContentMenu(m,O||null)},[s.openAddContentMenu]),I=c.useCallback(m=>{const O=i.findById(t,m);O&&s.openRenameDialog(O)},[t,i,s.openRenameDialog]),p=c.useCallback(m=>{s.openDeleteDialog(m)},[s.openDeleteDialog]),g=c.useMemo(()=>t.filter(m=>m.type===A.PAGE).map(m=>m.pageId).filter(Boolean),[t]);return{handleDashboardsSelected:C,handleSectionConfirm:l,handleDeleteConfirm:d,handleRenameConfirm:h,handleAddLink:b,handleAddStaticImage:E,handleTreeAddContent:u,handleTreeRename:I,handleTreeDelete:p,selectedDashboardIds:g}}const W2=Le(x)({overflowY:"auto",flex:"1 1 auto","@media (hover: hover)":{"&::-webkit-scrollbar":{width:"4px",transition:"background 0.3s ease"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"20px",transition:"background 0.3s ease"},"&:hover::-webkit-scrollbar-thumb":{background:"#E4E7EC"},scrollbarWidth:"thin",scrollbarColor:"transparent transparent",transition:"background 0.3s ease","&:hover":{scrollbarColor:"#E4E7EC transparent"}}});function q2(t){const{t:n}=y(),{bookItems:r,onItemsChange:o,queryClient:s}=t,[a,i]=c.useState(null),C=$2(),l=c.useCallback(async _=>s.fetchQuery({queryKey:["dashboard-pages",_],queryFn:async()=>(await de.get(`/v2/dashboards/${_}/pages`)).data.data}),[s]),{handleTreeAddContent:d,handleTreeDelete:h,handleTreeRename:b,selectedDashboardIds:E,handleDashboardsSelected:u,handleSectionConfirm:I,handleDeleteConfirm:p,handleRenameConfirm:g,handleAddLink:m,handleAddStaticImage:O}=Z2({bookItems:r,onItemsChange:o,selectedItem:a,setSelectedItem:i,dialogs:C,fetchDashboardPages:l}),T=()=>a?a.type===A.STATIC_IMAGE?e.jsx(a1,{item:a}):e.jsx(F2,{item:a}):e.jsx(z2,{});return e.jsxs(W2,{children:[e.jsxs(x,{gap:8,role:"region","aria-label":n("REPORT_BOOK.CONTENT.REGION_LABEL"),p:"32px 32px 0px 32px",children:[e.jsxs(x,{alignItems:"center",justifyContent:"space-between",direction:"row",width:"100%",children:[e.jsxs(x,{gap:1,children:[e.jsx(S,{variant:"bodyMedium",color:w.content.neutral.neutralStrong,id:"content-step-title",children:n("REPORT_BOOK.CONTENT.ADD_BOOK_ITEM_TITLE")}),e.jsx(S,{variant:"bodySmRegular",color:w.content.neutral.placeholder,id:"content-step-description",children:n("REPORT_BOOK.CONTENT.ADD_BOOK_ITEM_DESCRIPTION")})]}),e.jsx(v,{variant:"tertiary",size:"md",onClick:_=>C.openAddContentMenu(_,null),"aria-label":n("REPORT_BOOK.CONTENT.ADD_ITEM"),"aria-describedby":"content-step-description",children:n("REPORT_BOOK.CONTENT.ADD_ITEM")})]}),e.jsxs(x,{direction:"row",gap:8,role:"main",height:"500px","aria-labelledby":"content-step-title",children:[e.jsx(P2,{items:r,onItemsChange:o,onItemSelect:i,onAddContent:d,onRename:b,onDelete:h}),r.length>0&&e.jsx(x,{alignItems:"center",justifyContent:"center",flex:1,role:"complementary","aria-live":"polite","aria-atomic":"true",sx:{borderRadius:"8px",border:`1px solid ${w.border.main}`,padding:"54px",height:"500px"},children:T()})]})]}),e.jsx(w2,{dialogs:C,selectedDashboardIds:E,onDashboardsSelected:u,onSectionConfirm:I,onDeleteConfirm:p,onRenameConfirm:g,onAddLink:m,onAddStaticImage:O})]})}const Ge=({title:t,emptyTitle:n="Content",emptyDescription:r="Subtext",isEmpty:o=!0,children:s,sx:a,headerSlot:i})=>{const C=c.useId();return e.jsxs(x,{component:"section","aria-labelledby":C,sx:{flex:1,border:"1px solid #DEE0E6",borderRadius:"8px",padding:5,gap:5,height:"100%",minHeight:0,...a},children:[e.jsxs(x,{gap:2,children:[e.jsx(S,{id:C,component:"h3",sx:{...ce.bodyMBaseMedium,color:"#101828"},children:t}),i]}),e.jsx(L,{sx:{flex:1,display:"flex",flexDirection:"column",minHeight:0,overflow:"auto"},tabIndex:0,role:"region","aria-label":`${t} content`,children:o?e.jsx(x,{flex:1,alignItems:"center",justifyContent:"center",sx:{minHeight:200},role:"status","aria-live":"polite",children:e.jsx(E2,{title:n,description:r})}):s})]})},Q2=({reportBookLink:t,assignedUsers:n=[],assignedUserGroups:r=[],sx:o,onLinkCopy:s,usersContent:a,userGroupsContent:i,usersHeaderSlot:C,userGroups
2HeaderSlot:l})=>{const{t:d}=y(),h=n.length===0&&!a,b=r.length===0&&!i;return e.jsxs(x,{component:"section","aria-label":"Report book audience configuration",sx:{backgroundColor:ae.bg.surface.main,...o},gap:8,children:[e.jsxs(x,{component:"section","aria-labelledby":"link-section-title",gap:3,children:[e.jsxs(x,{gap:1,children:[e.jsx(S,{id:"link-section-title",component:"h2",sx:{...ce.bodyLMedium,color:ae.txt.normal.primary},children:d("REPORT_BOOK.AUDIENCE.REPORT_BOOK_LINK")}),e.jsx(S,{component:"p",sx:{...ce.bodyMBaseRegular,color:ae.txt.normal.tertiary},children:d("REPORT_BOOK.AUDIENCE.LINK_DESCRIPTION")})]}),e.jsx(x2,{value:t,copyLabel:d("REPORT_BOOK.AUDIENCE.COPY_LINK"),copiedLabel:d("REPORT_BOOK.AUDIENCE.COPIED_LINK"),onCopy:s,sx:{maxWidth:458},"aria-describedby":"link-section-title"})]}),e.jsxs(x,{component:"section","aria-labelledby":"permissions-section-title",flex:1,gap:3,sx:{minHeight:0},children:[e.jsxs(x,{gap:1,children:[e.jsx(S,{id:"permissions-section-title",component:"h2",sx:{...ce.bodyLMedium,color:ae.txt.normal.primary},children:d("REPORT_BOOK.AUDIENCE.MANAGE_VIEW_ACCESS")}),e.jsx(S,{component:"p",sx:{...ce.bodyMBaseRegular,color:ae.txt.normal.tertiary},children:d("REPORT_BOOK.AUDIENCE.PERMISSIONS_DESCRIPTION")})]}),e.jsxs(x,{direction:"row",gap:4,flex:1,sx:{minHeight:300},role:"group","aria-label":"User and group assignment panels",children:[e.jsx(Ge,{title:d("REPORT_BOOK.AUDIENCE.ASSIGNED_USERS"),isEmpty:h,emptyTitle:d("REPORT_BOOK.AUDIENCE.NO_USERS"),emptyDescription:d("REPORT_BOOK.AUDIENCE.NO_USERS_DESCRIPTION"),headerSlot:C,children:a}),e.jsx(Ge,{title:d("REPORT_BOOK.AUDIENCE.ASSIGNED_GROUPS"),isEmpty:b,emptyTitle:d("REPORT_BOOK.AUDIENCE.NO_GROUPS"),emptyDescription:d("REPORT_BOOK.AUDIENCE.NO_GROUPS_DESCRIPTION"),headerSlot:l,children:i})]})]})]})};function X2({title:t,description:n}){return e.jsxs(x,{gap:3,sx:{textAlign:"center",alignItems:"center",color:H.txt.normal.tertiary},role:"status","aria-live":"polite",children:[e.jsx(x,{justifyContent:"center",alignItems:"center",sx:{width:"64px",height:"64px",borderRadius:"50%",backgroundColor:"#0044A214"},children:e.jsx(Ye,{size:"medium",htmlColor:"#98A1B3"})}),e.jsxs(x,{gap:.5,children:[e.jsx(S,{variant:"h4SMedium",color:w.content.neutral.neutralStrong,children:t}),e.jsx(S,{variant:"bodyMBaseRegular",color:w.content.neutral.neutralMedium,children:n})]})]})}const Fe="#E4E7EC";function Y2({items:t,renderItem:n,ariaLabel:r,emptyTitle:o,emptyDescription:s}){return e.jsx(L,{sx:{flex:1,minHeight:0,overflowY:"auto","@media (hover: hover)":{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"20px"},"&:hover::-webkit-scrollbar-thumb":{background:Fe},scrollbarWidth:"thin",scrollbarColor:"transparent transparent","&:hover":{scrollbarColor:`${Fe} transparent`}}},role:"list","aria-label":r,tabIndex:0,children:t.length===0?e.jsx(x,{flexGrow:1,justifyItems:"center",alignItems:"center",justifyContent:"center",height:"100%",children:e.jsx(X2,{title:o,description:s})}):t.map(n)})}const i1=c.memo(Y2);function J2(t){return t.split("@")[0].split(/[._-]/).map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join(" ")}function et({user:t,onRemove:n}){const{t:r}=y(),o=J2(t.email);return e.jsxs(L,{component:"article",role:"listitem","aria-label":`${o}, ${t.email}`,sx:{padding:Ce.spacing(2),borderRadius:`${qe.small}px`,display:"flex",alignItems:"center",gap:Ce.spacing(2),"&:hover":{backgroundColor:"#F2F4F7",borderRadius:"4px"}},children:[e.jsx(g2,{size:"medium",alt:o}),e.jsxs(x,{gap:0,sx:{flex:1,minWidth:0},children:[e.jsx(S,{variant:"bodySRegular",component:"span",sx:{color:H.txt.normal.primary,lineHeight:"20px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o}),e.jsx(S,{variant:"bodySRegular",component:"span",sx:{color:H.txt.normal.tertiary,fontSize:"12px",lineHeight:"16px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.email})]}),e.jsx(Te,{onClick:()=>n(t.id),size:"small","aria-label":r("REPORT_BOOK.AUDIENCE.REMOVE_USER_ARIA",{email:t.email}
2),sx:{color:H.txt.normal.tertiary,padding:0,width:16,height:16},children:e.jsx(Ae,{sx:{fontSize:16,":hover":{color:"#D11C21"}},"aria-hidden":"true"})})]})}const l1=c.memo(({assignedUsers:t,onRemoveUser:n})=>{const{t:r}=y();return e.jsx(i1,{items:t,renderItem:o=>e.jsx(et,{user:o,onRemove:n},`user-${o.id}`),ariaLabel:r("REPORT_BOOK.AUDIENCE.ASSIGNED_USERS_LIST"),emptyTitle:r("REPORT_BOOK.AUDIENCE.NO_USERS"),emptyDescription:r("REPORT_BOOK.AUDIENCE.NO_USERS_DESCRIPTION")})});l1.displayName="AudienceStepUsersContent";const tt=l1;function rt({group:t,onRemove:n}){const{t:r}=y();return e.jsxs(L,{component:"article",role:"listitem","aria-label":`${t.name}, ${r("REPORT_BOOK.AUDIENCE.VIEWER")}, ${t.memberCount} ${r("REPORT_BOOK.AUDIENCE.MEMBERS")}`,sx:{padding:Ce.spacing(2),borderRadius:"4px",display:"flex",alignItems:"center",gap:Ce.spacing(2),"&:hover":{backgroundColor:"#F2F4F7",borderRadius:"4px"}},children:[e.jsxs(x,{gap:0,sx:{flex:1,minWidth:0},children:[e.jsx(S,{variant:"bodySRegular",component:"span",sx:{color:H.txt.normal.primary,lineHeight:"20px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name}),e.jsxs(S,{variant:"bodySRegular",component:"span",sx:{color:H.txt.normal.tertiary,fontSize:"12px",lineHeight:"16px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[r("REPORT_BOOK.AUDIENCE.VIEWER")," - ",t.memberCount," ",r("REPORT_BOOK.AUDIENCE.MEMBER",{count:t.memberCount})]})]}),e.jsx(Te,{onClick:()=>n(t.id),size:"small","aria-label":r("REPORT_BOOK.AUDIENCE.REMOVE_GROUP_ARIA",{name:t.name}),sx:{color:H.txt.normal.tertiary,padding:0,width:16,height:16},children:e.jsx(Ae,{sx:{fontSize:16,":hover":{color:"#D11C21"}},"aria-hidden":"true"})})]})}const c1=c.memo(({assignedGroups:t,onRemoveGroup:n})=>{const{t:r}=y();return e.jsx(i1,{items:t,renderItem:o=>e.jsx(rt,{group:o,onRemove:n},`group-${o.id}`),ariaLabel:r("REPORT_BOOK.AUDIENCE.ASSIGNED_GROUPS_LIST"),emptyTitle:r("REPORT_BOOK.AUDIENCE.NO_GROUPS"),emptyDescription:r("REPORT_BOOK.AUDIENCE.NO_GROUPS_DESCRIPTION")})});c1.displayName="AudienceStepGroupsContent";const nt=c1,He={"& .MuiOutlinedInput-root":{borderRadius:`${qe.small}px`,backgroundColor:H.bg.surface.sf1}};function ot({workspaceMembers:t,availableGroups:n,assignments:r,onAssignmentsChange:o,firstItemId:s,onSearchUsers:a,isSearchingUsers:i}){const{t:C}=y(),{tenantId:l,projectId:d,reportBookId:h}=Pe(),[b,E]=c.useState(""),[u]=h1(b,300),I=c.useRef(a);I.current=a,c.useEffect(()=>{I.current?.(u)},[u]);const[p,g]=c.useState(""),m=c.useMemo(()=>t.filter(R=>!r.users.find(j=>j.id===R.userId)),[t,r.users]),O=c.useMemo(()=>n.filter(R=>!r.userGroups.find(j=>j.id===R.id)),[n,r.userGroups]),T=c.useMemo(()=>{const R=new Map;return m.forEach(j=>
2R.set(j.email,j)),R},[m]),_=c.useMemo(()=>{const R=new Map;return O.forEach(j=>R.set(j.name,j)),R},[O]),f=c.useMemo(()=>m.map(R=>R.email),[m]),P=c.useMemo(()=>O.map(R=>R.name),[O]),k=()=>{if(!h||!s)return"";const R=Re(Qe,{tenantId:l,id:d,reportBookId:h,itemId:s.toString()});return`${window.location.origin}${R}`},N=R=>{if(r.users.find(z=>z.id===R.userId))return;const W={id:R.userId,email:R.email,role:"viewer"};o({...r,users:[...r.users,W]})},B=R=>{if(r.userGroups.find(z=>z.id===R.id))return;const W={id:R.id,name:R.name,memberCount:R.memberCount};o({...r,userGroups:[...r.userGroups,W]})},K=R=>{o({...r,users:r.users.filter(j=>j.id!==R)})},U=R=>{o({...r,userGroups:r.userGroups.filter(j=>j.id!==R)})},G=e.jsx(Me,{size:"middle",showSearchIcon:!0,multiple:!1,options:f,value:null,inputValue:b,onInputChange:(R,j)=>E(j.trim()),onChange:(R,j)=>{j&&T.has(j)&&(N(T.get(j)),E(""))},placeholder:C("REPORT_BOOK.AUDIENCE.SEARCH_USER"),showCheckbox:!1,loading:i,filterOptions:R=>R,"aria-busy":i,sx:He}),V=e.jsx(Me,{size:"middle",showSearchIcon:!0,multiple:!1,options:P,value:null,inputValue:p,onInputChange:(R,j)=>g(j),onChange:(R,j)=>{j&&_.has(j)&&(B(_.get(j)),g(""))},placeholder:C("REPORT_BOOK.AUDIENCE.SEARCH_GROUP"),showCheckbox:!1,sx:He});return e.jsx(Q2,{reportBookLink:k(),usersHeaderSlot:G,userGroupsHeaderSlot:V,usersContent:e.jsx(tt,{assignedUsers:r.users,onRemoveUser:K}),userGroupsContent:e.jsx(nt,{assignedGroups:r.userGroups,onRemoveGroup:U}),sx:{border:"none",boxShadow:"none",height:"100%"}})}class st{constructor({projectId:n,queryClient:r}){Y(this,"projectId");Y(this,"queryClient");Y(this,"getUserGroups",()=>({queryKey:this.userGroupsQueryKey(),queryFn:async()=>((await de.get(`/v1/project/${this.projectId}/user-group`)).data?.data||[]).map(o=>({id:o.id,name:o.name,memberCount:o.users?.length||0}))}));Y(this,"getWorkspaceMembers",(n=10,r=0,o="")=>({queryKey:this.workspaceMembersQueryKey(),queryFn:async()=>(await de.get(`/v2/workspace/${this.projectId}/members`,{params:{pageSize:n,pageNumber:r+1,search:o}})).data.data||[]}));Y(this,"getReportBookAssignments",({reportBookId:n})=>({queryKey:this.reportBookAssignmentsQueryKey(n),queryFn:async()=>(await de.get(`/v1/project/${this.projectId}/report-books/${n}`)).data.data.assignments||{users:[],userGroups:[]},enabled:!!n}));this.projectId=n,this.queryClient=r}userGroupsQueryKey(){return["userGroups",{projectId:this.projectId}]}workspaceMembersQueryKey(){return["workspaceMembers",{projectId:this.projectId}]}reportBookAssignmentsQueryKey(n){return["reportBookAssignments",n]}}const at=t=>[{step:1,text:t("REPORT_BOOK.STEPPER.SETUP"),active:!0},{step:2,text:t("REPORT_BOOK.STEPPER.CONTENT"),active:!1},{step:3,text:t("REPORT_BOOK.STEPPER.AUDIENCE"),active:!1}],it=t=>O1({name:Oe().trim().max(255,t("REPORT_BOOK.SETUP.NAME_MAX_LENGTH")).required(t("REPORT_BOOK.SETUP.NAME_REQUIRED")),description:Oe().max(1e3,t("REPORT_BOOK.SETUP.DESCRIPTION_MAX_LENGTH")).optional(),logoUrl:Oe().url(t("REPORT_BOOK.SETUP.LOGO_URL_INVALID")).max(1e3,t("REPORT_BOOK.SETUP.LOGO_URL_MAX_LENGTH")),themeColor:Oe().matches(/^#[0-9A-F]{6}$/i,t("REPORT_BOOK.SETUP.THEME_COLOR_INVALID")).required(t("REPORT_BOOK.SETUP.THEME_COLOR_REQUIRED")),logoFile:x1().nullable()});function lt(t){const n=[],r=new Map,o=a=>{r.set(a.id,a),a.children?.forEach(o)};t.forEach(o);const s=a=>{let{dashboard:i}=a;const C=a.page?.updatedAt;if(a.type===A.PAGE&&!i){if(a.page?.dashboard)i=a.page.dashboard;else if(a.parent!==null){const l=r.get(a.parent);l?.dashboard&&(i=l.dashboard)}}n.push({id:a.id,type:a.type,name:a.name,pageId:a.page?.id,dashboard:i?{...i,updatedAt:C??""}:void 0,parentId:a.parent,order:a.order,isExpanded:a.isExpanded,externalUrl:a.externalUrl,imageUrl:a.imageUrl,backgroundColor:a.backgroundColor,backgroundStyle:a.backgroundStyle,children:a.children?.map(l=>({id:l.id,type:l.type,name:l.name,order:l.order,updatedAt:l?.page?.updatedAt||""}))}),a.children?.forEach(s)};return t.forEach(s),Xe.reorder(n)}function ct({reportBook:t,existingAssignments:n,isEditMode:r}){const{t:o}=y(),[s,a]=c.useState([]),[i,C]=c.useState({users:[],userGroups:[]}),l=c.useMemo(()=>it(o),[o]),d=E1({resolver:g1(l),mode:"onChange",defaultValues:{name:"",description:"",themeColor:"#154DBD",textColor:"#FFFFFF",selectedTextColor:"#FFFFFF",selectedBackgroun
2dColor:"#113C93",logoUrl:"",logoFile:null}});return c.useEffect(()=>{t&&r&&d.reset({name:t.name||"",description:t.description||"",themeColor:t.themeColor||"#154DBD",textColor:t.textColor||"#FFFFFF",selectedTextColor:t.selectedTextColor||"#FFFFFF",selectedBackgroundColor:t.selectedBackgroundColor||"#113C93",logoUrl:t.logoUrl||"",logoFile:null})},[t,r,d]),c.useEffect(()=>{n&&r&&C(n)},[n,r]),c.useEffect(()=>{t?.bookItems&&r&&a(lt(t.bookItems))},[t,r]),{formContext:d,bookItems:s,setBookItems:a,assignments:i,setAssignments:C}}function dt({repo:t,reportBookId:n,tenantId:r,projectId:o,isEditMode:s,itemId:a}){const i=Ze(),C=P1(),l=c.useRef(C);l.current=C;const d=(p,g)=>{const m=p??n,O=g??a;m&&O&&i.push(Re(Qe,{id:o,tenantId:r,reportBookId:m.toString(),itemId:O.toString()}))},h=p=>{const g=p??n;g&&i.push(Re(L1,{id:o,tenantId:r,reportBookId:g.toString()}))},b=ye(t.createReportBookWithItems({onSuccess:p=>{Q.success({title:"Report Book created successfully"});const g=p?.bookItems?.filter(O=>O.type!=="SECTION"&&O.type!=="LINK")||[];if(g.length===0){h(p?.reportBook?.id);return}d(p?.reportBook?.id,g[0]?.id)},onError:p=>{const g=p?.response?.data?.message||"Failed to create report book";Q.error({title:g})}})),E=ye(t.updateReportBookWithItems({reportBookId:n??0,onSuccess:()=>{Q.success({title:"Report Book updated successfully"}),d()},onError:p=>{const g=p?.response?.data?.message||"Failed to update report book";Q.error({title:g})}})),u=b.isLoading||E.isLoading;return{createMutation:b,updateMutation:E,isLoading:u,submit:async p=>{if(u)return;const g=s?"update":"create",m=l.current?R1.setSpan(ve.active(),l.current):ve.active(),O={"reportbook.operation":g,"project.id":o,"tenant.id":r};n&&(O["reportbook.id"]=n);const T=`ReportBook.${g}`,_=A1.startSpan(T,{attributes:O},m);try{s?await E.mutateAsync(p):await b.mutateAsync(p),_.setAttribute("reportbook.success",!0),_.end()}catch(f){const P=f;throw _.setAttribute("reportbook.success",!1),_.setAttribute("error.message",P.message||String(f)),_.setStatus({code:I1.ERROR,message:P.message||String(f)}),_.end(),f}}}}function Ct({activeStep:t,totalSteps:n,isEditMode:r,isLoading:o,canSubmit:s,canNext:a=!0,onBack:i,onNext:C,onSubmit:l}){const{t:d}=y(),h=t===n-1,b=t>0,E=r&&!h,u=()=>d(o?r?"REPORT_BOOK.STEPPER.SAVING":"REPORT_BOOK.STEPPER.CREATING":r?"REPORT_BOOK.STEPPER.SAVE_CHANGES":"REPORT_BOOK.STEPPER.CREATE_REPORT_BOOK");return e.jsxs(x,{direction:"row",sx:{padding:"32px",flexShrink:0},alignItems:"center",justifyContent:"space-between",children:[e.jsx(x,{direction:"row",gap:2,children:b&&e.jsx(v,{size:"md",variant:"tertiary",onClick:i,disabled:o,sx:{minWidth:"100px"},children:d("REPORT_BOOK.STEPPER.PREVIOUS")})}),e.jsxs(x,{direction:"row",gap:2,children:[E&&e.jsx(v,{size:"md",variant:"primary",onClick:l,disabled:!s||o,loading:o,sx:{minWidth:"180px"},children:d(o?"REPORT_BOOK.STEPPER.SAVING":"REPORT_BOOK.STEPPER.SAVE_CHANGES")}),h?e.jsx(v,{size:"md",variant:"primary",onClick:l,disabled:!s||o,loading:o,sx:{minWidth:"180px"},children:u()}):e.jsx(v,{size:"md",variant:r?"tertiary":"primary",onClick:C,disabled:o||!a,sx:{minWidth:"100px"},children:d("REPORT_BOOK.STEPPER.NEXT")})]})]})}function ut({bookItems:t,setBookItems:n,queryClient:r}){return e.jsx(q2,{bookItems:t,onItemsChange:n,queryClient:r})}function pt(){const{t}=y(),{tenantId:n,projectId:r,reportBookId:o}=Pe(),s=Ze(),a=b1(),i=$e(),C=!!o,l=C&&/^\d+$/.test(o),[d,h]=c.useState(""),b=()=>{const D=new URLSearchParams(a.search),$=parseInt(D.get("step")||"1",10);return C&&$>=1&&$<=3?$:1},[E,u]=Ve.useState(b);c.useEffect(()=>{const D=new URLSearchParams(a.search);D.set("step",String(E)),s.replace({search:D.toString()})},[E,s,a.search]);const I=new R2({projectId:Number(r),queryClient:i}),p=new st({projectId:Number(r),queryClient:i}),{actionAccessableMap:g,loading:m}=c2({actions:[ke.report_book["write-report_book"]],subject:{name:D1.workspace,id:Number(r)}}),O=g[ke.report_book["write-report_book"]]===!0,{data:T,isLoading:_,isError:f}=le({...I.getReportBook({reportBookId:Number(o)}),enabled:C&&l,retry:!1}),{data:P=[],isFetching:k}=le({...p.getWorkspaceMembers(50,0,d),queryKey:["workspaceMembers",{projectId:r,search:d}],keepPreviousData:!0}),{data:N=[]}=le({...p.getUserGroups()}),{data:B}=le({...p.getReportBookAssignments({reportBookId:Number(o)}),enabled:C&&l}),K=c.useCallback(D=>{h(D)},[]),{formContext:U,bookItems:G,setBookItems:V,assignments:R,setAssignments:j}=ct({reportBook:T,existingAssignments:B,isEditMode:C}),W=T1({name:"name",control:U.control}),z=at(t).map(D=>({...D,active:D.step===E})),ue=()=>{E<3&&u(E+1)},pe=()=>{E>1&&u(E-1)},Se=c.useMemo(()=>({"reportbook.id":o||"","project.id":r,"tenant.id":n,"stepper.step":E,"stepper.mode":C?"edit":"create"}),[o,r,n,E,C]),{isLoading:me,submit:fe}=dt({repo:I,reportBookId:T?.id,tenantId:n,projectId:r,isEditMode:C,itemId:T?.firstViewableItemId??void 0}),se=()=>{U.formState.isDirty&&Q.info({title:t("REPORT_BOOK.STEPPER.UNSAVED_CHANGES")}),s.push(Re(B1,{projectId:r,tenantId:n}))},_e=async D=>{const $=Z1.buildTree(G);if($.length===0){Q.error({title:t("REPORT_BOOK.STEPPER.ADD_BOOK_ITEM_ERROR")});return}const he={name:D.name.trim(),description:D.description?.trim()??"",themeColor:D.theme
2Color,textColor:D.textColor,selectedTextColor:D.selectedTextColor,selectedBackgroundColor:D.selectedBackgroundColor,logoUrl:D.logoUrl!==void 0?D.logoUrl:T?.logoUrl||"",bookItems:$,assignments:{users:R.users.map(q=>({id:q.id})),userGroups:R.userGroups.map(q=>({id:q.id}))}};try{await fe(C?he:{...he,projectId:Number(r)})}catch(q){console.error("Error submitting report book:",q)}};if(m||C&&_)return e.jsx(xe,{children:e.jsx(x,{alignItems:"center",justifyContent:"center",sx:{minHeight:"60vh"},children:e.jsx(M1,{sx:{width:70,height:"auto"}})})});if(C&&(!l||f))return e.jsx(xe,{children:e.jsx(y1,{})});if(!O)return e.jsx(xe,{children:e.jsx(v1,{})});const je=()=>{switch(E){case 1:return e.jsx(S2,{});case 2:return e.jsx(ut,{bookItems:G,setBookItems:V,queryClient:i});case 3:return e.jsx(x,{overflowY:"auto",flex:"1 1 auto",sx:{"@media (hover: hover)":{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"20px"},"&:hover::-webkit-scrollbar-thumb":{background:"#E4E7EC"},scrollbarWidth:"thin",scrollbarColor:"transparent transparent","&:hover":{scrollbarColor:"#E4E7EC transparent"}}},children:e.jsx(x,{p:"32px 32px 0px 32px",height:"100%",minHeight:"0",children:e.jsx(ot,{workspaceMembers:P,availableGroups:N,assignments:R,onAssignmentsChange:j,firstItemId:T?.firstViewableItemId,onSearchUsers:K,isSearchingUsers:k})})});default:return null}};return e.jsx(k1,{name:"ReportBook.Stepper",attributes:Se,children:e.jsxs(xe,{children:[e.jsx(S1,{children:e.jsxs("title",{children:[t(C?"REPORT_BOOK.EDIT":"REPORT_BOOK.CREATE_NEW")," - Data Suite"]})}),e.jsxs(x,{sx:{height:"calc(100vh - 50px)",display:"flex",flexDirection:"column"},children:[e.jsxs(x,{sx:{borderBottom:`1px ${H.bd.surface.main} solid`,paddingBottom:Ce.spacing(4),flexShrink:0},rowGap:2,direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(N1,{title:t(C?"REPORT_BOOK.EDIT":"REPORT_BOOK.CREATE_NEW"),description:t("REPORT_BOOK.STEPPER.CREATE_AND_MANAGE")}),e.jsx(v,{variant:"tertiary",onClick:se,children:t("Cancel")})]}),e.jsx(f1,{...U,children:e.jsxs(x,{margin:"0 auto",marginTop:"20px",maxWidth:1e3,width:"100%",border:"1px solid #DEE0E6",borderRadius:2,boxShadow:"0px 4px 47px 0px #0000000A",flex:1,height:"100%",minHeight:"0",children:[e.jsx(x,{sx:{px:8,py:6,borderBottom:"1px #DEE0E6 solid",flexShrink:0,height:"68px"},children:e.jsx(w1,{steps:z,currentStep:E,onStepClick:D=>C?u(D):{}})}),je(),e.jsx(Ct,{activeStep:E-1,totalSteps:3,isEditMode:C,isLoading:me,canSubmit:G.length>0,canNext:E===1?!!W?.trim()?.length||C&&!!T?.name?.trim():E===2?G.length>0:!0,onBack:pe,onNext:ue,onSubmit:U.handleSubmit(_e)},E)]})})]})]})})}const mt=U1()(pt),e4=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"}));export{f2 as C,o1 as D,e4 as R};
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.