PageSourceSearch

https://www.fcfc.com.tw/dist/js/frontend/chunk/2631.bca62e43263932ce.js

js fcfc.com.tw collected 2026-10-02 19:15:49 UTC 15,466 bytes, 1 lines download raw bytes

1(self.webpackChunkwinshop=self.webpackChunkwinshop||[]).push([[2631],{736886:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(898595),o=n.n(i),a=null;null!==document.querySelector("#banner_block")&&(a=new(o())("#banner_block",{type:"loop",width:"100%",perPage:1,perMove:1,autoplay:!0,arrows:!1,pagination:!0,pauseOnHover:!0,lazyLoad:!1,keyboard:!1}));const r=a},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 i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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 r,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,r=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw r}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=e(o))return o;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 i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.params.has(e),a=null!==e.match(/^range_(start|end)/);switch(!0){case a&&o&&0!==n&&"0"!==n&&""!==n:this.params.set(e,n);break;case a&&!o&&(0===n||0===n||""===n):break;case a&&!o&&0!==n&&0!==n&&""!==n:this.params.append(e,n);break;case a&&o&&(0===n||0===n||""===n):case o:this.params.delete(e);break;case!o:this.params.append(e,n)}var r,s=0,l=t(this.params.keys());try{for(l.s();!(r=l.n()).done;)r.value,s++}catch(e){l.e(e)}finally{l.f()}var c=window.location.pathname,u=this.params.toString();i?window.location.href=s>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&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}())).exec()},444520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=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")?i(e):o(e)}),e=cookies.get("product_follow")||{},collect(e).each(function(e,t){var n=null,i=null;"1"===e?(n="followed",i="follow"):(n="follow",i="followed"),$(".follow_"+t).removeClass(i).addClass(n)}));var i=function(e){Common.addFollow(e,function(t){t&&$(".follow_"+e).removeClass("follow").addClass("followed")})},o=function(e){Common.cancelFollow(e,function(t){t&&$(".follow_"+e).removeClass("followed").addClass("follow")})}}},2631:(e,t,n)=>{"use strict";n.r(t);n(693775),n(405166);var i=n(528630),o=n.n(i),a=n(736886),r=(n(898595),n(444520)),s=n(342982);if($(window).on("load",function(){Common.smartMenus().start(),Common.smartMenus().fixed(),Common.smartMenus().nav(),Common.smartMenus().showNav(),null!==$("#main-menu")&&($("#main-menu").smartmenus("destroy"),d(),$(window).resize(function(){setTimeout(function(){$("#main-menu").smartmenus("destroy"),d()},1e3)})),(0,r.Z)(),(new(o())).init(),(0,s.Z)().update(),$(window).resize(function(){(0,s.Z)().update()}),$("#closeBtn").on("click",function(){$("#myNavbar").removeClass("show")}),$(window).width()>768&&$(window).on("scroll",function(){$(window).scrollTop()>=75?$("#header").addClass("fixed"):$("#header").removeClass("fixed")}
1),function(){var e=$(".banner .scrollDown");null!=e&&e.on("click",function(e){e.preventDefault(),$("html,body").animate({scrollTop:$(".indexSec1").offset().top-100},1e3)})}(),$("#sec1Slick").slick({fade:!0,slidesToShow:1,responsive:[{breakpoint:992,settings:{dots:!0}}]}),$(".indexSec1 .listBox li").on("click",function(){var e=$(this).data("num");$("#sec1Slick").slick("slickGoTo",e)}),function(){$(".children_items").hasClass("show")&&$(".children_items.show").prev().addClass("opened_category");$("#aside_menu").on("click",".aside_title > a + a",function(){$(this).parent(".aside_title").hasClass("opened_category")?$(this).parent(".aside_title").removeClass("opened_category"):$(this).parent(".aside_title").addClass("opened_category")})}()}),null!==a.Z){a.Z.options={interval:5e3,arrows:!1,type:"loop"},a.Z.mount();var l=a.Z.length;$(".banner .totalPageIndex").html(parseInt(l)),a.Z.on("moved",function(){var e=a.Z.index;$(".banner .currentPageIndex").html(parseInt(e+1))}),$(".banner .splide__arrow--prev, .banner .splide__arrow--next").on("click",function(){var e=a.Z.index;$(".banner .currentPageIndex").html(parseInt(e+1))});var c=document.getElementById("bannerPrev"),u=document.getElementById("bannerNext");c&&u?(c.addEventListener("click",function(){a.Z.go("<")}),u.addEventListener("click",function(){a.Z.go(">")})):console.warn("找不到自訂箭頭 #bannerPrev 或 #bannerNext")}function d(){$(window).width()>1200?$("#main-menu").smartmenus({collapsibleBehavior:"default",noMouseOver:!1}):$("#main-menu").smartmenus({collapsibleBehavior:"default",noMouseOver:!0,showFunction:function(e,t){e.slideDown(250,t)},hideFunction:function(e,t){e.slideUp(250,t)},subIndicatorsText:""})}$(".modal").appendTo("body")},528630:function(e,t){var n,i,o;i=[e,t],n=function(e,t){"use strict";var n,i;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){return t.indexOf(e)>=0}function s(e,t){for(var n in t)if(null==e[n]){var i=t[n];e[n]=i}return e}function l(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}function c(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],o=void 0;return null!=document.createEvent?(o=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,i):null!=document.createEventObject?(o=document.createEventObject()).eventType=e:o.eventName=e,o}function u(e,t){null!=e.dispatchEvent?e.dispatchEvent(t):t in(null!=e)?e[t]():"on"+t in(null!=e)&&e["on"+t]()}function d(e,t,n){null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n}function f(e,t,n){null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]}function h(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}var m=window.WeakMap||window.MozWeakMap||function(){function e(){o(this,e),this.keys=[],this.values=[]}return a(e,[{key:"get",value:function(e){for(var t=0;t<this.keys.length;t++)if(this.keys[t]===e)return this.values[t]}},{key:"set",value:function(e,t){for(var n=0;n<this.keys.length;n++)if(this.keys[n]===e)return this.values[n]=t,this;return this.keys.push(e),this.values.push(t),this}}]),e}(),v=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(i=n=function(){function e(){o(this,e),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return a(e,[{key:"observe",value:function(){}}]),e}(),n.notSupported=!0,i),p=window.getComputedStyle||function(e){var t=/(\-([a-z]){1})/g;return{getPropertyValue:function(n){"float"===n&&(n="styleFloat"),t.test(n)&&n.replace(t,function(e,t){return t.toUpperCase()});var i=e.currentStyle;return(null!=i?i[n]:void 0)||null}}},y=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];o(this,e),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollC
1ontainer:null},this.animate="requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()},this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=s(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new m,this.wowEvent=c(this.config.boxClass)}return a(e,[{key:"init",value:function(){this.element=window.document.documentElement,r(document.readyState,["interactive","complete"])?this.start():d(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var e=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var t=0;t<this.boxes.length;t++){var n=this.boxes[t];this.applyStyle(n,!0)}this.disabled()||(d(this.config.scrollContainer||window,"scroll",this.scrollHandler),d(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live&&new v(function(t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.addedNodes.length;o++){var a=i.addedNodes[o];e.doSync(a)}}).observe(document.body,{childList:!0,subtree:!0})}},{key:"stop",value:function(){this.stopped=!0,f(this.config.scrollContainer||window,"scroll",this.scrollHandler),f(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){v.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(e){if(null==e&&(e=this.element),1===e.nodeType)for(var t=(e=e.parentNode||e).querySelectorAll("."+this.config.boxClass),n=0;n<t.length;n++){var i=t[n];r(i,this.all)||(this.boxes.push(i),this.all.push(i),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(i,!0),this.scrolled=!0)}}},{key:"show",value:function(e){return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(e),u(e,this.wowEvent),d(e,"animationend",this.resetAnimation),d(e,"oanimationend",this.resetAnimation),d(e,"webkitAnimationEnd",this.resetAnimation),d(e,"MSAnimationEnd",this.resetAnimation),e}},{key:"applyStyle",value:function(e,t){var n=this,i=e.getAttribute("data-wow-duration"),o=e.getAttribute("data-wow-delay"),a=e.getAttribute("data-wow-iteration");return this.animate(function(){return n.customStyle(e,t,i,o,a)})}},{key:"resetStyle",value:function(){for(var e=0;e<this.boxes.length;e++)this.boxes[e].style.visibility="visible"}},{key:"resetAnimation",value:function(e){if(e.type.toLowerCase().indexOf("animationend")>=0){var t=e.target||e.srcElement;t.className=t.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(e,t,n,i,o){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),i&&this.vendorSet(e.style,{animationDelay:i}),o&&this.vendorSet(e.style,{animationIterationCount:o}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e}},{key:"vendorSet",value:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[""+n]=i;for(var o=0;o<this.vendors.length;o++)e[""+this.vendors[o]+n.charAt(0).toUpperCase()+n.substr(1)]=i}}},{key:"vendorCSS",value:function(e,t){for(var n=p(e),i=n.getPropertyCSSValue(t),o=0;o<this.vendors.length;o++){var a=this.vendors[o];i=i||n.getPropertyCSSValue("-"+a+"-"+t)}return i}},{key:"animationName",value:function(e){var t=void 0;try{t=this.vendorCSS(e,"animation-name").cssText}catch(n){t=p(e).getPropertyValue("animation-name")}return"none"===t?"":t}},{key:"cacheAnimationName",value:function(e){return this.animationNameCache.set(e,this.animationName(e))}},{key:"cachedAnimationName",value:function(e){return this.animationNameCache.get(e)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var e=[],t=0;t<this.boxes.length;t++){var n=this.boxes[t];if(n){if(this.isVisible(n)){this.show(n);continue}e.push(n)}}this.boxes=e,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;)t+=(e=e.offsetParent).offsetTop;return t}},{key:"isVisible",value:function(e){var t=e.getAttribute("data-wow-offset")||this.config.offset,n=this.config.scrollC
1ontainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,i=n+Math.min(this.element.clientHeight,h())-t,o=this.offsetTop(e),a=o+e.clientHeight;return o<=i&&a>=n}},{key:"disabled",value:function(){return!this.config.mobile&&l(navigator.userAgent)}}]),e}();t.default=y,e.exports=t.default},void 0===(o="function"==typeof n?n.apply(t,i):n)||(e.exports=o)}}]);

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.