@mapfirst.ai/core 0.0.31 → 0.0.32

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.
@@ -1896,8 +1896,8 @@ var MapFirstCore = (() => {
1896
1896
  this.properties = [
1897
1897
  ...properties.filter(
1898
1898
  (x) => {
1899
- var _a2, _b2, _c, _d, _e, _f;
1900
- return !!x.location && (x.type !== "Accommodation" || ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) === "available" || ((_d = (_c = x.pricing) == null ? void 0 : _c.offer) == null ? void 0 : _d.availability) === "pending" || ((_f = (_e = x.pricing) == null ? void 0 : _e.offer) == null ? void 0 : _f.displayPrice));
1899
+ var _a2, _b2;
1900
+ return !!x.location && (x.type !== "Accommodation" || x.pricing && ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) !== "unavailable");
1901
1901
  }
1902
1902
  )
1903
1903
  ];
package/dist/index.js CHANGED
@@ -1896,8 +1896,8 @@ var MapFirstCore = class {
1896
1896
  this.properties = [
1897
1897
  ...properties.filter(
1898
1898
  (x) => {
1899
- var _a2, _b2, _c, _d, _e, _f;
1900
- return !!x.location && (x.type !== "Accommodation" || ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) === "available" || ((_d = (_c = x.pricing) == null ? void 0 : _c.offer) == null ? void 0 : _d.availability) === "pending" || ((_f = (_e = x.pricing) == null ? void 0 : _e.offer) == null ? void 0 : _f.displayPrice));
1899
+ var _a2, _b2;
1900
+ return !!x.location && (x.type !== "Accommodation" || x.pricing && ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) !== "unavailable");
1901
1901
  }
1902
1902
  )
1903
1903
  ];
package/dist/index.mjs CHANGED
@@ -1865,8 +1865,8 @@ var MapFirstCore = class {
1865
1865
  this.properties = [
1866
1866
  ...properties.filter(
1867
1867
  (x) => {
1868
- var _a2, _b2, _c, _d, _e, _f;
1869
- return !!x.location && (x.type !== "Accommodation" || ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) === "available" || ((_d = (_c = x.pricing) == null ? void 0 : _c.offer) == null ? void 0 : _d.availability) === "pending" || ((_f = (_e = x.pricing) == null ? void 0 : _e.offer) == null ? void 0 : _f.displayPrice));
1868
+ var _a2, _b2;
1869
+ return !!x.location && (x.type !== "Accommodation" || x.pricing && ((_b2 = (_a2 = x.pricing) == null ? void 0 : _a2.offer) == null ? void 0 : _b2.availability) !== "unavailable");
1870
1870
  }
1871
1871
  )
1872
1872
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapfirst.ai/core",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Core SDK for MapFirst - Multi-platform map markers and property visualization",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",