import Gaoding from "./index6.js";
import { n as normalizeComponent, l as lodash, d as api } from "./index.js";
import "./vue-router.js";
import "vue";
import "./index7.js";
import "./gd-abtest.js";
import "./index5.js";
import "./index8.js";
var render = function() {
  var _vm = this;
  var _h = _vm.$createElement;
  var _c = _vm._self._c || _h;
  return _c("div", {
    class: _vm.bem()
  }, [!_vm.loading ? _c("Gaoding", {
    attrs: {
      "sceneFilterId": _vm.sceneFilterId
    },
    scopedSlots: _vm._u([{
      key: "title",
      fn: function() {
        return [_c("GBreadcrumbItem", [_c("router-link", {
          attrs: {
            "to": {
              name: "cdm-discover"
            }
          }
        }, [_vm._v("\u53D1\u73B0")])], 1), _c("GBreadcrumbItem", [_c("router-link", {
          attrs: {
            "to": {
              name: "cdm-scene-new",
              params: {
                scene: _vm.$route.params.scene
              }
            }
          }
        }, [_vm._v(" " + _vm._s(_vm.exhibitionModule.exhibition_name) + " ")])], 1)];
      },
      proxy: true
    }], null, false, 2323389716)
  }) : _vm._e()], 1);
};
var staticRenderFns = [];
const { sceneApi } = api;
const __vue2_script = {
  name: "scene-search",
  components: {
    Gaoding
  },
  data() {
    return {
      exhibitionModule: {},
      loading: false
    };
  },
  computed: {
    scene() {
      return lodash.exports.get(this.$route, "params.scene", "");
    },
    sceneFilterId() {
      const pits = lodash.exports.get(this.exhibitionModule, "pits", []);
      return lodash.exports.get(pits.find((p) => p.mark === `${this.scene}--scene_search`), "materials[0].material.filter.value", "");
    }
  },
  created() {
    this.init();
  },
  methods: {
    async init() {
      this.loading = true;
      await this.getSceneData();
      this.loading = false;
    },
    async getSceneData() {
      const res = await sceneApi.getSceneData({
        scene: this.scene
      });
      this.exhibitionModule = lodash.exports.get(res, "data", {});
    }
  }
};
const __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
  for (let o in __cssModules) {
    this[o] = __cssModules[o];
  }
}
var index = /* @__PURE__ */ function() {
  return __component__.exports;
}();
export { index as default };
