h-section 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hotelSection.mjs +2 -2
- package/package.json +1 -1
package/dist/hotelSection.mjs
CHANGED
|
@@ -12689,7 +12689,7 @@ function nv({ hotelSectionData: f }) {
|
|
|
12689
12689
|
}) });
|
|
12690
12690
|
}
|
|
12691
12691
|
function iv({ data: f }) {
|
|
12692
|
-
return /* @__PURE__ */ j.jsx(nv, { hotelSectionData: f });
|
|
12692
|
+
return f ? /* @__PURE__ */ j.jsx(nv, { hotelSectionData: f }) : (console.log("No data"), null);
|
|
12693
12693
|
}
|
|
12694
12694
|
function cv(f) {
|
|
12695
12695
|
return typeof f == "string" ? document.getElementById(f) || document.querySelector(f) : f instanceof Element ? f : null;
|
|
@@ -12699,7 +12699,7 @@ function fv(f) {
|
|
|
12699
12699
|
if (!b)
|
|
12700
12700
|
return console.error(`[HotelSection] Target not found: ${String(f)}`), null;
|
|
12701
12701
|
const _ = _h();
|
|
12702
|
-
console.log("[HotelSection] Data received:", _), Nh.createRoot(b).render(/* @__PURE__ */ j.jsx(iv, {}));
|
|
12702
|
+
console.log("[HotelSection] Data received:", _), Nh.createRoot(b).render(/* @__PURE__ */ j.jsx(iv, { data: _ }));
|
|
12703
12703
|
}
|
|
12704
12704
|
const rv = {
|
|
12705
12705
|
renderHotelSection: fv
|