PageSourceSearch

https://breitling.cn/_nuxt/9f9f676.modern.js

js breitling.cn collected 2026-10-08 16:01:12 UTC 13,234 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1029:function(t,e,n){"use strict";n(721)},1224:function(t,e,n){"use strict";var r=n(9),o=n(2),l=n(23),c=n(108),d=n(137);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var v={name:"SfHeroItem",components:{SfButton:l.a,SfLink:c.a},props:{title:{type:String,default:""},subtitle:{type:String,default:""},buttonText:{type:String,default:""},background:{type:String,default:""},image:{type:[Object,String],default:""},link:{type:String,default:""}},data:()=>({mobileView:!1}),computed:h(h({},Object(d.a)()),{},{style(){var image=this.image,t="string"==typeof image,e=this.background;return{"background-image":"url(".concat(t?image:this.mobileView?image.mobile:image.desktop,")"),"background-color":e}},wrapper(){return this.mobileView?this.link?"SfLink":"SfButton":"div"}}),mounted(){this.mobileView=this.isMobile},beforeDestroy(){Object(d.b)()}},m=n(3),_=Object(m.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"glide__slide sf-hero-item",style:t.style,attrs:{"data-testid":"hero-item"}},[n(t.wrapper,{tag:"component",staticClass:"sf-hero-item__wrapper",attrs:{link:t.link}},[t._t("subtitle",(function(){return[t.subtitle?n("div",{staticClass:"sf-hero-item__subtitle"},[t._v(t._s(t.subtitle))]):t._e()]}),null,{subtitle:t.subtitle}),t._v(" "),t._t("title",(function(){return[t.title?n("h1",{staticClass:"sf-hero-item__title"},[t._v(t._s(t.title))]):t._e()]}),null,{title:t.title}),t._v(" "),t._t("call-to-action",(function(){return[t.buttonText&&!t.mobileView?n("div",{staticClass:"sf-hero-item__button"},[n("SfButton",{attrs:{link:t.link,"data-testid":"hero-cta-button"}},[t._v("\n          "+t._s(t.buttonText)+"\n        ")])],1):t._e()]}),null,{buttonText:t.buttonText,link:t.link})],2)],1)}),[],!1,null,null,null).exports,O=n(581),y={name:"SfBullets",inject:{components:{default:{SfButton:l.a}}},props:{total:{type:Number,default:0},current:{type:Number,default:0}},inactiveRight:(t,e)=>t-1-e,inactiveLeft:(t,e)=>t-(t-1-e)-1,go(t,e){t.click&&t.click(e)}},w=(n(642),Object(m.a)(y,(function(t,e){var n=e._c;return n("ol",e._b({class:[e.data.class,e.data.staticClass,"sf-bullets"],style:[e.data.style,e.data.staticStyle]},"ol",e.data.attrs,!1),[e._l(e.$options.inactiveLeft(e.props.total,e.props.current),(function(t,r){return[e._t("inactive",(function(){return[n("li",{key:r},[n(e.injections.components.SfButton,{tag:"component",staticClass:"sf-button--pure sf-bullet",attrs:{type:"button","aria-label":"Go to slide "+(r+1),"data-testid":r+1},on:{click:function(t){e.listeners.click&&e.listeners.click(r)}}})],1)]}),null,{index:r,$options:e.$options})]})),e._v(" "),e._t("active",(function(){return[n("li",[n(e.injections.components.SfButton,e._b({tag:"component",staticClass:"sf-button--pure sf-bullet is-active",attrs:{"aria-label":"Current slide"}},"component",e.data.attrs,!1))],1)]})),e._v(" "),e._l(e.$options.inactiveRight(e.props.total,e.props.current),(function(t,r){return[e._t("inactive",(function(){return[n("li",{key:e.$options.inactiveLeft(e.props.total,e.props.current)+1+r},[n(e.injections.components.SfButton,{tag:"component",staticClass:"sf-button--pure sf-bullet",attrs:{"aria-label":"Go to slide "+(e.$options.inactiveLeft(e.props.total,e.props.current)+2+r),"data-testid":e.$options.inactiveLeft(e.props.total,e.props.current)+1+r},on:{click:function(t){e.listeners.click&&e.listeners.click(e.$options.inactiveLeft(e.props.total,e.props.current)+1+r)}}})],1)]}),null,{index:e.$options.inactiveLeft(e.props.total,e.props.current)+1+r,$o
1ptions:e.$options})]}))],2)}),[],!0,null,null,null).exports),j=n(547);function S(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function k(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}o.default.component("SfHeroItem",_);var C={name:"SfHero",components:{SfArrow:O.a,SfBullets:w},props:{sliderOptions:{type:Object,default:()=>({})}},data:()=>({glide:null,defaultOptions:{type:"slider",rewind:!0,autoplay:5e3,perView:1,gap:0}}),computed:{mergedOptions(){return k(k({},this.defaultOptions),this.sliderOptions)},numberOfPages(){return this.$slots.default?this.$slots.default.filter((slot=>slot.tag)).length:0},page(){return this.glide?this.glide.index+1:1}},mounted(){this.numberOfPages>1&&this.$nextTick((()=>{if(this.$slots.default){var t=new j.a(this.$refs.glide,this.mergedOptions);t.mount(),this.glide=t}}))},methods:{go(t){if(this.glide)switch(t){case"prev":this.glide.go("<");break;case"next":this.glide.go(">");break;default:this.glide.go("=".concat(t))}}}},P=(n(643),Object(m.a)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sf-hero"},[n("div",{ref:"glide",staticClass:"glide"},[n("div",{staticClass:"glide__track",attrs:{"data-glide-el":"track"}},[n("ul",{staticClass:"glide__slides sf-hero__slides"},[t._t("default")],2)])]),t._v(" "),t.numberOfPages>1?n("div",{staticClass:"sf-hero__control--left"},[t._t("prev",(function(){return[n("SfArrow",{staticClass:"sf-arrow sf-arrow--transparent",attrs:{"aria-label":"previous","data-testid":"hero-prev-button"},on:{click:function(e){return e.stopPropagation(),t.go("prev")}}})]}),null,{go:function(){return t.go("prev")}})],2):t._e(),t._v(" "),t.numberOfPages>1?n("div",{staticClass:"sf-hero__control--right"},[t._t("next",(function(){return[n("SfArrow",{staticClass:"sf-arrow sf-arrow--right sf-arrow--transparent",attrs:{"aria-label":"next","data-testid":"hero-next-button"},on:{click:function(e){return e.stopPropagation(),t.go("next")}}})]}),null,{go:function(){return t.go("next")}})],2):t._e(),t._v(" "),t.numberOfPages>1?n("div",{staticClass:"sf-hero__bullets"},[t._t("bullets",(function(){return[n("SfBullets",{attrs:{total:t.numberOfPages,current:t.page-1,"data-testid":"hero-bullets"},on:{click:function(e){return t.go(e)}}})]}),null,{numberOfPages:t.numberOfPages,page:t.page,go:t.go})],2):t._e()])}),[],!1,null,null,null));e.a=P.exports},520:function(t,e,n){},527:function(t,e,n){"use strict";n(520)},528:function(t,e,n){"use strict";var r={name:"Index",components:{SfModal:n(501).a},props:{show:Boolean}},o=(n(527),n(3)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("SfModal",{staticClass:"price-statement-modal",attrs:{visible:t.show},on:{close:function(e){return t.$emit("update:show",!1)}}},[n("div",{staticClass:"price-statement-modal__wrapper pt-15 text-center"},[n("img",{staticStyle:{width:"50px"},attrs:{src:t.$config.assetUrl+"/pdp/logo-b.svg",alt:"Breitling"}}),t._v(" "),n("p",[t._v("所有标价均为百年灵建议零售价,已含相关增值税。")]),t._v(" "),n("p",[t._v("价格和表款选择不构成具有约束力的报价或合同,可能随时变更。")])])])}),[],!1,null,"6c435246",null);e.a=component.exports},552:function(t,e,n){},576:function(t,e,n){"use strict";n(552)},581:function(t,e,n){"use strict";var r=n(23),o=n(22),l={name:"SfArrow",inject:{components:{default:{SfButton:r.a,SfIcon:o.a}}}},c=(n(576),n(3)),component=Object(c.a)(l,(function(t,e){var n=e._c;return n(e.injections.components.SfButton,e._g(e._b({tag:"component",class:[e.data.class,e.data.staticClass,"sf-arrow"],style:[e.data.style,e.data.staticStyle],attrs:{type:"button"}},"component",e.data.attrs,!1),e.listeners),[e._t("default",(function(){return[n(e.injections.components.SfIcon,e._b({tag:"component",class:[e.data.class,e.data.staticClass,"sf-arrow__icon"],attrs:{size:"1.5rem",icon:"arrow_left","aria-hidden":"true"}},"component",e.data.attrs,!1))]}))],2)}),[],!0,null,null,null);e.a=component.exports},593:function(t,e,n){},594:function(t,e,n){},597:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r,o,l=n(7),c=(n(11),n(56),n(4)),d=n(1),f=(r={search:(o=Object(l.a)((function*(t,e){var n=yield t.$vendure.api.getVariants(e);return null==n?void 0:n.data})),function(t,e){return o.apply(this,arguments)})},t=>{var e=t||"productVariants",n=Object(c.sharedRef)(!1,"".concat(e,"-loading")),o=Object(c.sharedRef)({},"".concat(e,"-result")),f=Object(c.configureFactoryParams)(r),h=Object(c.sharedRef)({search:null},"productsVariant-error-".concat(t)),v=function(){var t=Object(l.a)((function*(t){c.Logger.debug("productsVariant/".concat(e,"/search"),t);try{n.value=!0;var data=yield f.search(t);o.value=data,h.value.search=null}catch(t){h.value.search=t,c.Logger.error("productsVariant/".concat(e,"/search"),t)}finally{n.value=!1}}));return function(e){return t.apply(this,arguments)}}();return{variants:Object(d.computed)((()=>o.value)),loading:Object(d.computed)((()=>n.value)),error:Object(d.computed)((()=>h.value)),search:v}})},642:function(t,e,n){"use strict";n(593)},643:function(t,e,n){"use strict";n(594)},721:function(t,e,n){},914:function(t,e,n){"use strict";var r=n(9),o=n(1224),l=n(108),c=n(170),d=n(517),f=n(171),h=n(137);function v(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var m={components:{SfHero:o.a,SfLink:l.a,CoreOptimizeImage:c.a,CoreButton:d.a,SquadsVideoLayer:f.a},filters:{handleVideoSrc(t){return t.video&&t.videoMobile?this.isMobile?t.videoMobile:t.video:t.video||t.videoMobile}},props:{data:Array},data(){return{heroClientW:0,heroClientH:0,videoHeight:0,open:!1,src:"",swiperOpts:{slidesPerView:1,pagination:{el:".swiper-pagination",clickable:!0},on:{init:()=>{this.$nextTick((()=>{this.handleSwiper()}))}}}}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?v(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(h.a)()),watch:{data(data){var t=data.filter((t=>!t.displayVideo));if(!t.length||t.length===data.length)return this.videoHeight=600;this.heroClientW||(this.heroClientW=document.getElementsByClassName("swiper")[0].clientWidth);var img=new Image;img.src=this.isMobile?t[0].imageMobile:t[0].image,img.onload=()=>{var t=img.height/img.width*this.heroClientW;t>this.videoHeight&&(this.videoHeight=t)}}},beforeDestroy(){Object(h.b)()},methods:{handleSwiper(){if(this.mySwiper){var t=this.mySwiper.params.slidesPerView,e=this.mySwiper.slides.length>t;this.mySwiper.allowTouchMove=e,e||this.mySwiper.pagination.destroy()}},btnClick(t){t.link&&(window.location.href=t.link)},handleTrack(t,e,n){console.log(e),e.video&&(this.isMobile?this.playVideo(e.videoMobile,n):this.playVideo(e.video,n))},playVideo(t,e){this.open=!0,this.src=t,e&&e.preventDefault()},hideVideo(){this.open=!1,this.src=""}}},_=m,O=(n(1029),n(3)),component=Object(O.a)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{directives:[{name:"swiper",rawName:"v-swiper:mySwiper",value:t.swiperOpts,expression:"swiperOpts",arg:"mySwiper"}],staticClass:"swiper"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.data,(function(e,r){return n("div",{key:r,staticClass:"swiper-slide carousel-item",class:[e.textPosition,e.textAlign],on:{click:function(n){return t.handleTrack(r,e,n)}}},[n("core-optimize-image",{staticClass:"carousel-item__img",attrs:{list:e.media}}),t._v(" "),e.video&&e.videoMobile?n("span",{staticClass:"icon"}):t._e(),t._v(" "),n("div",{staticClass:"carousel-item__wrapper"},[n("div",{staticClass:"carousel-item__content",class:e.contentMaxWidth},[n("div",{class:" "+e.textPosition+" "+e.textAlign},[e.textBlock?n("div",{domProps:{innerHTML:t._s(e.textBlock)}}):t._e(),t._v(" "),e.displayButton?n("core-button",{class:"carousel-item__btn mt-15 ",on:{click:function(n){return n.stopPropagation(),t.btnClick(e)}}},[t._v("\n                "+t._s(e.buttonText)+"\n              ")]):t._e()],1)])])],1)})),0),t._v(" "),n("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"})]),t._v(" "),n("SquadsVideoLayer",{attrs:{src:t.src,open:t.open},on:{hide:t.hideVideo}})],1)}),[],!1,null,"3b344d0e",null);e.a=component.exports}}]);

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.