PageSourceSearch

https://www.ui.torino.it/_next/static/chunks/7928.990f3c41dca0718e.js

js ui.torino.it collected 2026-10-02 04:19:15 UTC 8,636 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7928],{2043:(e,t,l)=>{l.d(t,{a:()=>r});var n=l(6029);let r=(0,l(55729).forwardRef)((e,t)=>(0,n.jsx)("div",{ref:t,style:{width:"100%",height:"100%"}}))},12731:(e,t,l)=>{l.d(t,{Oo:()=>a,q1:()=>T});var n=l(55729),r=l(96643);let a=(e,t,l)=>{(0,n.useLayoutEffect)(()=>{if(!e.current||!t.current.length)return;t.current.forEach((e,t)=>{let n=l[t];n&&n.data&&e.data.setAll(n.data)});let n=e.current;if(n&&n.xAxes.length>0){let e=n.xAxes.getIndex(0);if(e){let t=(0,r.Kj)(l);e.data.setAll(t.map(e=>({label:e})));let n=e.get("renderer");t.length>8?n.labels.template.setAll({rotation:-45,fontSize:10}):n.labels.template.setAll({rotation:0,fontSize:12})}}},[l,e,t])},T=(e,t,l)=>{(0,n.useLayoutEffect)(()=>{if(!e.current||!t)return;let n=t;if("center"===l){let e=t.split(" "),l=[],r="";e.forEach(e=>{(r+e).length>120&&r?(l.push(r.trim()),r=e):r+=(r?" ":"")+e}),r&&l.push(r.trim()),n=l.join("\n")}else{let e=t.split(" "),l=[],r="";e.forEach(e=>{(r+e).length>60&&r?(l.push(r.trim()),r=e):r+=(r?" ":"")+e}),r&&l.push(r.trim()),n=l.join("\n")}e.current.set("text",n)},[t,l,e])}},37928:(e,t,l)=>{l.r(t),l.d(t,{PieChart:()=>c});var n=l(6029),r=l(93643),a=l(68694),T=l(2512),I=l(92304),A=l(86479),E=l(78873),i=l(97811),s=l(55729),o=l(2043),u=l(99518),O=l(33810),L=l(12731),S=l(96643);let c=e=>{let{data:t,legendPosition:l=O.PA.BOTTOM,showLegend:c=!0,colors:D,title:N,titleAlign:d=O.Yw.LEFT,titleFontSize:_=u.$.FONT_SIZES.TITLE,hideTicks:P=!1,showInsideValues:f=!1,insideValueFormat:h="percent",disableAnimation:G=!1}=e,R=(0,s.useRef)(null),p=(0,s.useRef)(null),y=(0,s.useRef)(null),C=(0,s.useRef)(null),g=(0,s.useRef)(null),M=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{let e,n;if(!R.current||!(null==t?void 0:t.length))return;let s=(0,S.Hr)(R.current);g.current=s;let o=(0,S.cu)(l),L=o?s.container.children.push(r.m.new(s,{width:a.Q2,height:a.Q2,layout:s.horizontalLayout})):null,x=(null!=L?L:s.container).children.push(E.r.new(s,{layout:s.verticalLayout,width:a.Q2,height:a.Q2}));if(p.current=x,c?M.current=e=(0,S.S0)(s):M.current=null,N){let e=(0,S.dC)(s,N,d,_);x.children.unshift(e),C.current=e}let m=x.series.push(i.w.new(s,{categoryField:"label",valueField:"value",legendLabelText:"{category}",legendValueText:""}));y.current=m,(null==D?void 0:D.length)&&m.set("colors",T.e.new(s,{colors:D.map(e=>I.yW(e))})),m.slices.template.setAll({stroke:u.$.COLORS.WHITE,strokeWidth:u.$.STROKE_WIDTHS.GRID,cursorOverStyle:"pointer"}),f?(m.set("alignLabels",!1),m.labels.template.setAll({inside:!0,radius:u.$.SIZES.AXIS_LABEL_RADIUS,text:"value"===h?"{value}":"label-value"===h?"{category}: {value}":"{valuePercentTotal.formatNumber('0.00')}%",textType:"circular",fontSize:u.$.FONT_SIZES.LABEL,fontWeight:u.$.FONT_WEIGHTS.SEMI_BOLD,fill:u.$.COLORS.WHITE,centerX:a.yP,centerY:a.yP}),m.ticks.template.setAll({forceHidden:!0})):(m.labels.template.setAll({textType:"adjusted",text:"{category}: {valuePercentTotal.formatNumber('0.00')}%",fontSize:u.$.FONT_SIZES.LABEL,fontWeight:u.$.FONT_WEIGHTS.MEDIUM,fill:u.$.COLORS.TEXT_PRIMARY,textAlign:"center"}),m.ticks.template.setAll({forceHidden:P}),P&&m.labels.template.set("forceHidden",!0));let W=A.m.new(s,{labelText:"{category}: {value}",pointerOrientation:"horizontal"});if(W.label.setAll({fontSize:u.$.FONT_SIZES.TOOLTIP,fill:u.$.COLORS.TOOLTIP_TEXT,fontWeight:u.$.FONT_WEIGHTS.MEDIUM}),m.set("tooltip",W),m.data.setAll(t),e)if(o){let t=r.m.new(s,{height:a.Q2,layout:s.verticalLayout});l===O.PA.LEFT?(L.children.insertIndex(0,t),e.setAll({paddingRight:u.$.SPACING.LEGEND_PADDING,x:0,centerX:0,layout:s.verticalLayout,y:a.yP,centerY:a.yP})):(L.children.push(t),e.setAll({paddingLeft:u.$.SPACING.LEGEND_PADDING,x:a.Q2,centerX:a.Q2,layout:s.verticalLayout,y:a.yP,centerY:a.yP})),t.children.push(e);let T=()=>{let l=Math.round(e.width()+u.$.SPACING.LEGEND_AUTOSIZE_PADDING);l>0&&t.set("width",l)};n=e.events.on("boundschanged",T),T()}else l===O.PA.TOP?(e.setAll({x:a.yP,centerX:a.yP,paddingTop:N?u.$.SPACING.PADDING_TOP/2:0,paddingBottom:u.$.SPACING.PADDING_BOTTOM}),x.children.unshift(e)):(e.setAll({x:a.yP,centerX:a.yP,paddingTop:u.$.SPACING.PADDING_TOP}),x.children.push(e));let $=m.events.on("datavalidated",()=>{M.current&&(M.current.labels.template.setAll({fontSize:u.$.FONT_SIZES.LEGEND,fill:u.$.COLORS.TEXT_PRIMARY,fontWeight:u.$.FONT_WEIGHTS.MEDIUM,text:"{category}"}),M.current.data.setAll(m.dataItems))});return G||m.appear(u.$.ANIMATION.DURATION,u.$.ANIMATION.DELAY),()=>{$.dispose(),null==n||n.dispose(),s.dispose()}},[t,l,c,D,d,_,P,f,h,N]),(0,s.useLayoutEffect)(()=>{y.current&&t&&(y.current.data.setAll(t),M.current&&M.current.data.setAll(y.current.dataItems))},[t]),(0,L.q1)(C,N,d),(0,n.jsx)(o.a,{ref:R})}},96643:(e,t,l)=>{l.d(t,{EK:()=>R,H0:()=>f,Hr:()=>d,Kj:()=>S,MY:()=>
1_,S0:()=>P,cu:()=>N,dC:()=>G,tb:()=>c,zq:()=>h});var n=l(68694),r=l(49357),a=l(92464),T=l(93643),I=l(57721),A=l(92304),E=l(24838),i=l(47863),s=l(39457),o=l(31580),u=l(88251),O=l(99518),L=l(33810);let S=e=>{let t=new Set;return e.forEach(e=>e.data.forEach(e=>t.add(e.label))),Array.from(t)},c=e=>{switch(e){case L.Vv.CURVED:return s.A.alpha(.5);case L.Vv.STEPPED:return o.Ay;default:return u.A}},D=e=>e===L.Yw.CENTER?{x:n.yP,centerX:n.yP}:e===L.Yw.RIGHT?{x:n.Q2,centerX:n.Q2}:{x:0,centerX:0},N=e=>e===L.PA.LEFT||e===L.PA.RIGHT,d=e=>{let t=r.b.new(e);return t.autoResize=!0,t},_=(e,t)=>{let l=t.children.push(E.C.new(e,{panX:!1,panY:!1,wheelX:"none",wheelY:"none",layout:e.verticalLayout,width:n.Q2})),r=l.set("cursor",i.A.new(e,{}));return r.lineX.set("visible",!1),r.lineY.set("visible",!1),l},P=e=>{let t=a.s.new(e,{useDefaultMarker:!0});return t.labels.template.setAll({fontSize:O.$.FONT_SIZES.LEGEND,fill:O.$.COLORS.TEXT_PRIMARY,fontWeight:O.$.FONT_WEIGHTS.MEDIUM}),t},f=(e,t,l,r)=>{let a=N(t);return a||(t===L.PA.TOP?("topAxesContainer"in l&&(l.topAxesContainer.setAll({layout:l.root.verticalLayout}),l.topAxesContainer.children.push(e)),e.setAll({x:n.yP,centerX:n.yP,paddingTop:r?O.$.SPACING.PADDING_TOP/2:0,paddingBottom:O.$.SPACING.PADDING_BOTTOM})):("bottomAxesContainer"in l&&(l.bottomAxesContainer.setAll({layout:l.root.verticalLayout}),l.bottomAxesContainer.children.push(e)),e.setAll({x:n.yP,centerX:n.yP,paddingTop:O.$.SPACING.PADDING_TOP}))),{isLegendOnSide:a}},h=(e,t,l,r)=>{let a=T.m.new(e,{height:n.Q2,layout:e.verticalLayout});l===L.PA.LEFT?(r.children.insertIndex(0,a),t.setAll({paddingRight:O.$.SPACING.LEGEND_PADDING,x:0,centerX:0})):(r.children.push(a),t.setAll({paddingLeft:O.$.SPACING.LEGEND_PADDING,x:n.Q2,centerX:n.Q2}));let I=a.children.push(T.m.new(e,{width:n.Q2,height:n.Q2}));t.setAll({layout:e.verticalLayout,y:n.yP,centerY:n.yP}),I.children.push(t);let A=()=>{let e=Math.round(t.width()+8);e>0&&a.set("width",e)};return t.events.on("boundschanged",A),A(),a},G=(e,t,l,n)=>{let{x:r,centerX:a}=D(l);return I.J.new(e,{text:t,fontSize:n,fontWeight:O.$.FONT_WEIGHTS.SEMI_BOLD,fill:O.$.COLORS.TEXT_PRIMARY,x:r,centerX:a,paddingBottom:O.$.SPACING.PADDING_BOTTOM,paddingTop:O.$.SPACING.PADDING_TOP,textAlign:l})},R=(e,t,l)=>{if(t&&t[l]){let n=A.yW(t[l]);"columns"in e&&e.columns?e.columns.template.setAll({fill:n,stroke:n}):"strokes"in e&&e.strokes&&e.strokes.template.setAll({stroke:n})}}},99518:(e,t,l)=>{l.d(t,{$:()=>r});var n=l(92304);let r={FONT_SIZES:{LABEL:12,TITLE:16,LEGEND:12,AXIS_LABEL:12,TOOLTIP:12,BULLET_LABEL:10},FONT_WEIGHTS:{NORMAL:"400",MEDIUM:"500",SEMI_BOLD:"600",BOLD:"700"},COLORS:{TEXT_PRIMARY:n.yW(3355443),TEXT_SECONDARY:n.yW(6710886),GRID:n.yW(0xeeeeee),BACKGROUND:n.yW(0xffffff),TOOLTIP_BACKGROUND:n.yW(0xffffff),TOOLTIP_TEXT:n.yW(0xffffff),WHITE:n.yW(0xffffff)},OPACITY:{GRID:.8,AREA_FILL:.15,STROKE:1},STROKE_WIDTHS:{LINE:2,GRID:1,BULLET_BORDER:2},SIZES:{BULLET_RADIUS:4,LEGEND_MARKER:12,AXIS_LABEL_RADIUS:10,LABEL_MAX_WIDTH:80},SPACING:{PADDING_TOP:8,PADDING_BOTTOM:12,PADDING_LEFT:8,PADDING_RIGHT:8,LEGEND_PADDING:12,AXIS_PADDING:5,LEGEND_AUTOSIZE_PADDING:8},CHART_CONFIG:{MIN_GRID_DISTANCE:30,CELL_START_LOCATION:.1,CELL_END_LOCATION:.9,MAX_DEVIATION:0,COLUMN_WIDTH_PERCENT:90,COLUMN_HEIGHT_PERCENT:90},ANIMATION:{DURATION:400,DELAY:100},BREAKPOINTS:{MOBILE:768,TABLET:1024,DESKTOP:1200},DEFAULTS:{TITLE_FONT_SIZE:16,LEGEND_POSITION:"bottom",TITLE_ALIGN:"left",SHOW_LEGEND:!0,SHOW_BULLETS:!0,AREA_FILL:!1}};r.FONT_SIZES.AXIS_LABEL,r.COLORS.TEXT_SECONDARY,r.FONT_WEIGHTS.MEDIUM,r.SPACING.AXIS_PADDING,r.SPACING.AXIS_PADDING,r.COLORS.GRID,r.STROKE_WIDTHS.GRID,r.OPACITY.GRID,r.FONT_SIZES.LEGEND,r.COLORS.TEXT_PRIMARY,r.FONT_WEIGHTS.MEDIUM,r.FONT_SIZES.TOOLTIP,r.COLORS.TOOLTIP_TEXT,r.FONT_WEIGHTS.MEDIUM,r.STROKE_WIDTHS.LINE,r.OPACITY.AREA_FILL,r.SIZES.BULLET_RADIUS,r.STROKE_WIDTHS.BULLET_BORDER}}]);

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.