PageSourceSearch

https://diversityworks.ch/_next/static/chunks/pages/dashboard/[das…/sections/[slug]-73fdc56af68363f3.js

js diversityworks.ch collected 2026-10-08 22:48:28 UTC 59,045 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3346],{91296:function(e,t,n){var i=0/0,a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=d||c||Function("return this")(),x=Object.prototype.toString,p=Math.max,h=Math.min,A=function(){return u.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==x.call(t))return i;if(f(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=f(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var d=l.test(e);return d||o.test(e)?s(e.slice(2),d?2:8):r.test(e)?i:+e}e.exports=function(e,t,n){var i,a,r,l,o,s,d=0,c=!1,u=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=i,r=a;return i=a=void 0,d=t,l=e.apply(r,n)}function b(e){var n=e-s,i=e-d;return void 0===s||n>=t||n<0||u&&i>=r}function y(){var e,n,i,a=A();if(b(a))return v(a);o=setTimeout(y,(e=a-s,n=a-d,i=t-e,u?h(i,r-n):i))}function v(e){return(o=void 0,x&&i)?m(e):(i=a=void 0,l)}function j(){var e,n=A(),r=b(n);if(i=arguments,a=this,s=n,r){if(void 0===o)return d=e=s,o=setTimeout(y,t),c?m(e):l;if(u)return o=setTimeout(y,t),m(s)}return void 0===o&&(o=setTimeout(y,t)),l}return t=g(t)||0,f(n)&&(c=!!n.leading,r=(u="maxWait"in n)?p(g(n.maxWait)||0,t):r,x="trailing"in n?!!n.trailing:x),j.cancel=function(){void 0!==o&&clearTimeout(o),d=0,i=s=a=o=void 0},j.flush=function(){return void 0===o?l:v(A())},j}},96572:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/[dashboard_name]/[dashboard_type]/[dashboard_id]/sections/[slug]",function(){return n(24085)}])},13942:function(e,t){"use strict";t.Z={src:"/_next/static/media/back2-de.8e1f964b.jpg",height:1080,width:1982,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAbEAACAgMBAAAAAAAAAAAAAAAAAQIRAxIhgf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCvQlrlcElVvvoAA//Z",blurWidth:8,blurHeight:4}},66675:function(e,t){"use strict";t.Z={src:"/_next/static/media/back2-en.151f3acd.jpg",height:863,width:1588,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAcEAACAgIDAAAAAAAAAAAAAAAAAQIRAxIhMUH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8Ar0Ja5XBJVb597AAH/9k=",blurWidth:8,blurHeight:4}},93933:function(e,t){"use strict";t.Z={src:"/_next/static/media/back2-fr.b4218af9.jpg",height:863,width:1588,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAcEAACAgIDAAAAAAAAAAAAAAAAAQIhAxESMUH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8Ar0JccrglT3fvYAA//9k=",blurWidth:8,blurHeight:4}},44273:function(e,t){"use strict";t.Z={src:"/_next/static/media/covertop_de.9b3516e6.jpg",height:132,width:794,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAABAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAZEAEAAgMAAAAAAAAAAAAAAAAAAQIDMnL/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFREBAQAAAAAAAAAAAAAAAAAAAAH/2gAMAwEAAhEDEQA/ALDg0t1IAR//2Q==",blurWidth:8,blurHeight:1}},95822:function(e,t){"use strict";t.Z={src:"/_next/static/media/covertop_en.6205400e.jpg",height:132,width:794,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAABAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAYEAEBAAMAAAAAAAAAAAAAAAAAAQMycv/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCw4Nb1QAf/2Q==",blurWidth:8,blurHeight:1}},24085:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eL},default:function(){return eR}});var i=n(85893),a=n(60887),r=n(45587),l=n(90126),o=n(4480),s=n(99142),d=n(20956),c=n(1004),u=n(56005),x=n(204),p=n(88911),h=n(23100),A=n(49394),f=n(14418),g=n(5197),m=n(80333),b=n(69558),y=n(40446),v=n(86570),j=n(65952),C=n(83273),S=n(29222),k=n(11163),w=n(67294),I=n(57403),z=n(59939);let F=e=>{let{state:t,onHandleChange:n}=e,a=(0,l.qM)();return(0,i.jsxs)(x.k,{alignItems:"center",children:[(0,i.jsx)(h.xu,{mr:"15px",children:(0,i.jsx)("input",{type:"checkbox",className:"resultListCheckbox",id:"select-all",checked:t,onChange:n})}),(0,i.jsx)("label",{style:{fontSize:"17px",fontWeight:500,lineHeight:1.5},htmlFor:"select-all",children:a("offers.selectAllServices")})]})},E=e=>{let{elements:t,dashboardName:n,isLoading:a=!1,unique:r,originalCompanyAppId:c,originalCompanyName:u,lang:A,noResultText:f="dashboard.noResultSearchpanel",adminOfferType:g}=e,m=(0,l.qM)(),b=(0,k.useRouter)(),{open:E}=(0,l.lm)(),[_,O]=(0,w.useState)(!1),[T,D]=(0,w.useState)([]),[B,N]=(0,w.useState)(!1),[L,R]=(0,o.FV)(s.N_),M=(0,o.sJ)(s.Mc);(0,w.useEffect)(()=>{M&&D([])},[M]),(0,w.useEffect)(()=>{a&&(D([]),N(!1))},[a]);let P=async()=>{let e=T.map(e=>
1Number(e.keyFigure.id)),t=[];O(!0);try{var i,a;let r=await (0,j.S)(),l=await y.client.request((0,v.IG)(b),{ids:e,orderItemId:Number(null==b?void 0:null===(i=b.query)||void 0===i?void 0:i.dashboard_id),legendLanguage:A,version:g},{Authorization:"Bearer ".concat(r)});t=(0,d.Jy)(l.dbmFindByIds||l.ibmFindByIds||l.mbmFindByIds,c,u,!1,(0,v.my)(b)?C.r6:(0,v.CX)(b)?C.CR:C.$T,A,m,null==b?void 0:null===(a=b.query)||void 0===a?void 0:a.dashboard_name),R({...L,[n]:[...t,...L[n]]}),D([]),null==E||E({message:m("dashboard.successfullyAdded"),type:"success"})}catch(e){console.log("error occured",e)}finally{O(!1)}},H=e=>L[n].some(t=>Number(t.id)===Number(e));if(a)return(0,i.jsx)(x.k,{w:"100%",children:(0,i.jsx)(z.V,{})});let Q=()=>{if(B)D([]);else{let e=t.filter(e=>!H(e.keyFigure.id));D(e)}N(!B)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(h.xu,{mt:"0",children:[(0,i.jsxs)(x.k,{justifyContent:"space-between",alignItems:"center",minHeight:"51.5px",children:[(0,i.jsxs)(p.x,{"data-cy":"results",mb:"0",color:"#6F706F",fontSize:"17px",fontWeight:700,children:[m("common.result")," (",t.length,")"]}),(0,i.jsx)(F,{state:B,onHandleChange:Q})]}),(0,i.jsxs)(x.k,{flexDirection:"column",children:[(0,i.jsx)(x.k,{maxH:C.wR,overflow:"auto",flexDir:"column",children:t.length>0?t.map(e=>{var t;return(0,i.jsx)(h.xu,{padding:"8px 0",borderBottom:"1px solid #E2E8F0",children:(0,i.jsxs)(x.k,{className:H(e.keyFigure.id)?"alreadyAdded":"resultListBoxRow",children:[(0,i.jsx)(h.xu,{mr:"15px",children:(0,i.jsx)("input",{"data-cy":"result-".concat(e.keyFigure.id),type:"checkbox",className:"resultListCheckbox",id:"".concat(r,"-").concat(e.keyFigure.id),name:e.keyFigure.id,disabled:H(e.keyFigure.id),checked:T.some(t=>t.keyFigure.id===e.keyFigure.id),onChange:()=>{T.find(t=>t.keyFigure.id===e.keyFigure.id)?D(T.filter(t=>t.keyFigure.id!==e.keyFigure.id)):D([...T,e])}})}),(0,i.jsx)("label",{style:{fontSize:"17px",fontWeight:500,lineHeight:1.5},htmlFor:"".concat(r,"-").concat(e.keyFigure.id),children:null==e?void 0:null===(t=e.keyFigure)||void 0===t?void 0:t["name".concat((0,d.VF)(A))]})]})},e.keyFigure.id)}):(0,i.jsxs)(x.k,{children:[(0,i.jsx)(h.xu,{maxW:"32px",width:"100%",children:(0,i.jsx)(I.ss,{})}),(0,i.jsx)(p.x,{ml:"8px",fontSize:"18px",fontWeight:"500",children:m(f)})]})}),(0,i.jsx)(x.k,{justifyContent:"space-between",flexDirection:"row",mt:"15px",children:(0,i.jsx)(S.z,{isDisabled:0===T.length||_,maxW:"190px",onClick:P,maxH:"43px",w:"100%",isLoading:_,fontSize:"18px","data-cy":"add-to-dashboard",children:(0,i.jsxs)(x.k,{alignItems:"center",children:[(0,i.jsx)(I.FU,{}),m("buttons.add")]})})})]})]})})};var _=n(7335),O=n(99863);function T(e){let{dashboardName:t,dashboardType:n,offerType:a}=e,r=(0,l.qM)(),[,d]=(0,w.useState)([]),c=(0,o.sJ)(s.fn),u=(0,o.Zl)(s.zv),x=(0,o.Zl)(s.MZ),[p,h]=(0,o.FV)(s.N_),{isOpen:A,onOpen:f,onClose:g}=(0,_.q)(),m=()=>{d([]),u(!0),(0,v.IN)(a)&&x(!0),t===C.IG.sandbox&&a!==C.rh&&n===C.$T&&h({...p,sandbox:[]}),g()},b="dashboard.clearToDefaultView",y="dashboard.resetTitle";return t===C.IG.sandbox&&a!==C.rh&&n===C.$T&&(b="dashboard.resetAll",y="dashboard.clearTitle"),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(S.z,{variant:"secondary",backgroundColor:"transparent",isDisabled:n===C.$T&&0===c.length,onClick:()=>f(),children:[(0,i.jsx)(I.hY,{}),r(b)]}),(0,i.jsx)(O.Z,{title:"".concat(r(y)),onClose:g,isOpen:A,confirmCallback:()=>m()})]})}var D=n(35278),B=n(776),N=n(36024),L=n(5077),R=n(77484),M=n(21673),P=n(64657);let H=e=>{let{element:t,checkedVendorIds:n,setCheckedVendorIds:a,setcheckGroupNames:r,checkGroupNames:l,isDisabled:o=!1,checkboxValue:s,type:d,lang:c}=e,u="value"===s?t[s][0]:t.value,p=()=>a(n.filter(e=>e!==u)),A=()=>r(null==l?void 0:l.filter(e=>e!==d));o&&u&&n.includes(u)&&p();let f=null==t?void 0:t["name_".concat(c)];return(0,i.jsxs)(x.k,{className:o?"disabled-filter-row":"",children:[(0,i.jsx)(h.xu,{mr:"15px",children:(0,i.jsx)("input",{type:"checkbox",className:"resultListCheckbox",id:f,disabled:o,name:f,checked:!!u&&n.includes(u),onChange:()=>{u&&n.includes(u)||o?(p(),l&&A()):(a([...n,u]),l&&r([...l,d]))}})}),(0,i.jsx)("label",{style:{fontSize:"17px",fontWeight:500,lineHeight:1.5},htmlFor:t.name_en,children:f})]})},Q=e=>{let{title:t,elements:n,callback:a,criteria:r,maxW:d="100%",hasOpenAll:c,subCategoryKey:u,checkboxValue:A="name_en",sectionDashboard:f,lang:g,openAllCollapse:m=!1}=e;(0,k.useRouter)();let b=(0,l.qM)(),[y,v]=(0,w.useState)([]),[j,S]=(0,w.useState)([]),[I,z]=(0,w.useState)([]),[F,E]=(0,w.useState)([]),[_,O]=(0,w.useState)(m),[T,D]=(0,o.FV)(s.Mc);(0,w.useEffect)(()=>{T&&(E([]),v([]),S([]),z([]),O(!1),D(!1))},[T]),(0,w.useEffect)(()=>{f&&v([f])},[f]),(0,w.useEffect)(()=>{a&&a(y,j)},[y]),(0,w.useEffect)(()=>{_?E(n.map((e,t)=>t)):E([])},[_]);let Q=(e,t,n)=>{let{checked:i}=t.target,a=e.map(e=>e.value[0]);i?(n&&S([...j,n]),v([...y,...a])):(v(y.filter(e=>!a.includes(e))),S(null==j?void 0:j.filter(e=>e!==n)))};return(0,i.jsxs)(B.P,{className:"filterbox-sandbox",width:"100%",maxW:d,backgroundColor:"#F5F5F5",children:[(0,i.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",p:"13px 16px",backgroundColor:"rgba(194, 194, 194, 0.50)",children:[(0,i.jsx)(p.x,{fontWeight:500,fontSize:"17px",children:t}),c?(0,i.jsx)(h.xu,{cursor:"pointer",onClick:()=>O(e=>!e),children:(0,i.jsx)(p.x,{fontSize:"12px",children:b(_?"dashboard.closeAll":"dashboard.openAll")})}):null]}),(0,i.jsx)(x.k,{borderRadius:"0 0 4px 4px",p:"16px",children:(0,i.jsx)(N.U,{display:"flex",gap:"0",flexDirection:"column",width:"100%",defaultIndex:[0],allowMultiple:!0,minH:C.wR,maxH:C.wR,overflow:"auto",index:F,onChange:E,children:n.map((e,n)=>{var a;let l=null==e?void 0:null===(a=e.type)||void 0===a?void 0:a["name_".concat(g)];if(u&&e[u]){let t=!!r&&!!l&&r.includes(l),a="rs-".concat(n);return(0,i.jsxs)(L.Q,{border:"none",children:[(0,i.jsxs)(x.k,{children:[(0,i.jsx)("input",{type:"checkbox",className:"resultListCheckbox",onClick:t=>Q(e[u],t,l),disabled:t,checked:I.includes("rs-".concat(n)),onChange:()=>{a&&I.includes(a)?z(I.filter(e=>e!==a)):z([...I,a])}}),(0,i.jsxs)(R.K,{paddingBottom:"3px",paddingTop:"3px",children:[(0,i.jsx)(h.xu,{fontSize:"17px",fontWeight:500,as:"span",flex:"1",textAlign:"left",children:l}),(0,i.jsx)(M.X,{})]})]}),(0,i.jsx)(P.H,{flexDirection:"column",display:"flex",paddingBottom:"3px",paddingTop:"3px",children:e[u].map((e,n)=>(0,i.jsx)(H,{setCheckedVendorIds:v,checkedVendorIds:y,setcheckGroupNames:S,checkGroupNames:j,element:e,checkboxValue:A,type:l,isDisabled:t,lang:g},"".concat(n,"-").concat(e)))})]},n)}return(0,i.jsx)(H,{setCheckedVendorIds:v,checkedVendorIds:y,element:e,checkboxValue:A,lang:g},"".concat(t,"-").concat(n,"-check"))})})})]})};var W=n(91296),G=n.n(W),q=n(28129);let V=e=>{let{callback:t,placeholder:n}=e,a=(0,l.qM)(),[r,o]=(0,w.useState)("");return(0,i.jsx)("form",{onSubmit:e=>{e.preventDefault(),t(r)},children:(0,i.jsxs)(x.k,{children:[(0,i.jsx)(h.xu,{children:(0,i.jsx)(q.I,{name:"search-by",fontSize:"lg",placeholder:n,backgroundColor:"#FFF",height:"48px",autoComplete:"off",value:r,onChange:e=>o(e.target.value),width:"524px",maxHeight:"40px"})}),(0,i.jsx)(S.z,{ml:"23px",type:"submit",mt:"0",children:(0,i.jsxs)(x.k,{alignItems:"center",children:[(0,i.jsx)(I.JD,{fill:"white"}),a("common.search")]})})]})})};var Z=n(26495),J=n(57028),K=n(23148),U=n(9085),$=n(76684),Y=n(88563),X=n(24285),ee=n(15136);let et={animation:!0,responsive:!0,maintainAspectRatio:!1,showLines:!1,barPercentage:1,width:500,categoryPercentage:.7,indexAxis:"y",layout:{padding:{bottom:20}},scales:{x:{ticks:{stepSize:50}}},ccdiCopyright:{text:" copyright CCDI "},plugins:{datalabels:{color:"#fff"},title:{display:!0}
1,customCanvasBackgroundColor:{color:"#fff"},legend:{position:"right",align:"start",title:{display:!0,padding:6},padding:{left:100},labels:{boxWidth:11,boxHeight:11}},tooltip:{enabled:!0}}};U.ZP.register(J.Z),U.ZP.register(K.uw),U.ZP.register({id:"ccdiCopyright",defaultOptions:{text:"",display:!0},afterDraw:e=>{var t,n,i;if((null===(t=e.ccdiCopyright)||void 0===t?void 0:t.text)&&(null===(n=e.ccdiCopyright)||void 0===n?void 0:n.display)){let t=null===(i=e.ccdiCopyright)||void 0===i?void 0:i.text,n=e.ctx;n.save(),n.font="10px Gill Sans MT Pro",n.fillStyle="#666666";let a=e.chartArea.right-n.measureText(t).width,r=e.height-6;n.translate(a,r),n.fillText(t,0,0),n.restore()}},beforeInit:function(e){e.ccdiCopyright={};let t=e.options;t.ccdiCopyright&&(e.ccdiCopyright=t.ccdiCopyright)}});let en=(0,w.forwardRef)((e,t)=>{var n,a;let c=(0,w.useRef)(null),u=(0,ee.H)(t,c),{title:A,sampleData:f,industryData:g,fullSampleData:m,removeCallback:b,chartStyle:y,id:v,type:j,definition:k,resultsYear:z,dashboardType:F,keyFigureId:E,dashboardName:T,radioValue:B,showPercentValue:N,tickSize:L}=e,[R,M]=(0,w.useState)(g),[P,H]=(0,w.useState)("350"),Q=(0,o.sJ)(s.rc),[W,G]=(0,o.FV)(s.N_),{isOpen:q,onOpen:V,onClose:J}=(0,_.q)(),{isOpen:K,onOpen:U,onClose:en}=(0,_.q)(),ei=(0,d.Yr)(j),ea=(0,d.MQ)(j),er=(0,l.qM)(),[el,eo]=(0,w.useState)(B),es=y===C.Zk.stack;(0,w.useEffect)(()=>"sample"===el?M(g):"industry"===el?M(f):"fullSample"===el&&m?M(m):void 0,[el]),(0,w.useEffect)(()=>{var e,t,n,i,a,r,l,o,s,d;let c=null===(e=null===(t=u.current)||void 0===t?void 0:null===(n=t.config)||void 0===n?void 0:n._config.data)||void 0===e?void 0:null===(i=e.labels)||void 0===i?void 0:i.length;if(c>=9)return(null===(a=u.current)||void 0===a?void 0:null===(r=a.config)||void 0===r?void 0:null===(l=r._config)||void 0===l?void 0:null===(o=l.options)||void 0===o?void 0:null===(s=o.scales)||void 0===s?void 0:null===(d=s.x)||void 0===d?void 0:d.stacked)?H("".concat(50*c)):H("".concat(100*c));H("350")},[R]);let ed=null==R?void 0:null===(n=R.datasets)||void 0===n?void 0:n.some(e=>!e.label),ec=ei||ea||F===C.r6&&ed,eu={...et,ccdiCopyright:{text:"".concat(C.UL," ").concat(z),display:!0},plugins:{...et.plugins,title:{...et.plugins.title,display:!1,text:A},datalabels:{...et.plugins.datalabels,formatter:e=>{var t,n;let i="".concat(Math.round(10*e)/10,"%");return(null==R?void 0:null===(t=R.datasets)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.isIndexType)?e:N?F===C.r6&&N?i:F===C.r6&&ed?Number(e).toFixed(0):ec?e:i:"".concat((Math.round(e)/100).toFixed(1))},display:function(e){return(0,d.bx)(e,es)}},tooltip:{...et.plugins.tooltip,callbacks:{title:function(e){var t,n;return(0,d.aF)(e[0].label)===(0,d.aF)(null===(t=Q.profile)||void 0===t?void 0:t.companies.name)?null===(n=Q.profile)||void 0===n?void 0:n.companies.name:e[0].label},label:function(e){let{dataIndex:t}=e,n=e.dataset.label||"",i="".concat(n,": ").concat(Math.round(10*e.dataset.data[t])/10);if(ec)return i;if(!N){let i="".concat(n,": ").concat((e.dataset.data[t]/100).toFixed(1));return i}return"".concat(i,"%")}}},legend:{...et.plugins.legend,title:{...et.plugins.legend.title,padding:el===C.J3?-2:6},display:!ed,labels:{...et.plugins.legend.labels}}},scales:{y:{stacked:es},x:{...et.scales.x,stacked:es,ticks:{...et.scales.x.ticks,stepSize:L?0:ec?1e3:C.x$,callback:function(e){let t=(e/100*100).toFixed(0);return F===C.r6&&N?"".concat(t,"%"):ec?t:N?"".concat(t,"%"):"".concat(Number(t)/100)}}}}},{attributes:ex,listeners:ep,setNodeRef:eh,transform:eA,transition:ef}=(0,r.nB)({id:v}),eg={transform:X.ux.Transform.toString(eA),transition:ef};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.xu,{ref:eh,className:"box-card chartjs-card",m:"0 0 20px 0",padding:"0",boxShadow:"none",style:eg,...ex,...ep,children:[(0,i.jsxs)(x.k,{mb:"12px",padding:"9px 20px",backgroundColor:"rgba(194, 194, 194, 0.50)",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",justifyContent:"space-between",alignItems:"center",minHeight:"78px",children:[(0,i.jsx)(x.k,{maxW:"470px",alignItems:"flex-start",children:(0,i.jsx)(p.x,{mb:"0",color:"#001901",fontSize:"17px",fontWeight:"500",children:A})}),(0,i.jsxs)(x.k,{alignItems:"center",children:[(0,i.jsx)(D.s,{iconColor:"#001901",trigger:"hover",text:k}),(0,i.jsx)(S.z,{ml:"10px",p:"0",backgroundColor:"transparent",_hover:{bg:"transparent"},onClick:U,cursor:"pointer",children:(0,i.jsx)(I.Ov,{})})]})]}),(0,i.jsxs)(h.xu,{p:"0 20px 20px 20px",children:[(0,i.jsx)($.K,{pb:"17px",direction:"row",justifyContent:"center",children:null===(a=F===C.CR||F===C.r6?null:ei?C.p7:C.CK)||void 0===a?void 0:a.map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsxs)("label",{className:"custom-radio",children:[(0,i.jsx)("input",{name:"chart-view-".concat(A),value:e.id,id:e.value,checked:el===e.id,onChange:()=>{eo(e.id);let t=JSON.parse(JSON.stringify(W[T])),n=t.map(t=>(t.id===E&&(t.radio=e.id),t));G({...W,[T]:n})},type:"radio"},e.id),(0,i.jsx)("span",{role:"button",onKeyDown:t=>{"Enter"===t.key&&eo(e.id)},tabIndex:0,className:"radio-btn"}),er(e.value)]})},e.id))}),(0,i.jsxs)(x.k,{flexDirection:"column",justifyContent:"space-between",children:[(0,i.jsxs)(h.xu,{position:"relative",children:[(0,i.jsx)(h.xu,{maxH:"350",overflow:"auto",children:(0,i.jsx)(h.xu,{w:"100%",height:P,children:(0,i.jsx)(Z.$Q,{ref:u,data:R,options:{...eu}})})}),(0,i.jsx)(h.xu,{position:"absolute",right:"0",bottom:"0",backgroundColor:"white",height:"20px",width:"100%",className:"placeholder"})]}),u?(0,i.jsx)(h.xu,{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-end",children:(0,i.jsx)(S.z,{mt:"0",variant:"none",p:"0",id:"download-plot-btn",onClick:V,children:(0,i.jsx)(x.k,{alignItems:"center",children:(0,i.jsx)(I.e3,{})})})}):null]})]})]}),(0,i.jsx)(Y.Z,{title:A,canvasRef:u.current,onClose:J,isOpen:q,text:er("dashboard.pdfTitle"),resultsYear:z,keyFigureId:E,dashboardType:F}),(0,i.jsx)(O.Z,{title:"".concat(er("dashboard.removeCardFromDashboard")),onClose:en,isOpen:K,confirmCallback:()=>b()})]})});en.displayName="ChartjsBarChart";var ei=n(58224),ea=n(95822),er=n(44273),el={src:"/_next/static/media/coverbottom.a58b894b.png",height:612,width:794,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAElBMVEX////Ozsfz9fXj4uLe3Nri2th7pPECAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAGElEQVR4nGNgYGKAAkZWKJOFkRkmhgMAAAL2ABNDyvxRAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},eo=n(66675),es=n(13942),ed=n(93933),ec=n(93162),eu=n(59441),ex=n(23534),ep=n(85961),eh=n(98996),eA=n(81515),ef=n(65462);ei.Font.register({family:"GilLSans Medium",src:eu}),ei.Font.register({family:"GilLSans",src:ex}),ei.Font.register({family:"GilLSans Bold",src:ep}),ei.Font.register({family:"GilLSans Regular",src:eh}),ei.Font.register({family:"Gill Sans MT Pro",src:eh}),ei.Font.register({family:"Palatino Linotype",src:eA}),ei.Font.register({family:"Palatino Linotype Bold",src:ef});let eg=ei.StyleSheet.create({explanationsheader:{color:"#00802F",marginTop:"0",fontWeight:500,fontSize:"30px",fontFamily:"Gill Sans MT Pro",marginBottom:"5px"},explanationssubheader:{color:"#00802F",marginTop:"0",fontWeight:500,fontSize:"30px",fontFamily:"Gill Sans MT Pro",marginBottom:"38px"},explanationsContent:{width:"initial",p:{margin:0,fontSize:"12px",fontFamily:"Palatino Linotype",marginTop:"5px",marginBottom:"5px"},strong:{fontWeight:"bold",fontSize:"12px",fontFamily:"Palatino Linotype Bold"},li:{margin:0,fontSize:"12px",fontFamily:"Palatino Linotype",marginTop:"5px",marginBottom:"5px"},table:{width:"100%",boxSizing:"border-box",textIndent:"initial",borderColor:"#ccc",borderStyle:"solid",borderWidth:"1px",borderRightWidth:0,borderBottomWidth:0,borderCollapse:"collapse",fontSize:"12px",fontFamily:"Palatino Linotype",textAlign:"center"},"td:last-child":{borderRightWidth:"1px"},"th:last-child":{borderRightWidth:"1px"},"tr:last-child td":{borderBottomWidth:"1px"},"tr:last-child th":{borderBottomWidth:"1px"}},page:{flexDirection:"column",backgroundColor:"white",fontFamily:"GilLSans"},explanationsPage:{flexDirection:"column",backgroundColor:"white",paddingBottom:"100px",paddingTop:"100px"},explanationsContentBox:{padding:"0 60px"},sectionpage:{margin:"30px 0 0 0"},plopImage:{margin:"0 auto",width:"80%"},plopImageIBM:{margin:"0 auto",width:"100%"},section:{margin:"0 60px 0 60px"},pdfHeader:{backgroundColor:"white"},pdfHeaderText:{color:"#00802f",fontSize:"20px",fontFamily:"GilLSans Medium"},pdfHeaderSubText:{fontFamily:"GilLSans Medium",fontSize:"20px",paddingTop:"2px"},pdfHeaderDate:{fontFamily:"GilLSans Medium",fontSize:"18px",paddingTop:"8px"},pdfHeaderCCDI:{fontFamily:"GilLSans",fontSize:"14px",paddingTop:"25px"},pdfHeaderInsight:{textAlign:"right",color:"#00802f",fontSize:"23px",fontFamily:"GilLSans",paddingTop:"50px",paddingRight:"0",paddingBottom:"0px"},plopTitle:{fontSize:"12px"},coverBox:{paddingLeft:"54px",paddingBottom:"0",paddingRight:"50px"},pageFooter:{backgroundColor:"#00802f",height:"29px",position:"absolute",bottom:0,left:0,width:"100%",color:"white",fontSize:"10px",textAlign:"right",paddingTop:"9px",paddingRight:"30px"},contentBox:{padding:"100px 60px 0 60px"},summaryTitle:{fontFamily:"GilLSans Bold",fontSize:"14px"},summarySubTitle:{fontFamily:"GilLSans Bold",fontSize:"12px",paddingTop:"10px"},list:{fontFamily:"GilLSans",fontSize:"10px",textAlign:"justify",lineHeight:1.2},listIndicator:{height:"6px",width:"7px",marginTop:"1px"},contentList:{display:"flex",flexDirection:"row",marginTop:"10px",maxWidth:"420px",fontFamily:"GilLSans Regular"},listIndicatorContent:{margin:"0 10px"},alterTitle:{fontFamily:"GilLSans Bold",fontSize:"10px",paddingTop:"17px"},colorBoxBox:{backgroundColor:"#d5e59e",padding:"13px 20px",marginTop:"17px"},colorBoxText:{fontFamily:"GilLSans Regular",fontSize:"11px"},bodyText:{fontFamily:"GilLSans Regular",fontSize:"10px"},bodyTextBold:{fontFamily:"GilLSans Bold",fontSize:"10px"},backPage:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",height:"100%",paddingBottom:"40px"},staticContentStyle:{width:"initial",p:{margin:0,fontSize:"12px",fontFamily:"Palatino Linotype",marginBottom:"5px",marginTop:"5px",lineHeight:1.4},li:{margin:0,fontSize:"12px",fontFamily:"Palatino Linotype",marginBottom:"5px",marginTop:"5px",lineHeight:1.4},strong:{fontWeight:"bold",fontSize:"12px",fontFamily:"Palatino Linotype Bold"},table:{width:"100%",boxSizing:"border-box",textIndent:"initial",borderColor:"#ccc",borderStyle:"solid",borderWidth:"1px",borderRightWidth:0,borderBottomWidth:0,borderCollapse:"collapse",fontSize:"12px",fontFamily:"Palatino Linotype"},"td:last-child":{borderRightWidth:"1px"},"th:last-child":{borderRightWidth:"1px"},"tr:last-child td":{borderBottomWidth:"1px"},"tr:last-child th":{borderBottomWidth:"1px"},td:{borderColor:"#ccc",borderStyle:"solid",borderWidth:"1px",fontSize:"12px",padding:"0 3px","&:first-child":{textAlign:"left"},"&:nth-child(2)":{textAlign:"right!important"}},th:{borderColor:"#ccc",borderStyle:"solid",borderWidth:"1px",fontSize:"12px",padding:"0 3px","&:first-child":{textAlign:"left"},"&:nth-child(2)":{textAlign:"right!important"}}},coverImageStyle:{width:"80%"},cellContent:{color:"red",display:"none",flexDirection:"row"}});var em=n(7297),eb=n(31230);function ey(){let e=(0,em.Z)(["\n  query ContentFindAll($type: String!) {\n    contentFindAll(type: $type) {\n      parentId\n      id\n      description_de\n      description_en\n      description_fr\n      title_de\n      title_en\n      title_fr\n      childContent {\n        description_de\n        description_en\n        description_fr\n        parentId\n        title_de\n        title_en\n        title_fr\n        id\n      }\n    }\n  }\n"]);return ey=function(){return e},e}function ev(){let e=(0,em.Z)(["\n  query Query($contentFindOneId: Int!) {\n    contentFindOne(id: $contentFindOneId) {\n      childContent {\n        parentId\n\n        id\n        description_de\n        description_en\n        description_fr\n        title_de\n        title_en\n        title_fr\n      }\n      id\n      parentId\n      description_de\n      description_en\n      description_fr\n      title_de\n      title_en\n      title_fr\n    }\n  }\n"]);return ev=function(){return e},e}function ej(){let e=(0,em.Z)(["\n  query OrderGetDataReqLink {\n    orderGetDataReqLink {\n      linkFr\n      linkEn\n      linkDe\n      type\n    }\n  }\n"]);return ej=function(){return e},e}function eC(){let e=(0,em.Z)(["\n  query SettingsFindAll {\n    settingsFindAll {\n      id\n      name\n      description\n      value\n    }\n  }\n"]);return eC=function(){return e},e}let eS=(0,eb.Ps)(ey());
1(0,eb.Ps)(ev()),(0,eb.Ps)(ej()),(0,eb.Ps)(eC());var ek=n(73359),ew=n(45471),eI=n(37067);let ez=n(86492),eF=e=>{let t,{data:n,explanationsContent:a,staticContent:r,serviceTitle:l,serviceYear:o,translate:s,originalCompanyName:d,ccdiIndustry:c,dashboardType:u,coverTopImage:x,footerImage:p}=e,h=n.current.filter(e=>null==e?void 0:e.ctx),A=u===C.$T,f=u===C.CR,g=(t=0,r.replace(/height=".*?"|height:.*?;/g,"").replace(/<td(.*?)>(.*?)<\/td>/g,(e,n,i)=>{let a=t%2==0?"left":"right";return t++,'<td style="text-align: '.concat(a,'; padding: 0 5px;">').concat(i,"</td>")})),m=()=>(0,i.jsx)(ei.Text,{style:eg.pageFooter,render:e=>{let{pageNumber:t}=e;return t>1?t:""},fixed:!0});return(0,i.jsxs)(ei.Document,{children:[(0,i.jsx)(ei.Page,{size:[612,792],style:eg.page,children:(0,i.jsxs)(ei.View,{style:eg.pdfHeader,children:[(0,i.jsx)(ei.Image,{style:eg.coverImageStyle,src:x}),(0,i.jsx)(ei.Image,{src:el.src}),(0,i.jsxs)(ei.View,{style:eg.coverBox,children:[(0,i.jsxs)(ei.Text,{style:eg.pdfHeaderSubText,children:[l," - ",o]}),(0,i.jsxs)(ei.Text,{style:eg.pdfHeaderDate,children:[d," "]})]})]})}),r&&A?(0,i.jsxs)(ei.Page,{size:[612,792],style:eg.explanationsPage,children:[(0,i.jsxs)(ei.View,{style:eg.explanationsContentBox,children:[(0,i.jsx)(ei.Text,{style:eg.explanationsheader,children:"".concat(s("dashboard.sampleDescriptionTitle"))}),(0,i.jsx)(ei.Text,{style:eg.explanationssubheader,children:"".concat(c," ").concat(o)}),(0,i.jsx)(eI.Html,{stylesheet:eg.staticContentStyle,children:g})]}),(0,i.jsx)(m,{})]}):null,f?h.map(e=>{var t,n,a,r,l;return(0,i.jsxs)(ei.Page,{size:[612,992],style:eg.page,children:[(0,i.jsx)(ei.View,{style:eg.sectionpage,wrap:!1,children:(0,i.jsxs)(ei.View,{style:eg.section,children:[(0,i.jsx)(ei.Text,{style:eg.plopTitle,children:null==e?void 0:null===(t=e.config)||void 0===t?void 0:null===(n=t._config)||void 0===n?void 0:null===(a=n.options)||void 0===a?void 0:null===(r=a.plugins)||void 0===r?void 0:null===(l=r.title)||void 0===l?void 0:l.text}),(0,i.jsx)(ei.Image,{style:[eg.plopImageIBM,{height:"auto"}],src:e.toBase64Image("image/png}")})]})}),(0,i.jsx)(m,{})]},e.id)}):(0,i.jsxs)(ei.Page,{size:[612,792],style:eg.page,children:[h.map(e=>{var t,n,a,r,l;return(0,i.jsx)(ei.View,{style:eg.sectionpage,wrap:!1,children:(0,i.jsxs)(ei.View,{style:eg.section,children:[(0,i.jsx)(ei.Text,{style:eg.plopTitle,children:null==e?void 0:null===(t=e.config)||void 0===t?void 0:null===(n=t._config)||void 0===n?void 0:null===(a=n.options)||void 0===a?void 0:null===(r=a.plugins)||void 0===r?void 0:null===(l=r.title)||void 0===l?void 0:l.text}),(0,i.jsx)(ei.Image,{style:[eg.plopImage,{height:"auto"}],src:e.toBase64Image("image/png}")})]})},e.id)}),(0,i.jsx)(m,{})]}),a.map(e=>(0,i.jsxs)(ei.Page,{size:[612,792],style:eg.explanationsPage,children:[(0,i.jsxs)(ei.View,{style:eg.explanationsContentBox,children:[(0,i.jsxs)(ei.Text,{style:eg.explanationsheader,children:[e.title," "]}),(0,i.jsx)(eI.Html,{stylesheet:eg.explanationsContent,children:e.description})]}),(0,i.jsx)(m,{})]},e.title)),(0,i.jsxs)(ei.Page,{size:[612,792],style:eg.page,children:[(0,i.jsx)(ei.View,{style:eg.backPage,children:(0,i.jsx)(ei.Image,{src:p.src})}),(0,i.jsx)(m,{})]})]})},eE=e=>{let{text:t,data:n,dashboardId:a,serviceTitle:r,serviceYear:o,originalCompanyName:s,ccdiIndustry:d,offerType:c,getDashboardTitle:u,dashboardType:A}=e,f=(0,l.qM)(),[g,m]=(0,w.useState)(!1),[b,y]=(0,w.useState)(!1),v=(0,k.useRouter)(),j="content_".concat(v.locale),[z]=(0,ek.t)(eS),[F]=(0,ek.t)(ew.xe);(0,w.useEffect)(()=>{m(!0)},[]);let E=async()=>{var e,t,l;y(!0);let u=[],x=await z({variables:{type:C.ML.EXPLANATIONS}});if(null==x?void 0:null===(e=x.data)||void 0===e?void 0:e.contentFindAll){let e=x.data.contentFindAll;e&&e.map(e=>{let t="description_".concat(v.locale),n="title_".concat(v.locale);u.push({description:ez.decode(null==e?void 0:e[t]),title:ez.decode(null==e?void 0:e[n])})})}let p=await F({variables:{orderItemId:a}}),h=!1;(null==p?void 0:p.data)&&(h=null==p?void 0:null===(t=p.data)||void 0===t?void 0:null===(l=t.dbmFindDiversityMeasurement)||void 0===l?void 0:l[j].replaceAll("border-collapse: collapse;","").replaceAll('<colgroup><col style="width: 33.2922%;"><col style="width: 33.2922%;"><col style="width: 33.2922%;"></colgroup>',"").replaceAll("&ndash;
1","-")),n.current.forEach(e=>{e&&e.ctx&&(e.options.devicePixelRatio=2,e.resize())});let g=(0,i.jsx)(eF,{translate:f,serviceYear:o,serviceTitle:r,staticContent:h?ez.decode(h):null,explanationsContent:u,data:n,originalCompanyName:s,ccdiIndustry:d,dashboardType:A,coverTopImage:v.locale===C.ok.en?ea.Z.src:er.Z.src,footerImage:v.locale===C.ok.fr?ed.Z:v.locale===C.ok.de?es.Z:eo.Z}),m=(0,ei.pdf)([]);m.updateContainer(g);let b=await m.toBlob(),S="".concat(v.query.slug.replace(" ","_"),".pdf");("basic"===c||"sandbox"===v.query.slug)&&(S="basic_access.pdf"),"pro"===c&&"sandbox"===v.query.slug&&(S="my_dashboard.pdf","de"===v.locale&&(S="mein_dashboard.pdf")),A===C.r6&&(S="".concat(r.toLowerCase().replaceAll(" ","_"),".pdf")),A===C.CR&&(S="internal_benchmarking.pdf"),(0,ec.saveAs)(b,S),n.current.forEach(e=>{e&&e.ctx&&(e.options.devicePixelRatio=1,e.resize())}),y(!1)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.k,{backgroundColor:"#f5f5f5",marginBottom:"5px",borderRadius:"4px",alignItems:"center",justifyContent:t?"space-between":"flex-end",padding:"20px",children:[t?(0,i.jsx)(h.xu,{textAlign:"center",children:(0,i.jsx)(p.x,{mb:"5px",color:C.wL.secondary,fontWeight:400,fontSize:"14px",children:t})}):null,(0,i.jsx)(h.xu,{children:g?(0,i.jsx)(S.z,{disabled:b,isLoading:b,onClick:()=>E(),padding:"11px 20px",ml:"40px",p:"6px 20px",minW:"184px",children:(0,i.jsxs)(x.k,{alignItems:"center",children:[(0,i.jsx)(I.eR,{fill:"white"}),f("dashboard.downloadReportPdf")]})}):null})]})})};function e_(){let e=(0,l.qM)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.k,{flexDirection:"row",mb:"20px",backgroundColor:"white",boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.10), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",padding:"16px",width:"100%",alignItems:"flex-start",borderRadius:"8px",children:[(0,i.jsx)(x.k,{mt:"3px",maxWidth:"36px",flex:"0 0 36px",children:(0,i.jsx)(I.pW,{})}),(0,i.jsxs)(x.k,{flexDir:"column",children:[(0,i.jsx)(p.x,{fontSize:"17px",fontWeight:"700",lineHeight:"1.5",children:e("dashboard.noIndicatorsSelected")}),(0,i.jsx)(p.x,{fontSize:"17px",fontWeight:"500",lineHeight:"1.5",children:e("dashboard.pleaseSelectIndicators")})]})]})})}function eO(){let e=(0,l.qM)(),t=(0,o.Zl)(s.Mc),n=()=>{t(!0)};return(0,i.jsx)(h.xu,{mr:"20px",fontSize:"18px",children:(0,i.jsxs)(S.z,{variant:"ghost",border:"none",onClick:()=>n(),minW:0,padding:"14px 20px",height:"28px",children:[(0,i.jsx)(I.hY,{}),e("dashboard.resetSearchpanel")]})})}let eT=e=>{var t,n;let{filters:S,charts:F,dashboardName:_,resultsYear:O,originalCompanyAppId:B,originalCompanyName:N,dashboardType:L,breadcrumbServiceTitle:R,lang:M,offerType:P,ccdiIndustry:H,radios:W,originalCompanyShortName:q}=e,Z=(0,l.qM)(),J=(0,k.useRouter)(),K=(0,w.useRef)([]),U=(0,o.sJ)(s.MZ),$=(0,o.Zl)(s.YU);(0,w.useEffect)(()=>{U||$(!1)},[U]);let[Y,X]=(0,w.useState)({section:[],criteria:[],filter:[]}),ee=(0,o.sJ)(s.Mc),[et,ei]=(0,o.FV)(s.N_);(0,w.useEffect)(()=>{ee&&X({section:[],criteria:[],filter:[]})},[ee]),(0,w.useEffect)(()=>{F&&F.length},[F]),(0,w.useEffect)(()=>{_!==C.IG.sandbox&&em([_])},[_]);let[ea,er]=(0,w.useState)([]),[el,eo]=(0,w.useState)([]),[es,ed]=(0,w.useState)({panel:C.IG.sandbox===_,search:!1}),[ec,eu]=(0,w.useState)(!1),[ex,ep]=(0,w.useState)(!1),[eh,eA]=(0,w.useState)([]),ef=e=>{let t=(0,d.sL)(et[_],e);ei({...et,[_]:[...t]})},eg=(e,t)=>{X({...Y,criteria:e}),eA(t)},em=e=>{let t=e.filter(e=>e!==C.IG.sandbox);X({...Y,section:t})},eb=e=>{X({...Y,filter:e})},ey=(0,w.useCallback)(G()((e,t)=>{let n=Object.fromEntries(Object.entries(e).filter(e=>e[1].length>0)),i=async()=>{eu(!0);try{var e;let i=await (0,j.S)(),a=await y.client.request((0,v.Sm)(J),{query:n,orderItemId:Number(null==J?void 0:null===(e=J.query)||void 0===e?void 0:e.dashboard_id),language:t,version:P},{Authorization:"Bearer ".concat(i)});er(a.dbmFindAll||a.ibmFindAll||a.mbmFindAll)}catch(e){console.error(e)}eu(!1)};i()},800),[]);(0,w.useMemo)(()=>{ey(Y,J.locale)},[Y,J.locale]);let ev=(0,a.Dy)((0,a.VT)(a.MA)),ej=(0,w.useMemo)(()=>et[_].map(e=>e.title),[et]),eC=async e=>{let t=async()=>{ep(!0);try{var t;let n=await (0,j.S)(),i=await y.client.request((0,v.vQ)(J),{textSearch:e,orderItemId:Number(null==J?void 0:null===(t=J.query)||void 0===t?void 0:t.dashboard_id),language:M,version:P},{Authorization:"Bearer ".concat(n)});eo(i.dbmTextSearch||i.ibmTextSearch||i.mbmTextSearch)}catch(e){}ep(!1)};t()},eS=e=>{"panel"===e&&ed({search:!1,panel:!es[e]}),"search"===e&&ed({panel:!1,search:!es[e]})},ek="sidebar.".concat((0,d.yJ)(_));return"sandbox"===_&&"pro"===P?ek="sidebar.myDashboard":"sandbox"===_&&"basic"===P?ek="sidebar.sandbox":(L===C.r6||L===C.CR)&&(ek=R),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.m,{className:"cc-tabs",children:[(0,i.jsx)(u.t,{border:"none",ml:"-1px",children:(0,i.jsxs)(x.k,{width:"100%",children:[(0,i.jsx)(p.x,{display:"flex",alignItems:"center",maxW:"fit-content",width:"100%",fontSize:"17px",marginRight:"20px",fontWeight:700,lineHeight:1.5,children:Z(ek)}),(0,i.jsxs)(x.k,{width:"100%",mb:"7px",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(x.k,{alignItems:"flex-end",children:[(0,i.jsx)(h.xu,{className:"tab-inner-box",children:(0,i.jsxs)(A.O,{onClick:()=>eS(C.dX.panel),className:"dashboard-panel",as:"div","data-cy":"search-panel-tab",children:[Z("dashboard.defaultSearch"),(0,i.jsx)(x.k,{alignItems:"flex-start",children:(0,i.jsx)(D.s,{iconColor:"#001901",width:"947px",trigger:"hover",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.X,{lineHeight:"1.5",fontSize:"17px",mb:"12px",children:Z("dashboard.searchPanelTitle")}),(0,i.jsxs)(g.QI,{children:[(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelList1")}}),(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelList2")}}),(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelList3")}}),(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelList4")}})]}),(0,i.jsx)(f.X,{lineHeight:"1.5",fontSize:"17px",mt:"30px",mb:"20px",children:Z("dashboard.searchPanelSecondTitle")}),(0,i.jsxs)(g.QI,{children:[(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelContent1")}}),(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelContent2")}}),(0,i.jsx)(g.HC,{fontSize:"17px",dangerouslySetInnerHTML:{__html:Z("dashboard.searchPanelContent3")}})]})]})})}),(0,i.jsx)(x.k,{className:"tabArrowIcon ".concat(!0===es.panel?"open":""),alignItems:"center",ml:"10px",children:(0,i.jsx)(I.fe,{})})]})}),(0,i.jsx)(h.xu,{className:"tab-inner-box",children:(0,i.jsxs)(A.O,{onClick:()=>eS(C.dX.search),className:"dashboard-panel",as:"div","data-cy":"keyword-panel-tab",children:[Z("dashboard.textSearch"),(0,i.jsx)(x.k,{className:"tabArrowIcon ".concat(!0===es.search?"open":""),alignItems:"center",ml:"10px",children:(0,i.jsx)(I.fe,{})})]})}),(0,i.jsxs)(h.xu,{children:[(0,i.jsx)(eO,{}),(0,i.jsx)(x.k,{className:"tabArrowIcon ".concat(!0===es.search?"open":""),alignItems:"center",ml:"10px"})]})]}),(0,i.jsx)(x.k,{alignItems:"center",justifyContent:"center",children:(0,i.jsx)(T,{offerType:P,dashboardType:L,dashboardName:_})})]})]})}
1),(0,i.jsxs)(m.n,{children:[(0,i.jsx)(b.x,{"data-cy":"tabpanel-search",padding:"0",display:es.panel?"block":"none",children:(0,i.jsx)(h.xu,{className:"box-card without-top-border",border:"none",padding:"16px",children:(0,i.jsxs)(x.k,{gap:"16px",children:[S.sections?(0,i.jsx)(Q,{callback:em,elements:S.sections,title:Z("dashboard.bySection"),maxW:"15%",sectionDashboard:_,lang:M}):null,S.typedCriterias?(0,i.jsx)(Q,{callback:eg,elements:S.typedCriterias,subCategoryKey:"criterias",title:Z("dashboard.byCriteria"),maxW:"25%",hasOpenAll:!0,checkboxValue:"value",lang:M}):null,S.typedFilters?(0,i.jsx)(Q,{callback:eb,elements:S.typedFilters,subCategoryKey:"filters",title:Z("dashboard.byFilter"),maxW:"25%",checkboxValue:"value",hasOpenAll:!0,criteria:eh,lang:M}):null,(0,i.jsx)(E,{unique:"panel",dashboardName:_,isLoading:ec,elements:ea,originalCompanyName:q,originalCompanyAppId:B,lang:M,adminOfferType:P})]})})}),(0,i.jsx)(b.x,{"data-cy":"tabpanel-keyword",padding:"0",display:es.search?"block":"none",children:(0,i.jsx)(h.xu,{className:"box-card without-top-border",pb:"10px",children:(0,i.jsxs)(h.xu,{mb:"24px",children:[(0,i.jsx)(V,{placeholder:Z("dashboard.textSearchLabel"),label:Z("dashboard.textSearchLabel"),callback:e=>eC(e)}),(0,i.jsx)(h.xu,{mt:"24px",children:(0,i.jsx)(E,{unique:"text",dashboardName:_,isLoading:ex,elements:el,originalCompanyName:q,originalCompanyAppId:B,hideResetButton:!0,lang:M,noResultText:"dashboard.noResult",adminOfferType:P})})]})})})]})]}),(0,i.jsx)(x.k,{mt:"24px",flexDirection:"row",gap:"20px",flexWrap:"wrap",children:U?(0,i.jsx)(x.k,{h:"300px",w:"100%",children:(0,i.jsx)(z.V,{})}):et[_]&&et[_].length>0?(0,i.jsx)(a.LB,{sensors:ev,onDragEnd:function(e){let{active:t,over:n}=e,i=e=>et[_].findIndex(t=>t.title===e);if(t.id!==n.id&&t.hasOwnProperty("id")&&n.hasOwnProperty("id")){let e=i(t.id),a=i(n.id),l=(0,r.Rp)(et[_],e,a);ei({...et,[_]:[...l]})}},children:(0,i.jsx)(r.Fo,{items:ej,children:et[_].map((e,t)=>{var n;let a=(0,d.Yr)(e.type),r=()=>L===C.CR?C.ZK:L===C.r6?C.Ox:a?C.p7:C.CK;return(0,i.jsx)(en,{sampleData:e.chartData.sampleComparison,industryData:e.chartData.industryComparison,fullSampleData:e.chartData.fullSampleComparison,title:e.title,chartStyle:e.chartStyle,id:e.title,chartType:e.chartType,removeCallback:()=>ef(t),type:e.type,isDefault:null==e?void 0:e.isDefault,legends:null==e?void 0:e.legends,definition:null==e?void 0:e.definition,resultsYear:O,ref:e=>K.current[t]=e,dashboardType:L,keyFigureId:e.id,tickSize:null==e?void 0:e.tick_size,dashboardName:_,showPercentValue:(null==e?void 0:e.percent_yn)===null||(null==e?void 0:e.percent_yn),radioValue:W&&(null===(n=null==W?void 0:W.find(t=>Number(t.keyFigureId)===Number(e.id)))||void 0===n?void 0:n.radio)||(L===C.$T?a?r()[0].id:r()[1].id:r()[0].id)},e.title)})})}):(0,d.Iq)(null==J?void 0:null===(t=J.query)||void 0===t?void 0:t.dashboard_name)?null:(0,i.jsx)(e_,{})}),(0,i.jsx)(h.xu,{bottom:"-5px",position:"sticky",left:"0",width:"100%",mt:"25px",children:(0,i.jsx)(eE,{originalCompanyName:N,lang:M,serviceTitle:R,dashboardId:Number(null==J?void 0:null===(n=J.query)||void 0===n?void 0:n.dashboard_id),data:K,serviceYear:O,ccdiIndustry:H,offerType:P,getDashboardTitle:ek,dashboardType:L})})]})},eD=e=>{var t;let{filters:n,charts:a,dashboardSectionId:r,resultsYear:c,originalCompanyAppId:u,originalCompanyName:x,dashboardType:p,breadcrumbServiceTitle:h,lang:A,offerType:f,ccdiIndustry:g,originalCompanyShortName:m}=e,b=(0,k.useRouter)(),S=null==b?void 0:null===(t=b.query)||void 0===t?void 0:t.slug,I=(0,l.qM)(),z=(0,o.sJ)(s.fn),F=(0,o.Zl)(s.fn),E=(0,o.rb)(s.N_),_=(0,o.Zl)(s.MZ),[O,T]=(0,o.FV)(s.zv),[D,B]=(0,o.FV)(s.N_),N=(0,o.sJ)(s.YU);(0,o.Zl)(s.YU);let[L]=(0,w.useState)();(0,w.useEffect)(()=>{E();let e=async()=>{let e=await (0,j.S)();try{var t;let n=await y.client.request((0,v.C2)(b),{orderItemId:Number(null==b?void 0:null===(t=b.query)||void 0===t?void 0:t.dashboard_id),version:f},{authorization:"Bearer ".concat(e)});F((null==n?void 0:n.dbmFindSectionsWithDefaults)||(null==n?void 0:n.mbmFindSectionsWithDefaults)||(null==n?void 0:n.ibmFindSectionsWithDefaults))}catch(e){console.log("Error: ".concat(e))}};e()},[]);let R=async e=>{var t,n,i,a;let r=null;_(!0);let l=null===(t=z.find(e=>(null==e?void 0:e.section)===S))||void 0===t?void 0:t.defaultIds;if((p===C.r6||p===C.CR)&&(l=null==z?void 0:null===(n=z[0])||void 0===n?void 0:n.defaultIds),e&&e.length>0)l=e.some(e=>Object.keys(e).includes("keyFigureId"))?e.map(e=>e.keyFigureId):e;else if((0,v.IN)(f)){let e=z.map(e=>e.defaultIds).flat();l=e}if(l){let t=await (0,j.S)();r=await y.client.request((0,v.IG)(b),{ids:l,orderItemId:Number(null==b?void 0:null===(i=b.query)||void 0===i?void 0:i.dashboard_id),legendLanguage:A,version:f},{Authorization:"Bearer ".concat(t)});let n=(null==r?void 0:r.dbmFindByIds)||(null==r?void 0:r.ibmFindByIds)||(null==r?void 0:r.mbmFindByIds);if(n||O){let t=(0,d.Jy)(n,u,m,!0,b.query.dashboard_type,A,I,null==b?void 0:null===(a=b.query)||void 0===a?void 0:a.dashboard_name),i=null==e?void 0:e.some(e=>Object.keys(e).includes("keyFigureId")),r=t.map(t=>{if(i){let n=null==e?void 0:e.find(e=>Number(e.keyFigureId)===Number(t.id));n&&(t.radio=n.radio)}return t});B({...D,[S]:r}),T(!1),_(!1)}}else _(!1)};return(0,w.useEffect)(()=>
1{if(localStorage.getItem(C.lB)!==b.locale){var e;localStorage.setItem(C.lB,A),(null==b?void 0:null===(e=b.query)||void 0===e?void 0:e.dashboard_name)===C.jZ&&window.location.reload(),a&&R(a)}},[I]),(0,w.useEffect)(()=>{(null==z?void 0:z.length)>0&&D[S].length<1&&(a?R(a):(p===C.$T||p===C.r6||p===C.CR)&&R())},[z,S]),(0,w.useEffect)(()=>{if("sandbox"===S){let e=String(f);e!==C.rh&&"null"!==e?B({...D,[S]:[]}):O&&R();return}O&&R()},[O]),(0,w.useEffect)(()=>{r&&0!==r&&!N&&(0,d.Y)(Number(r),D[S],p)},[D]),(0,i.jsx)(eT,{resultsYear:c,charts:L,dashboardName:S,filters:n,originalCompanyName:x,originalCompanyShortName:m,originalCompanyAppId:u,dashboardType:p,breadcrumbServiceTitle:h,lang:A,offerType:f,ccdiIndustry:g,radios:a})};var eB=n(10975);let eN=e=>{let{filters:t,hasSavedDashboard:n,charts:a,dashboardSectionId:r,resultsYear:l,originalCompanyAppId:d,originalCompanyName:c,originalCompanyShortName:u,dashboardType:x,breadcrumbServiceTitle:p,_nextI18Next:h,ccdiIndustry:A,offerType:f}=e,g=(0,o.rb)(s.N_);return(0,w.useEffect)(()=>()=>{g()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eB.Z,{}),(0,i.jsx)(eD,{filters:t,hasSavedDashboard:n,charts:a,dashboardSectionId:r,resultsYear:l,originalCompanyAppId:d,originalCompanyName:c,originalCompanyShortName:u,dashboardType:x,breadcrumbServiceTitle:p,lang:h.initialLocale,ccdiIndustry:A,offerType:f})]})};var eL=!0,eR=eN},99863:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(85893),a=n(88911),r=n(29222),l=n(78957),o=n(90126),s=n(57403),d=n(83273);function c(e){let{onClose:t,isOpen:n,confirmCallback:c,cancelCallback:u,title:x,body:p,beforeTitleIcon:h,footer:A}=e,f=(0,o.qM)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(l.Z,{beforeTitleIcon:h,title:x||f("common.invitationDeleteModal"),onClose:t,isOpen:n,children:[p?(0,i.jsx)(a.x,{mb:"24px",children:p}):(0,i.jsx)(i.Fragment,{}),A||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.z,{"data-cy":"modal-no",onClick:()=>u?u():t(),mr:"12px",children:[(0,i.jsx)(s.JU,{fill:"white"}),f("buttons.no")]}),(0,i.jsxs)(r.z,{"data-cy":"modal-yes",onClick:()=>c?c():t(),variant:"secondary",children:[(0,i.jsx)(s.Kq,{fill:d.wL.GM4}),f("buttons.yes")]})]})]})})}},88563:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var i=n(85893),a=n(68227),r=n(20956),l=n(83273),o=n(50319),s=n(204),d=n(23100),c=n(5370),u=n(28129),x=n(29222),p=n(90126
1),h=n(67294),A=n(57403),f=n(78957);function g(e){let{onClose:t,isOpen:n,text:g,canvasRef:m,title:b,keyFigureId:y,dashboardType:v}=e,j=(0,p.qM)(),[C,S]=(0,h.useState)(l._g[0]),[k,w]=(0,h.useState)((0,r.$e)(b)),[I]=(0,o.D)(a.G3),z=async()=>{if(v)try{let e=r.dU[v];await I({variables:{keyFigureId:Number(y),keyfigureType:e}})}catch(e){console.log("err",e)}let e=m;"high"===C?(e.options.devicePixelRatio=5,e.resize()):(e.options.devicePixelRatio=2,e.resize()),setTimeout(()=>{let t=e.toBase64Image("image/png}"),n=document.createElement("a");n.href=t,n.download=(0,r.$e)(k),n.click(),e.options.devicePixelRatio=1,e.resize()},1e3)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(f.Z,{isOpen:n,onClose:t,title:j(g),children:[(0,i.jsxs)(s.k,{flexDirection:"column",mb:"20px",children:[(0,i.jsx)(d.xu,{children:(0,i.jsx)(c.l,{children:j("dashboard.PdfType")})}),(0,i.jsx)(s.k,{flexDirection:"row",children:null===l._g||void 0===l._g?void 0:l._g.map(e=>(0,i.jsx)("div",{children:(0,i.jsxs)("label",{className:"custom-radio",children:[(0,i.jsx)("input",{name:"chart-view-".concat(b,"-").concat(e),value:C,id:e,checked:C===e,onChange:()=>{S(e)},type:"radio"},e),(0,i.jsx)("span",{className:"radio-btn"}),j(e)]})},e))})]}),(0,i.jsxs)(d.xu,{children:[(0,i.jsx)(c.l,{children:j("dashboard.chooseImageName")}),(0,i.jsx)(u.I,{fontSize:"lg",backgroundColor:"#FFF",autoComplete:"off",value:k,onChange:e=>w(e.target.value)})]}),(0,i.jsx)(d.xu,{mt:"20px",display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",children:(0,i.jsx)(x.z,{id:"download-plot-btn",onClick:z,variant:"secondary",children:(0,i.jsxs)(s.k,{alignItems:"center",children:[(0,i.jsx)(A.eR,{fill:l.wL.GM4}),j("buttons.downloadPlot")]})})})]})})}},10975:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(85893),a=n(90126),r=n(3296);function l(){let e=(0,a.qM)();return(0,i.jsx)(r.X,{hideOnMobile:!0,text:e("notOptimized")})}},59939:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var i=n(85893),a=n(57403),r=n(89016),l=n.n(r);function o(){return(0,i.jsx)("div",{className:l().ccdiLoader,children:(0,i.jsx)(a.Ho,{})})}},3296:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var i=n(85893),a=n(204),r=n(23100),l=n(88911);n(67294);var o=n(57403);let s=e=>{let{text:t,hideOnMobile:n=!1,mb:s="20px"}=e;return(0,i.jsxs)(a.k,{display:{base:n?"flex":"none",lm:n?"none":"flex"},alignItems:"center",mb:s,backgroundColor:"#EDF2F7",padding:"20px 24px",children:[(0,i.jsx)(r.xu,{children:(0,i.jsx)(o.aN,{})}),(0,i.jsx)(r.xu,{children:(0,i.jsx)(l.x,{ml:"24px",children:t})})]})}},15136:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var i=n(67294);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=(0,i.useRef)();return(0,i.useEffect)(()=>{t.forEach(e=>{e&&("function"==typeof e?e(a.current):e.current=a.current)})},[t]),a}},89016:function(e){e.exports={lds:"Preloader_lds__lcddn","lds-dual-ring":"Preloader_lds-dual-ring__Le30A",ccdiLoader:"Preloader_ccdiLoader__QVKwk"}},1864:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",a=0,r=-1,l=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else if(47===n)break;else n=47;if(47===n){if(r===o-1||1===l);else if(r!==o-1&&2===l){if(i.length<2||2!==a||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){var s=i.lastIndexOf("/");if(s!==i.length-1){-1===s?(i="",a=0):a=(i=i.slice(0,s)).length-1-i.lastIndexOf("/"),r=o,l=0;continue}}else if(2===i.length||1===i.length){i="",a=0,r=o,l=0;continue}}t&&(i.length>0?i+="/..":i="..",a=2)}else i.length>0?i+="/"+e.slice(r+1,o):i=e.slice(r+1,o),a=o-r-1;r=o,l=0}else 46===n&&-1!==l?++l:l=-1}return i}var i={resolve:function(){for(var e,i,a="",r=!1,l=arguments.length-1;l>=-1&&!r;l--)l>=0?i=arguments[l]:(void 0===e&&(e=""),i=e),t(i),0!==i.length&&(a=i+"/"+a,r=47===i.charCodeAt(0));return(a=n(a,!r),r)?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&a&&(e+="/"),i)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var a=arguments[n];t(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=i.resolve(e))===(n=i.resolve(n)))return"";for(var a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var r=e.length,l=r-a,o=1;o<n.length&&47===n.charCodeAt(o);++o);for(var s=n.length-o,d=l<s?l:s,c=-1,u=0;u<=d;++u){if(u===d){if(s>d){if(47===n.charCodeAt(o+u))return n.slice(o+u+1);if(0===u)return n.slice(o+u)}else l>d&&(47===e.charCodeAt(a+u)?c=u:0===u&&(c=0));break}var x=e.charCodeAt(a+u);if(x!==n.charCodeAt(o+u))break;47===x&&(c=u)}var p="";for(u=a+c+1;u<=r;++u)(u===r||47===e.charCodeAt(u))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(o+c):(o+=c,47===n.charCodeAt(o)&&++o,n.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,a=-1,r=!0,l=e.length-1;l>=1;--l)if(47===(n=e.charCodeAt(l))){if(!r){a=l;break}}else r=!1;return -1===a?i?"/":".":i&&1===a?"//":e.slice(0,a)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var i,a=0,r=-1,l=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var o=n.length-1,s=-1;for(i=e.length-1;i>=0;--i){var d=e.charCodeAt(i);if(47===d){if(!l){a=i+1;break}}else -1===s&&(l=!1,s=i+1),o>=0&&(d===n.charCodeAt(o)?-1==--o&&(r=i):(o=-1,r=s))}return a===r?r=s:-1===r&&(r=e.length),e.slice(a,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!l){a=i+1;break}}else -1===r&&(l=!1,r=i+1);return -1===r?"":e.slice(a,r)},extname:function(e){t(e);for(var n=-1,i=0,a=-1,r=!0,l=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);
1if(47===s){if(!r){i=o+1;break}continue}-1===a&&(r=!1,a=o+1),46===s?-1===n?n=o:1!==l&&(l=1):-1!==n&&(l=-1)}return -1===n||-1===a||0===l||1===l&&n===a-1&&n===i+1?"":e.slice(n,a)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var a=e.charCodeAt(0),r=47===a;r?(i.root="/",n=1):n=0;for(var l=-1,o=0,s=-1,d=!0,c=e.length-1,u=0;c>=n;--c){if(47===(a=e.charCodeAt(c))){if(!d){o=c+1;break}continue}-1===s&&(d=!1,s=c+1),46===a?-1===l?l=c:1!==u&&(u=1):-1!==l&&(u=-1)}return -1===l||-1===s||0===u||1===u&&l===s-1&&l===o+1?-1!==s&&(0===o&&r?i.base=i.name=e.slice(1,s):i.base=i.name=e.slice(o,s)):(0===o&&r?(i.name=e.slice(1,l),i.base=e.slice(1,s)):(i.name=e.slice(o,l),i.base=e.slice(o,s)),i.ext=e.slice(l,s)),o>0?i.dir=e.slice(0,o-1):r&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},n={};function i(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}},l=!0;try{t[e](r,r.exports,i),l=!1}finally{l&&delete n[e]}return r.exports}i.ab="//";var a=i(114);e.exports=a}()},98996:function(e,t,n){"use strict";e.exports=n.p+"static/media/GillSans.820f18d4.ttf"},85961:function(e,t,n){"use strict";e.exports=n.p+"static/media/GillSansMTPro-Bold.15423ee9.ttf"},23534:function(e,t,n){"use strict";e.exports=n.p+"static/media/GillSansMTPro-Light.fb05c868.ttf"},59441:function(e,t,n){"use strict";e.exports=n.p+"static/media/GillSansMTPro-Medium.8c97e770.ttf"},65462:function(e,t,n){"use strict";e.exports=n.p+"static/media/PalatinoLinotype-Bold.a3b97fda.ttf"},81515:function(e,t,n){"use strict";e.exports=n.p+"static/media/PalatinoLinotype-Roman.3e620a3c.ttf"},42480:function(){},52547:function(){},14418:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var i=n(35059),a=n(91639),r=n(33179),l=n(13172),o=n(25432),s=n(85893),d=(0,i.G)(function(e,t){let n=(0,a.mq)("Heading",e),{className:i,...d}=(0,r.Lr)(e);return(0,s.jsx)(l.m.h2,{ref:t,className:(0,o.cx)("chakra-heading",e.className),...d,__css:n})});d.displayName="Heading"},776:function(e,t,n){"use strict";n.d(t,{P:function(){return d}});var i=n(35059),a=n(13172),r=n(20888),l=n(33951),o=n(85893);function s(e){return(0,l.XQ)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var d=(0,i.G)(function(e,t){let{area:n,colSpan:i,colStart:l,colEnd:d,rowEnd:c,rowSpan:u,rowStart:x,...p}=e,h=(0,r.oA)({gridArea:n,gridColumn:s(i),gridRow:s(u),gridColumnStart:l,gridColumnEnd:d,gridRowStart:x,gridRowEnd:c});return(0,o.jsx)(a.m.div,{ref:t,__css:h,...p})});d.displayName="GridItem"},80333:function(e,t,n){"use strict";n.d(t,{n:function(){return d}});var i=n(1004),a=n(55086),r=n(25432),l=n(35059),o=n(13172),s=n(85893),d=(0,l.G)(function(e,t){let n=(0,a.bt)(e),l=(0,i.s)();return(0,s.jsx)(o.m.div,{...n,width:"100%",ref:t,className:(0,r.cx)("chakra-tabs__tab-panels",e.className),__css:l.tabpanels})});d.displayName="TabPanels"},69558:function(e,t,n){"use strict";n.d(t,{x:function(){return d}});var i=n(1004),a=n(55086),r=n(25432),l=n(35059),o=n(13172),s=n(85893),d=(0,l.G)(function(e,t){let n=(0,a.WE)({...e,ref:t}),l=(0,i.s)();return(0,s.jsx)(o.m.div,{outline:"0",...n,className:(0,r.cx)("chakra-tabs__tab-panel",e.className),__css:l.tabpanel})});d.displayName="TabPanel"},55086:function(e,t,n){"use strict";n.d(t,{WE:function(){return S},X:function(){return g},YE:function(){return f},bt:function(){return C},hp:function(){return b},mE:function(){return x},xD:function(){return y}});var i=n(67562),a=n(73614),r=n(55227),l=n(61942),o=n(92495),s=n(81103),d=n(92625),c=n(25432),u=n(67294),[x,p,h,A]=(0,a.n)();function f(e){var t;let{defaultIndex:n,onChange:i,index:a,isManual:r,isLazy:o,lazyBehavior:s="unmount",orientation:d="horizontal",direction:c="ltr",...x}=e,[p,A]=(0,u.useState)(null!=n?n:0),[f,g]=(0,l.T)({defaultValue:null!=n?n:0,value:a,onChange:i});(0,u.useEffect)(()=>{null!=a&&A(a)},[a]);let m=h(),b=(0,u.useId)(),y=null!=(t=e.id)?t:b,v=`tabs-${y}`;return{id:v,selectedIndex:f,focusedIndex:p,setSelectedIndex:g,setFocusedIndex:A,isManual:r,isLazy:o,lazyBehavior:s,orientation:d,descendants:m,direction:c,htmlProps:x}}var[g,m]=(0,r.k)({name:"TabsContext",errorMessage:"useTabsContext: `
1context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function b(e){let{focusedIndex:t,orientation:n,direction:i}=m(),a=p(),r=(0,u.useCallback)(e=>{let r=()=>{var e;let n=a.nextEnabled(t);n&&(null==(e=n.node)||e.focus())},l=()=>{var e;let n=a.prevEnabled(t);n&&(null==(e=n.node)||e.focus())},o=()=>{var e;let t=a.firstEnabled();t&&(null==(e=t.node)||e.focus())},s=()=>{var e;let t=a.lastEnabled();t&&(null==(e=t.node)||e.focus())},d="horizontal"===n,c="vertical"===n,u=e.key,x={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>d&&l(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>d&&r(),ArrowDown:()=>c&&r(),ArrowUp:()=>c&&l(),Home:o,End:s}[u];x&&(e.preventDefault(),x(e))},[a,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:(0,c.v0)(e.onKeyDown,r)}}function y(e){let{isDisabled:t,isFocusable:n,...a}=e,{setSelectedIndex:r,isManual:l,id:o,setFocusedIndex:d,selectedIndex:u}=m(),{index:x,register:p}=A({disabled:t&&!n}),h=x===u,f=()=>{r(x)},g=()=>{d(x),l||t&&n||r(x)},b=(0,i.h)({...a,ref:(0,s.lq)(p,e.ref),isDisabled:t,isFocusable:n,onClick:(0,c.v0)(e.onClick,f)});return{...b,id:k(o,x),role:"tab",tabIndex:h?0:-1,type:"button","aria-selected":h,"aria-controls":w(o,x),onFocus:t?void 0:(0,c.v0)(e.onFocus,g)}}var[v,j]=(0,r.k)({});function C(e){let t=m(),{id:n,selectedIndex:i}=t,a=(0,o.W)(e.children),r=a.map((e,t)=>(0,u.createElement)(v,{key:t,value:{isSelected:t===i,id:w(n,t),tabId:k(n,t),selectedIndex:i}},e));return{...e,children:r}}function S(e){let{children:t,...n}=e,{isLazy:i,lazyBehavior:a}=m(),{isSelected:r,id:l,tabId:o}=j(),s=(0,u.useRef)(!1);r&&(s.current=!0);let c=(0,d.k)({wasSelected:s.current,isSelected:r,enabled:i,mode:a});return{tabIndex:0,...n,children:c?t:null,role:"tabpanel","aria-labelledby":o,hidden:!r,id:l}}function k(e,t){return`${e}--tab-${t}`}function w(e,t){return`${e}--tabpanel-${t}`}},49394:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var i=n(1004),a=n(55086),r=n(25432),l=n(35059),o=n(13172),s=n(85893),d=(0,l.G)(function(e,t){let n=(0,i.s)(),l=(0,a.xD)({...e,ref:t}),d={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,s.jsx)(o.m.button,{...l,className:(0,r.cx)("chakra-tabs__tab",e.className),__css:d})});d.displayName="Tab"},56005:function(e,t,n){"use strict";n.d(t,{t:function(){return d}});var i=n(1004),a=n(55086),r=n(25432),l=n(35059),o=n(13172),s=n(85893),d=(0,l.G)(function(e,t){let n=(0,a.hp)({...e,ref:t}),l=(0,i.s)(),d={display:"flex",...l.tablist};return(0,s.jsx)(o.m.div,{...n,className:(0,r.cx)("chakra-tabs__tablist",e.className),__css:d})});d.displayName="TabList"},1004:function(e,t,n){"use strict";n.d(t,{m:function(){return h},s:function(){return p}});var i=n(55086),a=n(55227),r=n(35059),l=n(91639),o=n(33179),s=n(13172),d=n(25432),c=n(67294),u=n(85893),[x,p]=(0,a.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),h=(0,r.G)(function(e,t){let n=(0,l.jC)("Tabs",e),{children:a,className:r,...p}=(0,o.Lr)(e),{htmlProps:h,descendants:A,...f}=(0,i.YE)(p),g=(0,c.useMemo)(()=>f,[f]),{isFitted:m,...b}=h;return(0,u.jsx)(i.mE,{value:A,children:(0,u.jsx)(i.X,{value:g,children:(0,u.jsx)(x,{value:n,children:(0,u.jsx)(s.m.div,{className:(0,d.cx)("chakra-tabs",r),ref:t,...b,__css:n.root,children:a})})})})});h.displayName="Tabs"}},function(e){e.O(0,[2196,4186,1445,1111,5999,2546,1121,2512,5587,9774,2888,179],function(){return e(e.s=96572)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.