1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30665],{4260:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(67294),a=r(3436);(0,r(66589).Z)(".tc_SLdsS{font-family:var(--font-heading);font-size:16px;font-weight:700;line-height:20px}","style-055a1e89-16fe-4761-b17e-217798e275a5");let i=({children:e,className:t,required:r,...i})=>{let s=(0,a.Z)("tc_SLdsS",t);return n.createElement("label",{className:s,...i},e,r&&" *")}},63942:function(e,t,r){"use strict";r.d(t,{n:function(){return u}});var n=r(67294),a=r(3436),i=r(37630),s=r(4260),o=r(82548),l=r(66589),c={"field-wrapper":"tc_iBDHR","field-input":"tc_KQWkn","field-margin":"tc_QUF8e","field-helper-text":"tc_-aZv1","field-error":"tc_kBJic","field-autogrow":"tc_QwyL2"};(0,l.Z)('.tc_iBDHR{display:flex;flex-direction:column}.tc_KQWkn{margin-bottom:var(--spacing-1);margin-top:var(--spacing-1)}.tc_QUF8e{margin-bottom:var(--spacing-4)}.tc_-aZv1{color:var(--color-font-300);margin-bottom:var(--spacing-1)}.tc_kBJic{align-items:center;color:var(--color-error-300);display:flex;font-size:12px;gap:var(--spacing-1);margin-bottom:var(--spacing-4)}.tc_QwyL2{display:grid}.tc_QwyL2:after{content:attr(data-replicated-value) " ";visibility:hidden;white-space:pre-wrap}.tc_QwyL2>textarea{overflow:hidden;resize:none}.tc_QwyL2:after,.tc_QwyL2>textarea{border-radius:3px;font:inherit;grid-area:1/1/2/2;padding:.5rem}',"style-3e377684-6129-4ffa-9b1a-abbaf57185fa");var d=r(4760);let u=(0,n.forwardRef)(({autoComplete:e,autoFocus:t,autoGrow:r,className:l,components:u,componentsProps:p,"data-testid":m="textField",defaultValue:h,disabled:v,endAdornment:g,error:f,errorText:x,helperText:b,id:j,label:_,multiline:w,name:y,onBlur:C,onChange:N,onClick:E,onFocus:k,onKeyDown:R,onKeyUp:S,placeholder:Z,readOnly:L=!1,required:z=!1,resize:D=!0,startAdornment:K,type:F="text",value:A},P)=>{let T=!!w&&!!r,B=(0,a.Z)(c["field-input"],l,{[c["field-margin"]]:!f,[c["field-autogrow"]]:!!T});return n.createElement("div",{className:c["field-wrapper"],"data-testid":m},_&&n.createElement(s.A,{"data-testid":`${m}-label`,htmlFor:j,required:z},_),b&&n.createElement(o.Z,{className:c["field-helper-text"],component:"div","data-testid":`${m}
1-helper-text`},b),n.createElement(i.I,{autoComplete:e,autoFocus:t,className:B,components:u,componentsProps:p,"data-replicated-value":T?A:void 0,"data-testid":`${m}-input`,defaultValue:h,disabled:v,endAdornment:g,error:f,id:j,multiline:w,name:y,onBlur:C,onChange:N,onClick:E,onFocus:k,onKeyDown:R,onKeyUp:S,placeholder:Z,readOnly:L,ref:P,required:z,resize:D,startAdornment:K,type:F,value:A}),x&&n.createElement(o.Z,{className:c["field-error"],component:"div","data-testid":`${m}-error-text`},n.createElement(d.Z,{size:"small"})," ",x))})},52790:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),a=r(96266);let i=n.memo(e=>n.createElement(a.Z,e,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"download-line_svg__tds-svg-icon--fill",viewBox:"0 0 24 24",...e},n.createElement("path",{d:"M3 19h18v2H3v-2Zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172Z"}))))},4760:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),a=r(96266);let i=n.memo(e=>n.createElement(a.Z,e,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"info-fill_svg__tds-svg-icon--fill",viewBox:"0 0 24 24",...e},n.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm-1-11v6h2v-6h-2Zm0-4v2h2V7h-2Z"}))))},46783:function(e,t,r){"use strict";r.d(t,{h:function(){return p}});var n=r(67294),a=r(3436),i=r(94680),s=r(55589),o=r(49849),l=r(45216),c=r(85869);let d=()=>(0,n.useContext)(c.p);(0,r(66589).Z)(".tc_stAnE{align-items:center;background-color:var(--color-neutral-main);border:var(--spacing-hairline) solid var(--color-neutral-dark);border-radius:5px;color:var(--color-font-300);cursor:pointer;display:flex;font-size:15px;font-weight:700;gap:var(--spacing-2);justify-content:space-between;line-height:18px;padding:var(--spacing-3) var(--spacing-4);transition:all .3s ease-out}.tc_stAnE:hover:not(.tc_5c57K){background-color:var(--color-neutral-medium);border:var(--spacing-hairline) solid var(--color-neutral-medium)}.tc_-QCqo{background-color:var(--color-neutral-main);border:var(--spacing-hairline) solid var(--color-font-300)}.tc_FqKzg{background:var(--color-neutral-main);padding:0 var(--spacing-2)}.tc_FqKzg:hover{background:var(--color-neutral-light)}.tc_afqRI{display:flex}.tc_yCRaO{background:var(--color-neutral-light)}.tc_JJfhd{color:var(--color-font-500);pointer-events:none}.tc_tjC7t{background:var(--color-neutral-light);background-color:var(--color-neutral-light)}","style-50f31a68-a0d3-4edb-a709-2ea4b31af0ff");let u=({dataTestId:e,onChange:t,options:r,value:i})=>{let s=d(),o=e=>{t(e),null==s||s.onClose()};return n.createElement(n.Fragment,null,r.map(t=>n.createElement(l.s,{className:(0,a.Z)("tc_FqKzg",{tc_yCRaO:i===t.value}),"data-testid":`${e}-item-${t.value}`,key:t.value,onClick:()=>o(t.value)},t.label)))},p=({autoCloseOnMouseLeave:e=!1,"data-testid":t="dropdown-menu",label:r,onChange:l,options:c=[],value:d})=>n.createElement(o.v2,{Anchor:i.z,anchorProps:e=>({children:r,className:(0,a.Z)("tc_stAnE",{tc_tjC7t:e}),endIcon:n.createElement(s.Z,{"data-testid":`${t}-endIcon`,key:"endIcon",rotate:e?270:90,size:"small"})}),autoCloseOnMouseLeave:e,"data-testid":t},n.createElement(u,{dataTestId:t,onChange:l,options:c,value:d}))},82927:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/services/business-report",function(){return r(2909)}])},89568:function(e,t,r){"use strict";r.d(t,{W:function(){return c}});var n=r(85893),a=r(93967),i=r.n(a),s=r(67294),o=r(26044),l=r.n(o);let c=s.forwardRef(function(e,t){let{children:r,"data-testid":a="container",className:s,maxWidth:o,fullWidth:c,style:d,...u}=e,p=i()(l().container,{[l().xs]:"xs"===o,[l().sm]:"sm"===o,[l().md]:"md"===o,[l().lg]:"lg"===o,[l().xl]:"xl"===o,[l().xxl]:"xxl"===o},s);return(0,n.jsx)("div",{ref:t,"data-testid":a,className:p,style:"string"==typeof o?{...d}:c?{maxWidth:"100%",...d}:o?{maxWidth:"".concat(o,"px"),...d}:{...d},...u,children:r})})},32517:function(e,t,r){"use strict";r.d(t,{I:function(){return l}});var n=r(85893),a=r(93967),i=r.n(a),s=r(49451),o=r.n(s);let l=e=>{let{children:t,icon:r,action:a,fullWidth:s,fullHeight:l,"data-testid":c}=e;return(0,n.jsxs)("div",{className:i()(o().root,{[o().fullWidth]:s,[o().fullHeight]:l}),"data-testid":c,children:[!!r&&!!a&&(0,n.jsxs)("div",{className:o().header,children:[r,a]}),(0,n.jsx)("div",{className:o().body,children:t})]})}},65686:function(e,t,r){"use strict";r.d(t,{O:function(){return m}});var n=r(85893),a=r(41664),i=r.n(a),s=r(36220),o=r(55768),l=r(67294),c=r(93967),d=r.n(c),u=r(33735),p=r.n(u);let m=(0,l.memo)(function(e){let{previousPage:t,currentPageTitle:r,currentPathClassName:a}=e;return(0,n.jsxs)("div",{className:p().breadcrumb,children:[(0,n.jsx)(i(),{href:t.path,className:p().link,
1children:(0,n.jsx)(s.r,{color:"inherit",children:t.title})}),(0,n.jsx)(o.Z,{className:d()(p().arrow,a)}),(0,n.jsx)(s.r,{variant:"body",className:d()(p().title,a),children:r})]})})},18139:function(e,t,r){"use strict";r.d(t,{e:function(){return m}});var n=r(85893),a=r(55768),i=r(36220),s=r(84545),o=r(93967),l=r.n(o),c=r(41664),d=r.n(c),u=r(59035),p=r.n(u);let m=e=>{let{path:t,className:r,label:o}=e;return(0,n.jsxs)(d(),{className:l()(p().back,r),href:t,children:[(0,n.jsx)(a.Z,{size:"large",rotate:180}),(0,n.jsx)(i.r,{variant:"h6",color:"inherit",children:null!=o?o:(0,n.jsx)(s.cC,{i18nKey:"dashboard.components.back",children:"indietro"})})]})}},2909:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return M},default:function(){return W}});var n=r(85893),a=r(57723),i=r(67294),s=r(25675),o=r.n(s),l=r(36220),c=r(84545),d=r(89568),u=r(91992),p=r(28338),m=r(55589),h=r(94680),v=r(52790),g=r(32517),f=r(82548),x=r(46783),b=r(86225),j=r(10786),_=r(90400),w=r.n(_);let y=e=>{let{label:t}=e;return(0,n.jsx)("div",{className:w()["dashboard-language-selection-option"],children:(0,n.jsx)(f.Z,{children:t})})},C=e=>{let{initialValue:t,onChange:r}=e,[a,s]=(0,i.useState)(null!=t?t:void 0),{t:o}=(0,c.$G)(),l=(0,j.b)(),d=(0,i.useRef)();d.current=r;let u=(0,i.useMemo)(()=>b.map(e=>({value:e,label:(0,n.jsx)(y,{label:o("common.locale.".concat(e))})})),[o]),p=(0,i.useRef)();(0,i.useEffect)(()=>{if(a&&a!==p.current){var e;null===(e=d.current)||void 0===e||e.call(d,a),p.current=a}},[a]);let m=(0,i.useMemo)(()=>{var e;return null!==(e=b.find(e=>e===a))&&void 0!==e?e:l},[l,a]);return(0,n.jsxs)("div",{className:w()["language-selection"],children:[(0,n.jsx)(f.Z,{variant:"body",gutterBottom:!0,children:(0,n.jsx)(c.cC,{i18nKey:"dashboard.languageSelection.label",children:"Scegli la lingua"})}),(0,n.jsx)(x.h,{label:o("common.locale.".concat(m)),onChange:s,options:u,value:a,"data-testid":"user-language-selection"})]})};var N=r(63942),E=r(9034),k=r(93967),R=r.n(k),S=r(81826),Z=r.n(S),L=e=>{let{label:t,name:r,autoComplete:a,id:s,disabled:o,error:l,errorText:c,required:d,placeholder:u,initialInputValue:p,"data-testid":m,options:h,endAdornment:v,onChange:g,onInputValueChange:x,selectedItem:b}=e,j=(0,i.useRef)(null),_=(0,i.useRef)(null),w=(0,i.useRef)(null),[y,C]=(0,i.useState)(p||""),[k,S]=(0,i.useState)(!1),[L,z]=(0,i.useState)(-1);(0,i.useEffect)(()=>{b&&C(b.label)},[b]);let D=(0,i.useMemo)(()=>h?y?h.filter(e=>e.label.toLowerCase().includes(y.toLowerCase())):h:[],[h,y]),K=e=>{C(e.label),null==x||x(e.label),null==g||g(e),S(!1),z(-1)};return(0,i.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&w.current&&!w.current.contains(e.target)&&S(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,n.jsxs)("div",{ref:_,className:Z().textFieldContainer,children:[(0,n.jsx)(N.n,{value:y,onChange:e=>{let{value:t}=e.target;C(t),null==x||x(t),S(!0),z(0)},onFocus:()=>S(!0),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),z(e=>Math.min(e+1,D.length-1))):"ArrowUp"===e.key?(e.preventDefault(),z(e=>Math.max(e-1,0))):"Enter"===e.key?(e.preventDefault(),L>=0&&L<D.length&&K(D[L])):"Escape"===e.key&&S(!1)},label:t,name:r,autoComplete:a,id:s,disabled:o,error:l,endAdornment:v,errorText:c,required:d,placeholder:u,"data-testid":m,ref:j,t
1ype:"text"}),(0,n.jsx)("div",{ref:w,className:Z().suggestionListContainer,children:(0,n.jsx)(E.r,{open:k,anchorEl:j.current,container:w.current,className:Z().suggestionListPopper,keepMounted:!0,children:(0,n.jsx)("ul",{className:Z().suggestionList,children:k&&D.map((e,t)=>(0,n.jsx)("li",{role:"option","aria-selected":(null==b?void 0:b.value)===e.value,onClick:()=>K(e),onKeyDown:t=>{"Enter"===t.key&&K(e)},className:R()({[Z().selected]:(null==b?void 0:b.value)===e.value,[Z().highlighted]:L===t}),children:(0,n.jsx)(f.Z,{variant:"body",component:"span",children:e.label})},e.value))})})})]})},z=r(90923),D=r(77517),K=r.n(D);let F=e=>{var t;let{cardTitle:r,cardSubtitle:a,onLanguageChanged:i,forests:s,onForestSelected:d,withForestSelection:u=!1,onDownloadClicked:p,downloadEnabled:g,cardImage:f}=e,{t:x}=(0,c.$G)();return(0,n.jsx)("div",{className:K().businessReportCardRoot,children:(0,n.jsxs)("div",{className:K().businessReportCard,children:[(0,n.jsx)("div",{className:K().reportIconContainer,children:(0,n.jsx)(o(),{width:442,height:414,className:K().reportIcon,src:f,alt:""})}),(0,n.jsxs)("div",{className:K().reportDescription,children:[(0,n.jsx)(l.r,{variant:"h5",children:r}),(0,n.jsx)("div",{className:K().reportDescriptionContent,children:(0,n.jsx)(l.r,{color:"inherit",variant:"body",children:a})}),(0,n.jsxs)("div",{className:K().reportDescriptionActions,children:[(0,n.jsxs)("div",{className:K().reportDescriptionActionsDropdowns,children:[(0,n.jsx)(C,{initialValue:"it",onChange:e=>{i&&i(e)}}),u&&(0,n.jsx)("div",{className:K().forestSelection,children:(0,n.jsx)(z.q,{children:(0,n.jsx)(L,{label:x("dashboard.b2boverview.businessReport.download.selectForest.select_forest","Seleziona una foresta"),placeholder:x("dashboard.b2boverview.businessReport.download.selectForest.search_forest","Cerca una foresta.."),onChange:e=>{e&&e.value&&d&&d(e.value.toString())},endAdornment:(0,n.jsx)(m.Z,{rotate:90}),options:null!==(t=null==s?void 0:s.filter(e=>!!e).map(e=>({value:e.slug,label:e.name})))&&void 0!==t?t:[]})})})]}),(0,n.jsx)(h.z,{disabled:!g,size:"big",startIcon:(0,n.jsx)(v.Z,{}),onClick:p,"data-testid":"business-report-card-discover-btn-action",classNameExtended:K().actionButton,children:(0,n.jsx)(c.cC,{i18nKey:"dashboard.b2boverview.businessReport.discover.button",children:"Genera e scarica"})})]})]})]})})},A=e=>{let{onLanguageChanged:t,cardTitle:r,cardSubtitle:a,onForestSelected:i,withForestSelection:s=!1,forests:o,onDownloadClicked:l,cardImage:c,downloadEnabled:d=!0}=e;return(0,n.jsx)("div",{className:K().bordered,children:(0,n.jsx)(g.I,{"data-testid":"business-report-download-card",children:(0,n.jsx)("div",{className:K().root,children:(0,n.jsx)(F,{onLanguageChanged:t,onForestSelected:i,cardTitle:r,cardSubtitle:a,withForestSelection:s,forests:o,onDownloadClicked:l,downloadEnabled:d,cardImage:c})})})})};var P=r(65686),T=r(18139),B={src:"/_next/static/media/business_report_forest_image.1d229d71.webp"},I=r(60569),O=r.n(I);let Q=e=>{let{company:t,forests:r}=e,a=(0,p.d)(),[s,m]=(0,i.useState)(),h=(0,j.b)();return(0,n.jsx)("div",{className:O().root,children:(0,n.jsx)(d.W,{maxWidth:"lg",children:(0,n.jsxs)("div",{className:O().wrapper,children:[(0,n.jsxs)("div",{className:O().heading,children:[(0,n.jsx)("div",{children:a?(0,n.jsx)(T.e,{path:u.PATHS.dashboard.services.index}):(0,n.jsx)(P.O,{currentPathClassName:O().breadcrumbs,previousPage:{title:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.previousPageTitle",children:"Servizi attivi"}),path:u.PATHS.dashboard.services.index},currentPageTitle:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.currentPageTitle",children:"Report d'impatto"})})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:O().headerContent,children:[(0,n.jsx)("div",{className:O().imageContainer,children:(0,n.jsx)(o(),{src:"/_next/static/media/look_at_report.8a7b91e5.webp",width:80,height:80,alt:""})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(l.r,{gutterBottom:!0,variant:"h3",children:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.title",children:"Report d'impatto"})}),!a&&(0,n.jsx)(l.r,{children:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.desktopSubtitle",children:"Scegli se generare il report completo per una specifica foresta o per le iniziative aziendali, e scopri i benefici ambientali, sociali ed economici che hai generato grazie alle tue iniziative con Treedom."})})]})]}),a&&(0,n.jsx)(l.r,{children:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.mobileSubtitle",children:"Lorem ipsum dolor sit amet consectetur. Est pellentesque fermentum pharetra amet turpis."})})]})]}),(0,n.jsxs)("div",{className:O().downloads,children:[(0,n.jsx)(A,{cardImage:"/_next/static/media/business_report_image.146890b6.webp",cardTitle:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.download.company.title",children:"Scarica Report completo"}),cardSubtitle:(0,n.jsxs)(c.cC,{i18nKey:"dashboard.businessReport.download.company.subtitle",children:["Ottieni una panoramica dettagliata di"," ",(0,n.jsx)("strong",{children:"tutte le iniziative aziendali"})," intraprese con Treedom, inclusi dati su tutte le foreste e progetti."]}),onDownloadClicked:()=>{window.open("/prints/".concat(h,"/report/company/").concat(t),"_blank")}}),r&&r.length>0&&(0,n.jsx)(A,{cardImage:B.src,cardTitle:(0,n.jsx)(c.cC,{i18nKey:"dashboard.businessReport.download.event.title",children:"Scarica Report per evento"}),cardSubtitle:(0,n.jsxs)(c.cC,{i18nKey:"dashboard.businessReport.download.event.subtitle",children:["Ottieni informazioni specifiche su un"," ",(0,n.jsx)("strong",{children:"singolo evento o progetto realizzato con Treedom."})," ","Scegli la foresta desiderata dal menu a tendina."]}),withForestSelection:!0,forests:r,onForestSelected:e=>{m(e)},onDownloadClicked:()=>{window.open("/prints/".concat(h,"/report/forest/").concat(s),"_blank")},downloadEnabled:!!s})]})]})})})},q=e=>{let{forests:t,userData:{profile:r}}=e;return(0,n.jsx)(Q,{company:r.slug,forests:t})};q.getLayout=(e,t)=>{let{layoutData:r}=t;return(0,n.jsx)(a.c,{user:r.me,children:e})};var M=!0,W=q},26044:function(e){e.exports={container:"_3854Z3",xs:"_5mSb7",sm:"oRQe7O",md:"LjgdI1",lg:"slPI8m",xl:"iPumsY",xxl:"NOlV6j"}},81826:function(e){e.exports={suggestionListContainer:"qy0dks",suggestionListPopper:"T9G1bj",suggestionList:"hsou6F",selected:"Dv_pNa",highlighted:"_8NYKo1",textFieldContainer:"C_Tizr"}},49451:function(e){e.exports={root:"dfOJSV",fullHeight:"EigRlf",fullWidth:"cQyTBr",header:"HCBOME",body:"aYsRxc"}},90400:function(e){e.exports={"language-selection":"_8G4TsY","dashboard-language-selection-option":"LxTjBR"}},77517:function(e){e.exports={cardActionButton:"_6I0mis",cardActionButtonLabel:"_3P0YPP",bordered:"Y2E7BF",root:"Zr1SRK",businessReportCardRoot:"Y666zM",businessReportCard:"LdjNm3",reportIconContainer:"_2l_1L0",reportIcon:"_6_cfQg",actionButton:"_wfU7x",reportDescription:"WCNS_s",reportDescriptionContent:"O2Nrjl",reportDescriptionTitle:"Kn0io_",reportDescriptionActions:"NS9hbB",reportDescriptionActionsDropdowns:"_3hG77Q",forestSelection:"y1v1da",info:"_8fFhd0"}},60569:function(e){e.exports={root:"_0boyBM",wrapper:"_8tn8a5",breadcrumbs:"drgBZS",heading:"eJLEpY",headerContent:"ml0h4A",imageContainer:"n6Ir1F",downloads:"h40uwe"}},33735:function(e){e.exports={breadcrumb:"cbmq9l",link:"LRrzby"}},59035:function(e){e.exports={back:"YPPOt0"}}},function(e){e.O(0,[25675,7969,76647,9034,75309,37630,11129,98669,57723,92888,49774,40179],function(){return e(e.s=82927)}),_N_E=e.O()}]); 2//# sourceMappingURL=business-report-c47bc0f244d96929.js.map
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.