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.