PageSourceSearch

https://www.audemarspiguet.com/etc.clientlibs/ap-com/ui/clientlibs…eCard_StoreCard_vue.2b7cdf2c3a3c68165cd1.js

js audemarspiguet.com collected 2026-09-24 17:44:54 UTC 37,593 bytes, 1 lines download raw bytes

1(self.webpackChunkap_com=self.webpackChunkap_com||[]).push([["default-src_main_frontend_componentsV3_StoreCard_StoreCard_vue"],{97303:function(){},95624:function(){},94759:function(){},65718:function(){},13589:function(e,t,o){"use strict";var a=o(10810),n=o(65683);const r=(0,a.nY)("appointmentStore",()=>{const e=(0,n.ref)({collections:[],dates:[],message:"",appointmentReasons:[],store:"",storeName:"",storeCountryCode:"",favourites:[],straps:[],products:[],withEligibleStore:!1});return{firstStepFormValues:e,setReasonsAppointment:function(t){e.value={...e.value,...t}},resetReasonsAppointment:function(){e.value={collections:[],dates:[],message:"",appointmentReasons:[],store:"",storeName:"",storeCountryCode:"",favourites:[],straps:[],products:[],withEligibleStore:!1}}}});o.d(t,["A",0,r])},69639:function(e,t,o){"use strict";o.d(t,{A:function(){return ve}});var a=o(65683),n=["src"],r=["href"],i={key:1},s={class:"store-card__role"},l={class:"store-card__infos"},c=["href"],u=["href"],d={key:1,class:"store-card__contact-us"},p={key:0,id:"email-section"},m=["href"],v=["href"],h={key:2,class:"store-card__no-appointment"},y=["aria-label"],f={class:"ap-link ap-link--underline"};var g={key:0},k={class:"opening-hours__option-text"},w={class:"opening-hours__option-hour"},_={key:0,class:"opening-hours__header"},B={class:"opening-hours__option-text"},b={class:"opening-hours__option-hour"};var S=o(10810),C=(0,S.nY)("dropdownStore",()=>{var e=(0,a.ref)({}),t=(0,a.ref)({}),o=(0,a.ref)({});return{getDropdownReference:function(a){return{customDropdown:e.value[a],customSelect:t.value[a],customOption:o.value[a]}},setDropdownReference:function(a){var n=a.customDropdown,r=a.customSelect,i=a.customOption,s=a.uniqueId;e.value[s]=n,t.value[s]=r,o.value[s]=i}}});function D(e,t){var o=C(),n=(0,a.ref)(null),r=(0,a.ref)(null),i=(0,a.ref)(null),s=(0,a.ref)(!1),l=(0,a.ref)("unset"),c=(0,a.computed)(()=>{var e;return"".concat(null===(e=r.value)||void 0===e?void 0:e.clientHeight,"px")}),u=(0,a.ref)("unset"),d=(0,a.ref)("normal"),p=(0,a.ref)("custom-dropdown-animation"),m=(0,a.computed)(()=>({"--optionHeight":"".concat(u.value,"px"),"--dropdownMaxHeight":"".concat(l.value,"px"),"--selectButtonHeight":c.value}));return(0,a.watchEffect)(()=>{n.value&&("normal"===d.value&&(0,a.nextTick)(()=>{var e,t;e=r.value.getBoundingClientRect().top,t=r.value.getBoundingClientRect().bottom+l.value>window.innerHeight&&e>l.value,p.value=t?"custom-dropdown-animation--reverse":"custom-dropdown-animation"}),n.value.classList.remove("custom-dropdown-animation--reverse","custom-dropdown-animation"),n.value.offsetWidth,n.value.classList.add(p.value))}),{startAnimation:function(){var a,c=o.getDropdownReference(e),p=c.customDropdown,m=c.customSelect,v=c.customOption;n.value=p,r.value=m,i.value=v,function(){if(n.value){var e=Object.values(i.value);u.value=Math.max(...e.map(e=>e.clientHeight));var o=e.length<t?e.length:t;l.value=u.value*o+8+2,n.value.dataset.height=l.value}}(),s.value="boolean"==typeof a?a:!s.value,d.value=s.value?"normal":"reverse",n.value.style.setProperty("--direction",d.value)},customProperties:m,isOpen:s}}var E=o(34641),H=o(4631),N=o(57579),A=o(97786),V=o(62056),O=o(26709);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a,n,r,i,s=[],l=!0,c=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(a=r.call(o)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,a=Array(t);o<t;o++)a[o]=e[o];return a}var $=["id"],M=["id","for"],I={key:0,class:"ap-native-dropdown"},L=["id","disabled","value"],q={value:"",disabled:"","aria-disabled":"","aria-selected":"false"},P=["value"],U={class:"ap-custom-dropdown"},z=["id"],R=["aria-selected","aria-setsize","aria-posinset","id"],j=["onClick","tabindex"],F={__name:"Dropdown",props:{modelValue:{type:String,default:""},type:{type:String,default:"select",validator:e=>["select","panel","filter"].includes(e)},mode:{type:String,default:"edit",validator:e=>["edit","locked"].includes(e)},name:{type:String,required:!0},ariaLabel:{type:String,default:""},isLabelHidden:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},label:{type:String,default:""},placeholder:{type:String,default:""},initialValue:{type:[Object,String],default:""},options:{type:Array,default:()=>[]},maxItemsToShow:{type:Number,default:10},analytics:{type:Object,default:null}},emits:["update:modelValue","keydown"],setup(e,t){var o=t.expose,n=t.emit,r=(0,V.A)(),i=e,s=n,l=(0,a.useSlots)(),c=(0,E.U)().isMobile,u=(0,H.s)(),d=C(),p=D(r,i.maxItemsToShow),m=p.startAnimation,v=p.customProperties,h=p.isOpen,y=(0,a.inject)("activateFocusTrap",null),f=(0,a.ref)(null),g=(0,a.ref)(null),k=(0,a.ref)(null),w=(0,a.ref)({}),_=(0,a.ref)({}),B=(0,a.ref)(""),b=(0,a.ref)(0),S=(0,a.ref)(""),T=(0,a.computed)(()=>B.value&&w.value[b.value]),F=(0,a.computed)(()=>h.value&&document.activeElement.id),W=(0,a.computed)(()=>"panel"!==i.type&&""===B.value&&""!==i.placeholder&&!(null!=l&&l.initialValue)),Z=(0,a.computed)(()=>
1c.value&&"panel"!==i.type&&"filter"!==i.type),G=(0,a.computed)(()=>{var e,t,o;if(null!=l&&l.options){var a=(null==l||null===(e=l.options())||void 0===e?void 0:e.filter(e=>"option"===e.type.toString()))||[],n=(null==l||null===(t=l.options())||void 0===t||null===(o=t.filter(e=>e.type.toString().includes("fgt")))||void 0===o?void 0:o.flat())||[];return n.length>0?n.map(e=>e.children).flat():a}}),Y=(0,a.computed)(()=>i.options.filter(e=>e)),J=(0,a.computed)(()=>{if(G.value&&G.value.length){var e="panel"===i.type?"li":"option";return G.value.filter(t=>t.type===e).map(e=>{var t;return{vNode:"string"!=typeof e.children?e.children:[e],attrs:e.props,value:null===(t=e.props)||void 0===t?void 0:t.value}})}return Y.value}),K=(0,a.computed)(()=>J.value.length);function Q(){if("panel"!==i.type){var e,t=null===(e=T.value)||void 0===e?void 0:e.offsetTop;g.value.scrollTo({top:t})}}var X=(0,A.xDQ)(()=>{S.value=""},1e3);function ee(e){var t=parseInt(g.value.dataset.height,10),o=g.value.scrollTop,a=_.value[0].clientHeight,n=w.value[b.value].offsetTop;if([n<o,("up"===e?n:n+a)>o+t].some(e=>e))if("up"===e){var r=document.activeElement===_.value[K.value-1],i=o-a;g.value.scrollTo({top:r?0:i})}else{var s=document.activeElement===_.value[0],l=n-t+a;g.value.scrollTo({top:s?0:l+8})}}function te(){h.value&&(m(),S.value="")}function oe(e){var t,o,a;(B.value=e,b.value=J.value.findIndex(t=>t.value===e.value),s("update:modelValue",e.value),i.analytics)&&u.trackEventFormInteraction(null===(t=i.analytics)||void 0===t?void 0:t.step,null===(o=i.analytics)||void 0===o?void 0:o.stepName,{[null===(a=i.analytics)||void 0===a?void 0:a.playLoadName]:e.value})}function ae(e){oe(J.value.find(t=>{var o,a;return(null===(o=t.value)||void 0===o?void 0:o.toString())===(null===(a=e.target.value)||void 0===a?void 0:a.toString())}))}function ne(e){"panel"===i.type&&e.stopPropagation(),Z.value||"locked"===i.mode||(m(),h.value&&B.value&&Q())}function re(){Z.value||te()}function ie(e){var t="Tab"===e.code,o="Escape"===e.code,a="Enter"===e.code,n="ArrowDown"===e.code,r="ArrowUp"===e.code,i="Space"===e.code,l=e.key,c=document.activeElement;if(1===l.length&&(!i||S.value))return e.preventDefault(),void function(e){if(Z.value)return;h.value||m();S.value=S.value.concat("",e.toLowerCase());var t=S.value.split("").every(e=>{var t;return e===(null===(t=S.value)||void 0===t?void 0:t[0])}),o=Object.entries(_.value).reduce((e,o)=>{var a,n,r=x(o,2),i=r[0],s=r[1],l=t?S.value[0]:S.value;return null!=s&&null!==(a=s.innerText)&&void 0!==a&&null!==(n=a.toLowerCase())&&void 0!==n&&n.startsWith(l)&&e.push(parseInt(i,10)),e},[]);if(o.length){var a=o.find(e=>t&&e>b.value||!t&&e===b.value)||o[0];b.value=a,_.value[b.value].focus()}X()}(l);if(["Tab","Escape","Enter","ArrowDown","ArrowUp","Space"].includes(e.code)){if((a||i)&&c===k.value.$el&&(e.preventDefault(),m(),_.value[b.value].focus({preventScroll:!0}),Q()),(a||t||i)&&h.value&&c!==k.value.$el){var u=J.value[b.value];e.preventDefault(),oe(u),te(),k.value.$el.focus()}o&&(e.preventDefault(),h.value?(y&&setTimeout(()=>{k.value.$el.focus(),y()},100),te(),k.value.$el.focus()):s("keydown",e)),r&&h.value&&c!==k.value.$el&&(e.preventDefault(),b.value>0&&(b.value-=1,_.value[b.value].focus({preventScroll:!0}),ee("up"))),n&&h.value&&c!==k.value.$el&&(e.preventDefault(),b.value<K.value-1&&(b.value+=1,_.value[b.value].focus({preventScroll:!0}),ee("down")))}}return(0,a.onMounted)(()=>{if("locked"===i.mode){var e=x(i.options,1);B.value=e[0]}else B.value=J.value.find(e=>e.value===i.initialValue||e.value===i.modelValue)||"",b.value=B.value?J.value.findIndex(e=>e.value===B.value.value):0;d.setDropdownReference({customDropdown:g.value,customSelect:k.value.$el,customOption:w.value,uniqueId:r})}),o({updateCurrentValue:oe,$selectedOption:T}),(t,o)=>{var n,i,s=(0,a.resolveDirective)("ap-custom-scrollbar");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{onKeydown:(0,a.withModifiers)(ie,["stop"]),ref_key:"$dropdown",ref:f,class:(0,a.normalizeClass)(["ap-dropdown","ap-dropdown--".concat(e.type),{"ap-dropdown--disabled":e.isDisabled}]),style:(0,a.normalizeStyle)((0,a.unref)(v)),id:(0,a.unref)(r)},[(0,a.createElementVNode)("label",{id:e.name,for:"native-dropdown_".concat((0,a.unref)(r)),onClickCapture:(0,a.withModifiers)(ne,["prevent"])},[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["ap-dropdown__label",{"accessibility-label":e.isLabelHidden},{"ap-dropdown__label--active":(0,a.unref)(h)}])},(0,a.toDisplayString)(e.label),3),"select"===e.type?((0,a.openBlock)(),(0,a.createElementBlock)("div",I,[(0,a.createElementVNode)("select",{id:"native-dropdown_".concat((0,a.unref)(r)),disabled:"locked"===e.mode||e.isDisabled,class:"ap-native-dropdown__select",onChange:ae,value:null===(n=B.value)||void 0===n?void 0:n.name},[null!==(i=Y.value)&&void 0!==i&&i.length?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createElementVNode)("option",q,(0,a.toDisplayString)(B.value.name||e.placeholder),1),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(Y.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)("option",{key:e.value,value:e.value},(0,a.toDisplayString)(e.name),9,P))),128))],64)):(0,a.renderSlot)(t.$slots,"options",{key:1})],40,L)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",U,[(0,a.createVNode)(O.A,{ref_key:"$customSelect",ref:k,class:(0,a.normalizeClass)(["ap-custom-dropdown__select",{"ap-custom-dropdown__select--placeholder":W.value},{"ap-custom-dropdown__select--error":t.$slots.errors},{"ap-custom-dropdown__select--filled":""!==B.value&&!(0,a.unref)(h)},{"ap-custom-dropdown__select--locked":"locked"===e.mode}]),"aria-label":e.ariaLabel,"aria-activedescendant":F.value,"aria-controls":"options_".concat((0,a.unref)(r)),"aria-expanded":(0,a.unref)(h),"aria-haspopup":"listbox",type:"chevron",size:"small","is-active":(0,a.unref)(h),animation:!Z.value},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(t.$slots,"initialValue",{},()=>{var t,o,n;return[!W.value&&null!==(t=B.value)&&void 0!==t&&t.vNode?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(null===(o=B.value)||void 0===o?void 0:o.vNode,(e,t)=>((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(e),{key:t}
1))),128)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)((null===(n=B.value)||void 0===n?void 0:n.name)||e.placeholder),1)],64))]})]),_:3},8,["class","aria-label","aria-activedescendant","aria-controls","aria-expanded","is-active","animation"]),(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("ul",{id:"options_".concat((0,a.unref)(r)),role:"listbox",class:"ap-custom-dropdown__option-container",ref_key:"$customDropdown",ref:g},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(J.value,(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)("li",(0,a.mergeProps)({ref_for:!0},t.attrs,{ref_for:!0,ref:e=>w.value[o]=e,role:"option","aria-selected":t.value===B.value,"aria-setsize":K.value,"aria-posinset":o,id:t.value,key:t.value,class:["ap-dropdown__option",{"ap-dropdown__option--selected":t.value===B.value.value}]}),[(0,a.createElementVNode)("button",{onClick:(0,a.withModifiers)(e=>oe(t),["stop","prevent"]),type:"button",tabindex:(0,a.unref)(h)&&"panel"!==e.type?0:-1,ref_for:!0,ref:e=>_.value[o]=e},[t.vNode?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(t.vNode,(e,o)=>((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(e),{key:"".concat(t.value,"-").concat(o)}))),128)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(t.name),1)],64))],8,j)],16,R))),128))],8,z)),[[s]])])],40,M),(0,a.renderSlot)(t.$slots,"errors")],46,$)),[[(0,a.unref)(N.z0),re]])}}},W=(o(97303),o(66262));var Z=(0,W.A)(F,[["__scopeId","data-v-3b17ac9d"]]);const G={class:"opening-hours__header-text opening-hours__option-text"},Y=["innerHTML"],J={key:0,class:"opening-hours__option-text"};var K=(0,a.defineComponent)({__name:"OpeningHoursHeader",props:{openStateText:{},isClosed:{type:Boolean},openingHoursInfoStrings:{}},setup(e){return(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("span",G,[o[0]||(o[0]=(0,a.createElementVNode)("i",{class:"icon icon-date"},null,-1)),(0,a.createElementVNode)("span",{innerHTML:e.openStateText},null,8,Y)]),e.isClosed?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("span",J,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.openingHoursInfoStrings,e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:`today_${e}`},(0,a.toDisplayString)(e),1))),128))]))],64))}});o(94759);var Q=(0,W.A)(K,[["__scopeId","data-v-ee6fe462"]]),X=o(7587),ee=o(30906);function te(e,t,o,a,n,r,i){try{var s=e[r](i),l=s.value}catch(e){return void o(e)}s.done?t(l):Promise.resolve(l).then(a,n)}var oe={data(){return{isDropdownOpen:!1,daysArray:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],camelCase:null,translations:{closed:this.$t("ap.com.ui.comp.content.storelocator.full.closed"),openToday:this.$t("ap.com.ui.comp.content.storelocator.full.opentoday"),closedToday:this.$t("ap.com.ui.comp.content.storelocator.full.closedtoday"),onlyByAppointment:this.$t("ap.com.ui.comp.content.storelocator.full.byAppointment"),appointmentRecommended:this.$t("ap.com.ui.comp.content.storelocator.full.appointmentrecommended"),reservationRecommended:this.$t("ap.com.ui.comp.content.storelocator.full.reservationrecommended"),temporarilyClosed:this.$t("ap.com.ui.comp.content.storelocator.full.closedtemporarily"),openingHours:this.$t("ap.com.ui.comp.content.storelocator.full.openingHours"),weekdays:{monday:this.$t("ap.commons.ui.weekdays.monday"),tuesday:this.$t("ap.commons.ui.weekdays.tuesday"),wednesday:this.$t("ap.commons.ui.weekdays.wednesday"),thursday:this.$t("ap.commons.ui.weekdays.thursday"),friday:this.$t("ap.commons.ui.weekdays.friday"),saturday:this.$t("ap.commons.ui.weekdays.saturday"),sunday:this.$t("ap.commons.ui.weekdays.sunday")}}}},components:{ApDropdown:Z,ApOpeningHoursHeader:Q,ApChip:ee.ApChip},props:{hours:{type:Object,required:!0},timezone:{type:String,required:!0},appointmentRequierement:{type:String,default:""},isAlwaysOpen:{type:Boolean,default:!1},isOnlyHeader:{type:Boolean,default:!1},mode:{type:String,default:"contrast",validator(e){return["normal","contrast"].includes(e)}},hideOpeningHours:{type:[Object,Boolean],default:!1}},mounted(){var e,t=this;return(e=function*(){t.camelCase=yield(0,X.BX)()},function(){var t=this,o=arguments;return new Promise(function(a,n){var r=e.apply(t,o);function i(e){te(r,a,n,i,s,"next",e)}function s(e){te(r,a,n,i,s,"throw",e)}i(void 0)})})()},watch:{isDropdownOpen(e){var t="dropdown-animation",o=e?"normal":"reverse";this.$refs.dropdown.style.setProperty("--direction",o),this.$refs.dropdown.classList.contains(t)?(this.$refs.dropdown.classList.remove(t),this.$refs.dropdown.offsetWidth,this.$refs.dropdown.classList.add(t)):this.$refs.dropdown.classList.add(t)}},computed:{todayDayName(){return(new Date).toLocaleDateString("en-US",{timeZone:this.timezone,weekday:"long"}).toLowerCase()}
1,todayDate(){return new Date},todayHours(){return this.currentWeekOpeningHours[this.todayDayName]},isTodayHideDay(){return this.hideOpeningHours.length&&this.hideOpeningHours.includes(this.todayDayName)},holidayHours(){return this.hours.holidayHours},appointmentRequierementText(){return this.appointmentRequierement&&this.camelCase?this.translations[this.camelCase(this.appointmentRequierement)]:""},openStateText(){if(!this.todayHours)return"";var e=new Date(this.todayDate.toLocaleString("en-US",{timeZone:this.timezone})),t={hour:e.getHours(),minutes:e.getMinutes()},o=this.todayHours.openIntervals,a=o&&o.map(e=>{var a,n=parseInt(e.start.split(":")[0],10),r=parseInt(e.start.split(":")[1],10),i={hour:parseInt(e.end.split(":")[0],10),minutes:parseInt(e.end.split(":")[1],10)},s=+"".concat(t.hour).concat(t.minutes)<+(0===(a=i.hour)?"2360":a<10?"".concat(a,"0000"):void 0);return(t.hour>n||t.hour===n&&t.minutes>r)&&(t.hour<i.hour||t.hour===i.hour&&t.minutes<i.minutes||1===o.length&&s)}).includes(!0);return this.todayHours.closed||!a?this.translations.closedToday:this.translations.openToday},filteredDaysArray(){var e;return null!==(e=this.hideOpeningHours)&&void 0!==e&&e.length?this.daysArray.filter(e=>!this.hideOpeningHours.includes(e)):this.daysArray},currentWeekHolidayHours(){var e,t=e=>new Date(new Date("".concat(e,"T12:00:00Z")).toLocaleString("en-US",{timeZone:this.timezone})),o=null===(e=this.holidayHours)||void 0===e?void 0:e.slice(0,15).filter(e=>this.isDateInCurrentWeek(t(e.date)));return null==o?void 0:o.reduce((e,o)=>{var a=this.filteredDaysArray[(t(o.date).getDay()+6)%7];return o.isHoliday=!0,e[a]=o,e},{})},currentWeekOpeningHours(){return this.filteredDaysArray.reduce((e,t)=>{var o=Object.prototype.hasOwnProperty.call(this.currentWeekHolidayHours,t)?this.currentWeekHolidayHours[t]:this.hours[t]||{};return o.openingHoursInfoStrings=o?this.generateOpeningHoursInfoStrings(o):{},e[t]=o,e},{})},isSplittedHours(){var e,t;return!(null!==(e=this.todayHours)&&void 0!==e&&e.closed)&&(null===(t=this.todayHours)||void 0===t?void 0:t.openIntervals.length)>1},customProperties(){var e=this.appointmentRequierement&&this.isSplittedHours?"1 / 3":"1 / 2",t=this.appointmentRequierement&&this.isSplittedHours?"2 / 3":"3 / 4";return[{"--topDropdown":this.isSplittedHours||this.appointmentRequierement&&this.isSplittedHours?"4rem":"2rem"},{"--gridRowState":e},{"--gridColumnsEndingHours":t}]},daysArrayFromToday(){var e=[...this.filteredDaysArray],t=e.indexOf(this.todayDayName);return[...e.splice(t),...e]},openingHoursAriaLabel(){return"".concat(this.translations.openingHours," ").concat(this.openStateText," ").concat(this.todayHours.closed?"":"".concat(this.todayHours.openingHoursInfoStrings)).trim()}},methods:{toggleDropdown(){this.isDropdownOpen=!this.isDropdownOpen,this.$refs.chevronIcon.startAnimation(!0)},isDateInCurrentWeek(e){var t=new Date((new Date).toLocaleString("en-US",{timeZone:this.timezone}));t.setHours(0,0,0,0);var o=t.getDate()+6,a=new Date(t);return a.setDate(o),a.setHours(23,59,59,999),e>=t&&e<=a},generateOpeningHoursInfoStrings(e){var t=[];if(e.closed||0===Object.keys(e).length){var o=this.translations.closed;t.push(o)}else{var a=e.openIntervals.map(e=>"".concat(e.start," — ").concat(e.end));t.push(...a)}return t}}};o(95624);var ae=(0,W.A)(oe,[["render",function(e,t,o,n,r,i){var s=(0,a.resolveComponent)("ap-chip"),l=(0,a.resolveComponent)("ApOpeningHoursHeader"),c=(0,a.resolveComponent)("ap-dropdown");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:"opening-hours",style:(0,a.normalizeStyle)(i.customProperties)},[o.hours.reopenDate?((0,a.openBlock)(),(0,a.createElementBlock)("span",g,(0,a.toDisplayString)(r.translations.temporarilyClosed),1)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[i.appointmentRequierementText?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"opening-hours__tag",variation:"secondary",mode:o.mode},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(i.appointmentRequierementText),1)]),_:1},8,["mode"])):(0,a.createCommentVNode)("",!0),o.isAlwaysOpen||o.isOnlyHeader||i.isTodayHideDay?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:2,class:(0,a.normalizeClass)(["opening-hours__hours-open",{"opening-hours__hours-open--border":i.isTodayHideDay}
1])},[i.isTodayHideDay?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",_,[(0,a.createVNode)(l,{"open-state-text":i.openStateText,"is-closed":i.todayHours.closed,"opening-hours-info-strings":i.todayHours.openingHoursInfoStrings},null,8,["open-state-text","is-closed","opening-hours-info-strings"])])),o.isOnlyHeader?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(i.daysArrayFromToday,e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:(0,a.normalizeClass)(["opening-hours__option",{"opening-hours__option--active":e===i.todayDayName}])},[(0,a.createElementVNode)("span",B,(0,a.toDisplayString)(r.translations.weekdays[e]||e),1),(0,a.createElementVNode)("div",b,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(i.currentWeekOpeningHours[e].openingHoursInfoStrings,t=>((0,a.openBlock)(),(0,a.createElementBlock)("span",{key:"".concat(e,"_").concat(t),class:"opening-hours__option-text"},(0,a.toDisplayString)(t),1))),128))])],2))),128))],2)):((0,a.openBlock)(),(0,a.createBlock)(c,{key:1,type:"panel",name:"opening-hours","aria-label":i.openingHoursAriaLabel,class:"opening-hours__dropdown"},{initialValue:(0,a.withCtx)(()=>[(0,a.createVNode)(l,{"open-state-text":i.openStateText,"is-closed":i.todayHours.closed,"opening-hours-info-strings":i.todayHours.openingHoursInfoStrings},null,8,["open-state-text","is-closed","opening-hours-info-strings"])]),options:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(i.daysArrayFromToday,e=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:e,class:(0,a.normalizeClass)({"ap-dropdown__option--active":e===i.todayDayName})},[(0,a.createElementVNode)("span",k,(0,a.toDisplayString)(r.translations.weekdays[e]||e),1),(0,a.createElementVNode)("div",w,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(i.currentWeekOpeningHours[e].openingHoursInfoStrings,t=>((0,a.openBlock)(),(0,a.createElementBlock)("span",{key:"".concat(e,"_").concat(t),class:"opening-hours__option-text"},(0,a.toDisplayString)(t),1))),128))])],2))),128))]),_:1},8,["aria-label"]))],64))],4)}
1]]),ne=o(75729),re=o(13589),ie=o(4008),se=["clearwater"],le=["lab-tokyo"],ce=JSON.parse('{"ap-house-atlanta":["monday"]}');function ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,a)}return o}function de(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(o),!0).forEach(function(t){pe(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ue(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function pe(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var me={components:{OpeningHours:ae,ApButton:ee.ApButton},emits:["mouse-enter","mouse-leave","select"],props:{useBaidu:{type:Boolean,default:!1},store:{type:Object,required:!0},makeAnAppointmentUrl:{type:String,default:""},boutiquePageUrl:{type:String,default:""},contactUsUrl:{type:String,default:""},headingType:{type:String,default:"div"},showSelectCta:{type:Boolean,default:!1},isMasterclassCta:{type:Boolean,default:!1},selectMode:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},translations:{type:Object,default:()=>({})},highlightedStoreId:{type:[String,null],default:null},isDropdownAlwaysOpen:{type:Boolean,default:!1},isSecondary:{type:Boolean,default:!1},isSimplified:{type:Boolean,default:!1},defaultImage:{type:String,default:""}},computed:{tags(){var e=this.store,t=this.translationsMapped;return[{condition:e.isRetailer,label:t.typeRetailer},{condition:e.isBoutique,label:t.typeBoutique},{condition:e.isCafe,label:t.typeCafe},{condition:e.isHouse,label:t.typeHouse},{condition:e.isLab,label:t.typeLab},{condition:e.cserviceCenter,label:t.typeService}].filter(e=>e.condition).map(e=>e.label).join(" | ")},translationsMapped(){return de({bookMasterclass:this.$t("ap.com.ui.comp.content.storelocator.full.bookmasterclass"),bookVisit:this.$t("ap.com.ui.comp.content.storelocator.full.bookvisit"),change:this.$t("ap.com.ui.comp.form.bookappointment.store.change"),changeAria:this.$t("ap.com.ui.comp.form.bookappointment.store.change.aria.label"),exploreBoutique:this.$t("ap.com.ui.comp.content.storelocator.full.exploreboutique"),inviteToContact:this.$t("ap.com.ui.comp.content.storelocator.full.invitetocontact"),makeReservation:this.$t("ap.com.ui.comp.content.storelocator.full.makereservation"),noAppointment:this.$t("ap.com.ui.comp.content.storelocator.full.noappointment"),planAnAppointment:this.$t("ap.com.ui.comp.content.storelocator.full.planappointment"),select:this.$t("ap.com.ui.comp.content.storelocator.full.planappointment"),typeBoutique:this.$t("ap.com.ui.comp.content.storelocator.type.boutique"),typeCafe:this.$t("ap.com.ui.comp.content.storelocator.type.cafe"),typeRetailer:this.$t("ap.com.ui.comp.content.storelocator.type.retailer"),typeService:this.$t("ap.com.ui.comp.content.storelocator.type.service"),typeHouse:this.$t("ap.com.ui.comp.content.storelocator.type.house"),typeLab:this.$t("ap.com.ui.comp.content.storelocator.type.lab")},this.translations)},showAppointmentCta(){return this.appointmentUrl&&(this.store.isPlanAppointmentAvailable||this.store.isCafe)},appointmentCtaText(){return this.store.isCafe?this.translationsMapped.makeReservation:this.translationsMapped.planAnAppointment},appointmentUrl(){return this.store.isCafe?this.store.c_appointmentURL:this.makeAnAppointmentUrl?"".concat(this.makeAnAppointmentUrl,"?storeId=").concat(this.store.meta.id):""},masterclassHref(){var e;return this.isMasterclassCta?null===(e=this.store)||void 0===e?void 0:e.cmasterclass:""},personalizedBoutiquePageUrl(){return this.store.isBoutique||this.store.isHouse||this.store.isLab||this.store.isCafe?(0,ie.ds)(this.boutiquePageUrl,this.store.c_slug):""},classNames(){return[{"select-mode":this.selectMode},{"is-selected":this.selected},{"is-dimmed":this.highlightedStoreId&&this.highlightedStoreId!==this.store.meta.id},{"store-card--light":this.isThemeLight},{"store-card--secondary":this.isSecondary}]},contrastMode(){return this.isThemeLight?"normal":"contrast"},elementType(){return this.selectMode||this.isSecondary||this.isSimplified?"div":"li"},isThemeLight(){return!(this.store.isBoutique||this.store.isLab||this.store.isHouse||this.store.isCafe)},makeMapUrl(){var e="".concat(this.store.address.line1,", ").concat(this.store.address.postalCode," ").concat(this.store.address.city,", ").concat(this.store.address.countryCode),t="".concat(this.store.name," ").concat(e);return this.useBaidu?"".concat("https://map.baidu.com/search/?querytype=s&da_src=shareurl&wd=").concat(this.store.name):"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},isTemporarilyClosed(){var e,t=null===(e=this.store.hours)||void 0===e?void 0:e.holidayHours;return!!t&&t.find(e=>e.date===(new Date).toLocaleDateString("en-CA",{timeZone:this.store.timezone}))},localizedContactUsUrl(){var e,t,o;return this.contactUsUrl&&se.includes(this.store.cslug)?"".concat(this.contactUsUrl,"?countryCode=").concat(null===(e=this.store)||void 0===e||null===(t=e.address)||void 0===t||null===(o=t.countryCode)||void 0===o?void 0:o.toLowerCase()):null},hideOpeningHours(){return Object.keys(ce).includes(this.store.cslug)&&ce[this.store.cslug]},additionalTextToDisplay(){return{INVITATION_TO_CONTACT:this.translationsMapped.inv
1iteToContact,NO_APPOINTMENT_NEEDED:this.translationsMapped.noAppointment}[this.store.cadditionalTextToDisplay]},isSelectableStore(){return!le.includes(this.store.cslug)},address(){return this.store.address.extraDescription||"".concat(this.store.address.line1||"",", ").concat(this.store.address.postalCode||""," ").concat(this.store.address.city||"")}},methods:de(de({},(0,S.i0)(re.A,["resetReasonsAppointment"])),{},{trackBoutiqueInteraction(e){var t;"a"===e.target.tagName.toLowerCase()&&ne.A.pushGTMEventWithData("boutique_interaction",{contact_interaction_type:null===(t=[...e.target.classList].filter(e=>e.match(/^store-card__.+/))[0])||void 0===t?void 0:t.split("__")[1],interaction_location:this.selectMode?"Plan an appointment form":"Boutique finder",store_location:"".concat(this.store.address.city,", ").concat(this.store.countryName),store_id:this.store.meta.id})},toggleEmailAddress(e){e.stopPropagation(),this.isEmailAddressVisible=!this.isEmailAddressVisible},openMailto(e,t){t.stopPropagation(),window.location.href="mailto:".concat(e)}}),data(){return{isEmailAddressVisible:!1}},mounted(){this.selectMode&&(this.store.isRetailer=!1),this.$el.addEventListener("click",this.trackBoutiqueInteraction)},beforeUnmount(){this.$el.removeEventListener("click",this.trackBoutiqueInteraction)}};o(65718);var ve=(0,W.A)(me,[["render",function(e,t,o,g,k,w){var _=(0,a.resolveComponent)("OpeningHours"),B=(0,a.resolveComponent)("ApButton"),b=(0,a.resolveDirective)("analytics");return(0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(w.elementType),{class:(0,a.normalizeClass)(["store-card",w.classNames]),onMouseenter:t[3]||(t[3]=t=>e.$emit("mouse-enter",o.store.meta.id)),onMouseleave:t[4]||(t[4]=t=>e.$emit("mouse-leave",o.store.meta.id))},{default:(0,a.withCtx)(()=>{var g,S,C,D,E;return[(0,a.createElementVNode)("figure",null,[(o.store.photoGallery&&o.store.photoGallery.length||o.defaultImage)&&!o.isSecondary?((0,a.openBlock)(),(0,a.createElementBlock)("img",{key:0,src:(null===(g=o.store)||void 0===g||null===(S=g.photoGallery)||void 0===S||null===(C=S[0])||void 0===C||null===(D=C.image)||void 0===D?void 0:D.url)||o.defaultImage,alt:"",role:"presentation",height:"200"},null,8,n)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("figcaption",{class:(0,a.normalizeClass)(["store-card__caption",{"store-card__caption--with-explore-button":!!w.personalizedBoutiquePageUrl}])},[(0,a.createElementVNode)("div",(0,a.mergeProps)({class:"store-card__header"},e.$attrs),[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(o.headingType),{class:"store-card__name"},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,"name",{},()=>[w.personalizedBoutiquePageUrl?((0,a.openBlock)(),(0,a.createElementBlock)("a",{key:0,href:w.personalizedBoutiquePageUrl,class:"store-card__link"},(0,a.toDisplayString)(o.store.name),9,r)):((0,a.openBlock)(),(0,a.createElementBlock)("span",i,(0,a.toDisplayString)(o.store.name),1))],!0)]),_:3})),(0,a.createElementVNode)("span",s,(0,a.toDisplayString)(w.tags),1)],16),o.store.hours?((0,a.openBlock)(),(0,a.createBlock)(_,{key:0,mode:w.contrastMode,hours:o.store.hours,timezone:o.store.timezone,"appointment-requierement":o.store.cappointmentRequierement,"is-always-open":o.isDropdownAlwaysOpen,"is-only-header":o.isSimplified,"hide-opening-hours":w.hideOpeningHours},null,8,["mode","hours","timezone","appointment-requierement","is-always-open","is-only-header","hide-opening-hours"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("a",{target:"_blank",rel:"noreferrer",href:w.makeMapUrl,class:"store-card__address"},[(0,a.createElementVNode)("p",null,[t[5]||(t[5]=(0,a.createElementVNode)("i",{class:"icon icon-location"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(w.address),1)])],8,c),w.localizedContactUsUrl?((0,a.openBlock)(),(0,a.createElementBlock)("a",{key:0,class:"store-card__contact-us",href:w.localizedContactUsUrl},[t[6]||(t[6]=(0,a.createElementVNode)("i",{class:"icon icon-mail"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("ap.com.ui.comp.form.contactus.title")),1)],8,u)):o.store.emails&&o.store.emails[0]&&!o.isSimplified?((0,a.openBlock)(),(0,a.createElementBlock)("div",d,[o.store.cserviceCenter?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(B,{"aria-expanded":null===(E=k.isEmailAddressVisible)||void 0===E?void 0:E.toString(),"aria-label":e.$t("ap.com.ui.comp.form.contactus.toggle"),mode:w.contrastMode,"aria-controls":"email-section",variation:"tertiary",onClick:w.toggleEmailAddress},{default:(0,a.withCtx)(()=>[t[7]||(t[7]=(0,a.createElementVNode)("i",{class:"icon icon-mail"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("ap.com.ui.comp.form.contactus.title")),1)]),_:1},8,["aria-expanded","aria-label","mode","onClick"]),k.isEmailAddressVisible?((0,a.openBlock)(),(0,a.createElementBlock)("div",p,[(0,a.createVNode)(B,{"aria-label":e.$t("ap.com.ui.comp.form.contactus.emailclient"),mode:w.contrastMode,class:"email-section__email",variation:"tertiary",onClick:t[0]||(t[0]=e=>w.openMailto(o.store.emails[0],e))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)({clicked:k.isEmailAddressVisible})},(0,a.toDisplayString)(o.store.emails[0]),3)]),_:1},8,["aria-label","mode"])])):(0,a.createCommentVNode)("",!0)],64)):((0,a.openBlock)(),(0,a.createElementBlock)("a",{key:1,class:"store-card__email",href:"mailto:"+o.store.emails[0]},[t[8]||(t[8]=(0,a.createElementVNode)("i",{class:"icon icon-mail"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(o.store.emails[0]),1)],8,m))])):(0,a.createCommentVNode)("",!0),o.store.mainPhone&&!o.isSimplified?((0,a.openBlock)(),(0,a.createElementBlock)("a",{key:2,class:"store-card__phone",href:"tel:"+o.store.mainPhone},[t[9]||(t[9]=(0,a.createElementVNode)("i",{class:"icon icon-phone"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(o.store.mainPhone),1)],8,v)):(0,a.createCommentVNode)("",!0)]),!w.showAppointmentCta||o.showSelectCta||o.selectMode?(0,a.createCommentVNode)("",!0):(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createBlock)(B,{key:1,variation:"secondary",mode:w.contrastMode,href:w.appointmentUrl,target:"_self",onClick:e.resetReasonsAppointment},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(w.appointmentCtaText),1)]),_:1},8,["mode","href","onClick"])),[[b,void 0,"button"]]),w.showAppointmentCta||o.showSelectCta||o.selectMode||o.isSimplified?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("p",h,(0,a.toDisplayString)(w.additionalTextToDisplay),1)),!w.masterclassHref||o.showSelectCta||o.selectMode?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(B,{key:3,variation:"secondary",class:"store-card__masterclass-cta",mode:w.contrastMode,href:w.masterclassHref,target:"_self"},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.store.isLab?w.translationsMapped.bookVisit:w.translationsMapped.bookMasterclass),1)]),_:1},8,["mode","href"])),o.showSelectCta&&w.showAppointmentCta&&w.isSelectableStore?((0,a.openBlock)(),(0,a.createBlock)(B,{key:4,variation:"secondary",class:"select-boutique",mode:w.contrastMode,onClick:t[1]||(t[1]=(0,a.withModifiers)(t=>e.$emit("select",o.store),["prevent"]))},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(w.translationsMapped.select),1)]),_:1},8,["mode"])):(0,a.createCommentVNode)("",!0),o.selectMode?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:5,class:"store-card__change-button","aria-label":w.translationsMapped.changeAria,onClick:t[2]||(t[2]=(0,a.withModifiers)(t=>e.$emit("change"),["stop","prevent"]))},(0,a.toDisplayString)(w.translationsMapped.change),9,y)):(0,a.createCommentVNode)("",!0),w.personalizedBoutiquePageUrl?((0,a.openBlock)(),(0,a.createBlock)(B,{key:6,variation:"tertiary",mode:"contrast",href:w.personalizedBoutiquePageUrl,target:"_self"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",f,(0,a.toDisplayString)(w.translationsMapped.exploreBoutique),1)]),_:1},8,["href"])):(0,a.createCommentVNode)("",!0)],2)])]}),_:3},40,["class"])}],["__scopeId","data-v-0818ce42"]])}}]);

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.