PageSourceSearch

https://www.egg.ch/compiled/index/js/preisrechner-npm.33d0a3cb0c140c299e66.js

js egg.ch collected 2026-10-02 20:50:06 UTC 8,863 bytes, 1 lines download raw bytes

1(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[1456],{86221:()=>{Chart.elements.Rectangle.prototype.draw=function(){function t(t){return v[(m+t)%4]}var r,e,a,o,l,n,i,s,d=this._chart.ctx,c=this._view,h=c.borderWidth,b=this._chart.config.options.cornerRadius;if(b<0&&(b=0),void 0===b&&(b=0),c.horizontal?(r=c.base,e=c.x,a=c.y-c.height/2,o=c.y+c.height/2,l=e>r?1:-1,n=1,i=c.borderSkipped||"left"):(r=c.x-c.width/2,e=c.x+c.width/2,a=c.y,l=1,n=(o=c.base)>a?1:-1,i=c.borderSkipped||"bottom"),h){var u=Math.min(Math.abs(r-e),Math.abs(a-o)),g=(h=h>u?u:h)/2,p=r+("left"!==i?g*l:0),f=e+("right"!==i?-g*l:0),_=a+("top"!==i?g*n:0),C=o+("bottom"!==i?-g*n:0);p!==f&&(a=_,o=C),_!==C&&(r=p,e=f)}d.beginPath(),d.fillStyle=c.backgroundColor,d.strokeStyle=c.borderColor,d.lineWidth=h;var v=[[r,o],[r,a],[e,a],[e,o]],m=["bottom","left","top","right"].indexOf(i,0);-1===m&&(m=0);var w=t(0);d.moveTo(w[0],w[1]);for(var T=1;T<4;T++)w=t(T),nextCornerId=T+1,4==nextCornerId&&(nextCornerId=0),nextCorner=t(nextCornerId),width=v[2][0]-v[1][0],height=v[0][1]-v[1][1],x=v[1][0],y=v[1][1],(s=b)>Math.abs(height)/2&&(s=Math.floor(Math.abs(height)/2)),s>Math.abs(width)/2&&(s=Math.floor(Math.abs(width)/2)),height<0?(x_tl=x,x_tr=x+width,y_tl=y+height,y_tr=y+height,x_bl=x,x_br=x+width,y_bl=y,y_br=y,d.moveTo(x_bl+s,y_bl),d.lineTo(x_br-s,y_br),d.quadraticCurveTo(x_br,y_br,x_br,y_br-s),d.lineTo(x_tr,y_tr+s),d.quadraticCurveTo(x_tr,y_tr,x_tr-s,y_tr),d.lineTo(x_tl+s,y_tl),d.quadraticCurveTo(x_tl,y_tl,x_tl,y_tl+s),d.lineTo(x_bl,y_bl-s),d.quadraticCurveTo(x_bl,y_bl,x_bl+s,y_bl)):width<0?(x_tl=x+width,x_tr=x,y_tl=y,y_tr=y,x_bl=x+width,x_br=x,y_bl=y+height,y_br=y+height,d.moveTo(x_bl+s,y_bl),d.lineTo(x_br-s,y_br),d.quadraticCurveTo(x_br,y_br,x_br,y_br-s),d.lineTo(x_tr,y_tr+s),d.quadraticCurveTo(x_tr,y_tr,x_tr-s,y_tr),d.lineTo(x_tl+s,y_tl),d.quadraticCurveTo(x_tl,y_tl,x_tl,y_tl+s),d.lineTo(x_bl,y_bl-s),d.quadraticCurveTo(x_bl,y_bl,x_bl+s,y_bl)):(d.moveTo(x+s,y),d.lineTo(x+width-s,y),d.quadraticCurveTo(x+width,y,x+width,y+s),d.lineTo(x+width,y+height-s),d.quadraticCurveTo(x+width,y+height,x+width-s,y+height),d.lineTo(x+s,y+height),d.quadraticCurveTo(x,y+height,x,y+height-s),d.lineTo(x,y+s),d.quadraticCurveTo(x,y,x+s,y));d.fill(),h&&d.stroke()}},55990:(t,r,e)=>{var a=e(19755),o=a("html").attr("lang");e(17757),e(86221);function l(t,r,e){var o=[];return a.each(t,(function(t,e){o.push({first:e,second:r[t]})})),o.sort((function(t,r){return t.first<r.first?"asc"===e?-1:1:t.first>r.first?"asc"===e?1:-1:0})),[o.map((function(t){return t.first})),o.map((function(t){return t.second}))]}function n(t,r,e){var a=[],o=t.split(" ");if(o){for(var l=0;l<o.length;l+=3)a.push(o.slice(l,l+3).join(" "));return a}return t}function i(t,r,e,a){return Chart.defaults.global.defaultFontFamily=window.getComputedStyle(t[0],null).getPropertyValue("font-family"),Chart.defaults.global.defaultFontColor=window.getComputedStyle(t[0],null).getPropertyValue("color"),new Chart(t,{type:r,data:e,options:a})}function s(t,r){var e=a('<div class="'+d(t,r)+'"></div>').appendTo("body"),o=e.css("background-color").split(",",3);e.remove();var l={};return l.color=o.join(",")+",1)",l.backgroundColor=o.join(",")+", 0.5)",l.borderColor=o.join(",")+", 0.8)",l.hoverBackgroundColor=o.join(",")+", 0.75)",l.hoverBorderColor=l.color,l.pointColor=l.color,l.pointStrokeColor="#fff",l.pointHighlightFill="#fff",l.pointHighlightStrocke=l.color,l.highlight=l.fillColor,l}function d(t,r){var e=parseInt(t.slice(-2));return isNaN(e)&&(e=parseInt(t.slice(-1))),isNaN(e)&&(e=7),"chartjs-"+t+"-color-"+(r%e).toString()}r.colorGraph=function(t,r,e,a){for(var o=0;o<t.datasets.length;o++){var l=s(r,o);0===a&&(l.borderColor=l.backgroundColor);for(var n=0;n<e.length;n++)t.datasets[o][e[n]]=l[e[n]];null!=a&&(t.datasets[o].borderWidth=a)}},r.showGraph=i,r.loadChartJs=function(){let t=null;const r=a('div[data-webpack-module="wysywig-chartjs"]');if(r.length>0){const o=e(18657);o.BarController&&o.BarElement&&o.LinearScale&&o.CategoryScale&&o.Chart.register(o.BarController,o.LineController,o.ScatterController,o.BubbleController,o.PieController,o.DoughnutController,o.PolarAreaController,o.RadarController,o.ArcElement,o.BarElement,o.LineElement,o.PointElement,o.CategoryScale,o.LinearScale,o.LogarithmicScale,o.RadialLinearScale,o.TimeScale,o.TimeSeriesScale,o.Title,o.Legend,o.Tooltip,o.Filler,o.SubTitle),r.each((function(){null==t&&(t=e(30382));const r=a(this),l=JSON.parse(r.attr("data-chart-value")||"[]"),n=parseInt(r.attr("data-chart-height")||200),i=parseInt(r.attr("data-aria-label")||"");let s=r.attr("data-chart")||"bar";const d="wysywig-chartjs-"+Math.random().toString(36)+Date.now().toString(36);
10===r.find("canvas").length&&r.html('<canvas id="'+d+'" height="'+n+'" aria-label="'+i+'" role="img"></canvas>');const c=document.getElementById(d).getContext("2d"),h=l.map((t=>t.label)),b=l.map((t=>t.value)),u=t.getCssVariableValue("--icms-gemeinde-main-color"),g=t.generateM3ColorPalette(h.length,u);"polar"===s&&(s="polarArea");let y={type:s,data:{labels:h,datasets:[{label:"",data:b,backgroundColor:g.backgrounds,borderColor:g.borders,borderWidth:1,tension:"line"===s?.4:0,fill:"line"===s}]},options:{responsive:!0,maintainAspectRatio:!1}};"bar"!==s&&"line"!==s||(y.options.plugins={legend:{display:!1}}),"pie"!==s&&"doughnut"!==s&&"polarArea"!==s||(y.options.plugins={legend:{position:"right",labels:{font:{size:14},padding:20}}}),new o.Chart(c,y)}))}a('canvas[data-webpack-module="chartjs"]').each((function(){var t=a(this).data("ajax"),r=a(this).data("type"),e={},s=a(this).data("background-color"),d=a(this).data("border-color"),c=a(this).data("border-width"),h=a(this).data("options-scales"),b=a(this).data("options-scales-wrap-y-labels")||!1,u=a(this).data("options-scales-wrap-x-labels")||!1,g=a(this).data("options-legend"),y=a(this).data("data-unit"),p=a(this).data("sort-field"),x=a(this).data("sort-order"),f=a(this).attr("id"),_={"Accept-Language":o};g&&(e.legend=g),h&&(e.scales=h),b&&(e.scales&&e.scales.yAxes&&e.scales.yAxes.length?e.scales.yAxes[0].ticks.callback=wrapLines:e.scales.yAxes=[{ticks:{callback:n}}]),u&&(e.scales&&e.scales.xAxes&&e.scales.xAxes.length?e.scales.xAxes[0].ticks.callback=wrapLines:e.scales.xAxes=[{ticks:{callback:n}}]),e.tooltips={displayColors:!1},Chart.defaults.global.elements.rectangle.borderWidth=c,Chart.defaults.global.elements.rectangle.backgroundColor=s,Chart.defaults.global.elements.rectangle.borderColor=d,a.ajax({url:t,method:"GET",headers:_,dataType:"json",success:function(t){a.each(t.datasets,(function(r,e){var o;e.data=function(t,r){if("relative"===t){var e=0;r.map((function(t){e+=t})),a.each(r,(function(t,a){r[t]=(a/e*100).toPrecision(4)}))}return r}(y,e.data),"data"===p?(o=l(e.data,t.labels,x),e.data=o[0],t.labels=o[1]):"label"===p&&(o=l(t.labels,e.data,x),t.labels=o[0],e.data=o[1])})),i(a("canvas#"+f),r,t,e)}})}))},r.pickColorClass=d},30382:(t,r)=>{function e(t,r=null){const n=[{bg:"rgba(103, 80, 164, 0.7)",border:"rgb(103, 80, 164)"},{bg:"rgba(183, 28, 28, 0.7)",border:"rgb(183, 28, 28)"},{bg:"rgba(136, 84, 24, 0.7)",border:"rgb(136, 84, 24)"},{bg:"rgba(48, 103, 84, 0.7)",border:"rgb(48, 103, 84)"},{bg:"rgba(26, 83, 108, 0.7)",border:"rgb(26, 83, 108)"},{bg:"rgba(141, 58, 95, 0.7)",border:"rgb(141, 58, 95)"},{bg:"rgba(109, 76, 65, 0.7)",border:"rgb(109, 76, 65)"},{bg:"rgba(98, 91, 113, 0.7)",border:"rgb(98, 91, 113)"}];if(!r){const r=[],e=[];for(let a=0;a<t;a++){const t=n[a%n.length];r.push(t.bg),e.push(t.border)}return{backgrounds:r,borders:e}}return function(t,r){const n=a(t);if(!n)return e(r);const{r:i,g:s,b:d}=n,c=o(i,s,d),h=[],b=[],u=70,g=50,y=35;for(let t=0;t<r;t++){const e=(c.h+360*t/r)%360,a=l(e,u,g),o=l(e,u,y);h.push(`rgba(${a.r}, ${a.g}, ${a.b}, 0.7)`),b.push(`rgb(${o.r}, ${o.g}, ${o.b})`)}return{backgrounds:h,borders:b}}(r,t)}function a(t){let r,e,a;if(3===(t=t.replace(/^#/,"")).length)r=parseInt(t[0]+t[0],16),e=parseInt(t[1]+t[1],16),a=parseInt(t[2]+t[2],16);else{if(6!==t.length)return null;r=parseInt(t.substring(0,2),16),e=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16)}return{r,g:e,b:a}}function o(t,r,e){t/=255,r/=255,e/=255;const a=Math.max(t,r,e),o=Math.min(t,r,e);let l,n,i=(a+o)/2;if(a===o)l=n=0;else{const s=a-o;switch(n=i>.5?s/(2-a-o):s/(a+o),a){case t:l=(r-e)/s+(r<e?6:0);break;case r:l=(e-t)/s+2;break;case e:l=(t-r)/s+4}l/=6}return{h:Math.round(360*l),s:Math.round(100*n),l:Math.round(100*i)}}function l(t,r,e){let a,o,l;if(t/=360,e/=100,0===(r/=100))a=o=l=e;else{const n=(t,r,e)=>(e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t),i=e<.5?e*(1+r):e+r-e*r,s=2*e-i;a=n(s,i,t+1/3),o=n(s,i,t),l=n(s,i,t-1/3)}return{r:Math.round(255*a),g:Math.round(255*o),b:Math.round(255*l)}}r.getCssVariableValue=function(t){return"undefined"==typeof window?null:getComputedStyle(document.documentElement).getPropertyValue(t).trim()||null},r.generateM3ColorPalette=e}}]);

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.