@visitscotland/component-library 5.26.0 → 5.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +48 -79
- package/dist/client/scripts/{e64ed3126572382cb3b7.js → 1077b219313276c21765.js} +1 -1
- package/dist/client/scripts/29a09e10b4c826dc6bcd.js +1 -0
- package/dist/client/scripts/{220d28a699f7c8ff1752.js → 2a512ada29fd6340b561.js} +1 -1
- package/dist/client/scripts/{faad944c2028ee77bd1c.js → 529b4b855c5a64c0b642.js} +1 -1
- package/dist/client/scripts/54fcee78c1e79b5c6b24.js +1 -0
- package/dist/client/scripts/5cfb5d9a106dafff176f.js +1 -0
- package/dist/client/scripts/93e3877d8dc2f8f2ba29.js +1 -0
- package/dist/client/scripts/ab909b2eab152aa32959.js +1 -0
- package/dist/client/scripts/d01d42b8ada5f41c3036.js +1 -0
- package/dist/client/scripts/{b67e49703dfa94258c7e.js → f1222f479de1a0431059.js} +1 -1
- package/dist/client/styles/5cfb5d9a106dafff176f.css +1 -0
- package/dist/client/styles/ab909b2eab152aa32959.css +1 -0
- package/dist/components/src/components/form/Form.vue.d.ts +9 -0
- package/dist/components/src/components/input/Input.vue.d.ts +17 -0
- package/dist/components/src/components/mega-nav/MegaNav.vue.d.ts +9 -0
- package/dist/components/src/components/site-search/components/SiteSearchForm.vue.d.ts +9 -0
- package/dist/components/src/custom-components/maps/MainMap.vue.d.ts +2 -0
- package/dist/components/src/custom-components/maps/components/MapSidebar.vue.d.ts +11 -0
- package/dist/components/src/custom-components/maps/index.d.ts +17 -0
- package/dist/components/style.css +1 -1
- package/dist/components/vs-component-library.js +114 -114
- package/dist/components/vs-component-library.mjs +4020 -4320
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{b18704cc69ae88e6a255.css → d754ab8074fa86f9f258.css} +2 -2
- package/package.json +1 -1
- package/dist/client/scripts/507ccdc5bf81d59adfb1.js +0 -1
- package/dist/client/scripts/6406b5883a8017f0bf59.js +0 -1
- package/dist/client/scripts/86bfa431e2d44d78e145.js +0 -1
- package/dist/client/scripts/92fd03b906450b6f9fb4.js +0 -1
- package/dist/client/scripts/a59d80b25b1a2d40844e.js +0 -1
- package/dist/client/scripts/d15b3712f04d6c8972a1.js +0 -1
- package/dist/client/scripts/d870fb064aba8e31a918.js +0 -1
- package/dist/client/styles/86bfa431e2d44d78e145.css +0 -1
- package/dist/client/styles/92fd03b906450b6f9fb4.css +0 -1
- package/dist/components/src/components/product-search/components/GuestSelector.vue.d.ts +0 -15
- package/dist/components/src/components/product-search/components/GuestSelectorNumberGroup.vue.d.ts +0 -45
- package/dist/components/src/components/product-search/components/GuestSelectorRow.vue.d.ts +0 -31
- /package/dist/client/styles/{6406b5883a8017f0bf59.css → 29a09e10b4c826dc6bcd.css} +0 -0
- /package/dist/client/styles/{507ccdc5bf81d59adfb1.css → 93e3877d8dc2f8f2ba29.css} +0 -0
- /package/dist/client/styles/{a59d80b25b1a2d40844e.css → d01d42b8ada5f41c3036.css} +0 -0
- /package/dist/client/styles/{b67e49703dfa94258c7e.css → f1222f479de1a0431059.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMainMap=t():e.VsMainMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1733],{7885:function(e,t,a){"use strict";var n=a(50953),r=a(20641);t.A=function(){var e=(0,n.KR)([]),t=(0,n.KR)(!1),a=(0,n.KR)(!1),o=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesRequired)||t.value})),i=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesLoaded)||{cookieManagerLoaded:a}}));return(0,r.sV)((function(){window.addEventListener("cookieManagerLoaded",(function(){a.value=!0})),window.addEventListener("cookiesUpdated",(function(){var a;a=!1,"undefined"!=typeof CookieControl&&(a=e.value.every((function(e){return!0===CookieControl.getCategoryConsent(e)}))),t.value=a}))})),{requiredCookies:e,cookiesAllowed:o,cookiesLoaded:i}}},12524:function(e,t,a){"use strict";a.r(t);var n=a(88522);a(73025);const r=n.A;t.default=r},44806:function(e,t,a){"use strict";var n=a(10467),r=a(54756),o=a.n(r),i=a(20641),l=a(90033),c=a(50953),s=a(53751),u=a(66239),p=a(83750),d=a(57536),f=a(12903),v=a(84343),g=a(12308),m=a(78202),y=a(7885),b=a(66604),_=a(96763),h={class:"vs-map"},k={class:"vs-map__controls"},w={class:"vs-map-sidebar__sub-filters"},C={id:"search-container"},R={key:0,class:"vs-map__filter-controls"},E={class:"vs-map__wrapper"},x={id:"vs-map","map-id":"vs-map",ref:"vsMap"},S={id:"detail-container"};t.A={__name:"MainMap",props:{apiKey:{type:String,default:(0,u.A)("GOOGLE_MAPS_API_KEY")},mapId:{type:String,default:"vs-map"},mapTypeVector:{type:Boolean,default:!1},center:{type:Object,default:function(){return{lat:56.490153,lng:4.10959}}},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:function(){}},languageCode:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:function(){}},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noResultsMessage:{type:String,required:!0}},setup:function(e){var t,a,r,u,F,I,L,O,A,M,j,B,q=(0,b.A)(),D=e,W={},K=(0,c.KR)(),T=(0,c.KR)(new Set),J=(0,c.KR)(),V=(0,c.KR)(new Set),X=(0,c.KR)(new Set),z=(0,c.KR)(),U=(0,c.KR)(),Q=(0,c.KR)(D.zoom),Y=(0,c.KR)(),P=(0,c.KR)(new Set),Z=(0,c.KR)(),N=(0,v.default)(),G=(0,c.KR)(!1),H=(0,c.KR)(void 0),$={north:61.865,south:54.62185,west:-8.651,east:.71},ee={},te=D.categoryLabels;function ae(e){var a={strokeColor:"#A3A3CC",strokeOpacity:1,strokeWeight:1,fillColor:"#A3A3CC",fillOpacity:.5},n=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ7Q8cbLY0ZEgRouilirxxux4","ChIJ1YEuRDCFY0gRDeDw8bxbAuo","ChIJv-VNj0VoEkYRK9BkuJ07sKE","ChIJ-1-U7rYnS0YRzZLgw9BDh1I","ChIJ8fA1bTmyXEYRYm-tjaLruCI","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8","ChIJa76xwh5ymkcRW-WRjmtd6HU","ChIJu-SH28MJxkcRnwq9_851obM","ChIJuwtkpGSZAEcR6lXMScpzdQk","ChIJl5fz7WR9wUcR8g_mObTy60c","ChIJMVd4MymgVA0R99lHx5Y__Ws"],r=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc"],o=t.getFeatureLayer(google.maps.FeatureType.COUNTRY),i=t.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);e?(o.style=null,i.style=null,i.style=function(e){if(r.includes(e.feature.placeId))return a}):(o.style=function(e){if(n.includes(e.feature.placeId))return a},i.style=function(e){if(n.includes(e.feature.placeId))return a})}function ne(e,t){fe(),K.value=e,Object.values(ee[e].subCategory).forEach((function(e){return V.value.add(e.type)})),J.value=ee[e],z.value=t,oe(Array.from(V.value).flat()),Y.value=te[z.value].label,A.value=Y.value}function re(e,t){var a=(0,c.KR)([]),n=(0,c.KR)();return e.forEach((function(){te.forEach((function(e){e.id===K.value&&(a.value=e)})),Object.values(a.value).forEach((function(e){Object.values(e).forEach((function(e){t===e.id&&(n.value=e.label)}))}))})),n}function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=(0,n.A)(o().mark((function e(a){var n,i,l,c,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:pe(),de(),G.value=!1,N.filterUsesCount+=1,Z.value="nearby",n=t.getBounds(),i=n.getNorthEast(),l=n.getSouthWest(),c=google.maps.geometry.spherical.computeDistanceBetween(i,l),s=Math.min(c/2,25e3),I.includedTypes=a,I.maxResultCount=20,I.locationRestriction={center:t.getCenter(),radius:s},r.style.display="block",r.addEventListener("gmp-load",(function(){se();var e="main",a=K.value;T.value.size&&(e="sub",a=Array.from(T.value).join(", ")),q.createDataLayerObject("googleMapFilterEvent",{filter_type:e,search_map_location:t.getCenter().toString(),filter_selection:a,results_count:r.places.length,filter_usage_index:N.filterUsesCount}),ye("map_filter")}),{once:!0});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(){return ce.apply(this,arguments)}function ce(){return(ce=(0,n.A)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pe(),fe(),G.value=!1,N.searchesCount+=1,Z.value="text",Y.value=A.value.trim(),Y.value){e.next=1;break}return e.abrupt("return");case 1:F.textQuery=Y.value,F.locationRestriction=t.getBounds(),F.maxResultCount=20,u.style.display="block",u.addEventListener("gmp-load",(function(){se(),q.createDataLayerObject("googleMapSearchEvent",{search_query:Y.value,search_map_location:t.getCenter().toString(),search_results_count:u.places.length,search_usage_index:N.searchesCount}),ye("map_search")}),{once:!0});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(){return ue.apply(this,arguments)}function ue(){return(ue=(0,n.A)(o().mark((function e(){var a,n,i,l,s,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,p.lB)("marker");case 1:return a=e.sent,n=a.AdvancedMarkerElement,e.next=2,(0,p.lB)("core");case 2:i=e.sent,l=i.LatLngBounds,s=(0,c.KR)(),"nearby"===Z.value?s.value=r:"text"===Z.value?s.value=u:_.error("Unrecognised Search type"),0===s.value.places.length?(G.value=!0,s.value.style.display="none"):s.value.style.display="block",d=new l,s.value.places&&s.value.places.forEach((function(e){var a=document.createElement("div");a.classList.add("vs-map-marker");var r=document.createElement("i");r.classList.add("fa-solid","fa-location-dot"),a.appendChild(r);var o=new n({map:t,position:e.location,content:a,title:"Map pin"});o.addEventListener("gmp-placeclick",(function(){ve(e,o)})),o.addListener("click",(function(){ve(e,o)})),o.metadata={id:e.id},W[e.id]=o,d.extend(e.location),1===s.value.places.length?(t.setCenter({lat:e.location.lat(),lng:e.location.lng()}),t.setZoom(14),t.fitBounds(e.viewport)):(t.setCenter(d.getCenter()),t.fitBounds(d))}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(e){!function(){for(var e in W)W[e]&&(W[e].map=null);W={}}(),Z.value="",r.style.display="none",u.style.display="none",F.textQuery=null,M&&M.close&&M.close(),G.value=!1,e&&(de(),fe(),ge("clear_all"))}function de(){Y.value=null,A.value=""}function fe(){K.value=void 0,T.value=new Set,V.value=new Set,X.value=new Set,P.value=new Set,z.value=void 0,U.value=void 0}function ve(e,a){M.isOpen&&(M.close(),ge("card_close",O.place)),O.place=e,window.innerWidth<=768?(L.style.width="85vw",L.style.height="32em",N.sidebarOpen=!1):(L.style.width="20em",L.style.height="32em"),L.style.display="block",L.style.overflowY="auto",L.style.overflowX="hidden",L.style.boxSizing="border-box",L.style.maxHeight="32em",M.setOptions({content:L,maxWidth:"25em",pixelOffset:null}),M.open({anchor:a,map:t}),t.fitBounds(e.viewport,{top:200,right:150}),google.maps.event.addListenerOnce(t,"idle",(function(){t.getZoom()>19&&t.setZoom(19),ge("card_open",e)}))}function ge(e,t){return me.apply(this,arguments)}function me(){return(me=(0,n.A)(o().mark((function e(a,n){var r,i,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",i="",l="",!n){e.next=2;break}return e.next=1,n.fetchFields({fields:["displayName","rating","websiteURI"]});case 1:r=n.displayName,i=n.rating,l=n.websiteURI;case 2:q.createDataLayerObject("googleMapInteractionEvent",{interaction_type:a,search_query:A.value.trim(),map_location:t.getCenter().toString(),visible_attractions_count:j,card_attraction_name:r,card_attraction_rating:i,card_attraction_url:l,interaction_timestamp_ms:Date.now()}),ye(a);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(e){if(!N.firstInteraction){var t=Date.now()-N.timeMounted;q.createDataLayerObject("googleMapTimeToFirstInteractionEvent",{time_to_first_interaction_ms:t,first_interaction_type:e}),N.firstInteraction=!0}}function be(){var e=t.getBounds();if(!e)return 0;for(var a=0,n=0;n<Object.keys(W).length;n++){var r=W[Object.keys(W)[n]].position;e.contains(r)&&(a+=1)}return a}return(0,i.KC)((function(){var e=(0,y.A)();e.requiredCookies.value=g.A.google_maps,B=(0,i.EW)((function(){return!0===D.jsDisabled?(H.value="noJS",!0):(!e.cookiesAllowed.value&&!0===e.cookiesLoaded.value||!e.cookiesLoaded.value)&&(H.value="noCookie",!0)}))})),(0,i.sV)((0,n.A)(o().mark((function e(){var i,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=function(){return(l=(0,n.A)(o().mark((function e(){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n={center:{lat:D.center.lat,lng:D.center.lng},renderingType:D.mapTypeVector?google.maps.RenderingType.VECTOR:google.maps.RenderingType.RASTER,zoom:D.zoom,isFractionalZoomEnabled:!0,mapId:D.mapId,restriction:{latLngBounds:$},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1},!a){e.next=1;break}t=new google.maps.Map(a,n),e.next=2;break;case 1:throw new Error("Init error, mapContainer undefined");case 2:e.next=4;break;case 3:e.prev=3,i=e.catch(0),_.error("Maps init error",i.message);case 4:(M=new google.maps.InfoWindow).addListener("closeclick",(function(){ge("card_close",O.place)})),ae(),t.addListener("zoom_changed",(function(){Q.value=t.getZoom(),Q.value<11?ae():ae(!0)})),t.addListener("idle",(function(){j=be()})),r.addEventListener("gmp-select",(function(e){var t=e.place;W[t.id]&&ve(t,W[t.id])})),u.addEventListener("gmp-select",(function(e){var t=e.place;W[t.id]&&ve(t,W[t.id])}));case 5:case"end":return e.stop()}}),e,null,[[0,3]])})))).apply(this,arguments)},i=function(){return l.apply(this,arguments)},D.categoriesLocation&&d.A.get(D.categoriesLocation).then((function(e){ee=e.data})).catch((function(){})),!1!==B.value){e.next=8;break}return(0,p.hn)({key:D.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:D.languageCode}),e.prev=1,e.next=2,(0,p.lB)("maps");case 2:return e.next=3,(0,p.lB)("places");case 3:return e.next=4,(0,p.lB)("marker");case 4:return e.next=5,(0,p.lB)("core");case 5:return e.next=6,(0,p.lB)("geometry");case 6:e.next=8;break;case 7:e.prev=7,e.catch(1),_.error("Google Maps Library load error");case 8:if(a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),u=document.getElementById("textSearch"),F=document.querySelector("gmp-place-text-search-request"),I=document.querySelector("gmp-place-nearby-search-request"),L=document.querySelector("gmp-place-details"),O=document.getElementById("placeRequest"),A=document.getElementById("vs-map-search-input"),N.firstInteraction=!1,N.searchesCount=0,N.filterUsesCount=0,!1!==B.value){e.next=9;break}return e.next=9,i();case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))),function(t,a){var n=(0,i.g2)("gmp-place-nearby-search-request"),r=(0,i.g2)("gmp-place-address"),o=(0,i.g2)("gmp-place-rating"),u=(0,i.g2)("gmp-place-type"),p=(0,i.g2)("gmp-place-price"),d=(0,i.g2)("gmp-place-accessible-entrance-icon"),v=(0,i.g2)("gmp-place-opening-hours"),g=(0,i.g2)("gmp-place-reviews"),y=(0,i.g2)("gmp-place-attribution"),b=(0,i.g2)("gmp-place-content-config"),_=(0,i.g2)("gmp-place-search"),F=(0,i.g2)("gmp-place-text-search-request"),I=(0,i.g2)("gmp-place-details-place-request"),L=(0,i.g2)("gmp-place-website"),O=(0,i.g2)("gmp-place-phone-number"),M=(0,i.g2)("gmp-place-summary"),j=(0,i.g2)("gmp-place-type-specific-highlights"),q=(0,i.g2)("gmp-place-feature-list"),W=(0,i.g2)("gmp-place-media"),J=(0,i.g2)("gmp-place-details");return(0,i.uX)(),(0,i.CE)("div",h,[(0,i.Lk)("div",{class:(0,l.normalizeClass)(["vs-map__container",(0,c.R1)(B)?"d-none":"d-block"])},[(0,i.Lk)("div",k,[(0,i.bF)(m.default,{query:Y.value,"selected-categories":K.value,"header-label":D.labels.heading,"close-sidebar-button-label":D.labels.closeSidebarBtn,"input-placeholder-label":D.labels.inputPlaceholder,"search-button-label":D.labels.searchButton,"clear-map-label":D.labels.clearMap,"sub-filter-header-label":D.labels.subFilterHeader,"search-results-label":D.labels.searchResults,"open-sidebar-button-label":D.labels.openSidebarButton,onSearchInputChanged:le,onResetMap:a[0]||(a[0]=function(e){return pe(!0)})},(0,i.eX)({"vs-map-sidebar-search-results":(0,i.k6)((function(){return[((0,i.uX)(),(0,i.Wv)(i.tY,null,{default:(0,i.k6)((function(){return[(0,i.Lk)("div",C,[(0,i.bF)(_,{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,i.k6)((function(){return[(0,i.bF)(n,{id:"nearbySearchQuery"}),(0,i.bF)(b,null,{default:(0,i.k6)((function(){return[(0,i.bF)(r),(0,i.bF)(o),(0,i.bF)(u),(0,i.bF)(p),(0,i.bF)(d),(0,i.bF)(v),(0,i.bF)(g),(0,i.bF)(y,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1}),(0,i.bF)(_,{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,i.k6)((function(){return[(0,i.bF)(F,{id:"textSearchQuery"}),(0,i.bF)(b,null,{default:(0,i.k6)((function(){return[(0,i.bF)(r),(0,i.bF)(o),(0,i.bF)(u),(0,i.bF)(p),(0,i.bF)(d),(0,i.bF)(v),(0,i.bF)(g),(0,i.bF)(y,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1})),G.value?((0,i.uX)(),(0,i.Wv)((0,c.R1)(f.VsAlert),{key:0,id:"vs-map__no-results-alert",class:"mt-075 mb-150",size:"small"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(e.noResultsMessage),1)]})),_:1})):(0,i.Q3)("",!0)]})),_:2},[K.value?{name:"vs-map-sidebar-sub-filters",fn:(0,i.k6)((function(){return[(0,i.Lk)("div",w,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,c.R1)(te)[z.value].subCategory,(function(e,t){return(0,i.uX)(),(0,i.Wv)((0,c.R1)(f.VsButton),{key:t,variant:T.value.has(e.id)?"primary":"secondary",size:"sm",onClick:function(a){return function(e,t){U.value=t,"self-catering"===e?(de(),T.value=new Set,T.value.add(e),Y.value=re(T.value,e).value,fe(),A.value=Y.value,le()):T.value.has(e)?(T.value.delete(e),Object.values(ee[K.value].subCategory).forEach((function(t){t.id===e&&t.type.forEach((function(e){return X.value.delete(e)}))})),P.value.delete(re(T.value,e).value),0===T.value.size?(P.value=new Set,ne(K.value,z.value)):(oe(Array.from(X.value).flat()),Y.value=Array.from(P.value).join(", "),A.value=Y.value)):(T.value.add(e),Object.values(ee[K.value].subCategory).forEach((function(t){t.id===e&&t.type.forEach((function(e){return X.value.add(e)}))})),oe(Array.from(X.value).flat()),P.value.add(re(T.value,e).value),Y.value=Array.from(P.value).join(", "),A.value=Y.value)}(e.id,t)}},{default:(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick"])})),128))])]})),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),Q.value>=11&&(0,c.R1)(N).sidebarOpen?((0,i.uX)(),(0,i.CE)("div",R,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,c.R1)(te),(function(e,t){return(0,i.uX)(),(0,i.Wv)((0,c.R1)(f.VsButton),{key:t,class:"vs-map__filter-controls-button",icon:(0,c.R1)(ee)[e.id].icon,variant:K.value===e.id?"primary":"secondary",onClick:(0,s.withModifiers)((function(a){return ne(e.id,t)}),["prevent"])},{default:(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(e.label),1)]})),_:2},1032,["icon","variant","onClick"])})),128))])):(0,i.Q3)("",!0)]),(0,i.Lk)("div",E,[(0,i.Lk)("div",x,null,512),((0,i.uX)(),(0,i.Wv)(i.tY,null,{default:(0,i.k6)((function(){return[(0,i.Lk)("div",S,[(0,i.bF)(J,{id:"placeDetails",style:{display:"none"}},{default:(0,i.k6)((function(){return[(0,i.bF)(I,{id:"placeRequest"}),(0,i.bF)(b,null,{default:(0,i.k6)((function(){return[(0,i.bF)(r),(0,i.bF)(o),(0,i.bF)(u),(0,i.bF)(p),(0,i.bF)(d),(0,i.bF)(v),(0,i.bF)(L),(0,i.bF)(O),(0,i.bF)(M),(0,i.bF)(j),(0,i.bF)(g),(0,i.bF)(q),(0,i.bF)(W,{"lightbox-preferred":""}),(0,i.bF)(y,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1}))])],2),(0,c.R1)(B)&&"noCookie"===H.value?((0,i.uX)(),(0,i.Wv)((0,c.R1)(f.VsWarning),{key:0,type:"cookie",class:(0,l.normalizeClass)(["vs-map__error vs-map__error--no-cookies",(0,c.R1)(B)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(D.cookieBtnText),1)]})),default:(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(D.noCookiesMessage)+" ",1)]})),_:1},8,["class"])):(0,i.Q3)("",!0),(0,c.R1)(B)&&"noJS"===H.value?((0,i.uX)(),(0,i.Wv)((0,c.R1)(f.VsWarning),{key:1,"data-test":"vs-map__warning--no-js",class:"vs-map__warning vs-map__warning--no-js"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,l.toDisplayString)(e.noJsMessage),1)]})),_:1})):(0,i.Q3)("",!0)])}}}},54739:function(){},64629:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),o=a(97825),i=a.n(o),l=a(77659),c=a.n(l),s=a(55056),u=a.n(s),p=a(10540),d=a.n(p),f=a(41113),v=a.n(f),g=a(54739),m=a.n(g),y={};y.styleTagTransform=v(),y.setAttributes=u(),y.insert=c().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),r()(m(),y),m()&&m().locals&&m().locals},66604:function(e,t,a){"use strict";a.d(t,{A:function(){return p}});var n=a(64467),r=a(50953),o=a(20641),i=a(4859),l=a(63555),c=a(12554);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){(0,n.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(){var e=(0,i.A)(),t=(0,r.KR)(!1);function a(e,t){var a={};return e.forEach((function(e){a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a}function n(){return new Date(Date.now()).toISOString()}function s(t){var a=u(u({},e.GTMData),t);return a.hit_timestamp=n(),a}function p(e){t.value?window.dataLayer.push(e):(0,l.A)("dataLayer",(function(){t.value=!0,window.dataLayer.push(e)}))}return{pageUrl:(0,o.EW)((function(){return e.pageUrl})),createDataLayerObject:function(e,t){var n,r;switch(e){case"googleMapSearchEvent":n=s({event:"map_search",search_query:t.search_query,search_map_location:t.search_map_location,search_results_count:t.search_results_count,search_usage_index:t.search_usage_index}),r=a(c.Ew,n);break;case"googleMapFilterEvent":n=s({event:"map_filter_interaction",filter_type:t.filter_type,search_map_location:t.search_map_location,filter_selection:t.filter_selection,results_count:t.results_count,filter_usage_index:t.filter_usage_index}),r=a(c.cV,n);break;case"googleMapTimeToFirstInteractionEvent":n=s({event:"map_time_to_first_interaction",time_to_first_interaction_ms:t.time_to_first_interaction_ms,first_interaction_type:t.first_interaction_type}),r=a(c.WO,n);break;case"googleMapInteractionEvent":n=s({event:"map_interaction_click",interaction_type:t.interaction_type,search_query:t.search_query,map_location:t.map_location,visible_attractions_count:t.visible_attractions_count,card_attraction_name:t.card_attraction_name,card_attraction_url:t.card_attraction_url,card_attraction_rating:t.card_attraction_rating,interaction_timestamp_ms:t.interaction_timestamp_ms}),r=a(c.cg,n)}r&&p(r)},templateFiller:a,compileFullTemplate:s,returnIsoDate:n,pushToDataLayer:p,dataLayerStore:e}}},73025:function(e,t,a){"use strict";a(64629)},88522:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(44806)}},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,3750,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1688,6216,1454,3614,2491,4900,4360,6305,9856,8861,4179,7933,2710,6955,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,680,4828,459,2329,4409,6358,1696,80,2152,4145,922,4433,2822,8258,1086,1154,8533,4681,71,7033,7894,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,1120,47,9464,9177,9839,625,6004,5513,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,4232,6431,3609,2759,7848,6241,8817,8570,815,4061,9323,9923,3731,2837,3914,5577,3650,2612,6283,9783,7969,9280,4036,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,8202],(function(){return e(e.s=12524)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3293],{10293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getURLParameters=function(){var e=new URLSearchParams(document.location.search),t=Object.fromEntries(e);return"object"==typeof t&&Object.keys(t).forEach((function(e){return null===t[e]&&delete t[e]})),t},t.getProductTypes=function(){if(Object.keys(a).length<=0)return r.products;var e=a.search_config.basic_config.productTypes,t=[];return Object.keys(e).forEach((function(n){t.push({key:e[n].value,text:e[n].text,value:e[n].value})})),t};var a,r=n(8611);a="undefined"!=typeof window&&"object"==typeof window.VS?window.VS:{}},11494:function(e,t,n){"use strict";n(33698)},27480:function(){},33698:function(e,t,n){"use strict";var a=n(85072),r=n.n(a),o=n(97825),l=n.n(o),u=n(77659),c=n.n(u),i=n(55056),d=n.n(i),s=n(10540),f=n.n(s),v=n(41113),p=n.n(v),m=n(27480),h=n.n(m),b={};b.styleTagTransform=p(),b.setAttributes=d(),b.insert=c().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),r()(h(),b),h()&&h().locals&&h().locals},43423:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.a}});var a=n(59061),r=n.n(a),o={};for(var l in a)"default"!==l&&(o[l]=function(e){return a[e]}.bind(0,l));n.d(t,o)},45906:function(e,t,n){"use strict";var a=n(96763),r=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,o){function l(e){try{c(a.next(e))}catch(e){o(e)}}function u(e){try{c(a.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,u)}c((a=a.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=u(0),l.throw=u(1),l.return=u(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getData=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,u.default.get(e)];case 1:return[2,n.sent().data];case 2:return t=n.sent(),a.error("Axios error: ".concat(t)),[3,3];case 3:return[2]}}))}))};var u=l(n(86425))},59061:function(e,t,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)},r=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,o){function l(e){try{c(a.next(e))}catch(e){o(e)}}function u(e){try{c(a.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,u)}c((a=a.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,a,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=u(0),l.throw=u(1),l.return=u(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(17527),c=n(17527),i={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},d={key:0,class:"container"},s={class:"row"},f={class:"col-12"},v=["action"],p={class:"form-group product-search__type mb-100"},m={for:"prodtypes"},h={class:"product-search__in d-none d-md-block mt-100"},b={"aria-live":"polite"},y=["disabled","value"],k=["disabled","value"],w=["value"],g={key:4,type:"hidden",name:"areaproxdist",value:"10"},_={key:5},x={key:0,class:"form-group"},E={for:"search-keyword"},B={key:2},V=["value"],N={key:0},L=["value"],T=n(17527),S=n(378),C=n(8611),O=n(10293),P=n(45906),j=l(n(35025)),D=l(n(51688)),U=l(n(22142)),I=l(n(58861)),M=l(n(34900)),A=l(n(19856)),G=l(n(48836)),R=n(17527),F=l(n(98745)),Y=(0,R.defineComponent)({mixins:[F.default],methods:{trackSubmit:function(e,t){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:t.name},this.href)}}});t.default=(0,u.defineComponent)(a(a({},Y),{__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator:function(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator:function(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup:function(e){var t=this,n=e,l=(0,T.ref)(!1),u=(0,T.ref)(),R=(0,T.ref)([]),F=((0,T.ref)(null),(0,T.ref)());F.value={id:"",key:"",name:"",type:""};var Y=(0,T.ref)("off"),z=(0,T.ref)(!1),H=(0,T.computed)((function(){var e=void 0===u.value?"see-do":u.value;return"/info/".concat(C.paths[e])})),K=(0,T.ref)(!1),q={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},J=(0,T.computed)((function(){var e=n.defaultLocale.length>0?n.defaultLocale:(0,S.getLocale)();return"en"===e&&(e=""),e})),Q=(0,T.computed)((function(){if("undefined"!=typeof window){var e=window.location.origin;return e.includes("localhost")?"https://www.visitscotland.com":e}return"https://www.visitscotland.com"})),W=(0,T.computed)((function(){return"".concat(Q.value).concat(J.value?"/"+J.value:"").concat(H.value,"/search-results")})),X="https://www.visitscotland.com/data/locations"+"?locale=".concat(J.value),Z=(0,T.ref)([]),$=(0,T.ref)([]),ee=(0,T.ref)([]),te=(0,T.ref)([]),ne=(0,T.computed)((function(){return l.value?[]:te.value.map((function(e){return a(a({},e),{text:(0,S.getProductName)(e.value,e.text)})}))})),ae=function(){return r(t,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)("https://www.visitscotland.com/tms-api/v1/origins?active=1")];case 1:return(e=t.sent())&&(ee.value=e.data),[2]}}))}))},re=function(){return r(t,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)("https://www.visitscotland.com/tms-api/v1/attractions")];case 1:return(e=t.sent())&&($.value=e.data),[2]}}))}))},oe=function(e,t){F.value="key"===t?Z.value.find((function(t){return t.key===e})):"id"===t?Z.value.find((function(t){return t.id===e})):Z.value.find((function(t){return t.name===e.trim()}))},le=function(){l.value=!0,(0,T.nextTick)((function(){l.value=!1,""!==n.defaultLocation&&K&&oe(n.defaultLocation,"id")}))},ue=(0,T.computed)((function(){return"cate"!==u.value&&"acti,attr,reta"!==u.value?"d-lg-flex":""}));(0,T.onBeforeMount)((function(){return r(t,void 0,void 0,(function(){var e;return o(this,(function(t){return window.VS={},(e=document.createElement("script")).async=!1,e.onload=le,e.setAttribute("src","https://www.visitscotland.com/".concat((q[n.defaultLocale]||"").localeUrl,"/data/template/search.js")),document.head.appendChild(e),[2]}))}))})),(0,T.onMounted)((function(){return r(t,void 0,void 0,(function(){return o(this,(function(e){var a,l;return r(t,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)(X)];case 1:return(e=t.sent())&&(Z.value=e.data),[2]}}))})),K.value=!0,u.value=n.defaultProd,"tour"===u.value&&(ae(),re()),a=(0,O.getProductTypes)(),l=[],a.forEach((function(e){l.push(e)})),te.value=l,[2]}))}))}));var ce=function(e){z.value=!0;var t=e.currentTarget;setTimeout((function(){t.submit()}),500)};return function(t,n){var a,r,o,T,O,P;return(0,c.openBlock)(),(0,c.createElementBlock)("div",i,[l.value?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createElementBlock)("div",d,[(0,c.createElementVNode)("div",s,[(0,c.createElementVNode)("div",f,[(0,c.unref)(K)?((0,c.openBlock)(),(0,c.createElementBlock)("form",{key:0,action:W.value,onSubmit:(0,c.withModifiers)(ce,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[(0,c.createElementVNode)("div",p,[(0,c.createElementVNode)("label",m,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("search_for","I'm looking for")),1),(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(ue.value)},[(0,c.createVNode)(D.default,{options:ne.value,value:e.defaultProd,onUpdated:n[0]||(n[0]=function(e){return t=e.value,u.value=t,void("tour"===t&&(ae(),re()));var t}),"field-name":"prodtypes"},null,8,["options","value"]),(0,c.createElementVNode)("div",h,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("in","in")),1)],2)]),(0,c.createElementVNode)("div",b,["tour"!=u.value&&(0,c.unref)(K)?((0,c.openBlock)(),(0,c.createBlock)(I.default,{key:0,id:"search-location",label:(0,c.unref)(S.getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:Z.value,placeholder:(0,c.unref)(S.getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:n[1]||(n[1]=function(e){return oe(e)}),"default-val":(0,c.unref)(F),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:1,type:"hidden",name:"locplace",disabled:"POLYGON"===(null===(a=(0,c.unref)(F))||void 0===a?void 0:a.type),value:(null===(r=(0,c.unref)(F))||void 0===r?void 0:r.key)||""},null,8,y)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:2,type:"hidden",name:"locpoly",disabled:"POLYGON"!==(null===(o=(0,c.unref)(F))||void 0===o?void 0:o.type),value:(null===(T=(0,c.unref)(F))||void 0===T?void 0:T.key)||""},null,8,k)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:3,type:"hidden",name:"locprox",value:"DISTRICT"===(null===(O=(0,c.unref)(F))||void 0===O?void 0:O.type)?1:0},null,8,w)):(0,c.createCommentVNode)("",!0),"tour"!==u.value&&"DISTRICT"===(null===(P=(0,c.unref)(F))||void 0===P?void 0:P.type)?((0,c.openBlock)(),(0,c.createElementBlock)("input",g)):(0,c.createCommentVNode)("",!0),"even"===u.value||"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",_,[(0,c.createVNode)(A.default,{"start-label":(0,c.unref)(S.getLabelText)("startdate","Start Date","dates"),"end-label":(0,c.unref)(S.getLabelText)("enddate","End Date","dates"),onDateUpdated:n[2]||(n[2]=function(e){return function(e){Y.value=e?"on":"off"}(e)}),"default-dates":z.value,"selected-prod":u.value},null,8,["start-label","end-label","default-dates","selected-prod"]),"even"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",x,[(0,c.createElementVNode)("label",E,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("keywords","Keywords")),1),(0,c.createVNode)(U.default,{"field-name":"search-keyword",placeholder:(0,c.unref)(S.getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createBlock)(M.default,{key:1,availability:!0,id:"guest-selector"})):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",B,[(0,c.createElementVNode)("input",{hidden:"true",name:"avail",value:Y.value},null,8,V)])):(0,c.createCommentVNode)("",!0)])):(0,c.createCommentVNode)("",!0)]),"tour"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",N,[(0,c.createVNode)(I.default,{id:"tour-origin",label:(0,c.unref)(S.getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:ee.value,placeholder:(0,c.unref)(S.getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(R.value,(function(e){return(0,c.openBlock)(),(0,c.createElementBlock)("input",{type:"hidden",name:"attractions[]",value:e},null,8,L)})),256)),(0,c.createVNode)(I.default,{id:"tour-month",label:(0,c.unref)(S.getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:(0,c.unref)(S.getLabelText)("months",(0,c.unref)(C.monthsEnglish)),placeholder:(0,c.unref)(S.getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):(0,c.createCommentVNode)("",!0),(0,c.createVNode)(G.default,{class:"mt-150","data-test":"psw-submit",type:"submit",onClick:n[3]||(n[3]=function(e){return t.trackSubmit(u.value,void 0===(0,c.unref)(F)?"":(0,c.unref)(F))})},{default:(0,c.withCtx)((function(){return[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(S.getLabelText)("search","Search")),1)]})),_:1})],40,v)):(0,c.createCommentVNode)("",!0),(0,c.unref)(K)?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createBlock)(j.default,{key:1,variant:"dark"}))])])]))])}}}))},93293:function(e,t,n){"use strict";n.r(t);var a=n(43423),r={};for(var o in a)"default"!==o&&(r[o]=function(e){return a[e]}.bind(0,o));n.d(t,r),n(11494);const l=a.default;t.default=l}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedSearchInput=t():e.VsFedSearchInput=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4161],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1688,6216,1454,3614,2491,4900,4360,6305,9856,8861,4179,7933,2710,6955,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,680,4828,459,2329,4409,6358,1696,80,2152,4145,922,4433,2822,8258,1086,1154,8533,4681,71,7033,7894,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,1120,47,9464,9177,9839,625,6004,5513,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,4232,6431,3609,2759,7848,6241,8817,8570,815,4061,9323,9923,3731,2837,3914,5577,3650,2612,6283,9783,7969,9280,4036,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995],(function(){return e(e.s=58995)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelector=t():e.VsGuestSelector=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3741],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,8896,378,6216,4900],(function(){return e(e.s=34900)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vs-map-sidebar{width:90vw;background:#fff;border-radius:1rem;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);pointer-events:auto;max-height:87.5vh;overflow-y:auto}@media(min-width: 576px){.vs-map-sidebar{width:23.3rem}}.vs-map-sidebar__content{display:flex;flex-direction:column}.vs-map-sidebar__input input{margin:0rem;border-radius:.5rem 0rem 0rem .5rem;border-right:none;height:52px;flex:0 1}.vs-map-sidebar__search-button{flex-grow:.125;border-radius:0rem .5rem .5rem 0rem}.vs-map-sidebar__sub-filters{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:.25rem;row-gap:.25rem;flex:0 1}@media(max-width: 767.98px){.vs-map-sidebar__sub-filters{width:100%;flex-wrap:nowrap;overflow-x:scroll;scroll-snap-type:mandatory x;align-items:start;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;column-gap:.5rem;padding:.25rem .25rem .5rem .25rem}.vs-map-sidebar__sub-filters::-webkit-scrollbar{height:4px}.vs-map-sidebar__sub-filters::-webkit-scrollbar-track{background:#f2f2f8;border-radius:.25rem}.vs-map-sidebar__sub-filters::-webkit-scrollbar-thumb{background:#1f49d6;border-radius:.25rem}.vs-map-sidebar__sub-filters .vs-card{flex:0 0 266px;scroll-snap-align:start;margin-bottom:1.5rem}}@media(max-width: 767.98px)and (min-width: 576px){.vs-map-sidebar__sub-filters .vs-card{flex:0 0 235px}}@media(max-width: 767.98px)and (min-width: 768px){.vs-map-sidebar__sub-filters .vs-card{flex:0 0 312px}}@media(max-width: 767.98px)and (min-width: 992px){.vs-map-sidebar__sub-filters .vs-card{flex:0 0 330px}}.vs-map-sidebar__sub-filters button{flex:0 0 max-content}.vs-map-sidebar__search-results{flex:1 0 max-content}.vs-map-sidebar__google-maps-container{border-radius:1rem;max-height:clamp(275px,20em,50vh);overflow-y:scroll}.vs-map-sidebar__swipe-tab{width:3rem;height:1px;border:#a8308c solid .15em;border-radius:1000rem;margin:1rem auto}@media(min-width: 768px){.vs-map-sidebar__sidebar-control{display:none}}.vs-map-sidebar__sidebar-control--open{pointer-events:auto}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vs-map{--gmp-mat-color-surface: #fff //$vs-color-background-primary;--gmp-mat-color-on-surface: #200F2E;--gmp-mat-color-on-surface-variant: #606060;--gmp-mat-color-primary: #1F49D6;--gmp-mat-color-negative: #940F2C;--gmp-mat-color-positive: #03AA46;--gmp-mat-color-info: #A8308C;--gmp-mat-color-outline-decorative: #E9E9E9;--gmp-mat-font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.vs-map__container{position:relative}.vs-map__wrapper,.vs-map #vs-map{height:90vh;width:100%}.vs-map__controls{position:absolute;top:1rem;left:1rem;z-index:100;display:flex;flex-direction:column;pointer-events:none;flex-grow:1;min-width:0;width:calc(100vw - 1rem)}@media(min-width: 768px){.vs-map__controls{flex-direction:row}}.vs-map__filter-controls{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;flex:1;height:fit-content;width:calc(100vw - 1rem);margin:.5rem 0rem;padding:.25rem .25rem .5rem .25rem;display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.vs-map__filter-controls::-webkit-scrollbar{height:4px}.vs-map__filter-controls::-webkit-scrollbar-track{background:#f2f2f8;border-radius:.25rem}.vs-map__filter-controls::-webkit-scrollbar-thumb{background:#1f49d6;border-radius:.25rem}.vs-map__filter-controls .vs-card{flex:0 0 266px;scroll-snap-align:start;margin-bottom:1.5rem}@media(min-width: 576px){.vs-map__filter-controls .vs-card{flex:0 0 235px}}@media(min-width: 768px){.vs-map__filter-controls .vs-card{flex:0 0 312px}}@media(min-width: 992px){.vs-map__filter-controls .vs-card{flex:0 0 330px}}.vs-map__filter-controls::-webkit-scrollbar-track{margin:0rem 1rem 0rem 0rem}@media(min-width: 768px){.vs-map__filter-controls{width:fit-content;overflow-x:auto;margin:.75rem 0rem 0rem 1rem}}@media(min-width: 992px){.vs-map__filter-controls{flex:0 1 max-content;width:auto}}.vs-map__filter-controls-button{flex:1 0 max-content;pointer-events:auto}.vs-map__filter-controls-button:last-child{margin-right:.25rem}.vs-map__warning{display:none}.vs-map .vs-map-marker{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background-color:#1f49d6;border-radius:1rem;border:.125em solid #fff;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);transition:transform .1s ease-in-out;font-size:1.5em;color:#fff}.vs-map .vs-map-marker:hover{transform:scale(1.25)}.no-js .vs-map__container{display:none}.no-js .vs-map__warning{display:none}.no-js .vs-map__warning--no-js{display:block}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
availability: boolean;
|
|
3
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
availability: boolean;
|
|
5
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
package/dist/components/src/components/product-search/components/GuestSelectorNumberGroup.vue.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { GuestNumberGroup } from '../../../types/types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
adultCount: number;
|
|
5
|
-
childrenCount: number;
|
|
6
|
-
count: number;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
id: string;
|
|
9
|
-
infantCount: number;
|
|
10
|
-
inputType: GuestNumberGroup;
|
|
11
|
-
maxValue: number;
|
|
12
|
-
minValue: number;
|
|
13
|
-
name: string;
|
|
14
|
-
rowName: string;
|
|
15
|
-
rowLabel: string;
|
|
16
|
-
unitRemoved: boolean;
|
|
17
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
changeHandler: (inputName: string, inputValue: number, type: string, unitId: string) => void;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
-
adultCount: number;
|
|
21
|
-
childrenCount: number;
|
|
22
|
-
count: number;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
id: string;
|
|
25
|
-
infantCount: number;
|
|
26
|
-
inputType: GuestNumberGroup;
|
|
27
|
-
maxValue: number;
|
|
28
|
-
minValue: number;
|
|
29
|
-
name: string;
|
|
30
|
-
rowName: string;
|
|
31
|
-
rowLabel: string;
|
|
32
|
-
unitRemoved: boolean;
|
|
33
|
-
}>>> & Readonly<{
|
|
34
|
-
onChangeHandler?: (inputName: string, inputValue: number, type: string, unitId: string) => any;
|
|
35
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { GuestUnit } from '../../../types/types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
name: string;
|
|
5
|
-
showRemoveBtn: boolean;
|
|
6
|
-
unitLabel: string;
|
|
7
|
-
unitOptions: GuestUnit;
|
|
8
|
-
unitRemoved: boolean;
|
|
9
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
numberChange: (type: string, groupName: string, unitId: string) => void;
|
|
11
|
-
onRemove: (totalCount: number, childCount: number, unitId: string) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
-
name: string;
|
|
14
|
-
showRemoveBtn: boolean;
|
|
15
|
-
unitLabel: string;
|
|
16
|
-
unitOptions: GuestUnit;
|
|
17
|
-
unitRemoved: boolean;
|
|
18
|
-
}>>> & Readonly<{
|
|
19
|
-
onNumberChange?: (type: string, groupName: string, unitId: string) => any;
|
|
20
|
-
onOnRemove?: (totalCount: number, childCount: number, unitId: string) => any;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|