PageSourceSearch

https://ubco.com/cdn/shop/t/113/assets/layout.theme.js?v=179211937085265820231716438302

js ubco.com collected 2026-10-02 14:32:42 UTC 51,335 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkubco=self.webpackChunkubco||[]).push([[1233],{4370:function(t,e,n){var i=n(5713),a=n.n(i),s=n(103),o=n.n(s)()(a());o.push([t.id,"\n.variantSelector__select {\n  border-radius: 25px;\n  text-align: center;\n  font-weight: bold;\n}\n.variantSelector:not(:last-child) .variantSelector__option  :not(:last-child) {\n  margin-bottom: 1.5rem;\n}\n.variantSelector__radios {\n}\n",""]),e.Z=o},2680:function(t,e,n){var i=n(5713),a=n.n(i),s=n(103),o=n.n(s)()(a());o.push([t.id,"\n*[data-v-484b71e6] {\n  will-change        : height, padding-top, padding-bottom, margin-top, margin-bottom, opacity;\n  transform          : translateZ(0);\n  backface-visibility: hidden;\n  perspective        : 1000px;\n}\n.expand-enter-active[data-v-484b71e6],\n.expand-leave-active[data-v-484b71e6] {\n  transition: height .2s ease-in-out,\n              padding-top .2s ease-in-out,\n              padding-bottom .2s ease-in-out,\n              margin-top .2s ease-in-out,\n              margin-bottom .2s ease-in-out,\
1n              opacity .2s ease-in-out;\n  overflow  : hidden;\n}\n.expand-enter[data-v-484b71e6],\n.expand-leave-to[data-v-484b71e6] {\n  height        : 0;\n  padding-top   : 0;\n  padding-bottom: 0;\n  margin-top    : 0;\n  margin-bottom : 0;\n  opacity       : 0;\n}\n",""]),e.Z=o},7175:function(t,e,n){n(2845);var i=n(9346),a=n.n(i),s=n(6665),o=n(9982),r=n.n(o),l=n(9059);const u=`${l.Hp}_modalViewed`;window.PSTheme.Vue.RegionModal=new(a())({name:"RegionModal",components:{Modal:s.Z},mixins:[l.B2],data(){return{mounted:!1,showModal:!1,displayCountryCode:null,displayCountryName:null,displayCountryUrl:null}},mounted(){this.mounted=!0},watch:{location:function(t,e){if(!t||!this.isInRegions)return;const{URL:n,CODE:i,COUNTRY:a}=l.gu[t],{pathname:s}=window.location;this.displayCountryCode=i,this.displayCountryName=a,this.displayCountryUrl=`https://${n}`,""!==s&&(this.displayCountryUrl=`https://${n}${s}`),this.showHideModal()}},methods:{showHideModal(){this.urlCountryCode!==this.displayCountryCode&&(this.showModal=!r()(u))},closeModal(){this.showModal=!1,r()(u,!0)}}}).$mount(".region__modal");var d=n(7735),c=n(1955);window.PSTheme.Vue.Header=new(a())({name:"Header",components:{TransitionExpand:d.Z},mixins:[l.B2],data:{cartCount:0,mainEl:null,secondMenuIdx:null,accountRootMenu:[],accountExtraMenu:[]},mounted(){this.$refs.cart_count&&(this.cartCount=this.$refs.cart_count.dataset.count||0),this.mainEl=document.querySelector("main");const t=document.querySelector(".site-header"),e=this.isHomePage(t),n=this.isExplorePage(t);if(e&&(this.$actions.removeDarkMode(),window.addEventListener("scroll",this.handleScroll)),n&&window.innerWidth>1023){let t=document.querySelector("main");this.$actions.removeDarkMode(),t.addEventListener("scroll",this.handleScroll)}else n&&(this.$actions.removeDarkMode(),window.addEventListener("scroll",this.handleScroll));const i=this.$refs&&this.$refs.currencySelector?this.$refs.currencySelector:null,a=this.$refs&&this.$refs.currencySelectorMobile?this.$refs.currencySelectorMobile:null;this.updateCurrencyLinks(i),this.updateCurrencyLinks(a)},methods:{changeLanguage(t){const e=this.$refs.languageSelectorDropdown.querySelector("form");this.$refs.languageInput.value=t.currentTarget.dataset.value,e&&e.submit()},getCookieMenuArray(t){const e=c.Z.get(t);return e?JSON.parse(e):[]},openAccountPage(t){localStorage.setItem("account_load_pathname",t),window.location.href="/account"},isExplorePage(t=null){return t&&(t.classList.contains("header-template-page.2x2-adventure-bike")||t.classList.contains("header-template-page.2x2-work-bike")||t.classList.contains("header-template-page.explore-power"))},isHomePage(t=null){return t&&t.classList.contains("header-template-index")},openMenu(){this.$actions.openMenu()},toggleMenu(){this.$actions.toggleMenu()},toggleAccountMenu(){this.$actions.toggleAccountMenu()},toggleSecondMenu(t){this.secondMenuIdx=this.secondMenuIdx!==t?t:null},toggleSearch(){this.$actions.toggleSearch()},toggleLanguageSelector(){this.$actions.toggleLanguageSelector()},toggleLanguageSelectorMobile(){this.$actions.toggleLanguageSelectorMobile()},toggleCurrencySelector(){this.$actions.toggleCurrencySelector()},toggleCurrencySelectorMobile(){this.$actions.toggleCurrencySelectorMobile()},updateCartCount(t){this.cartCount=Number(this.cartCount)+t},setCartCount(t){this.cartCount=t},handleScroll(){if(null===this.mainEl)return;const t=this.mainEl,e=document.querySelector(".banner-video-wrap"),n=document.querySelector(".explore-page__hero");let i=0,a=null;if(e&&(a=e),n&&(a=n),i=t.scrollTop>0&&window.innerWidth>1023?t.scrollTop:window.scrollY,a){const t=a.offsetHeight;(i>=t&&0==this.$store.menuDark||i<=t&&1==this.$store.menuDark)&&this.$actions.toggleMenuColor()}},goToTop(){const t=this.mainEl;t.classList.add("scrolling"),setTimeout((()=>{t.classList.remove("scrolling")}),1e3),t.scrollTo({top:0,left:0,behavior:"smooth"})},updateCurrencyLinks(t=null){if(null===t)return;const e=t.querySelectorAll("li");if(!e.length)return;const n=window.location.pathname.substring(1);Array.from(e).forEach((t=>{t.firstChild.href=`${t.firstChild.href}${n}`}))}}}).$mount(".app__header");var p=n(9508),h=n(5493);n(3725);const m=(t,e)=>{var n=Date.now();return function(){n+e-Date.now()<0&&(t(),n=Date.now())}};const g={data(){return{selectedVariantId:this.variantId,isSoldOut:!1,variants:[]}},mounted(){this.initSettings(),this.initData()},props:{product:{type:Object,default:null,required:!0},productMetafields:{type:Object,default:null},productOptionsWithValues:{type:Object,default:null},productHasOnlyDefaultVariant:{type:Boolean,default:!1},variantId:{type:String,default:null},variantsQuantity:{type:Array,default:[],required:!0}},computed:{maxQuantity(){return this.variantsQuantity&&this.selectedVariantId?this.variantsQuantity[this.selectedVariantId]:1},paymentInfo(){if(this.productMetafields&&this.productMetafields.hasOwnProperty("payment")){var t=this.productMetafields.payment;if(this.productMetafields.payment.includes("**")){t="";let e=this.productMetafields.payment.split("**");for(let n=0;n<e.length;n++)n%2==1&&(t+='<span class="orange">'),t+=e[n],n%2==1&&(t+="</span>")}return t}},shippingEstimate(){if(this.productMetafields&&this.productMetafields.hasOwnProperty("shipping_eta"))return this.productMetafields.shipping_eta},shippingEstimateInStock(){return this.productMetafields&&this.productMetafields.hasOwnProperty("shipping_eta_in_stock")?this.productMetafields.shipping_eta_in_stock:null},saleExpiryDate(){return this.productMetafields&&this.productMetafields.hasOwnProperty("sale_expiry_date")?this.productMetafields.sale_expiry_date:null},outOfStock(){return this.productMetafields&&this.productMetafields.hasOwnProperty("out_of_stock")?this.productMetafields.out_of_stock?1:0:null},shippingEstimateLabel(){return this.productMetafields&&this.productMetafields.hasOwnProperty("shipping_eta_label")?this.productMetafields.shipping_eta_label:null},setQuantity(){return this.productMetafields&&this.productMetafields.hasOwnProperty("set_quantity")?this.productMetafields.set_quantity:null},price(){const{selectedVariant:t=null}=this;if(null===t)return null;return t.price}
1,compareAtPrice(){const{selectedVariant:t=null}=this;if(null===t)return null;const{compare_at_price:e,price:n}=t;return 0===e||n>=e?0:t.compare_at_price},isSoldOut(){return this.selectedVariant&&!this.selectedVariant.available},shippingEstimateUrl(){return this.ShippingQuestionInStock||this.ShippingQuestionDeposit||this.variantsInventoryQuantity?this.maxQuantity>0?this.ShippingQuestionInStock:this.ShippingQuestionDeposit:null},shippingEtaLabel(){return this.maxQuantity>0?this.InStockLabel:`${this.OnDepositEtaLabel}<br/>`},shippingEtaValue(){return this.maxQuantity>0?this.shippingEstimateInStock:this.shippingEstimate},selectedVariant(){const{selectedVariantId:t}=this;return this.variants.find((({id:e})=>t===e))}},methods:{initData(){this.selectedVariantId||(this.selectedVariantId=this.product.variants[0].id),this.variants=this.product.variants},initSettings(){const{ShippingQuestionInStock:t,ShippingQuestionDeposit:e,DepositPaymentQuestion:n,InStockLabel:i,OnDepositEtaLabel:a}=window.PSTheme.Settings.Product;this.ShippingQuestionInStock=t,this.ShippingQuestionDeposit=e,this.DepositPaymentQuestion=n,this.InStockLabel=i,this.OnDepositEtaLabel=a}}},f="regular",y="deposit",v=`${`${window.Shopify.routes.root}`}cart`,_={GET:`${v}.js`,ADD:`${v}/add.js`,UPDATE:`${v}/update.js`,CHANGE:`${v}/change.js`,CLEAR:`${v}/clear.js`},S={"Content-Type":"application/json","X-Requested-With":"xmlhttprequest"},b={POST:"POST",GET:"GET"};async function w({url:t,method:e=b.GET,data:n=null,headers:i={},options:a={}}){try{const s=await fetch(t,{method:e,headers:{...S,...i},...a,...null!==n?{body:JSON.stringify(n)}:null});return await s.json()}catch(t){throw console.error(t),new Error(`Failed to fetch cart API: ${t.name} ${t.message}`)}}var x={name:"VariantSelector",props:{as:{type:String,validator:t=>["select","radios"].includes(t),default:"select"},defaultVariantId:{type:String,default:null},productOptionsWithValues:{type:Object,default:null},productHasDefaultSelectedVariant:{type:Boolean,default:!0},userMustSelectVariant:{type:Boolean,default:!1},variants:{type:Array,default:[]}},data(){return{selectedVariantId:this.userMustSelectVariant?null:this.defaultVariantId,selectedVariant:this.userMustSelectVariant?null:this.getVariantByID(this.defaultVariantId),selectedOptions:[]}},mounted(){if(this.userMustSelectVariant){const t=this.options.map((t=>""));this.selectedOptions=[...t]}else this.updateSelectedVariantID(this.selectedVariantId||this.variants[0].id),!this.selectedOptions.length&&this.selectedVariant&&(this.selectedOptions=[...this.selectedVariant.options])},methods:{updateSelectedVariantID(t=null){null!==t&&(this.selectedVariantId=t,this.selectedVariant=this.getVariantByID(t))},getVariantByID(t=null){return null!==t&&this.variants.length?this.variants.find((e=>e.id===t)):null},findVariantByOptions(){return this.variants.find((t=>this.selectedOptions.every(((e,n)=>e===t.options[n]))),this)},onOptionChange(t){this.updateSelectedVariantID(this.findVariantByOptions().id)}},computed:{options(){return this.productOptionsWithValues&&this.productOptionsWithValues.length?this.productOptionsWithValues.map(((t,e)=>({key:`option[${e}]`,name:t.name,values:t.values.map(((t,n)=>({valueKey:`option[${e}][${n}]`,value:t})))}))):[]}},watch:{selectedVariantId:function(){this.$emit("variant-change",{id:this.selectedVariantId,data:this.selectedVariant})}}},P=n(3379),V=n.n(P),C=n(7795),O=n.n(C),T=n(569),k=n.n(T),E=n(3565),q=n.n(E),I=n(9216),D=n.n(I),M=n(4589),$=n.n(M),A=n(4370),L={};L.styleTagTransform=$(),L.setAttributes=q(),L.insert=k().bind(null,"head"),L.domAPI=O(),L.insertStyleElement=D();V()(A.Z,L),A.Z&&A.Z.locals&&A.Z.locals;var B=n(1900),N=(0,B.Z)(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"variantSelectors"},t._l(t.options,(function(e,i){var a=e.key,s=e.name,o=e.values;return n("div",{key:a,staticClass:"variantSelector"},["select"===t.as?[n("label",{staticClass:"label",attrs:{for:a}},[t._v("\n         "+t._s(t.$languageReplace(t.$language.product.select_option,{name:s}))+":\n      ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedOptions[i],expression:"selectedOptions[index]"}],class:["variantSelector__option","variantSelector__"+t.as],attrs:{id:a},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.selectedOptions,i,e.target.multiple?n:n[0])},t.onOptionChange]}},[t.userMustSelectVariant&&""===t.selectedOptions[i]?n("option",{attrs:{disabled:""},domProps:{value:"",selected:""===t.selectedOptions[i]?"selected":null}},[t._v("\n          Please select\n        ")]):t._e(),t._v(" "),t._l(o,(function(e){var a=e.valueKey,s=e.value;return n("option",{key:a,domProps:{selected:t.selectedOptions[i]===s?"selected":null,value:s}},[t._v("\n          "+t._s(s)+"\n        ")])}))],2)]:[n("fieldset",[n("legend",{staticClass:"label"},[t._v("\n          "+t._s(t.$languageReplace(t.$language.product.select_option,{name:s}))+":\n        ")]),t._v(" "),t._l(o,(function(e){var a=e.valueKey,s=e.value;return n("label",{key:a,class:["variantSelector__option","variantSelector__"+t.as,"btn","btn--full",t.selectedOptions[i]===s?"selected":""],attrs:{for:a}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedOptions[i],expression:"selectedOptions[index]"}],staticClass:"visually-hidden",attrs:{type:"radio",name:"options",id:a,selected:t.selectedOptions[i]===s?"selected":null},domProps:{value:s,checked:t._q(t.selectedOptions[i],s)},on:{change:[function(e){return t.$set(t.selectedOptions,i,s)},t.onOptionChange]}}),t._v(" "),n("span",[t._v("\n            "+t._s(s)+"\n          ")])])}))],2)]],2)})),0)}),[],!1,null,null,null).exports,R={name:"Quantity",props:{id:{type:String,default:"quantity"},min:{type:Number,default:1},max:{type:Number,default:0},step:{type:Number,default:1},hasButtons:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},data(){return{quantity:1}},methods:{decrement(){this.quantity!==this.min&&(this.quantity=this.quantity-Number(this.step))},increment(){this.quantity!==this.max&&(this.quantity=this.quantity+Number(this.step))},onValueChange(t){this.$emit("quantity-change",this.quantity)}},computed:{showButtons(){return!this.hasButtons||!this.hidden}}},Q=(0,B.Z)(R,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quantity"},[n("label",{staticClass:"label"},[t._v("\n    "+t._s(t.$language.product.select_quantity)+":\n  ")]),t._v(" "),n("div",{class:["quantity__field",t.disabled?"is-disabled":""]},[t.showButtons?n("button",{class:["quantity__adjust","quantity__adjust--decrease"],attrs:{disabled:t.disabled||1===t.quantity},on:{click:function(e){return e.preventDefault(),t.decrement.apply(null,arguments)}}},[t._v("\n      -\n    ")]):t._e(),t._v(" "),"checkbox"==(t.hidden?"hidden":"number")?n("input",{directives:[{name:"model",rawName:"v-model",value:t.quantity,expression:"quantity"}],class:["quantity__input",t.showButtons?"quantity__input--hasButtons":""],attrs:{name:"quantity",pattern:t.hidden?null:"[0-9]*",min:t.hidden?null:t.min,max:t.hidden||!t.max?null:t.max,step:t.hidden?null:t.step,disabled:t.disabled,type:"checkbox"},domProps:{checked:Array.isArray(t.quantity)?t._i(t.quantity,null)>-1:t.quantity},on:{change:[function(e){var n=t.quantity,i=e.target,a=!!i.checked;if(Array.isArray(n)){var s=t._i(n,null);i.checked?s<0&&(t.quantity=n.concat([null])):s>-1&&(t.quantity=n.slice(0,s).concat(n.slice(s+1)))}else t.quantity=a},t.onValueChange]}}):"radio"==(t.hidden?"hidden":"number")?n("input",{directives:[{name:"model",rawName:"v-model",value:t.quantity,expression:"quantity"}],class:["quantity__input",t.showButtons?"quantity__input--hasButtons":""],attrs:{name:"quantity",pattern:t.hidden?null:"[0-9]*",min:t.hidden?null:t.min,max:t.hidden||!t.max?null:t.max,step:t.hidden?null:t.step,disabled:t.disabled,type:"radio"},domProps:{checked:t._q(t.quantity,null)},on:{change:[function(e){t.quantity=null},t.onValueChange]}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.quantity,expression:"quantity"}],class:["quantity__input",t.showButtons?"quantity__input--hasButtons":""],attrs:{name:"quantity",pattern:t.hidden?null:"[0-9]*",min:t.hidden?null:t.min,max:t.hidden||!t.max?null:t.max,step:t.hidden?null:t.step,disabled:t.disabled,type:t.hidden?"hidden":"number"},domProps:{value:t.quantity},on:{change:t.onValueChange,input:function(e){e.target.composing||(t.quantity=e.target.value)}}}),t._v(" "),t.showButtons?n("button",{class:["quantity__adjust","quantity__adjust--decrease"],attrs:{disabled:t.disabled||t.quantity===t.max},on:{click:function(e){return e.preventDefault(),t.increment.apply(null,arguments)}}},[t._v("\n      +\n    ")]):t._e()])])}),[],!1,null,null,null),U={name:"ProductForm",components:{VariantSelector:N,QuantityInput:Q.exports},mixins:[g],props:{id:{type:String,default:null,required:""},formClasses:{type:String,default:""},submitButtonText:{type:String,default:""}
1,submitButtonClasses:{type:String,default:null},defaultQty:{type:Number,default:1},showVariantSelector:{type:Boolean,default:!1},productHasDefaultSelectedVariant:{type:Boolean,default:!0},userMustSelectVariant:{type:Boolean,default:!1},showVariantSelectorAs:{type:String,validator:t=>["select","radios"].includes(t),default:"select"},showQuantitySelector:{type:Boolean,default:!0}},data(){return{quantity:this.defaultQty,isAdded:!1,submitDisabled:!1,userSelectedVariant:!1}},mounted(){this.successText=this.$language.product.add_to_cart_success},methods:{async isDeposit(t){const e=await async function(){return await w({url:_.GET})}();if(!e||!e.items)return;return e.items.reduce(((e,{variant_id:n,quantity:i})=>n===t?e+i:e),1)>this.maxQuantity&&"Bikes"==this.product.type},async getAddingType(t=null,e=null){if(!t)return;if(!e)return f;return await this.isDeposit(t)?y:f},lineItemProperties(t=f){return{"Estimated shipping":this.shippingEtaValue,_shipping_eta_label:this.shippingEtaLabel,_shipping_estimate_url:this.shippingEstimateUrl,...t===y&&{_variant_id:this.selectedVariantId,_product_id:this.product.id,_handle:this.product.handle,_product_title:this.product.title,_variant_title:this.selectedVariant.title,_price:this.selectedVariant.price,_image:this.product.images[0]||null,_product_type:this.product.type,_payment_info:this.paymentInfo,_payment_url:this.DepositPaymentQuestion}}},onVariantChange({id:t,data:e}){this.$emit("variant-change",{id:t,data:e}),this.userSelectedVariant||(this.userSelectedVariant=!0),this.selectedVariantId=t,this.selectedVariant=e},onQuantityChange(t){this.$emit("quantity-change",t),this.quanity=t},async submitForm(t){const e=window.PSTheme.Settings.DepositProduct||null,n=await this.getAddingType(this.selectedVariantId,e),i=n===y?e:this.selectedVariantId,a=this.lineItemProperties(n);try{const t=await async function(t={id:null,quantity:1,properties:null},e=null,n=null){const i=Array.isArray(t)?t:[t];try{return await w({url:_.ADD,method:b.POST,data:{items:i,attributes:e,note:n}})}catch(t){throw console.error(t),t}}({id:Number(i),quantity:this.quantity,properties:a});return this.isAdded=!0,this.updateCartCount(this.quantity),t}catch(t){throw console.error(t),t}},updateCartCount(t){window.PSTheme.Vue.Header.updateCartCount(t)},resetIsAdded(){window.setTimeout((()=>{this.isAdded=!1}),3e3)}},computed:{buttonText(){const{sold_out:t,add_to_cart_success:e,add_to_cart:n}=this.$language.product;return this.isSoldOut?t:this.isAdded?e:this.submitButtonText&&""!==this.submitButtonText?this.submitButtonText:n},submitDisabled(){return!this.product.available||!this.selectedVariant||!this.selectedVariant.available}},watch:{isAdded:function(t,e){!0===t&&this.resetIsAdded()}}},j=U,H=(0,B.Z)(j,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.product?n("form",{ref:"form",class:["product-form",t.formClasses],attrs:{id:""===t.id?"product-form-"+t.product.id:t.id,method:"post",action:"/cart/add","accept-charset":"UTF-8",enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.submitForm.apply(null,arguments)}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedVariantId,expression:"selectedVariantId"}],attrs:{type:"hidden",name:"id"},domProps:{value:t.selectedVariantId},on:{input:function(e){e.target.composing||(t.selectedVariantId=e.target.value)}}}),t._v(" "),t._t("beforeInputs"),t._v(" "),t.showVariantSelector&&!t.productHasOnlyDefaultVariant&&t.variants.length?n("variant-selector",{attrs:{as:t.showVariantSelectorAs,variants:t.variants,"default-variant-id":t.selectedVariantId,"product-options-with-values":t.productOptionsWithValues,"product-has-default-selected-variant":t.productHasDefaultSelectedVariant,"user-must-select-variant":t.userMustSelectVariant},on:{"variant-change":t.onVariantChange}}):t._e(),t._v(" "),t._t("afterVariantSelector"),t._v(" "),t.showQuantitySelector?n("quantity-input",{attrs:{disabled:null===t.selectedVariant&&!t.productHasOnlyDefaultVariant||!t.productHasOnlyDefaultVariant&&!t.userSelectedVariant&&t.userMustSelectVariant},on:{"quantity-change":t.onQuantityChange}}):t._e(),t._v(" "),t._t("afterQuantitySelector"),t._v(" "),n("button",{class:["btn",""!==t.submitButtonClasse
1s?t.submitButtonClasses:""],attrs:{disabled:t.submitDisabled||t.isAdded||t.isAdding||null===t.selectedVariant||!t.productHasOnlyDefaultVariant&&!t.userSelectedVariant&&t.userMustSelectVariant}},[t._v("\n    "+t._s(t.buttonText)+"\n  ")]),t._v(" "),t._t("afterAddButton")],2):t._e()}),[],!1,null,null,null),Z=H.exports,F=n(9919),G=n(7342);const Y={mixins:[l.B2],data(){return{currentShippingLabel:"",DepositPaymentQuestion:null,InStockLabel:null,isAdded:!1,isAdding:!1,minQuantity:1,OnDepositEtaLabel:null,quantity:1,selectedOptions:[],ShippingQuestionDeposit:null,ShippingQuestionInStock:null,variants:[],selectedVariant:null,selectedVariantId:null}},mounted(){this.init()},props:{id:{type:Number,default:null},product:{type:Object,default:null},metafields:{type:Object,default:null},variantsInventoryQuantity:{type:Array,default:[]},hasDefaultVariant:{type:Boolean,default:!1},activeVariantId:{type:Number,default:null},optionsWithValues:{type:Object,default:null},hasOnlyDefaultVariant:{type:Boolean,default:!0},isTaxIncluded:{type:Boolean,default:!1}},computed:{lineitemPropertiesRegular(){return{"Estimated shipping":this.shippingEtaValue,_shipping_eta_label:this.shippingEtaLabel,_shipping_estimate_url:this.shippingEstimateUrl}},lineitemPropertiesDeposit(){return{...this.lineitemPropertiesRegular,_variant_id:this.activeVariantId,_product_id:this.product.id,_handle:this.product.handle,_product_title:this.product.title,_variant_title:this.activeVariant.title,_price:this.activeVariant.price,_image:this.product.images[0]||null,_product_type:this.product.type,_payment_info:this.paymentInfo,_payment_url:this.DepositPaymentQuestion}},paymentInfo(){if(this.metafields&&this.metafields.hasOwnProperty("payment")){var t=this.metafields.payment;if(this.metafields.payment.includes("**")){t="";let e=this.metafields.payment.split("**");for(let n=0;n<e.length;n++)n%2==1&&(t+='<span class="orange">'),t+=e[n],n%2==1&&(t+="</span>")}return t}},shippingEstimate(){if(this.metafields&&this.metafields.hasOwnProperty("shipping_eta"))return this.metafields.shipping_eta},shippingEstimateInStock(){return this.metafields&&this.metafields.hasOwnProperty("shipping_eta_in_stock")?this.metafields.shipping_eta_in_stock:null},saleExpiryDate(){return this.metafields&&this.metafields.hasOwnProperty("sale_expiry_date")?this.metafields.sale_expiry_date:null},outOfStock(){return this.metafields&&this.metafields.hasOwnProperty("out_of_stock")?this.metafields.out_of_stock?1:0:null},shippingEstimateLabel(){return this.metafields&&this.metafields.hasOwnProperty("shipping_eta_label")?this.metafields.shipping_eta_label:null},setQuantity(){return this.metafields&&this.metafields.hasOwnProperty("set_quantity")?this.metafields.set_quantity:null},maxQuantity(){const{variantsInventoryQuantity:t,activeVariantId:e}=this;return t&&e?t[e]:1},price(){const{activeVariant:t=null}=this,e=t.price;return null===t?null:e},compareAtPrice(){const{activeVariant:t=null}=this,{compare_at_price:e,price:n}=t;return null===t?null:null!==t&&(0===e||n>=e)?0:t.compare_at_price},submitDisabled(){return!this.product.available||!this.activeVariant||!this.activeVariant.available},isSoldOut(){return this.activeVariant&&!this.activeVariant.available},activeVariant(){return this.getActiveVariant()},addToCartText(){const{region_unavailable:t,sold_out:e,add_to_cart_success:n,add_to_cart:i}=this.$language.product;return this.isSoldOut?e:this.isAdded?n:i},shippingEstimateUrl(){return this.ShippingQuestionInStock||this.ShippingQuestionDeposit||this.variantsInventoryQuantity?this.maxQuantity>0?this.ShippingQuestionInStock:this.ShippingQuestionDeposit:null},shippingEtaLabel(){return this.maxQuantity>0?this.InStockLabel:`${this.OnDepositEtaLabel}<br/>`},shippingEtaValue(){return this.maxQuantity>0?this.shippingEstimateInStock:this.shippingEstimate}},methods:{init(){this.successText=this.$language.product.add_to_cart_success;const{ShippingQuestionInStock:t,ShippingQuestionDeposit:e,DepositPaymentQuestion:n,InStockLabel:i,OnDepositEtaLabel:a}=window.PSTheme.Settings.Product;if(this.ShippingQuestionInStock=t,this.ShippingQuestionDeposit=e,this.DepositPaymentQuestion=n,this.InStockLabel=i,this.OnDepositEtaLabel=a,this.product){const{variants:t}=this.product;this.variants=t}this.activeVariant&&(this.selectedOptions=[...this.activeVariant.options])},regularAddItem(t){return(0,G.jX)(t,{quantity:this.quantity,properties:this.lineitemPropertiesRegular}).then((()=>(this.isAdded=!0,window.PSTheme.Vue.Header.updateCartCount(this.quantity),this.isAdded))
1)},addDepositItem(t){return(0,G.jX)(t,{quantity:this.quantity,properties:this.lineitemPropertiesDeposit}).then((()=>(this.isAdded=!0,window.PSTheme.Vue.Header.updateCartCount(this.quantity),this.isAdded)))},findVariantById(t=null){const{variants:e}=this;if(e&&t)return e.find((({id:e})=>e===t))},getActiveVariant(){const{variants:t,activeVariantId:e}=this;if(t&&t.length&&e)return this.findVariantById(e)},updateActiveVariant({id:t=null}){null!==t&&(this.activeVariantId=t)},findVariantBySelected(){return this.variants.find((t=>this.selectedOptions.every(((e,n)=>e===t.options[n]))),this)},onOptionChange(t){this.updateActiveVariant(this.findVariantBySelected())}}};var W={name:"ProductFormCard",components:{Price:F.Z,ProductForm:Z},mixins:[Y],mounted(){},methods:{onVariantChange({id:t,data:e}){this.activeVariantId=t,this.activeVariant=e,this.selectedVariantId=t,this.selectedVariant=e}}},J=(0,B.Z)(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-form-card"},[t.activeVariant?n("price",{attrs:{price:t.price,"sale-price":t.compareAtPrice,"price-varies":!1,"show-sale-price-first":!0,"show-gst-msg":!1,"show-currency":!0}}):t._e(),t._v(" "),n("product-form",{attrs:{id:t.id,product:t.product,"product-metafields":t.metafields,"product-options-with-values":t.optionsWithValues,"product-has-only-default-variant":t.hasOnlyDefaultVariant,"submit-button-classes":"btn--full orange-fill","variant-id":t.activeVariantId,"variants-quantity":t.variantsInventoryQuantity,"show-variant-selector":!0,"show-quantity-selector":!1},on:{"variant-change":t.onVariantChange}})],1)}),[],!1,null,null,null).exports,K=n(9767);const z="PS_POPUP_MODAL",X=new AbortController;var tt={name:"PopupModal",mixins:[K.O8],data(){return{mounted:!1,display:!1,visible:!1,displayed:!1,Shopify:null,scrollSection:null}},props:{position:{type:String,default:"center"},trigger:{type:Object,default:function(){return{type:null,value:null}}},nextAppears:{type:String,default:"session"}},watch:{display:function(t){t&&setTimeout((()=>{this.visible=!0}),100)},visible:function(t){t||setTimeout((()=>{this.display=!1}),1e3)},firstClick:function(t){null!==t&&"time_delay_after_click"===this.trigger.type&&this.displayVisitDuration(this.trigger.value,this.firstClick)}},methods:{strIsTrue(t){return"true"===t},checkIfDisplayed(){const t=z;switch(this.canForceOpen()?"instant":this.nextAppears){case"session":this.displayed=this.strIsTrue(c.Z.get(t));break;case"cache":this.displayed=this.strIsTrue(localStorage.getItem(t));default:this.displayed=!1}},canForceOpen(){const t=!!Shopify.designMode,e=new Proxy(new URLSearchParams(window.location.search),{get:(t,e)=>t.get(e)}).force_open===z&&"unpublished"===Shopify.theme.role;return t||e},setDisplayed(){const t=z;switch(this.canForceOpen()?"instant":this.nextAppears){case"session":c.Z.set(t,!0),this.displayed=!0;break;case"cache":localStorage.setItem(t,!0),this.displayed=!0;break;default:this.displayed=!1}},open:function(t){this.display=!0,this.setDisplayed()},close:function(t){this.visible=!1},displayDelayTimeout(t=0){window.setTimeout((()=>{this.open()}),t)},getSectionDepth(t){return t?Math.round(t.getBoundingClientRect().top+window.scrollY):0},isOutOfViewPort(t){const e=t.getBoundingClientRect(),n={};return n.top=e.top<0,n.left=e.left<0,n.bottom=e.bottom>(window.innerHeight||document.documentElement.clientHeight),n.right=e.right>(window.innerWidth||document.documentElement.clientWidth),n.any=n.top||n.left||n.bottom||n.right,n},onScrollDepth(){const{type:t,value:e}=this.trigger;let n=e,i=window.scrollY>=n,a=null;if("after_section_number"===t){const t=this.getSectionByIndex(e);n=this.getSectionDepth(t),a=this.isOutOfViewPort(t),i=i&&!a.bottom}i&&(this.open(),X.abort())},displayScrollDepth(){document.addEventListener("scroll",this.onScrollDepth.bind(this),{passive:!0,signal:X.signal})},getSectionByIndex(t){const e=document.querySelector("main").querySelectorAll(".shopify-section:not(.section-email-popup):not(.app__footer)");return e[e.length>=t?t-1:e.length-1]},displayAfterSectionNumber(){this.displayScrollDepth()},displayVisitDuration(t=null,e=null){if(!e||!t)return;const n=new Date(Date.now()),i=new Date(e),a=t-(n.getTime()-i.getTime());a>0?this.displayDelayTimeout(a):this.open()},displayAfterFirstClick(t){this.firstClick&&this.displayVisitDuration(t,this.firstClick)},initPopup(){const{type:t,value:e}=this.trigger,n=this.canForceOpen()?"instant":t;if(!this.displayed)switch(n){case"time_delay":this.displayDelayTimeout(e);break;case"time_delay_after_click":this.displayAfterFirstClick(e);break;case"after_section_number":case"scroll_depth":this.displayScrollDepth();break;case"visit_duration":this.displayVisitDuration(e,this.userSession);break;default:this.open()}}},mounted(){this.mounted=!0,this.Shopify=Shopify,this.checkIfDisplayed(),this.initPopup()}},et=(0,B.Z)(tt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.display||t.Shopify&&t.Shopify.designMode?n("div",{class:["popup-modal","popup-modal--"+(t.Shopify.designMode?"static":t.position),{isOpen:t.visible}],on:{click:function(e){return e.target!==e.currentTarget?null:t.close()},close:function(e){return t.close()}}},[t._t("default")],2):t._e()}),[],!1,null,null,null).exports;const nt=document.querySelector(".anchor-nav");["/pages/2x2-adventure-bike","/pages/2x2-work-bike"].some((t=>window.location.href.includes(t)))&&(window.location.href="/pages/2x2-electric-bike");function it({querySelector:t=null,settings:e=null,idPrefix:n=""}){if(!t||!e)return;const i=Array.from(document.querySelectorAll(t));
1i.length&&i.forEach((t=>function({el:t=null,settings:e=null,idPrefix:n=""}){if(!t||!e)return;const i=t.parentNode.id;e={...e,mixins:[l.B2]},window.PSTheme.Vue[`${n}${i}`]=new(a())(e).$mount(t)}({el:t,settings:e,idPrefix:n})))}(()=>{if(!nt)return;let t=nt.querySelectorAll(".anchor-link"),e=document.body,n=nt.offsetHeight;e.classList.add("has-anchor-nav"),e.setAttribute("style",`--anchor-nav-height: ${n}px;`);let i=document.querySelectorAll("main .shopify-section:not(#shopify-section-footer)");i.forEach(((t,e)=>{const n=document.createElement("div");n.classList.add("hidden-anchor-link"),n.id=e,t.appendChild(n)}));let a=window.scrollY;var s=document.body.getBoundingClientRect(),o=nt.getBoundingClientRect().top-s.top;t.forEach((t=>{t.addEventListener("click",(()=>{nt.classList.remove("active")}))})),window.addEventListener("scroll",m((()=>{a=window.scrollY,a>o?nt.classList.add("sticky"):nt.classList.remove("sticky")}),100)),window.addEventListener("scroll",m((function(){let e=[];i.forEach((t=>{var n=t.getBoundingClientRect();let i=Number(t.querySelector(".hidden-anchor-link").id);n.top<window.innerHeight&&n.bottom>=0&&e.push(i)})),((t,e)=>{e.forEach((e=>{let n=Number(e.getAttribute("data-section-start")),i=Number(e.getAttribute("data-section-end"));t.map((t=>{t>=n&&t<=i?e.classList.add("active"):e.classList.remove("active")}))}))})(e,t)}),50))})(),it({querySelector:".featured-product-block",settings:{name:"featuredProduct",mixins:[l.B2],data(){return{showLiveImage:!1}}},idPrefix:"featuredProduct"}),it({querySelector:".module-one",settings:{name:"homeBannerVideo",mixins:[l.B2],data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-one-"}),it({querySelector:".module-two",settings:{name:"moduleTwo",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-two-"}),it({querySelector:".module-three",mixins:[l.B2],settings:{name:"moduleThree",data(){return{mounted:!1}},components:{ProductForm:Z},mounted(){this.mounted=!0}},idPrefix:"module-three-"}),it({querySelector:".module-four",settings:{name:"homeCarousel",mixins:[l.B2],components:{slider:h.tv,slide:h.jw},data(){return{mounted:!1,carouselOptions:{perPage:2,arrows:!0,pagination:!1,gap:"20px",padding:{right:"7rem"},breakpoints:{[p.ku["--tablet-lg-up"]-1]:{perPage:2,pagination:!0,arrows:!1,gap:"4px",padding:{right:"5rem"}},[p.ku["--tablet-up"]-1]:{perPage:1,arrows:!1,pagination:!0,gap:"4px",padding:{right:"5rem"}}}}}},mounted(){this.mounted=!0}},idPrefix:"module-four-"}),it({querySelector:".module-five",settings:{name:"moduleFive",components:{slider:h.tv,slide:h.jw,ProductForm:Z},mixins:[l.B2],data(){return{mounted:!1,carouselOptions:{perPage:1,arrows:!0,pagination:!0}}},mounted(){this.mounted=!0}},idPrefix:"module-five-"}),it({querySelector:".module-six",settings:{name:"moduleSix",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-six-"}),it({querySelector:".module-seven",settings:{name:"moduleSeven",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-seven-"}),it({querySelector:".module-nine",settings:{name:"blogCarousel",components:{slider:h.tv,slide:h.jw},data(){return{mounted:!1,carouselOptions:{type:"loop",perPage:5,arrows:!0,pagination:!0,gap:"28px",padding:{right:"0"},breakpoints:{[p.ku["--tablet-lg-up"]-1]:{perPage:3,pagination:!0,arrows:!0,gap:"28px",padding:{right:"0"}},[p.ku["--tablet-up"]-1]:{perPage:1,arrows:!0,pagination:!0,gap:"0",padding:{right:"0"}}}}}},mounted(){this.mounted=!0}},idPrefix:"module-nine-"}),it({querySelector:".module-ten",settings:{name:"moduleTen",components:{slider:h.tv,slide:h.jw},data(){return{mounted:!1,carouselOptions:{perPage:1,arrows:!1,pagination:!1,gap:0,mediaQuery:"max",destroy:!0,breakpoints:{650:{perPage:1,arrows:!1,pagination:!0,gap:0,destory:!1}}}}},methods:{toggleClick(t){const{target:e}=t,{clickToggle:n}=e.dataset,i=`[data-id=${n}]`,a=document.querySelectorAll(i);e.querySelector(".module-ten__toggle").classList.toggle("active"),console.log({allTargets:a}),Array.from(a).forEach((t=>t.classList.toggle("visually-hidden")))}},mounted(){this.mounted=!0}},idPrefix:"module-ten-"}),it({querySelector:".module-eleven",settings:{name:"moduleEleven",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-eleven-"}),it({querySelector:".module-twelve",settings:{name:"moduleTwelve",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-twelve-"}),it({querySelector:".module-thirteen",settings:{name:"moduleThirteen",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-thirteen-"}),it({querySelector:".module-fifteen",settings:{name:"moduleFifteen",components:{ProductFormCard:J},data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-fifteen-"}),it({querySelector:".module-sixteen",settings:{name:"moduleSixteen",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-sixteen-"}),it({querySelector:".module-seventeen",settings:{name:"moduleSeventeen",data(){return{mounted:!1}},mounted(){this.mounted=!0}},idPrefix:"module-seventeen-"}),it({querySelector:".section-email-popup",settings:{name:"EmailPopupForm",data(){return{formPosted:!1,formId:null}},components:{PopupModal:et},methods:{close:function(){this.$refs.popup.close()}},beforeMount(){const t=new URLSearchParams(window.location.search);this.formPosted=!!t.get("contact_posted"),this.formId=window.location.hash.replace("#","")}
1,mounted(){if(this.mounted=!0,this.formPosted){const t=this.$refs.popup,{type:e,value:n}=t.trigger;if("after_section_number"===e){const e=t.getSectionByIndex(n),i=t.getSectionDepth(e);window.scrollTo(0,i)}t.open(),window.setTimeout((()=>{t.close()}),5e3)}}},idPrefix:"email-popup-"}),window.PSTheme.Vue.Footer=new(a())({name:"Footer",mixins:[l.B2],components:{TransitionExpand:d.Z},data:{showFirstMenu:!1,showSecondMenu:!1},methods:{toggleNav(t){"first"==t?this.showFirstMenu=!this.showFirstMenu:"second"==t&&(this.showSecondMenu=!this.showSecondMenu)}}}).$mount(".app__footer"),document.addEventListener("DOMContentLoaded",(function(){const t=[].slice.call(document.querySelectorAll("video.lazy"));function e(t=null){if(t){for(let e in t.children){const n=t.children[e];"string"==typeof n.tagName&&"SOURCE"===n.tagName&&(n.src=n.dataset.src)}if(t.getAttribute("autoplay")&&(t.muted=!0),t.load(),t.getAttribute("autoplay")){const e=t.play();void 0!==e&&e.then((t=>{})).catch((e=>{t.muted=!0,t.play()}))}t.classList.remove("lazy")}}const n=t.find((t=>function(t){const e=t.getBoundingClientRect(),n=window.innerHeight;return Math.max(0,Math.min(e.bottom,n)-Math.max(e.top,0))/t.offsetHeight*100>=25}(t)));if(n&&e(n),"IntersectionObserver"in window){const n=new IntersectionObserver((function(t,i){t.forEach((function(t){t.isIntersecting&&(e(t.target),n.unobserve(t.target))}))}));t.forEach((function(t){n.observe(t)}))}}))},9508:function(t,e,n){n.d(e,{ku:function(){return i}});let i={"--mobile-up":416,"--phablet-up":520,"--tablet-up":640,"--tablet-lg-up":1024,"--laptop-up":1152,"--desktop-up":1600,"--ultrawide":2e3}},7342:function(t,e,n){function i(){return p()}function a(t){return g(t),p().then((function(e){var n=-1;return e.items.forEach((function(e,i){n=e.key===t?i+1:n})),-1===n?Promise.reject(new Error("Theme Cart: Unable to match line item with provided key")):n}))}function s(t,e){return e=e||{},f(t),function(t,e,n){var i=d();return i.method="POST",i.body=JSON.stringify({id:t,quantity:e,properties:n}),c("/cart/add.js",i)}(t,e.quantity,e.properties)}function o(t,e){return g(t),function(t){if("object"!=typeof t)throw new TypeError("Theme Cart: Options must be an object");if(void 0===t.quantity&&void 0===t.properties)throw new Error("Theme Cart: You muse define a value for quantity or properties");void 0!==t.quantity&&function(t){if("number"!=typeof t||isNaN(t))throw new TypeError("Theme Cart: An object which specifies a quantity or properties value is required")}(t.quantity);void 0!==t.properties&&function(t){if("object"!=typeof t)throw new TypeError("Theme Cart: Properties must be an object")}(t.properties)}(e),a(t).then((function(t){return h(t,e)}))}function r(){return(t=d()).method="POST",c("/cart/clear.js",t);var t}function l(t){return m({note:t})}function u(t){var e=d();return e.method="POST",e.body=JSON.stringify({items:t}),c("/cart/add.js",e)}function d(){return JSON.parse(JSON.stringify({credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json;"}}))}function c(t,e){return fetch(t,e).then((function(t){if(!t.ok)throw t;return t.json()}))}function p(){return c("/cart.js",d())}function h(t,e){var n=d();return e=e||{},n.method="POST",n.body=JSON.stringify({line:t,quantity:e.quantity,properties:e.properties}),c("/cart/change.js",n)}function m(t){var e=d();return e.method="POST",e.body=JSON.stringify(t),c("/cart/update.js",e)}function g(t){if("string"!=typeof t||2!==t.split(":").length)throw new TypeError("Theme Cart: Provided key value is not a string with the format xxx:xxx")}function f(t){if("number"!=typeof t||isNaN(t))throw new TypeError("Theme Cart: Variant ID must be a number")}n.d(e,{$:function(){return u},$G:function(){return o},H5:function(){return r},Qk:function(){return l},jX:function(){return s},y0:function(){return i}})},2845:function(t,e,n){var i=n(9346),a=n.n(i);const s=a().observable({menuActive:!1,menuAccountActive:!1,menuDark:!0,showTestRide:!0,showGoToTop:!1,searchActive:!1,languageSelector:!1,languageSelectorMobile:!1,currencyDropdown:!1,currencyDropdownMobile:!1,hasTransparentHeader:!1,notificationsActive:!1,closeAnnouncement:!1}),o={bodyHidden(){document.documentElement.style.overflow="hidden"},bodyShow(){document.documentElement.style.overflow="auto"},openMenu(){s.menuActive=!0,this.bodyHidden()},toggleMenu(){s.menuActive?this.closeAll():(this.closeAll(),s.menuAccountActive=!1,s.menuActive=!0,this.bodyHidden())},toggleAccountMenu(){this.closeAll(),s.menuActive=!0,this.bodyHidden(),s.menuAccountActive=!0},toggleMenuColor(){s.menuDark=!s.menuDark,s.showTestRide=!s.showTestRide,s.hasTransparentHeader=!s.hasTransparentHeader,document.querySelector(".explore-page__hero")&&(s.showGoToTop=!s.showGoToTop)},toggleSearch(){s.menuActive=!1,this.bodyShow(),s.searchActive=!s.searchActive,s.currencyDropdown=!1,!0===s.hasTransparentHeader&&this.toggleMenuColor()},toggleLanguageSelector(){s.currencyDropdown=!1,s.languageSelector=!s.languageSelector},toggleLanguageSelectorMobile(){s.currencyDropdown=!1,s.languageSelectorMobile=!s.languageSelectorMobile},toggleCurrencySelector(){s.searchActive=!1,s.languageSelector=!1,s.currencyDropdown=!s.currencyDropdown,!0===s.hasTransparentHeader&&this.toggleMenuColor()},toggleCurrencySelectorMobile(){console.log("toggleCurrencySelectorMobile"),s.currencyDropdownMobile=!s.currencyDropdownMobile},closeAll(){this.bodyShow(),s.menuActive=!1,s.searchActive=!1,s.currencyDropdown=!1,s.languageSelector=!1,window.PSTheme.Vue.Header.secondMenuIdx=null,window.PSTheme.Vue.Header.thirdMenuIdx=null},removeDarkMode(){s.menuDark=!1,s.showTestRide=!1,s.hasTransparentHeader=!0}};a().prototype.$store=s,a().prototype.$actions=o;var r=n(9508),l=n(6768),u=n(1186),d=n(3253),c=n(1839),p=n(9767),h=n(2836),m={methods:{bem(t,e,n=!1){const i=(0,h.Z)(this.$options.className||this.$options.name),a=`${i}__${t}`,s=`${a}--${e}`;return t&&e&&n?`${a} ${s}`:t&&e&&!n?s:t&&!e?a:e?`${i}--${e}`:i}}};(0,p.KY)(),a().use(c.Z,{immediate:!1,toggle:!0,children:!1,offset:0,hook:"onEnter",delay:250,class:"fadeInSlide",selector:null,callback:()=>{}}),a().use(n(9655)),a().config.devtools=!0,a().config.productionTip=!1,a().config.silent=!0,a().prototype.$language=window.P
1STheme.Language,a().prototype.$root_url=window.Shopify.routes.root,a().prototype.$languageReplace=(t="",e=null)=>{if(""===t.length&&null===replace)return t;let n=t;return Object.keys(e).forEach((t=>{n=n.replace(`#[${t}]`,e[t])})),n},a().prototype.$image=(t,e="750x")=>d.M0(t,e),a().prototype.$preloadImages=(t,e="750x")=>d.MA(t,e),a().prototype.$money=t=>(0,u.l)(t,function(t){switch(t){case"GBP":return"£{{amount}}";case"EUR":return"€{{amount}}";default:return"${{amount}}"}}(globalThis.PSTheme.Settings.Currency)).replace(".00",""),a().prototype.$isEmpty=t=>{if(t&&0===Object.keys(t).length&&t.constructor===Object)return!0},a().use(l.Z,{mobile_up:r.ku["--mobile-up"],tablet_up:r.ku["--tablet-up"],tablet_lg_up:r.ku["--tablet-lg-up"],laptop_up:r.ku["--laptop-up"],desktop_up:r.ku["--desktop-up"]}),a().mixin(m)},9059:function(t,e,n){n.d(e,{B2:function(){return g},Hp:function(){return i},gu:function(){return s}});const i="PSLocation",a=["BE","EL","LT","PT","BG","ES","LU","RO","CZ","FR","HU","SI","DK","HR","MT","SK","DE","IT","NL","FI","EE","CY","AT","SE","IE","LV","PL","IS","NO","LI","CH"],s={US:{URL:"ubco.com",STORE_URL:"ubco-bikes,ubco-test,ubco-sandbox-us",CODE:"US",COUNTRY:"United States"},NZ:{URL:"ubco.co.nz",STORE_URL:"ubco-new-zealand",CODE:"NZ",COUNTRY:"New Zealand"},GB:{URL:"ubco.uk",STORE_URL:"ubco-uk",CODE:"GB",COUNTRY:"United Kingdom"},AU:{URL:"ubco.com.au",STORE_URL:"ubco-australia",CODE:"AU",COUNTRY:"Australia"},EU:{URL:"ubco.eu",STORE_URL:"ubco-europe",CODE:"EU",COUNTRY:"Europe"}},o=(t,e)=>Object.fromEntries(Object.entries(t).map((([t,n],i)=>[t,e(n,t,i)]))),r=(o(s,(({URL:t})=>t)),o(s,(({COUNTRY:t})=>t)),o(s,(({CODE:t})=>t)));const l=()=>{const{hostname:t}=window.location,{Domain:e=null}=PSTheme&&PSTheme.Site?PSTheme.Site:null;return e||t};function u(){const t=l().replace(".myshopify.com","");return Object.keys(s).find((e=>{const{URL:n,STORE_URL:i}=s[e];return t==n||i.includes(t)}))}const d=(t=null)=>!!t&&a.some((e=>e===t)),c=(t=null)=>!!t&&Object.keys(r).some((e=>e===t));function p(t){const{country:{handle:e}}=t.detected_values,n=d(e)?r.EU:e,a=c(n)?n:e;return function(t){localStorage.setItem(i,t)}(a),a}const h=async function(){const t=await fetch(`${window.Shopify.routes.root}browsing_context_suggestions.json?country[enabled]=true&language[enabled]=true`);return await t.json()}().then((t=>({code:p(t),suggestions:t.suggestions,detected:t.detected_values,features:t.features}))),m=(t,e)=>t&&t===e,g={data(){return{location:{detected:null,features:null,code:null,suggestions:null,checked:!1},language:null,urlCountryCode:u()}},async beforeMount(){const{code:t,suggestions:e,detected:n,features:i}=await h.then((t=>t));t?(this.location.code=t,this.location.suggestions=e,this.location.detected=n,this.location.features=i,this.location.checked=!0):this.location.checked=!1},computed:{isAU(){return m(this.location.code,r.AU)},isEU(){return m(this.location.code,r.EU)},isUS(){return m(this.location.code,r.US)},isGB(){return m(this.location.code,r.GB)},isNZ(){return m(this.location.code,r.NZ)},isInRegions(){return this.location.code&&c(this.location.code)},currency(){return window.PSTheme.Settings.Currency}}}},9767:function(t,e,n){n.d(e,{KY:function(){return o},O8:function(){return u}});var i=n(1955);const a="PS_USS",s="PS_UFC";function o(t=null,e=!0){null===t||i.Z.get(t)||i.Z.set(t,e,{secure:!0,domain:PSTheme.Site.Domain})}function r(t=null){return null===t?t:i.Z.get(t)}const l=t=>"undefined"===t||void 0===t,u={data(){return{userSession:null,firstClick:null}},async beforeMount(){const t=Date.now(),e=r(a);l(e)?(o(a,Number(t)),this.userSession=Number(t)):this.userSession=Number(e);const n=r(s);l(n)?document.body.addEventListener("click",function(t){const e=Date.now();o(s,e),this.firstClick=Number(e)}.bind(this),{passive:!0,once:!0}):this.firstClick=Number(n)}}},9982:function(t,e,n){var i=n(5354),a=n(4872),s=n(1235),o="localStorage"in n.g&&n.g.localStorage?n.g.localStorage:i;function r(t,e){return 1===arguments.length?l(t):u(t,e)}function l(t){const e=o.getItem(t);return a(e)}function u(t,e){try{return o.setItem(t,JSON.stringify(e)),!0}catch(t){return!1}}r.set=u,r.get=l,r.remove=function(t){return o.removeItem(t)},r.clear=function(){return o.clear()},r.backend=function(t){return t&&(o=t),o},r.on=s.on,r.off=s.off,t.exports=r},4872:function(t){t.exports=function(t){const e=function(t){try{return JSON.parse(t)}catch(e){return t}}(t);return void 0===e?null:e}},5354:function(t){var e={};t.exports={getItem:function(t){return t in e?e[t]:null},setItem:function(t,n){return e[t]=n,!0},removeItem:function(t){return!!(t in e)&&delete e[t]},clear:function(){return e={},!0}}},1235:function(t,e,n){var i=n(4872),a={},s=!1;function o(t){t||(t=n.g.event);var e=a[t.key];e&&e.forEach((function(e){e(i(t.newValue),i(t.oldValue),t.url||t.uri)}))}t.exports={on:function(t,e){a[t]?a[t].push(e):a[t]=[e],!1===s&&(n.g.addEventListener?n.g.addEventListener("storage",o,!1):n.g.attachEvent?n.g.attachEvent("onstorage",o):n.g.onstorage=o)},off:function(t,e){var n=a[t];n.length>1?n.splice(n.indexOf(e),1):a[t]=[]}}},6665:function(t,e,n){n.d(e,{Z:function(){return a}});var i={name:"Modal",props:["size"],data(){return{mounted:!1}},mounted(){this.mounted=!0}},a=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.mounted?n("div",{staticClass:"site__modal-wrap"},[n("div",{staticClass:"modal__container",class:this.size},[n("div",{staticClass:"modal__close",on:{click:function(e){return t.$emit("close")}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.886 14.885"}},[n("g",{attrs:{fill:"none",stroke:"#1a1818"}},[n("path",{attrs:{d:"M.357 14.532L14.532.355M14.53 14.531L.355.354M.357 14.532L14.532.355"}})])])]),t._v(" "),n("div",{staticClass:"modal__content-slot"},[t._t("default")],2)])]):t._e()])}),[],!1,null,null,null).exports},9919:function(t,e,n){n.d(e,{Z:function(){return a}});var i={name:"Price",mixins:[n(9059).B2],props:{additionalClasses:{type:String,default:""},salePrice:{type:Number,default:0},price:{type:Number,default:0},showCurrency:{type:Boolean,default:!1},showSalePriceFirst:{type:Boolean,default:!1},priceVaries:{type:Boolean,default:!1},showGstMsg:{type:Boolean,default:!1},isTaxIncluded:{type:Boolean,default:!1}},methods:{salePriceString(){const{$money:t,salePrice:e}=this;return t(e)},priceString(){const{$money:t,currency:e=null,showCurrency:n,price:i}=this,a=t(i);return null===e||!1===n?a:`${a} ${e}`}}},a=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["price",""!==t.additionalClasses?t.additionalClasses:""]},[t.priceVaries?n("span",{staticClass:"price__from text-upper"},[t._v(t._s(t.$language.price.from))]):t._e(),t._v(" "),t.salePrice&&t.showSalePriceFirst?n("s",{staticClass:"price__money price__money--sale",domProps:{textContent:t._s(t.salePriceString())}}):t._e(),t._v(" "),n("span",{staticClass:"price__money",domProps:{textContent:t._s(t.priceString())}}),t._v(" "),t.salePrice&&!t.showSalePriceFirst?n("s",{staticClass:"price__money price__money--sale",domProps:{textContent:t._s(t.salePriceString())}}):t._e(),t._v(" "),t.showGstMsg?n("small",{staticClass:"price__tax-info"},[t.isTaxIncluded?[n("abbr",{attrs:{title:t.$language.price.tax_incl}},[t._v("\n         "+t._s(t.$language.price.tax_incl_abbr)+"\n       ")]),t._v(" "+t._s(t.$language.price.tax))]:[n("abbr",{attrs:{title:t.$language.price.tax_excl}},[t._v("\n         "+t._s(t.$language.price.tax_excl_abbr)+"\n       ")]),t._v(" "+t._s(t.$language.price.tax))]],2):t._e()])}),[],!1,null,null,null).exports},7735:function(t,e,n){n.d(e,{Z:function(){return v}});var i={name:"TransitionExpand",props:{height:{type:String,required:!1,default:"auto"},fixedEntryHeight:{type:String,required:!1,default:null},linear_padding:{type:String,required:!1,default:""},linear_margin:{type:String,required:!1,default:""}},methods:{enter(t){t.style.height=this.fixedEntryHeight||t.scrollHeight+"px",t.style.opacity=1,""!==this.linear_padding&&(t.style.paddingTop=this.linear_padding,t.style.paddingBottom=this.linear_padding),""!==this.linear_margin&&(t.style.marginTop=this.linear_margin,t.style.marginBottom=this.linear_margin)},afterEnter(t){t.style.height=this.height},leave(t){t.style.height=t.scrollHeight+"px",setTimeout((()=>{t.style.height=0,t.style.opacity=0,""!==this.linear_padding&&(t.style.paddingTop=0,t.style.paddingBottom=0),""!==this.linear_margin&&(t.style.marginTop=0,t.style.marginBottom=0)}),50)}}},a=n(3379),s=n.n(a),o=n(7795),r=n.n(o),l=n(569),u=n.n(l),d=n(3565),c=n.n(d),p=n(9216),h=n.n(p),m=n(4589),g=n.n(m),f=n(2680),y={};y.styleTagTransform=g(),y.setAttributes=c(),y.insert=u().bind(null,"head"),y.domAPI=r(),y.insertStyleElement=h();s()(f.Z,y),f.Z&&f.Z.locals&&f.Z.locals;var v=(0,n(1900).Z)(i,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("transition",{attrs:{name:"expand"}
1,on:{enter:t.enter,"after-enter":t.afterEnter,leave:t.leave}},[t._t("default")],2)}),[],!1,null,"484b71e6",null).exports}},function(t){t.O(0,[9346,1839,1166,1847],(function(){return e=7175,t(t.s=e);var e}));t.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.