PageSourceSearch

https://www.bch.com.tw/dist/js/frontend/chunk/1459.911425c9e68b8658.js

js bch.com.tw collected 2026-10-05 08:00:33 UTC 7,827 bytes, 1 lines download raw bytes

1(self.webpackChunkwinshop=self.webpackChunkwinshop||[]).push([[1459],{736886:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(898595),a=n.n(o),r=null;null!==document.querySelector("#banner_block")&&(r=new(a())("#banner_block",{type:"loop",width:"100%",perPage:1,perMove:1,autoplay:!0,arrows:!1,pagination:!0,pauseOnHover:!0,lazyLoad:!1,keyboard:!1}));const l=r},693775:()=>{$(function(){!function(){for(var e=document.getElementsByClassName("accordion"),t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.classList.toggle("active");var e=this.nextElementSibling;null!==e&&(e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px")})}()})},405166:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return n(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,s=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return i=e.done,e},e:function(e){s=!0,l=e},f:function(){try{i||null==o.return||o.return()}finally{if(s)throw l}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a(o.key),o)}}function a(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,n||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}null!==document.getElementById("product-filter")&&(new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getParams()},n=[{key:"getParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null!==e?"?".concat(e):window.location.search;this.params=new URLSearchParams(t)}},{key:"activeAssign",value:function(e){if(this.params.has(e)){var t=e.replace("_","-");$("#product-filter-".concat(t)).addClass("active")}}},{key:"rangeValueAssign",value:function(e){if(this.params.has(e)){var t=e.replace("_","-");$("#product-filter-price-".concat(t)).val(this.params.get(e))}}},{key:"urlParamsSet",value:function(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.params.has(e),r=null!==e.match(/^range_(start|end)/);switch(!0){case r&&a&&0!==n&&"0"!==n&&""!==n:this.params.set(e,n);break;case r&&!a&&(0===n||0===n||""===n):break;case r&&!a&&0!==n&&0!==n&&""!==n:this.params.append(e,n);break;case r&&a&&(0===n||0===n||""===n):case a:this.params.delete(e);break;case!a:this.params.append(e,n)}var l,i=0,s=t(this.params.keys());try{for(s.s();!(l=s.n()).done;)l.value,i++}catch(e){s.e(e)}finally{s.f()}var c=window.location.pathname,u=this.params.toString();o?window.location.href=i>0?"".concat(c,"?").concat(u):c:this.getParams(u)}},{key:"exec",value:function(){var e=this;$("#product-filter-top-sales").on("click",function(){e.urlParamsSet("top_sales",1)}),$("#product-filter-new-items").on("click",function(){e.urlParamsSet("new_items",1)}),$("#product-filter-price-range-submit").on("click",function(){var t=$("#product-filter-price-range-start").val(),n=$("#product-filter-price-range-end").val();
1e.urlParamsSet("range_start",t,!1),e.urlParamsSet("range_end",n)}),this.activeAssign("top_sales"),this.activeAssign("new_items"),this.rangeValueAssign("range_start"),this.rangeValueAssign("range_end")}}],n&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,a}())).exec()},444520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=function(){var e,t=document.getElementById("follow_state"),n=null!==t?t.getAttribute("data-setup"):null;null!==n&&"1"===n&&($(".follow_btn").on("click",function(){var e=$(this).attr("data-indexid");$(".follow_"+e).hasClass("follow")?o(e):a(e)}),e=cookies.get("product_follow")||{},collect(e).each(function(e,t){var n=null,o=null;"1"===e?(n="followed",o="follow"):(n="follow",o="followed"),$(".follow_"+t).removeClass(o).addClass(n)}));var o=function(e){Common.addFollow(e,function(t){t&&$(".follow_"+e).removeClass("follow").addClass("followed")})},a=function(e){Common.cancelFollow(e,function(t){t&&$(".follow_"+e).removeClass("followed").addClass("follow")})}}},901459:(e,t,n)=>{"use strict";n.r(t);n(693775),n(405166);var o=n(444520),a=n(736886),r=n(898595),l=n.n(r);n(342982),n(129154);function i(){$(window).width()>1199?$("#main-menu").smartmenus({noMouseOver:!1}):$("#main-menu").smartmenus({noMouseOver:!0,showFunction:function(e,t){e.slideDown(250,t)},hideFunction:function(e,t){e.slideUp(250,t)}})}$(window).on("load",function(){var e;Common.smartMenus().nav(),(0,o.Z)(),$(document).on("click",'[class*="btn-scroll"]',function(e){e.preventDefault();var t=$(this).attr("href"),n=t.substr(t.indexOf("#"),t.length);$("html, body").animate({scrollTop:$(n).offset().top-40},1e3)}
1),function(){var e=$("#header").height(),t=$(window).scrollTop();$(".dropdown-menu").removeClass("show"),t>=e?$("#header").addClass("fixed"):$("#header").removeClass("fixed");$(window).scroll(function(){var t=$(window).scrollTop();$(".dropdown-menu").removeClass("show"),t>=e?$("#header").addClass("fixed"):$("#header").removeClass("fixed")})}(),null!==document.querySelector("#main-menu")&&(i(),$(window).resize(function(){$("#main-menu").smartmenus("destroy"),i()})),function(){null!==document.querySelectorAll("[data-toggle='collapse']")&&$("[data-toggle='collapse']").each(function(){$(this).click(function(){$(this).parent(".aside_title").toggleClass("open")})});if(null!==document.querySelector("#aside_menu")){var e=$("#aside_menu"),t=window.location.href;e.find(".current").each(function(){var e=$(this).attr("href").replace("/","");new RegExp("\\b"+e+"\\b").test(t)&&"icon_open"!==$(this).next().attr("id")?$(this).parent().addClass("stay"):($(this).parent().addClass("active open"),$(this).parents(".outer_border>ul").addClass("mark-list"))})}}(),function(){var e={type:"loop",perPage:1,perMove:1,autoplay:!0,gap:10,arrows:!0,pagination:!1,LazyLoad:"nearby"},t=null;if(null!==document.querySelector("#pdct_slide")){t=new(l())("#pdct_slide",e);var n,o=document.querySelectorAll(".thumbnail");$(".thumbnail").click(function(){t.go($(".thumbnail").index(this))}),t.on("mounted moved",function(){var e=o[t.index];e&&(n&&n.classList.remove("is-active"),e.classList.add("is-active"),n=e)}),t.mount()}}(),e={type:"loop",arrows:!0,pagination:!0,perPage:2,perMove:1,autoplay:!0,gap:70,breakpoints:{991:{perPage:1,gap:30}}},null!==document.querySelector("#feedback_slide")&&new(l())("#feedback_slide",e).mount()}),null!==a.Z&&(a.Z.options={type:"loop",speed:1e3,arrows:!1,pagination:!0,autoplay:!0},document.querySelectorAll("#banner_block .splide__slide").length>1?a.Z.mount():null!==document.querySelector("#banner_block")&&$("#banner_block").css("visibility","visible")),Common.driftLoad(function(e){Common.driftStart(e)})}}]);

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.