1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/NotesPanel-DeFk6af0.js","static/maps-CaxwoKp9.js","static/vue-BFiGH6Pw.js","static/photoswipe-DBz4ixLY.js","static/photoswipe-D1Jdo9Br.css","static/maps-DSueV38R.css","static/NotesPanel-DoudwIYe.css","static/OpeningHours-1qryBjI5.js","static/index-B2RcSseM.js","static/index-DoQNbu2X.css","static/OpeningHours-BrNO91Yg.css","static/TicketPrices-DJW7Oz-d.js","static/TicketPrices-C3HtCA87.css","static/MapLocation-DSF1LkUf.js","static/MapLocation-F0w9kU-f.css","static/EditableHtmlSection-BP0rWW-d.js","static/EditableHtmlSection-Clm5GA3M.css","static/SlotImageBox-DZXpgvxk.js","static/SlotImageBox-By9rR21f.css"])))=>i.map(i=>d[i]); 2import{a as U,_ as a}from"./maps-CaxwoKp9.js";import{_ as x}from"./index-B2RcSseM.js";import{a0 as r,x as l,v as s,$ as n,a3 as d,af as _,a1 as c}from"./vue-BFiGH6Pw.js";import"./photoswipe-DBz4ixLY.js";const F={key:0,class:"entry-information-entry-description is-ancestor"},S={key:0,class:"panel-wrapper tile is-parent"},D={key:1,class:"panel-wrapper tile is-parent location-panel"},P={key:2,class:"panel-wrapper tile is-parent"},B={key:3,class:"panel-wrapper tile is-parent"},k={key:4,class:"panel-wrapper tile is-parent"};function q(o,i,e,f,u,t){const g=r("entry-information-notes-panel"),m=r("slot-image-box"),I=r("entry-information-map-location"),p=r("segment"),E=r("entry-information-opening-hours"),v=r("entry-information-ticket-prices"),R=r("editable-html-section");return e.entryDescription?(l(),s("section",F,[e.showNotes&&(e.entryDescription.Notes||e.entryDescription.NotesHtml||e.doEdit||t.extraFilesBySlot.notes)?(l(),s("div",S,[n(g,{class:"entry-panel is-child",ref:"NotesPanel",value:e.entryDescription,"do-edit":e.doEdit},null,8,["value","do-edit"]),n(m,{class:"is-child",item:t.slotItem("notes",0),"do-edit":e.doEdit,"slot-name":"notes","upload-url":t.extraFilesUploadUrl,onUploaded:t.onSlotUploaded,onRemoveRequested:t.onSlotRemoveRequested},null,8,["item","do-edit","upload-url","onUploaded","onRemoveRequested"])])):d("",!0),e.showGeoLocation&&(e.entryDescription.PublicLocation&&(e.entryDescription.PublicLocation.GeoId||e.entryDescription.PublicLocation.GeoAddress)||e.doEdit||t.extraFilesBySlot.location)?(l(),s("div",D,[n(p,{class:"entry-panel is-child",title:o.$t("common.geoLocation")},{default:_(()=>[n(I,{ref:"PublicLocation",parent:e.parent,"public-location":e.entryDescription.PublicLocation,"do-edit":e.doEdit,onInput:i[0]||(i[0]=y=>e.entryDescription.PublicLocation=y)},null,8,["parent","public-location","do-edit"])]),_:1},8,["title"]),n(m,{class:"is-child",item:t.slotItem("location",1),"do-edit":e.doEdit,"slot-name":"location","upload-url":t.extraFilesUploadUrl,onUploaded:t.onSlotUploaded,onRemoveRequested:t.onSlotRemoveRequested},null,8,["item","do-edit","upload-url","onUploaded","onRemoveRequested"])])):d("",!0),e.showOpeningHours&&(e.entryDescription.OpeningClosingWeek||e.entryDescription.TimesOpenExceptionsHtml||e.doEdit||t.extraFilesBySlot.openinghours)?(l(),s("div",P,[n(p,{class:"entry-panel is-child",title:o.$t("common.openingHours")},{default:_(()=>[n(E,{ref:"OpeningHours",organization:e.parent,"entry-description":e.entryDescription,"do-edit":e.doEdit},null,8,["organization","entry-description","do-edit"])]),_:1},8,["title"]),n(m,{class:"is-child",item:t.slotItem("openinghours",2),"do-edit":e.doEdit,"slot-name":"openinghours","upload-url":t.extraFilesUploadUrl,onUploaded:t.onSlotUploaded,onRemoveRequested:t.onSlotRemoveRequested},null,8,["item","do-edit","upload-url","onUploaded","onRemoveRequested"])])):d("",!0),e.showTicketPrices&&(e.entryDescription.TicketPrices||e.doEdit||t.extraFilesBySlot.ticketprices)?(l(),s("div",B,[n(p,{class:"entry-panel is-child",title:o.$t("common.ticketPrices")},{default:_(()=>[n(v,{ref:"TicketPrices",organization:e.parent,"entry-description":e.entryDescription,"do-edit":e.doEdit},null,8,["organization","entry-description","do-edit"])]),_:1},8,["title"]),n(m,{class:"is-child",item:t.slotItem("ticketprices",3),"do-edit":e.doEdit,"slot-name":"ticketprices","upload-url":t.extraFilesUploadUrl,onUploaded:t.onSlotUploaded,onRemoveRequested:t.onSlotRemoveRequested},null,8,["item","do-edit","upload-url","onUploaded","onRemoveRequested"])])):d("",!0),e.showVisitorInfo&&(e.entryDescription.VisitorInfoHtml||e.doEdit||t.extraFilesBySlot.visitorinfo)?(l(),s("div",k,[n(R,{class:"visitor-info-html entry-panel is-child",ref:"VisitorInfoHtml",modelValue:e.entryDescription.VisitorInfoHtml,"onUpdate:modelValue":i[1]||(i[1]=y=>e.entryDescription.VisitorInfoHtml=y),placeholder:o.$t("common.visitorInfoPlaceholder"),toolbar:!1,"do-edit":e.doEdit},null,8,["modelValue","placeholder","do-edit"]),n(m,{class:"is-child",item:t.slotItem("visitorinfo",4),"do-edit":e.doEdit,"slot-name":"visitorinfo","upload-url":t.extraFilesUploadUrl,onUploaded:t.onSlotUploaded,onRemoveRequested:t.onSlotRemoveRequested},null,8,["item","do-edit","upload-url","onUploaded","onRemoveRequested"])])):d("",!0)])):d("",!0)}const h=[{ImageInfo:{Url:"/visitor/infoimage--0.jpg"}},{ImageInfo:{Url:"/visitor/infoimage--1.jpg"}},{ImageInfo:{Url:"/visitor/infoimage--2.jpg"}},{ImageInfo:{Url:"/visitor/infoimage--3.jpg"}},{ImageInfo:{Url:"/visitor/infoimage--4.jpg"}}],w={name:"entry-information-entry-description",props:{parent:{type:Object,required:!0},entryDescription:{type:Object,required:!0},showNotes:{type:Boolean,default:!0},showOpeningHours:{type:Boolean,default:!0},showTicketPrices:{type:Boolean,default:!0},showGeoLocation:{type:Boolean,default:!0},showVisitorInfo:{type:Boolean,default:!0},doEdit:{type:Boolean},canRemove:{type:Boolean,default:!0}},components:{EntryInformationNotesPanel:c(()=>a(()=>import("./NotesPanel-DeFk6af0.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),EntryInformationOpeningHours:c(()=>a(()=>import("./OpeningHours-1qryBjI5.js"),__vite__mapDeps([7,1,2,3,4,5,8,9,10]))),EntryInformationTicketPrices:c(()=>a(()=>import("./TicketPrices-DJW7Oz-d.js"),__vite__mapDeps([11,1,2,3,4,5,8,9,12]))),EntryInformationMapLocation:c(()=>a(()=>import("./MapLocation-DSF1LkUf.js"),__vite__mapDeps([13,1,2,3,4,5,8,9,14]))),EditableHtmlSection:c(()=>a(()=>import("./EditableHtmlSection-BP0rWW-d.js"),__vite__mapDeps([15,1,2,3,4,5,8,9,16]))),SlotImageBox:c(()=>a(()=>import("./SlotImageBox-DZXpgvxk.js"),__vite__mapDeps([17,1,2,3,4,5,18])))},computed:{infoimages:function(){const o=this.parent&&this.parent.AuxiliaryMediaInfos||h;
2return o.length<5&&x.range(o.length,5).forEach(i=>{o[i]=h[i]}),o},extraFilesBySlot:function(){const o={},i=this.parent&&this.parent.ExtraFiles||[];for(const e of i)e&&e.Slot&&!o[e.Slot]&&(o[e.Slot]=e);return o},extraFilesUnslotted:function(){return(this.parent&&this.parent.ExtraFiles||[]).filter(i=>i&&i.Id&&!i.Slot)},extraFilesUploadUrl:function(){return!this.parent||!this.parent.Id?"":`${this.$helpers.getBaseUrl()}/svc/organizations/${this.parent.Id}/extrafiles`}},data:function(){return{ready:!1,error:null}},mounted:function(){this.ready=!0},methods:{slotItem:function(o,i){const e=this.extraFilesBySlot[o],f=e?null:this.extraFilesUnslotted[i],u=e||f;return u&&u.Id&&this.parent&&this.parent.Id?{ImageInfo:{Url:`${this.$helpers.getBaseUrl()}/svc/organizations/${this.parent.Id}/images/extraimage/${u.Id}`},_slot:o,_slotFileId:u.Id}:h[i]},onSlotUploaded:function(o,i){if(this.parent){if(Array.isArray(this.parent.ExtraFiles)||(this.parent.ExtraFiles=[]),Array.isArray(i)&&i.length){const e=new Set(i);this.parent.ExtraFiles=this.parent.ExtraFiles.filter(f=>!e.has(f.Id))}if(Array.isArray(o))for(const e of o)e&&e.Id&&this.parent.ExtraFiles.push(e)}},onSlotRemoveRequested:async function(o,i){try{if(!this.parent||!this.parent.Id||!o)return;await this.$SVC.deleteOrganizationExtraFile(this.parent.Id,o),Array.isArray(this.parent.ExtraFiles)&&(this.parent.ExtraFiles=this.parent.ExtraFiles.filter(e=>e.Id!==o))}catch(e){this.$eventBus.$emit("save-error",e)}finally{typeof i=="function"&&i()}}}},O=U(w,[["render",q]]);export{O as default};
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.