@visitscotland/component-library 1.0.38 → 1.0.40
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/CHANGELOG.md +28 -6
- package/dist/client/manifest.json +10 -10
- package/dist/client/scripts/653e8be2da9833ed4a40.js +1 -0
- package/dist/client/scripts/{e3267b196125faed2e14.js → 8e4cc6e0c7e4e3b44628.js} +1 -1
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/2bc5373aabf3a6531c37.js +0 -1
- /package/dist/client/styles/{2bc5373aabf3a6531c37.css → 653e8be2da9833ed4a40.css} +0 -0
- /package/dist/client/styles/{e3267b196125faed2e14.css → 8e4cc6e0c7e4e3b44628.css} +0 -0
- /package/dist/ssr/styles/{e16c01244fe57575bf70.css → 7d899a5d1ba0b9059b1e.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,19 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [1.0.
|
|
5
|
+
### [1.0.40](https://github.com/visitscotland/vs-component-library/compare/v1.0.38...v1.0.40) (2023-09-29)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
###
|
|
8
|
+
### 🔖 Others
|
|
9
9
|
|
|
10
|
-
* **
|
|
11
|
-
* **
|
|
10
|
+
* **dependabot:** bump get-func-name version ([d9fd85d](https://github.com/visitscotland/vs-component-library/commit/d9fd85d0f6673fb47c3d46dc1dccc9335c2362e2))
|
|
11
|
+
* **release:** 1.0.41 ([fa9b031](https://github.com/visitscotland/vs-component-library/commit/fa9b031572f117155f69a493b337d1253d0f7423))
|
|
12
|
+
* **release:** correct multi-release version number issue ([8d8f66b](https://github.com/visitscotland/vs-component-library/commit/8d8f66bc330ca1f8e9ee74f6ba9f2e65e98df81d))
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
###
|
|
15
|
+
### 🐛 Bug Fixes
|
|
15
16
|
|
|
16
|
-
*
|
|
17
|
+
* fix for Tours PSW search URL ([fc2430e](https://github.com/visitscotland/vs-component-library/commit/fc2430e114b653fb7035fa3bf5457344e27fdf4f))
|
|
18
|
+
* **psw:** fix for unit test failing ([12b9aef](https://github.com/visitscotland/vs-component-library/commit/12b9aef201ed29675fd48bb3b71ecd2969a22527))
|
|
17
19
|
|
|
20
|
+
### [1.0.39](https://github.com/visitscotland/vs-component-library/compare/v1.0.38...v1.0.39) (2023-09-29)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 🔖 Others
|
|
24
|
+
|
|
25
|
+
* **dependabot:** bump get-func-name version ([d9fd85d](https://github.com/visitscotland/vs-component-library/commit/d9fd85d0f6673fb47c3d46dc1dccc9335c2362e2))
|
|
26
|
+
|
|
27
|
+
### [1.0.38](https://github.com/visitscotland/vs-component-library/compare/v1.0.37...v1.0.38) (2023-09-29)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### 🐛 Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **psw:** adds fix for setting default dates on search ([51ba331](https://github.com/visitscotland/vs-component-library/commit/51ba3310d90b821fc8095dba72f4a7096c4c1ddc))
|
|
33
|
+
* **psw:** looking at fixing default dates ([17066c9](https://github.com/visitscotland/vs-component-library/commit/17066c903dd9f0d496a7d1eb477bbfa1758cc73a))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### ♻️ Code Refactoring
|
|
37
|
+
|
|
38
|
+
* **psw:** code tidy ([79c7e88](https://github.com/visitscotland/vs-component-library/commit/79c7e889ccaed58b2a11acf9bb44ed54abf6970b))
|
|
39
|
+
|
|
18
40
|
### [1.0.37](https://github.com/visitscotland/vs-component-library/compare/v1.0.36...v1.0.37) (2023-09-28)
|
|
19
41
|
|
|
20
42
|
|
|
@@ -5155,11 +5155,11 @@
|
|
|
5155
5155
|
"scripts/d77b7b29af4fb24edbe0.js",
|
|
5156
5156
|
"scripts/414cc4d3f993aab28a8f.js",
|
|
5157
5157
|
"scripts/c295b8fb832928ffcb59.js",
|
|
5158
|
-
"scripts/
|
|
5158
|
+
"scripts/653e8be2da9833ed4a40.js",
|
|
5159
5159
|
"scripts/80de7d8233b2cbeb007f.js"
|
|
5160
5160
|
],
|
|
5161
5161
|
"styles": [
|
|
5162
|
-
"styles/
|
|
5162
|
+
"styles/653e8be2da9833ed4a40.css"
|
|
5163
5163
|
]
|
|
5164
5164
|
},
|
|
5165
5165
|
"VsDateInput": {
|
|
@@ -5436,8 +5436,8 @@
|
|
|
5436
5436
|
"scripts/ac01af68728960a71854.js",
|
|
5437
5437
|
"scripts/ba70a1a96c6e4c09ba97.js",
|
|
5438
5438
|
"scripts/c809cf38c5272bcfe17e.js",
|
|
5439
|
-
"scripts/
|
|
5440
|
-
"scripts/
|
|
5439
|
+
"scripts/653e8be2da9833ed4a40.js",
|
|
5440
|
+
"scripts/8e4cc6e0c7e4e3b44628.js",
|
|
5441
5441
|
"scripts/7ea8dd44bb61579880bb.js"
|
|
5442
5442
|
],
|
|
5443
5443
|
"styles": [
|
|
@@ -5450,8 +5450,8 @@
|
|
|
5450
5450
|
"styles/125bf47b90f088fff229.css",
|
|
5451
5451
|
"styles/ba70a1a96c6e4c09ba97.css",
|
|
5452
5452
|
"styles/c809cf38c5272bcfe17e.css",
|
|
5453
|
-
"styles/
|
|
5454
|
-
"styles/
|
|
5453
|
+
"styles/653e8be2da9833ed4a40.css",
|
|
5454
|
+
"styles/8e4cc6e0c7e4e3b44628.css"
|
|
5455
5455
|
]
|
|
5456
5456
|
},
|
|
5457
5457
|
"VsProductSearch": {
|
|
@@ -5510,8 +5510,8 @@
|
|
|
5510
5510
|
"scripts/ac01af68728960a71854.js",
|
|
5511
5511
|
"scripts/ba70a1a96c6e4c09ba97.js",
|
|
5512
5512
|
"scripts/c809cf38c5272bcfe17e.js",
|
|
5513
|
-
"scripts/
|
|
5514
|
-
"scripts/
|
|
5513
|
+
"scripts/653e8be2da9833ed4a40.js",
|
|
5514
|
+
"scripts/8e4cc6e0c7e4e3b44628.js",
|
|
5515
5515
|
"scripts/d476bdf3c63e8acd857e.js"
|
|
5516
5516
|
],
|
|
5517
5517
|
"styles": [
|
|
@@ -5527,8 +5527,8 @@
|
|
|
5527
5527
|
"styles/125bf47b90f088fff229.css",
|
|
5528
5528
|
"styles/ba70a1a96c6e4c09ba97.css",
|
|
5529
5529
|
"styles/c809cf38c5272bcfe17e.css",
|
|
5530
|
-
"styles/
|
|
5531
|
-
"styles/
|
|
5530
|
+
"styles/653e8be2da9833ed4a40.css",
|
|
5531
|
+
"styles/8e4cc6e0c7e4e3b44628.css",
|
|
5532
5532
|
"styles/d476bdf3c63e8acd857e.css"
|
|
5533
5533
|
]
|
|
5534
5534
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7175],{19736:function(){},42750:function(e,t,n){"use strict";var a=n(93379),l=n.n(a),u=n(7795),o=n.n(u),r=n(90569),i=n.n(r),c=n(3565),d=n.n(c),f=n(19216),s=n.n(f),m=n(44589),v=n.n(m),p=n(19736),b=n.n(p),h={};h.styleTagTransform=v(),h.setAttributes=d(),h.insert=i().bind(null,"head"),h.domAPI=o(),h.insertStyleElement=s(),l()(b(),h),b()&&b().locals&&b().locals},19039:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(76765),u=n(76765),o={"data-test":"vs-autocomplete",class:"mb-4"},r=["for"],i=["name"],c=n(76765),d=a(n(48518));t.default=(0,l.defineComponent)({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup:function(e,t){var n=t.emit,a=e,l=(0,c.ref)([]),f=(0,c.computed)((function(){if("string"==typeof l.value){if(a.isTourLocation){var e=a.options.find((function(e){return e.name===l.value}));if(void 0!==e)return e.slug}return l.value}})),s=function(e){void 0!==a.trackBy?l.value=e[a.trackBy]:l.value=e.label},m=(0,c.computed)((function(){return void 0!==a.multiselectLabel?a.multiselectLabel:"name"})),v=(0,c.computed)((function(){return!!(l.value&&l.value.length>0)}));return(0,c.watch)(l,(function(e){n("changeValue",e)})),(0,c.watch)((function(){return a.defaultVal}),(function(){void 0!==a.defaultVal&&(l.value=a.defaultVal.name)})),(0,c.watch)((function(){return l.value}),(function(){null===l.value&&(l.value=[])})),(0,c.onMounted)((function(){void 0!==a.defaultVal&&(l.value=a.defaultVal.name)})),function(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)("div",o,[(0,u.createElementVNode)("label",{for:e.id},(0,u.toDisplayString)(e.label),9,r),(0,u.createVNode)((0,u.unref)(d.default),{class:"vs-input form-control",id:e.id,placeholder:e.placeholder,searchable:!0,"track-by":e.trackBy,valueProp:e.trackBy,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return l.value=e}),autocomplete:"off",items:e.options,minInputLength:0,itemProjection:function(e){return e[m.value]},onSelectItem:s,defaultItem:a.defaultVal},null,8,["id","placeholder","track-by","valueProp","modelValue","items","itemProjection","defaultItem"]),v.value?(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)("input",{key:0,type:"hidden",name:e.name,"onUpdate:modelValue":t[1]||(t[1]=function(e){return f.value=e})},null,8,i)),[[u.vModelText,f.value]]):(0,u.createCommentVNode)("",!0)])}}})},27175:function(e,t,n){"use strict";n.r(t);var a=n(16672),l={};for(var u in a)"default"!==u&&(l[u]=function(e){return a[e]}.bind(0,u));n.d(t,l),n(53654);const o=a.default;t.default=o},53654:function(e,t,n){"use strict";n(42750)},16672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l.a}});var a=n(19039),l=n.n(a),u={};for(var o in a)"default"!==o&&(u[o]=function(e){return a[e]}.bind(0,o));n.d(t,u)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7809],{30112:function(){},36839:function(e,t,n){"use strict";var a=n(93379),o=n.n(a),r=n(7795),l=n.n(r),u=n(90569),c=n.n(u),i=n(3565),s=n.n(i),d=n(19216),f=n.n(d),v=n(44589),p=n.n(v),m=n(30112),h=n.n(m),b={};b.styleTagTransform=p(),b.setAttributes=s(),b.insert=c().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),o()(h(),b),h()&&h().locals&&h().locals},43062: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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(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())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=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(76765),c=n(76765),i={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},s={key:0,class:"container"},d={class:"row"},f={class:"col-12"},v=["action","onSubmit"],p={class:"form-group"},m={for:"prodtypes"},h={"aria-live":"polite"},b=["disabled","value"],y=["disabled","value"],k=["value"],g={key:4,type:"hidden",name:"areaproxdist",value:"10"},w={key:5},_={key:1,class:"form-group"},x={for:"search-keyword"},B={key:3},E=["value"],T={key:0},N=["value"],V=n(76765),L=n(12147),S=n(61309),C=n(68504),P=n(83506),D=l(n(16145)),j=l(n(92664)),O=l(n(63817)),U=l(n(27175)),M=l(n(17710)),A=l(n(96971)),I=l(n(83918));t.default=(0,u.defineComponent)({__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,V.ref)(!1),u=(0,V.ref)(),F=(0,V.ref)([]),G=((0,V.ref)(null),(0,V.ref)()),R=(0,V.ref)("off"),J=(0,V.ref)(!1),Y=(0,V.computed)((function(){var e=void 0===u.value?"see-do":u.value;return"/info/".concat(S.paths[e])})),H=(0,V.ref)(!1),K={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},q=(0,V.computed)((function(){var e=n.defaultLocale.length>0?n.defaultLocale:(0,L.getLocale)();return"en"===e&&(e=""),e})),z=(0,V.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"})),Q=(0,V.computed)((function(){return"".concat(z.value).concat(q.value?"/"+q.value:"").concat(Y.value,"/search-results")})),W="https://www.visitscotland.com/data/locations"+"?locale=".concat(q.value),X=(0,V.ref)([]),Z=(0,V.ref)([]),$=(0,V.ref)([]),ee=(0,V.ref)([]),te=(0,V.computed)((function(){return l.value?[]:ee.value.map((function(e){return a(a({},e),{text:(0,L.getProductName)(e.value,e.text)})}))})),ne=function(){return o(t,void 0,void 0,(function(){var e;return r(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())&&($.value=e.data),[2]}}))}))},ae=function(){return o(t,void 0,void 0,(function(){var e;return r(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())&&(Z.value=e.data),[2]}}))}))},oe=function(e,t){G.value="key"===t?X.value.find((function(t){return t.key===e})):X.value.find((function(t){return t.name===e}))},re=function(){l.value=!0,(0,V.nextTick)((function(){l.value=!1,""!==n.defaultLocation&&H&&oe(n.defaultLocation,"key")}))};(0,V.onBeforeMount)((function(){return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){return window.VS={},(e=document.createElement("script")).async=!1,e.onload=re,e.setAttribute("src","https://www.visitscotland.com/".concat((K[n.defaultLocale]||"").localeUrl,"/data/template/search.js")),document.head.appendChild(e),[2]}))}))})),(0,V.onMounted)((function(){return o(t,void 0,void 0,(function(){return r(this,(function(e){var a,l;return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)(W)];case 1:return(e=t.sent())&&(X.value=e.data),[2]}}))})),H.value=!0,u.value=n.defaultProd,"tour"===u.value&&(ne(),ae()),a=(0,C.getProductTypes)(),l=[],a.forEach((function(e){l.push(e)})),ee.value=l,[2]}))}))}));var le=function(e){J.value=!0;var t=e.currentTarget;setTimeout((function(){t.submit()}),500)};return function(t,n){var a,o,r,V,C,P;return(0,c.openBlock)(),(0,c.createElementBlock)("div",i,[l.value?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createElementBlock)("div",s,[(0,c.createElementVNode)("div",d,[(0,c.createElementVNode)("div",f,[(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createElementBlock)("form",{key:0,action:Q.value,onSubmit:(0,c.withModifiers)(le,["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)(L.getLabelText)("search_for","I'm looking for")),1),(0,c.createVNode)(j.default,{options:te.value,value:e.defaultProd,onUpdated:n[0]||(n[0]=function(e){return t=e.value,u.value=t,void("tour"===t&&(ne(),ae()));var t}),"field-name":"prodtypes"},null,8,["options","value"])]),(0,c.createElementVNode)("div",h,["tour"!=u.value&&(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createBlock)(U.default,{key:0,id:"search-location",label:(0,c.unref)(L.getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:X.value,placeholder:(0,c.unref)(L.getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:n[1]||(n[1]=function(e){return oe(e)}),"default-val":(0,c.unref)(G)},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)(G))||void 0===a?void 0:a.type),value:(null===(o=(0,c.unref)(G))||void 0===o?void 0:o.key)||""},null,8,b)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:2,type:"hidden",name:"locpoly",disabled:"POLYGON"!==(null===(r=(0,c.unref)(G))||void 0===r?void 0:r.type),value:(null===(V=(0,c.unref)(G))||void 0===V?void 0:V.key)||""},null,8,y)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:3,type:"hidden",name:"locprox",value:"DISTRICT"===(null===(C=(0,c.unref)(G))||void 0===C?void 0:C.type)?1:0},null,8,k)):(0,c.createCommentVNode)("",!0),"tour"!==u.value&&"DISTRICT"===(null===(P=(0,c.unref)(G))||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",w,["even"===u.value||"acco"===u.value?((0,c.openBlock)(),(0,c.createBlock)(A.default,{key:0,"start-label":(0,c.unref)(L.getLabelText)("startdate","Start Date","dates"),"end-label":(0,c.unref)(L.getLabelText)("enddate","End Date","dates"),onDateUpdated:n[2]||(n[2]=function(e){return function(e){R.value=e?"on":"off"}(e)}),"default-dates":J.value},null,8,["start-label","end-label","default-dates"])):(0,c.createCommentVNode)("",!0),"even"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",_,[(0,c.createElementVNode)("label",x,(0,c.toDisplayString)((0,c.unref)(L.getLabelText)("keywords","Keywords")),1),(0,c.createVNode)(O.default,{"field-name":"search-keyword",placeholder:(0,c.unref)(L.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:2,availability:!0,label:(0,c.unref)(L.getLabelText)("guests","Guests"),id:"guest-selector"},null,8,["label"])):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",B,[(0,c.createElementVNode)("input",{hidden:"true",name:"avail",value:R.value},null,8,E)])):(0,c.createCommentVNode)("",!0)])):(0,c.createCommentVNode)("",!0)]),"tour"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",T,[(0,c.createVNode)(U.default,{id:"tour-origin",label:(0,c.unref)(L.getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:$.value,placeholder:(0,c.unref)(L.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)(F.value,(function(e){return(0,c.openBlock)(),(0,c.createElementBlock)("input",{type:"hidden",name:"attractions[]",value:e},null,8,N)})),256)),(0,c.createVNode)(U.default,{id:"tour-month",label:(0,c.unref)(L.getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:(0,c.unref)(L.getLabelText)("months",(0,c.unref)(S.monthsEnglish)),placeholder:(0,c.unref)(L.getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):(0,c.createCommentVNode)("",!0),(0,c.createVNode)(I.default,{class:"mt-6","data-test":"psw-submit",type:"submit",variant:"dark"},{default:(0,c.withCtx)((function(){return[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(L.getLabelText)("search","Search")),1)]})),_:1})],40,v)):(0,c.createCommentVNode)("",!0),(0,c.unref)(H)?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createBlock)(D.default,{key:1,variant:"dark"}))])])]))])}}})},61309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monthsEnglish=t.paths=t.products=void 0,t.products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],t.paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},t.monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}]},83506:function(e,t,n){"use strict";var a=n(25108),o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(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())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=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=void 0;var u=l(n(97218));t.getData=function(e){return o(this,void 0,void 0,(function(){var t;return r(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]}}))}))}},68504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProductTypes=t.getURLParameters=void 0;var a,o=n(61309);a="undefined"!=typeof window&&"object"==typeof window.VS?window.VS:{},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 o.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}},97809:function(e,t,n){"use strict";n.r(t);var a=n(65531),o={};for(var r in a)"default"!==r&&(o[r]=function(e){return a[e]}.bind(0,r));n.d(t,o),n(10167);const l=a.default;t.default=l},10167:function(e,t,n){"use strict";n(36839)},65531:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o.a}});var a=n(43062),o=n.n(a),r={};for(var l in a)"default"!==l&&(r[l]=function(e){return a[e]}.bind(0,l));n.d(t,r)}}]);
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7809],{77779:function(){},53766:function(e,t,n){"use strict";var a=n(93379),o=n.n(a),r=n(7795),l=n.n(r),u=n(90569),c=n.n(u),i=n(3565),s=n.n(i),d=n(19216),f=n.n(d),v=n(44589),p=n.n(v),m=n(77779),h=n.n(m),b={};b.styleTagTransform=p(),b.setAttributes=s(),b.insert=c().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),o()(h(),b),h()&&h().locals&&h().locals},43062: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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(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())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=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(76765),c=n(76765),i={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},s={key:0,class:"container"},d={class:"row"},f={class:"col-12"},v=["action","onSubmit"],p={class:"form-group"},m={for:"prodtypes"},h={"aria-live":"polite"},b=["disabled","value"],y=["disabled","value"],k=["value"],g={key:4,type:"hidden",name:"areaproxdist",value:"10"},w={key:5},_={key:1,class:"form-group"},x={for:"search-keyword"},B={key:3},E=["value"],T={key:0},N=["value"],V=n(76765),L=n(12147),S=n(61309),C=n(68504),P=n(83506),D=l(n(16145)),j=l(n(92664)),O=l(n(63817)),U=l(n(27175)),M=l(n(17710)),A=l(n(96971)),I=l(n(83918));t.default=(0,u.defineComponent)({__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,V.ref)(!1),u=(0,V.ref)(),F=(0,V.ref)([]),G=((0,V.ref)(null),(0,V.ref)()),R=(0,V.ref)("off"),J=(0,V.ref)(!1),Y=(0,V.computed)((function(){var e=void 0===u.value?"see-do":u.value;return"/info/".concat(S.paths[e])})),H=(0,V.ref)(!1),K={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},q=(0,V.computed)((function(){var e=n.defaultLocale.length>0?n.defaultLocale:(0,L.getLocale)();return"en"===e&&(e=""),e})),z=(0,V.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"})),Q=(0,V.computed)((function(){return"".concat(z.value).concat(q.value?"/"+q.value:"").concat(Y.value,"/search-results")})),W="https://www.visitscotland.com/data/locations"+"?locale=".concat(q.value),X=(0,V.ref)([]),Z=(0,V.ref)([]),$=(0,V.ref)([]),ee=(0,V.ref)([]),te=(0,V.computed)((function(){return l.value?[]:ee.value.map((function(e){return a(a({},e),{text:(0,L.getProductName)(e.value,e.text)})}))})),ne=function(){return o(t,void 0,void 0,(function(){var e;return r(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())&&($.value=e.data),[2]}}))}))},ae=function(){return o(t,void 0,void 0,(function(){var e;return r(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())&&(Z.value=e.data),[2]}}))}))},oe=function(e,t){G.value="key"===t?X.value.find((function(t){return t.key===e})):X.value.find((function(t){return t.name===e}))},re=function(){l.value=!0,(0,V.nextTick)((function(){l.value=!1,""!==n.defaultLocation&&H&&oe(n.defaultLocation,"key")}))};(0,V.onBeforeMount)((function(){return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){return window.VS={},(e=document.createElement("script")).async=!1,e.onload=re,e.setAttribute("src","https://www.visitscotland.com/".concat((K[n.defaultLocale]||"").localeUrl,"/data/template/search.js")),document.head.appendChild(e),[2]}))}))})),(0,V.onMounted)((function(){return o(t,void 0,void 0,(function(){return r(this,(function(e){var a,l;return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)(W)];case 1:return(e=t.sent())&&(X.value=e.data),[2]}}))})),H.value=!0,u.value=n.defaultProd,"tour"===u.value&&(ne(),ae()),a=(0,C.getProductTypes)(),l=[],a.forEach((function(e){l.push(e)})),ee.value=l,[2]}))}))}));var le=function(e){J.value=!0;var t=e.currentTarget;setTimeout((function(){t.submit()}),500)};return function(t,n){var a,o,r,V,C,P;return(0,c.openBlock)(),(0,c.createElementBlock)("div",i,[l.value?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createElementBlock)("div",s,[(0,c.createElementVNode)("div",d,[(0,c.createElementVNode)("div",f,[(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createElementBlock)("form",{key:0,action:Q.value,onSubmit:(0,c.withModifiers)(le,["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)(L.getLabelText)("search_for","I'm looking for")),1),(0,c.createVNode)(j.default,{options:te.value,value:e.defaultProd,onUpdated:n[0]||(n[0]=function(e){return t=e.value,u.value=t,void("tour"===t&&(ne(),ae()));var t}),"field-name":"prodtypes"},null,8,["options","value"])]),(0,c.createElementVNode)("div",h,["tour"!=u.value&&(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createBlock)(U.default,{key:0,id:"search-location",label:(0,c.unref)(L.getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:X.value,placeholder:(0,c.unref)(L.getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:n[1]||(n[1]=function(e){return oe(e)}),"default-val":(0,c.unref)(G)},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)(G))||void 0===a?void 0:a.type),value:(null===(o=(0,c.unref)(G))||void 0===o?void 0:o.key)||""},null,8,b)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:2,type:"hidden",name:"locpoly",disabled:"POLYGON"!==(null===(r=(0,c.unref)(G))||void 0===r?void 0:r.type),value:(null===(V=(0,c.unref)(G))||void 0===V?void 0:V.key)||""},null,8,y)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:3,type:"hidden",name:"locprox",value:"DISTRICT"===(null===(C=(0,c.unref)(G))||void 0===C?void 0:C.type)?1:0},null,8,k)):(0,c.createCommentVNode)("",!0),"tour"!==u.value&&"DISTRICT"===(null===(P=(0,c.unref)(G))||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",w,["even"===u.value||"acco"===u.value?((0,c.openBlock)(),(0,c.createBlock)(A.default,{key:0,"start-label":(0,c.unref)(L.getLabelText)("startdate","Start Date","dates"),"end-label":(0,c.unref)(L.getLabelText)("enddate","End Date","dates"),onDateUpdated:n[2]||(n[2]=function(e){return function(e){R.value=e?"on":"off"}(e)}),"default-dates":J.value},null,8,["start-label","end-label","default-dates"])):(0,c.createCommentVNode)("",!0),"even"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",_,[(0,c.createElementVNode)("label",x,(0,c.toDisplayString)((0,c.unref)(L.getLabelText)("keywords","Keywords")),1),(0,c.createVNode)(O.default,{"field-name":"search-keyword",placeholder:(0,c.unref)(L.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:2,availability:!0,label:(0,c.unref)(L.getLabelText)("guests","Guests"),id:"guest-selector"},null,8,["label"])):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",B,[(0,c.createElementVNode)("input",{hidden:"true",name:"avail",value:R.value},null,8,E)])):(0,c.createCommentVNode)("",!0)])):(0,c.createCommentVNode)("",!0)]),"tour"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",T,[(0,c.createVNode)(U.default,{id:"tour-origin",label:(0,c.unref)(L.getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:$.value,placeholder:(0,c.unref)(L.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)(F.value,(function(e){return(0,c.openBlock)(),(0,c.createElementBlock)("input",{type:"hidden",name:"attractions[]",value:e},null,8,N)})),256)),(0,c.createVNode)(U.default,{id:"tour-month",label:(0,c.unref)(L.getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:(0,c.unref)(L.getLabelText)("months",(0,c.unref)(S.monthsEnglish)),placeholder:(0,c.unref)(L.getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):(0,c.createCommentVNode)("",!0),(0,c.createVNode)(I.default,{class:"mt-6","data-test":"psw-submit",type:"submit",variant:"dark"},{default:(0,c.withCtx)((function(){return[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(L.getLabelText)("search","Search")),1)]})),_:1})],40,v)):(0,c.createCommentVNode)("",!0),(0,c.unref)(H)?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createBlock)(D.default,{key:1,variant:"dark"}))])])]))])}}})},61309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monthsEnglish=t.paths=t.products=void 0,t.products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],t.paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},t.monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}]},83506:function(e,t,n){"use strict";var a=n(25108),o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(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())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=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=void 0;var u=l(n(97218));t.getData=function(e){return o(this,void 0,void 0,(function(){var t;return r(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]}}))}))}},68504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProductTypes=t.getURLParameters=void 0;var a,o=n(61309);a="undefined"!=typeof window&&"object"==typeof window.VS?window.VS:{},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 o.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}},97809:function(e,t,n){"use strict";n.r(t);var a=n(65531),o={};for(var r in a)"default"!==r&&(o[r]=function(e){return a[e]}.bind(0,r));n.d(t,o),n(18842);const l=a.default;t.default=l},18842:function(e,t,n){"use strict";n(53766)},65531:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o.a}});var a=n(43062),o=n.n(a),r={};for(var l in a)"default"!==l&&(r[l]=function(e){return a[e]}.bind(0,l));n.d(t,r)}}]);
|