PageSourceSearch

https://www.audemarspiguet.com/etc.clientlibs/ap-com/ui/clientlibs…/chunks/region-view.74df4c8bbbb5421af25c.js

js audemarspiguet.com collected 2026-09-24 17:46:34 UTC 7,605 bytes, 1 lines download raw bytes

1(self.webpackChunkap_com=self.webpackChunkap_com||[]).push([["region-view"],{23614:function(){},39321:function(e,t,o){"use strict";var r=o(10810),n=o(65683);const i=(0,r.nY)("pickUpRequestStore",()=>{const e=(0,n.ref)(null),t=(0,n.ref)(null),o=(0,n.ref)(!1),r=(0,n.ref)(null),i=(0,n.ref)(!1),c=(0,n.ref)({reasonCode:"",servicesRequested:{maintenance:[],documents:[]},message:""}),a=(0,n.ref)({email:"",name:{firstName:"",firstNameInternational:"",lastName:"",lastNameInternational:""},phones:{main:{phoneCountryCode:"",phoneNumber:""},second:{phoneCountryCode:"",phoneNumber:""}},preferredContactMethod:"",selectedPhone:{phoneCountryCode:"",phoneNumber:""}});return{flow:e,isWatchDataLoaded:t,lessInfo:o,selectedRegion:r,isEligibleRegion:i,reasonForm:c,contactForm:a,setFlow:function(t){e.value=t},setIsWatchDataLoaded:function(e){t.value=e},setLessInfo:function(e){o.value=e},setSelectedRegion:function(e){r.value=e},setIsEligibleRegion:function(e){i.value=e},setReasonCode:function({code:e}){c.value.reasonCode=e},setServiceRequested:function(e){const{type:t,service:o}=e,r=c.value.servicesRequested[t];switch(t){case"maintenance":r.includes(o)||(r.shift(),r.push(o));break;case"documents":if(r.includes(o)){const e=r.findIndex(e=>e===o);r.splice(e,1)}else r.push(o)}},setReasonMessage:function(e){c.value.message=e},setContactForm:function(e){a.value={...a.value,...e}},setContactEmail:function(e){a.value.email=e},setContactName:function(e){a.value.name.firstName=e},setContactSurname:function(e){a.value.name.lastName=e},setContactCountryCode:function(e){a.value.phones.main.phoneCountryCode=e},setContactPhoneNumber:function(e){a.value.phones.main.phoneNumber=e},setPreferredContactMethod:function(e){a.value.preferredContactMethod=e}}},{persist:{paths:["flow","selectedRegion"]}});o.d(t,["a",0,i])},94083:function(e,t,o){"use strict";o.d(t,{s:function(){return m}});var r=o(10810),n=o(65683),i=o(39321),c=o(76297);function a(e,t,o,r,n,i,c){try{var a=e[i](c),s=a.value}catch(e){return void o(e)}a.done?t(s):Promise.resolve(s).then(r,n)}function s(e){return function(){var t=this,o=arguments;return new Promise(function(r,n){var i=e.apply(t,o);function c(e){a(i,r,n,c,s,"next",e)}function s(e){a(i,r,n,c,s,"throw",e)}c(void 0)})}}var l={fetchAvailableServicesWithPrices(e,t,o,r){return s(function*(){return(0,c.dr)("availableserviceswithprices",{region:e,serial:t,warranty:o,recaptchaToken:r})})()},fetchAvailableServices(){return s(function*(){return(0,c.JM)("availableservices")})()}},u=o(48509),p=o(48156);const m=(0,r.nY)("watchServicesStore",()=>{const{t:e}=(0,p.s9)(),t=(0,i.a)(),{selectedRegion:o}=(0,r.bP)(t),c=(0,n.ref)(!1),a=(0,n.ref)([]),s=(0,n.ref)({items:null,country:null,serialNo:null,warrantyNo:null});return{isWatchServicesLoaded:c,reasonCodes:a,watchServices:s,getWatchServices:async function({country:t,serialNo:r,warrantyNo:n,recaptchaToken:i}){if(c.value=!1,s.value.country!==t||s.value.serialNo!==r||s.value.warrantyNo!==n)try{let a;a=t&&r?await l.fetchAvailableServicesWithPrices(t,r,n,i):await l.fetchAvailableServices();const p=(await(a?.json())||[]).map(t=>function(t,o){const r=t.price&&t.price.price&&t.price.currency,n=t.price&&t.price.type,i={...t};if(r&&"SpecifiedPrice"===t.price.type){const r=`ap.com.ui.comp.form.eservice.services.price.tooltip.${t.facility}`;i.formattedPrice=(0,u.OY)(t.price.price,t.price.currency??"",o),i.tooltip=e(r),i.tooltipKey=e(r)}else n&&"UnderWarranty"===t.price.type?(i.price.price=0,i.formattedPrice=e("ap.com.ui.comp.form.eservice.services.price.under.warranty"),i.tooltip=e("ap.com.ui.comp.form.eservice.services.price.under.warranty.tooltip"),i.tooltipKey=e("ap.com.ui.comp.form.eservice.services.price.under.warranty.tooltip")):n&&"PriceUponRequest"===t.price.type?(i.price.price=0,i.formattedPrice=e("ap.com.ui.comp.form.eservice.services.price.upon.request"),i.tooltip=e("ap.com.ui.comp.form.eservice.services.price.upon.request.tooltip"),i.tooltipKey=e("ap.com.ui.comp.form.eservice.services.price.upon.request.tooltip")):(i.price={price:r?t.price.price:0},i.formattedPrice=e("ap.com.ui.comp.form.eservice.services.price.other"),i.tooltip=e("ap.com.ui.comp.form.eservice.services.price.other.tooltip"),i.tooltipKey=e("ap.com.ui.comp.form.eservice.services.price.other.tooltip"));return i}(t,o.value?.value||""));s.value={country:t,serialNo:r,warrantyNo:n,items:p},c.value=!0}catch(e){window.console.error(e),s.value={country:t,serialNo:r,warrantyNo:n,items:null},c.value=!1}else c.value=!0},setReasonCodes:function(e){a.value=e}}})},87163:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return m}});var r=o(65683),n=o(48156),i=o(4631),c=o(39321),a=o(94083),s=o(10810);const l={class:"region-view__title"},u={class:"region-view__text"};var p=(0,r.defineComponent)({__name:"RegionView",props:{regions:{},eligibleRegionCodes:{},supportedRegionCodes:{},currentStep:{default:1}},setup(e){const t=(0,r.defineAsyncComponent)(async()=>{const{ApButton:e}=await Promise.resolve().then(o.bind(o,30906));return e}),p=(0,r.defineAsyncComponent)(async()=>{const{ApInputSelect:e}=await Promise.resolve().then(o.bind(o,30906));return e}),m=(0,r.defineAsyncComponent)(async()=>{const{ApMessage:e}=await Promise.resolve().then(o.bind(o,30906));return e}),v=e,{t:d}=(0,n.s9)(),f=(0,r.inject)("fetchWatchServices"),h=(0,r.inject)("nextStep"),y=(0,c.a)(),g=(0,a.s)(),b=(0,i.s)(),{selectedRegion:w}=(0,s.bP)(y),{isWatchServicesLoaded:C}=(0,s.bP)(g),N=(0,r.computed)(()=>v.regions.filter(e=>v.supportedRegionCodes.includes(e.value))),S=(0,r.computed)({get(){return w.value?.value},set(e){const t=N.value.filter(t=>t.value===e)[0];y.setSelectedRegion(t)}}),R=(0,r.reactive)({required:!1,server:!1}),P=(0,r.ref)(!1);async function k(){S.value?(R.required=!1,R.server=!1,P.value=!0,f&&await f(S.value),C.value?h&&h({currentStep:v.currentStep}):R.server=!0,P.value=!1):R.required=!0}
1return(0,r.watch)(S,e=>{if(e){const t=v.eligibleRegionCodes.includes(e);y.setIsEligibleRegion(t)}},{immediate:!0}),(0,r.onMounted)(()=>{b.trackEventFormInteraction(10,"location details started")}),(e,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("form",{class:"grid-container--compact",onSubmit:(0,r.withModifiers)(k,["prevent"])},[(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"title")]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("p",null,(0,r.toDisplayString)((0,r.unref)(d)("ap.com.ui.comp.form.eservice.page.location.description")),1)]),(0,r.createVNode)((0,r.unref)(p),{modelValue:S.value,"onUpdate:modelValue":o[0]||(o[0]=e=>S.value=e),name:"region",label:(0,r.unref)(d)("ap.com.ui.comp.form.eservice.page.location.field.label"),placeholder:(0,r.unref)(d)("ap.com.ui.comp.form.eservice.page.location.field.description"),options:N.value,analytics:{step:11,stepName:"location details submit",playLoadName:"selected_location"}},(0,r.createSlots)({_:2},[R.required||R.server?{name:"errors",fn:(0,r.withCtx)(()=>[R.server?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(m),{key:0,variation:"error","display-icon":"",message:(0,r.unref)(d)("ap.com.ui.comp.form.errors.servererror")},null,8,["message"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(m),{key:1,variation:"error","display-icon":"",message:(0,r.unref)(d)("ap.com.ui.comp.form.field.error.required")},null,8,["message"]))]),key:"0"}:void 0]),1032,["modelValue","label","placeholder","options"]),(0,r.createVNode)((0,r.unref)(t),{type:"submit","is-loading":P.value,label:(0,r.unref)(d)("ap.com.ui.comp.form.eservice.page.location.button.continue")},null,8,["is-loading","label"])],32))}});o(23614);var m=(0,o(66262).A)(p,[["__scopeId","data-v-1b81f6be"]])}}]);

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.