PageSourceSearch

https://bolapla-sh.de/js/bundles/4119.422356.js

js bolapla-sh.de collected 2026-10-04 18:36:31 UTC 3,982 bytes, 1 lines download raw bytes

1(self.webpackChunkdemosplan_core=self.webpackChunkdemosplan_core||[]).push([[4119],{4119:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var r=a(49347);const n={class:"layout u-pl"},s={class:"weight--bold u-mb-0"};var o=a(37058),i=a(82124),l=a(57456),u=a(43478),p={name:"CustomerSettingsMap",components:{DpButtonRow:o.DpButtonRow,DpInput:o.DpInput,DpOlMap:u.default},props:{currentCustomerId:{required:!0,type:String},initLayerUrl:{required:!1,type:String,default:""},initLayer:{required:!1,type:String,default:""},initMapAttribution:{required:!1,type:String,default:""},mapExtent:{required:!1,type:Array,default:()=>[]}},data(){return{mapAttribution:this.initMapAttribution,baseLayerLayers:this.initLayer,baseLayerUrl:this.initLayerUrl,mapKey:0}},computed:{...(0,i.aH)("Customer",{customerItems:"items"}),attributionControl:()=>new l.A({collapsible:!1})},methods:{...(0,i.i0)("Customer",{saveCustomer:"save"}),...(0,i.PY)("Customer",{updateCustomer:"setItem"}),debounceUpdate:(0,o.debounce)((({id:e,value:t})=>{"r_baseLayerUrl"!==e&&"r_baseLayerLayers"!==e||("r_baseLayerUrl"===e?(void 0).baseLayerUrl=t:(void 0).baseLayerLayers=t,(void 0).mapKey=Math.floor(1e3*Math.random()))}),1e3),resetMapSettings(){const e=this.customerItems[this.currentCustomerId].attributes;["mapAttribution","baseLayerLayers","baserLayerUrl"].forEach((t=>{this[t]=e[t]}))},saveMapSettings(){const{baseLayerLayers:e,baseLayerUrl:t,mapAttribution:a}=this,r={id:this.currentCustomerId,type:"Customer",attributes:{...this.customerItems[this.currentCustomerId].attributes,baseLayerLayers:e,baseLayerUrl:t,mapAttribution:a}};this.updateCustomer(r),this.saveCustomer(this.currentCustomerId).then((()=>{dplan.notify.notify("confirm",Translator.trans("confirm.saved"))}))}}},m=a(23598),d=a.n(m),y=a(66262);"function"==typeof d()&&d()(p);var c=(0,y.A)(p,[["render",function(e,t,a,o,i,l){const u=(0,r.resolveComponent)("dp-input"),p=(0,r.resolveComponent)("dp-ol-map"),m=(0,r.resolveComponent)("dp-button-row");return(0,r.openBlock)(),(0,r.createElementBlock)("div",n,[(0,r.createVNode)(u,{id:"r_baseLayerUrl",modelValue:i.baseLayerUrl,"onUpdate:modelValue":t[0]||(t[0]=e=>i.baseLayerUrl=e),class:"u-mb-0_75","data-cy":"customerSettingsMap:mapBaseURLHint",label:{hint:e.Translator.trans("map.base.url.hint"),text:e.Translator.trans("map.base.url")},name:"r_baseLayerUrl",onInput:l.debounceUpdate},null,8,["modelValue","label","onInput"]),(0,r.createVNode)(u,{id:"r_baseLayerLayers",modelValue:i.baseLayerLayers,"onUpdate:modelValue":t[1]||(t[1]=e=>i.baseLayerLayers=e),class:"u-mb-0_75","data-cy":"customerSettingsMap:mapLayerNameHint",label:{hint:e.Translator.trans("map.layer.name.hint"),text:e.Translator.trans("layers")},name:"r_baseLayerLayers",onInput:l.debounceUpdate},null,8,["modelValue","label","onInput"]),(0,r.createVNode)(u,{id:"r_mapAttribution",modelValue:i.mapAttribution,"onUpdate:modelValue":t[2]||(t[2]=e=>i.mapAttribution=e),class:"u-mb-0_75","data-cy":"customerSettingsMap:mapAttribution",label:{hint:`${e.Translator.trans("map.attribution.hint")} ${e.Translator.trans("map.attribution.placeholder")}`,text:e.Translator.trans("map.attribution")},name:"r_mapAttribution"},null,8,["modelValue","label"]),(0,r.createElementVNode)("p",s,(0,r.toDisplayString)(e.Translator.trans("map.base.settings.preview"))+": ",1),((0,r.openBlock)(),(0,r.createBlock)(p,{ref:"map",key:`map_${i.mapKey}`,small:"","map-options":{baseLayer:i.baseLayerUrl,baseLayerLayers:i.baseLayerLayers,procedureScales:[92e4,7e4,15e3],defaultMapExtent:a.mapExtent},options:{controls:[l.attributionControl],autoSuggest:{enabled:!1},defaultAttribution:i.mapAttribution}},null,8,["map-options","options"])),(0,r.createVNode)(m,{class:"u-mt","data-cy":"customerSettingsMap",primary:"",secondary:"","secondary-text":e.Translator.trans("reset"),onSecondaryAction:l.resetMapSettings,onPrimaryAction:l.saveMapSettings},null,8,["secondary-text","onSecondaryAction","onPrimaryAction"])])}]])},23598:function(){}}]);

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.