PageSourceSearch

https://www.rheem.com/vike/assets/chunks/chunk-Ch7vcZ-e.js

js rheem.com collected 2026-09-24 10:20:26 UTC 4,844 bytes, 115 lines download raw bytes

1import { u as useRegion } from "./chunk-Clb5_Slq.js";
2import { g as getContractorEditUrl } from "./chunk-B6g45iIm.js";
3import { j as defineComponent, _ as _export_sfc, o as openBlock, e as createElementBlock, f as createBaseVNode, h as toDisplayString, F as Fragment, x as renderList, I as createTextVNode, c as computed, z as createBlock } from "./chunk-Cy-M6TJt.js";
4import { u as useI18n } from "./chunk-DUNv5myb.js";
5const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6  __name: "BookingDescriptionCard",
7  props: {
8    title: {},
9    lines: {},
10    organizationId: {}
11  },
12  setup(__props, { expose: __expose }) {
13    __expose();
14    const props = __props;
15    const region = useRegion();
16    const __returned__ = { props, region, get getContractorEditUrl() {
17      return getContractorEditUrl;
18    } };
19    Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
20    return __returned__;
21  }
22});
23const _hoisted_1 = { class: "rmc-booking-description-card" };
24const _hoisted_2 = { class: "rmc-booking-description-card__heading" };
25const _hoisted_3 = { class: "rmc-booking-description-card__section" };
26const _hoisted_4 = { class: "rmc-booking-description-card__line" };
27const _hoisted_5 = { class: "rmc-booking-description-card__line__name" };
28const _hoisted_6 = { class: "rmc-booking-description-card__line__value" };
29const _hoisted_7 = { key: 1 };
30const _hoisted_8 = ["href"];
31function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
32  return openBlock(), createElementBlock("div", _hoisted_1, [
33    createBaseVNode("div", _hoisted_2, toDisplayString($props.title), 1),
34    createBaseVNode("div", _hoisted_3, [
35      $props.lines.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.lines, ({ name, value }) => {
36        return openBlock(), createElementBlock("div", _hoisted_4, [
37          createBaseVNode("div", _hoisted_5, toDisplayString(name), 1),
38          createBaseVNode("div", _hoisted_6, toDisplayString(value), 1)
39        ]);
40      }), 256)) : (openBlock(), createElementBlock("div", _hoisted_7, [
41        _cache[0] || (_cache[0] = createTextVNode(" Are you the business owner? Click ")),
42        createBaseVNode("a", {
43          href: $setup.getContractorEditUrl($setup.region, $props.organizationId),
44          target: "_blank",
45          class: "text-body"
46        }, " here ", 8, _hoisted_8),
47        _cache[1] || (_cache[1] = createTextVNode(" to add your Business Hours. "))
48      ]))
49    ])
50  ]);
51}
52const BookingDescriptionCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "BookingDescriptionCard.vue"]]);
53const _sfc_main = /* @__PURE__ */ defineComponent({
54  __name: "ContractorProfileSchedule",
55  props: {
56    data: {},
57    organizationId: {}
58  },
59  setup(__props, { expose: __expose }) {
60    __expose();
61    const order = {
62      monday: 1,
63      tuesday: 2,
64      wednesday: 3,
65      thursday: 4,
66      friday: 5,
67      saturday: 6,
68      sunday: 7
69    };
70    const { t } = useI18n();
71    const props = __props;
72    const schedule = computed(() => {
73      if (!Array.isArray(props.data) || !props.data[0]) {
74        return null;
75      }
76      return Object.entries(props.data[0]).map(([day, time]) => {
77        if (time) {
78          return [day, time];
79        }
80        return [day, t("booking.businessHours.closed")];
81      }).toSorted(([a], [b]) => {
82        return order[a.toLowerCase()] - order[b.toLowerCase()];
83      }).map(([name, value]) => ({
84        name: getDayName(name),
85        value
86      })) || [];
87    });
88    const getDayName = (day) => {
89      const dayMap = {
90        monday: t("booking.businessHours.monday"),
91        tuesday: t("booking.businessHours.tuesday"),
92        wednesday: t("booking.businessHours.wednesday"),
93        thursday: t("booking.businessHours.thursday"),
94        friday: t("booking.businessHours.friday"),
95        saturday: t("booking.businessHours.saturday"),
96        sunday: t("booking.businessHours.sunday")
97      };
98      return dayMap[day.toLowerCase()] || day;
99    };
100    const __returned__ = { order, t, props, schedule, getDayName, BookingDescriptionCard };
101    Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
102    return __returned__;
103  }
104});
105function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
106  return openBlock(), createBlock($setup["BookingDescriptionCard"], {
107    title: $setup.t("booking.businessHours.title"),
108    lines: $setup.schedule || [],
109    "organization-id": $props.organizationId
110  }, null, 8, ["title", "lines", "organization-id"]);
111}
112const ContractorProfileSchedule = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7d5dfc87"], ["__file", "ContractorProfileSchedule.vue"]]);
113export {
114  ContractorProfileSchedule as C
115};

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.