PageSourceSearch

https://www.bwp-muc.de/_nuxt/bb5Xyysc.js

js bwp-muc.de collected 2026-10-08 11:42:08 UTC 4,190 bytes, 1 lines download raw bytes

1import{f as b}from"./D8DjJP8a.js";import{d as H,_ as $,r as I,b as o,o as a,f as u,g as f,a7 as h,a8 as B,n as k,i as v,t as _,h as T}from"#entry";const m={1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",0:"sunday"},L={monday:"Montag",tuesday:"Dienstag",wednesday:"Mittwoch",thursday:"Donnerstag",friday:"Freitag",saturday:"Samstag",sunday:"Sonntag"},E={monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6,sunday:0},M=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],P={status_closed:"u-colorErrorDefault",status_closes_soon:"u-colorWarningDefault",status_open:"u-colorSuccessDefault"},G=s=>{if(s===void 0||s.type==="custom")return;const e=new Date,r=m[e.getDay()],t=parseInt(`${e.getHours()}${String(e.getMinutes()).padStart(2,"0")}`),l=s[`${r}_interval1_from`],d=s[`${r}_interval1_to`],p=s[`${r}_interval2_from`],n=s[`${r}_interval2_to`],D=typeof l=="string"?parseInt(l.replace(":","")):NaN,c=typeof d=="string"?parseInt(d.replace(":","")):NaN,g=typeof p=="string"?parseInt(p.replace(":","")):NaN,y=typeof n=="string"?parseInt(n.replace(":","")):NaN,w=!!s[`${r}_open_all_day`];let i;switch(!0){case w:i="status_open";break;case isNaN(D):case t<D:i="status_closed";break;case(t>=D&&t<c-100):i="status_open";break;case(t>=c-100&&t<c):i="status_closes_soon";break;case(t>=c&&isNaN(g)):case(t>=c&&t<g):i="status_closed";break;case(t>=g&&t<y-100):i="status_open";break;case(t>=y-100&&t<y):i="status_closes_soon";break;case t>=y:i="status_closed";break;default:i=void 0;break}return i},O=H({props:{businessHours:{type:Object,default:void 0},collapsable:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},prominent:{type:Boolean,default:!1}},computed:{weekDaysMapping(){return m},weekDaysOpenList(){return M.filter(s=>this.showWeekDay(s))},weekDayLabels(){return L}},methods:{isOpenAllDay(s){return this.businessHours?!!this.businessHours[`${s}_open_all_day`]:!1},getIntervalOfDayText(s,e){if(!this.businessHours)return"keine Daten vorhanden";if(this.isOpenAllDay(s))return"ganztägig geöffnet";const r=this.businessHours[`${s}_interval${e}_from`],t=this.businessHours[`${s}_interval${e}_to`],l=new Date("1970-01-01T"+r),d=new Date("1970-01-01T"+t);return`${b(l)} – ${b(d)}`},showInterval(s,e){if(!this.businessHours)return!1;const r=this.businessHours[`${s}_interval${e}_from`],t=this.businessHours[`${s}_interval${e}_to`];return this.isOpenAllDay(s)||typeof r=="string"&&r.length>0&&typeof t=="string"&&t.length>0},showWeekDay(s){return this.collapsable&&this.collapsed?this.isCurrentDay(s):this.showInterval(s,1)||this.showInterval(s,2)},isCurrentDay(s){return E[s]===new Date().getDay()}}}),R={key:0},A=["innerHTML"],S=["innerHTML"],C={key:0},W={key:1,class:"u-textRight"},K={key:0},V={key:1},Y={key:0,class:"u-mt8 s-businessHour__infotext"},U=["innerHTML"];function j(s,e,r,t,l,d){const p=I("icon");return a(),o("div",{class:k(["o-flex -column u-colorBlack100",{"t-button":s.prominent}])},[s.businessHours?.type==="custom"?(a(),o("div",R,[s.businessHours.custom_text?(a(),o("div",{key:0,class:"u-userHtml u-mb16",innerHTML:s.businessHours.custom_text},null,8,A)):u("",!0),e[0]||(e[0]=f()),s.businessHours.custom_table?(a(),o("div",{key:1,class:"u-userHtml",innerHTML:s.businessHours.custom_table},null,8,S)):u("",!0)])):(a(),o(h,{key:1},[(a(!0),o(h,null,B(s.weekDaysOpenList,n=>(a(),o("div",{key:n,class:k([{"-highlighted":s.isCurrentDay(n)},"o-flex -justifyBetween s-businessHour__day"])},[s.showWeekDay(n)?(a(),o(h,{key:0},[v("div",null,_(s.weekDayLabels[n]),1),e[2]||(e[2]=f()),s.isOpenAllDay(n)?(a(),o("div",C,[v("div",null,_(s.getIntervalOfDayText(n,1)),1)])):(a(),o("div",W,[s.showInterval(n,1)?(a(),o("div",K,_(s.getIntervalOfDayText(n,1))+" Uhr",1)):u("",!0),e[1]||(e[1]=f()),s.showInterval(n,2)?(a(),o("div",V,_(s.getIntervalOfDayText(n,2))+" Uhr",1)):u("",!0)]))],64)):u("",!0)],2))),128)),e[4]||(e[4]=f()),s.businessHours&&s.businessHours.infotext?(a(),o("div",Y,[T(p,{type:"info-circle",variant:"solid",class:"u-mr8"}),e[3]||(e[3]=f()),v("span",{innerHTML:s.businessHours.infotext},null,8,U)])):u("",!0)],64))],2)}const N=$(O,[["render",j],["__scopeId","data-v-6cdeccb5"]]);export{N as B,P as R,G as g};

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.