PageSourceSearch

https://servizi.comunemalcesine.it/public/build/bundle.161.e7c33ae7.js

js comunemalcesine.it collected 2026-10-02 10:10:11 UTC 5,137 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfe_react=self.webpackChunkfe_react||[]).push([[161],{161:(e,t,i)=>{i.r(t),i.d(t,{default:()=>E});var a=i(7890),n=i(343),l=i(8855),o=i(6673),s=i.n(o),c=i(7369),r=i(5253),d=i(5467),u=i(5037),m=i(9814),h=i(3513),p=i(2914),g=i(8340);class E extends n.Component{constructor(e){super(e),(0,a.A)(this,"context",void 0),(0,a.A)(this,"guida",void 0),(0,a.A)(this,"calculateScrollDistance",(()=>{const e=window.pageYOffset,t=window.innerHeight,i=this.getDocHeight()-t,a=Math.floor(e/i*100);this.setState({scrollPostion:a})})),(0,a.A)(this,"getDocHeight",(()=>Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight))),this.state={scene:null,flash:null,open:!0,scrollPostion:0},this.guida}async getDocument(e){const t=await(0,r.Pr)(this.props.apiClient,"/portal/scheda_documento/"+e);if(null===t||"ok"!==t.esito)throw new Error("Network response ko");{const e=document.createElement("a");e.download=t.dati.filename,e.href="data:image/gif;base64,"+t.dati.filecontent64,e.click()}}formatData(e){let t=e.split("/"),i=parseInt(t[0],10),a=parseInt(t[1],10);return parseInt(t[2],10)+"/"+a+"/"+i}async componentDidMount(){var e;console.log("ESEGUO componentDidMount GuidaTecnica"),console.log("nome dell'ente:"),console.log(null===(e=this.context)||void 0===e?void 0:e.confEnte.nome),window.addEventListener("scroll",this.calculateScrollDistance);let t=window.location.toString(),i=t.split("/").pop();const a=await(0,r.Pr)(this.props.apiClient,t,this.props.updateLoader,this.props.setContext);var n;null!==a&&a.esito&&(console.log(a),this.props.setContext({appCorrente:a.dati.app_nome,tipologiaServizio:a.dati.tipologia_servizio}),this.props.updateBreadcrumb([{label:"Guide Tecniche",url:"/portal/guide_tecniche"},{label:null!=a.dati.guide_tecniche[0]?a.dati.guide_tecniche[0].titolo:"Guida",url:"/portal/guide_tecniche/"+i}]),null!==(n=a.dati)&&void 0!==n&&n.url_redirect?(this.props.updateLoader(!0),this.setState({url_servizio:"/portal/"+(0,r.Mm)(a.dati.url_redirect),flash:a.flash})):this.setState({scene:a.dati,flash:a.flash}),window.scrollTo(0,0))}render(){return null!=this.state.url_servizio?n.createElement(g.C5,{to:this.state.url_servizio}):(null!=this.state.scene&&(this.guida=this.state.scene.guide_tecniche[0]),n.createElement("div",null,n.createElement(d.A,{className:"mb-5 d-flex justify-content-center"},n.createElement(u.A,{lg:"9"},n.createElement("div",null,null!=this.guida&&n.createElement("div",null,n.createElement("h1",{className:"title-xxxlarge deda-h1"},this.guida.titolo),n.createElement("p",{className:"my-4"},this.guida.descrizione))))),n.createElement(d.A,{className:"border-top row-column-border row-column-menu-left"},n.createElement(u.A,{lg:"3",className:"h-100 sticky-lg-top"},n.createElement(m.nD3,null,n.createElement(m.uae,{onToggle:()=>this.setState({open:!this.state.open}),active:this.state.open},"Indice della Pagina"),n.createElement(m.kej,{value:this.state.scrollPostion,"aria-label":"progress bar"}),n.createElement(m.jRA,{active:this.state.open},null!=this.guida&&n.createElement(m.soy,{vertical:!0},null!=this.guida.altre_info&&n.createElement(h.A,{className:"p-1"}," ",n.createElement(p.A,{href:"#ulteriori-informazioni"},"Contenuto scheda")),0!=this.guida.servizi.length&&1==this.guida.attiva&&n.createElement(h.A,{className:"p-1"}," ",n.createElement(p.A,{href:"#accedi-ai-servizi"},"Accedi ai servizi")))))),n.createElement(u.A,{lg:"9"},null!=this.guida&&n.createElement("div",null,n.createElement("div",{id:"ulteriori-informazioni",className:"anchor"}),null!=this.guida.altre_info&&n.createElement("article",null,n.createElement("h2",{className:"title-xxlarge deda-h2"},"Contenuto scheda"),n.createElement(m.PqE,null,n.createElement(m.FhH,null,n.createElement(m.Int,{icon:"it-info-circle",padding:!1,"aria-hidden":!0})),n.createElement(m.wz6,null,n.createElement("p",null,(0,l.Ay)(s().sanitize(this.guida.altre_info,{USE_PROFILES:{html:!0}}))),this.guida.schede_documento.filter((e=>"altre_info"==e.sezione.id)).map(((e,t)=>n.createElement("a",{href:"#",key:"documento_altre_info"+t,className:"icon-left d-inline-block"},n.createElement("span",null,n.createElement(m.Int,{icon:"it-clip"}),n.createElement("span",{onClick:()=>this.getDocument(e.id)},e.descrizione)))))))),n.createElement("div",{id:"accedi-ai-servizi",className:"anchor"}),0!=this.guida.servizi.length&&1==this.guida.attiva&&n.createElement("article",{className:"p-4 mt-5 neutral-2-bg"},n.createElement("h2",{className:"title-xxlarge deda-h2"},"Accedi ai servizi "),this.guida.servizi.map(((e,t)=>n.createElement("div",{key:"servizi"+t},null!=e.tipo_button&&"appuntamento"!=e.tipo_button.id&&n.createElement(m.$nd,{className:"btn-primary fw-bold m-3",href:e.link},e.descrizione)))),this.guida.servizi.map(((e,t)=>n.createElement("div",{key:"servizi-appuntamento"+t},null!=e.tipo_button&&"appuntamento"==e.tipo_button.id&&n.createElement(m.$nd,{className:"btn-outline-primary bg-white m-3",href:e.link},e.descrizione))))))))))}}(0,a.A)(E,"contextType",c.rV)}}]);

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.