PageSourceSearch

https://shop.oomugi.co.jp/assets/js/system/pages/_common_section/header/freeword_search_box.js?3556676885

js oomugi.co.jp collected 2026-09-24 10:07:26 UTC 1,228 bytes, 51 lines download raw bytes

1// (c) 2023 W2 Co.,Ltd.
2/**
3 * フリーワード検索セクション
4 */
5class SectionCommonDirFreewordSearchBox {
6  constructor() {
7  }
8  /**
9   * 実行
10   * @param {any} liquidParam liquidからのパラメーター
11   */
12  run(liquidParam) {
13    this.addComponent(liquidParam);
14  }
15  /**
16   * コンポーネント追加
17   */
18  addComponent(liquidParam) {
19    const component = {
20      // text/x-template要素のid
21      template: '#freeword-search-box',
22      data() {
23        return lib.vue.common.FreewordSearchBoxModel.create();
24      },
25      methods: {
26        /**
27         * 商品検索
28         * @param {...any} args 引数
29         */
30        submit(...args) {
31          lib.vue.common.ProductSearchBoxService.searchProducts(liquidParam, this, args);
32        }
33      },
34      // コンポーネントの引数
35      props: {
36      },
37      watch: {
38      },
39      computed: {
40      },
41      created() {
42      },
43      mounted() {
44        const url = new URL(window.location.href);
45        const params = url.searchParams;
46        this.searchWord = params.get('swrd');
47      },
48    };
49    g_vueManager.setComponent('freeword-search-box', component);
50  }
51}

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.