@visitscotland/component-library 5.15.4 → 5.16.1

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.
@@ -5031,13 +5031,11 @@
5031
5031
  "scripts/f2dfcfa0d38d341fc827.js",
5032
5032
  "scripts/fd3f812603b78fe9978b.js",
5033
5033
  "scripts/91ec808848d9ef8fde7a.js",
5034
- "scripts/5338ba2c1a300fb817ad.js",
5035
- "scripts/a2889943d35bdc903958.js",
5036
- "scripts/38d93988ab8f6c51fb4d.js",
5037
- "scripts/d4e53de1fac9706422b8.js"
5034
+ "scripts/701b3f29f72a42f4ba5b.js",
5035
+ "scripts/721044e6d4d9f7d20737.js"
5038
5036
  ],
5039
5037
  "styles": [
5040
- "styles/38d93988ab8f6c51fb4d.css"
5038
+ "styles/701b3f29f72a42f4ba5b.css"
5041
5039
  ]
5042
5040
  },
5043
5041
  "VsAutocomplete": {
@@ -7122,14 +7120,14 @@
7122
7120
  "scripts/cab53f386efc88df7164.js",
7123
7121
  "scripts/7c528b179ac61796df85.js",
7124
7122
  "scripts/b7cc5ee25c7302916b09.js",
7125
- "scripts/da2e15296fabbccab55c.js",
7123
+ "scripts/a2e4b319b67673e9af30.js",
7126
7124
  "scripts/8a132f49b6438c3e6199.js"
7127
7125
  ],
7128
7126
  "styles": [
7129
7127
  "styles/5ef9a0f18541fee55f4c.css",
7130
7128
  "styles/7c528b179ac61796df85.css",
7131
7129
  "styles/b7cc5ee25c7302916b09.css",
7132
- "styles/da2e15296fabbccab55c.css"
7130
+ "styles/a2e4b319b67673e9af30.css"
7133
7131
  ]
7134
7132
  },
7135
7133
  "VsFedSearchInput": {
@@ -7275,12 +7273,12 @@
7275
7273
  "scripts/e794fc5005c252318257.js",
7276
7274
  "scripts/becfc64a7cf18580f64b.js",
7277
7275
  "scripts/b85e16fbbf8d8cec5583.js",
7276
+ "scripts/a2e4b319b67673e9af30.js",
7278
7277
  "scripts/3ea2352e8a94ddc6dc8a.js",
7279
7278
  "scripts/86814331153df2f74cb1.js",
7280
7279
  "scripts/a98a1c78a6e495be1fe3.js",
7281
7280
  "scripts/8537711ac020c8f29676.js",
7282
7281
  "scripts/980215f15338a4638935.js",
7283
- "scripts/da2e15296fabbccab55c.js",
7284
7282
  "scripts/d307d2e9cf655c179d77.js",
7285
7283
  "scripts/662de3a6d0e84564965f.js",
7286
7284
  "scripts/1c32beef3128a72541fd.js",
@@ -7334,7 +7332,6 @@
7334
7332
  "scripts/804a497cb44fe949310e.js",
7335
7333
  "scripts/d2b70350d3fa2cef0e39.js",
7336
7334
  "scripts/a74cc1abc33d10c98576.js",
7337
- "scripts/38d93988ab8f6c51fb4d.js",
7338
7335
  "scripts/07f92cd6237e0c89e05f.js",
7339
7336
  "scripts/92e2f55c77c0b9473c56.js",
7340
7337
  "scripts/914125d34a0c8421839d.js",
@@ -7343,11 +7340,12 @@
7343
7340
  "scripts/00ccd7949f170b3d738d.js",
7344
7341
  "scripts/815b2ba5fab54eebb5ca.js",
7345
7342
  "scripts/c07d2bb6aab9b5629d10.js",
7343
+ "scripts/701b3f29f72a42f4ba5b.js",
7346
7344
  "scripts/408bd09f6eb4f00d6659.js",
7347
7345
  "scripts/0adba95aa35ce3cf48a3.js",
7348
7346
  "scripts/0965942c287f6c10c83a.js",
7349
7347
  "scripts/7b75378e25bc74c7aeb0.js",
7350
- "scripts/d7c116548c18ae4946f6.js"
7348
+ "scripts/8f8e18af47afd9dac73b.js"
7351
7349
  ],
7352
7350
  "styles": [
7353
7351
  "styles/5ef9a0f18541fee55f4c.css",
@@ -7430,12 +7428,12 @@
7430
7428
  "styles/e794fc5005c252318257.css",
7431
7429
  "styles/becfc64a7cf18580f64b.css",
7432
7430
  "styles/b85e16fbbf8d8cec5583.css",
7431
+ "styles/a2e4b319b67673e9af30.css",
7433
7432
  "styles/3ea2352e8a94ddc6dc8a.css",
7434
7433
  "styles/86814331153df2f74cb1.css",
7435
7434
  "styles/a98a1c78a6e495be1fe3.css",
7436
7435
  "styles/8537711ac020c8f29676.css",
7437
7436
  "styles/980215f15338a4638935.css",
7438
- "styles/da2e15296fabbccab55c.css",
7439
7437
  "styles/d307d2e9cf655c179d77.css",
7440
7438
  "styles/662de3a6d0e84564965f.css",
7441
7439
  "styles/1c32beef3128a72541fd.css",
@@ -7489,7 +7487,6 @@
7489
7487
  "styles/804a497cb44fe949310e.css",
7490
7488
  "styles/d2b70350d3fa2cef0e39.css",
7491
7489
  "styles/a74cc1abc33d10c98576.css",
7492
- "styles/38d93988ab8f6c51fb4d.css",
7493
7490
  "styles/07f92cd6237e0c89e05f.css",
7494
7491
  "styles/92e2f55c77c0b9473c56.css",
7495
7492
  "styles/914125d34a0c8421839d.css",
@@ -7498,6 +7495,7 @@
7498
7495
  "styles/00ccd7949f170b3d738d.css",
7499
7496
  "styles/815b2ba5fab54eebb5ca.css",
7500
7497
  "styles/c07d2bb6aab9b5629d10.css",
7498
+ "styles/701b3f29f72a42f4ba5b.css",
7501
7499
  "styles/7b75378e25bc74c7aeb0.css"
7502
7500
  ]
7503
7501
  },
@@ -7698,12 +7696,12 @@
7698
7696
  "scripts/e794fc5005c252318257.js",
7699
7697
  "scripts/becfc64a7cf18580f64b.js",
7700
7698
  "scripts/b85e16fbbf8d8cec5583.js",
7699
+ "scripts/a2e4b319b67673e9af30.js",
7701
7700
  "scripts/3ea2352e8a94ddc6dc8a.js",
7702
7701
  "scripts/86814331153df2f74cb1.js",
7703
7702
  "scripts/a98a1c78a6e495be1fe3.js",
7704
7703
  "scripts/8537711ac020c8f29676.js",
7705
7704
  "scripts/980215f15338a4638935.js",
7706
- "scripts/da2e15296fabbccab55c.js",
7707
7705
  "scripts/d307d2e9cf655c179d77.js",
7708
7706
  "scripts/662de3a6d0e84564965f.js",
7709
7707
  "scripts/1c32beef3128a72541fd.js",
@@ -7757,7 +7755,6 @@
7757
7755
  "scripts/804a497cb44fe949310e.js",
7758
7756
  "scripts/d2b70350d3fa2cef0e39.js",
7759
7757
  "scripts/a74cc1abc33d10c98576.js",
7760
- "scripts/38d93988ab8f6c51fb4d.js",
7761
7758
  "scripts/07f92cd6237e0c89e05f.js",
7762
7759
  "scripts/92e2f55c77c0b9473c56.js",
7763
7760
  "scripts/914125d34a0c8421839d.js",
@@ -7766,13 +7763,14 @@
7766
7763
  "scripts/00ccd7949f170b3d738d.js",
7767
7764
  "scripts/815b2ba5fab54eebb5ca.js",
7768
7765
  "scripts/c07d2bb6aab9b5629d10.js",
7766
+ "scripts/701b3f29f72a42f4ba5b.js",
7769
7767
  "scripts/408bd09f6eb4f00d6659.js",
7770
7768
  "scripts/0adba95aa35ce3cf48a3.js",
7771
7769
  "scripts/0965942c287f6c10c83a.js",
7772
7770
  "scripts/7b75378e25bc74c7aeb0.js",
7773
7771
  "scripts/6a8e8fabd2fa07e4709a.js",
7774
7772
  "scripts/588b32ff5515fdd5707e.js",
7775
- "scripts/88fd69203dc520d9b5b0.js"
7773
+ "scripts/911dd5e8365b20cc0c1f.js"
7776
7774
  ],
7777
7775
  "styles": [
7778
7776
  "styles/5ef9a0f18541fee55f4c.css",
@@ -7855,12 +7853,12 @@
7855
7853
  "styles/e794fc5005c252318257.css",
7856
7854
  "styles/becfc64a7cf18580f64b.css",
7857
7855
  "styles/b85e16fbbf8d8cec5583.css",
7856
+ "styles/a2e4b319b67673e9af30.css",
7858
7857
  "styles/3ea2352e8a94ddc6dc8a.css",
7859
7858
  "styles/86814331153df2f74cb1.css",
7860
7859
  "styles/a98a1c78a6e495be1fe3.css",
7861
7860
  "styles/8537711ac020c8f29676.css",
7862
7861
  "styles/980215f15338a4638935.css",
7863
- "styles/da2e15296fabbccab55c.css",
7864
7862
  "styles/d307d2e9cf655c179d77.css",
7865
7863
  "styles/662de3a6d0e84564965f.css",
7866
7864
  "styles/1c32beef3128a72541fd.css",
@@ -7914,7 +7912,6 @@
7914
7912
  "styles/804a497cb44fe949310e.css",
7915
7913
  "styles/d2b70350d3fa2cef0e39.css",
7916
7914
  "styles/a74cc1abc33d10c98576.css",
7917
- "styles/38d93988ab8f6c51fb4d.css",
7918
7915
  "styles/07f92cd6237e0c89e05f.css",
7919
7916
  "styles/92e2f55c77c0b9473c56.css",
7920
7917
  "styles/914125d34a0c8421839d.css",
@@ -7923,10 +7920,11 @@
7923
7920
  "styles/00ccd7949f170b3d738d.css",
7924
7921
  "styles/815b2ba5fab54eebb5ca.css",
7925
7922
  "styles/c07d2bb6aab9b5629d10.css",
7923
+ "styles/701b3f29f72a42f4ba5b.css",
7926
7924
  "styles/7b75378e25bc74c7aeb0.css",
7927
7925
  "styles/6a8e8fabd2fa07e4709a.css",
7928
7926
  "styles/588b32ff5515fdd5707e.css",
7929
- "styles/88fd69203dc520d9b5b0.css"
7927
+ "styles/911dd5e8365b20cc0c1f.css"
7930
7928
  ]
7931
7929
  }
7932
7930
  }
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1474],{4294:function(n,t,s){"use strict";s.d(t,{A:function(){return e.A}});var e=s(99282)},16403:function(n,t,s){"use strict";s(95343)},33625:function(){},50741:function(n,t,s){"use strict";s.d(t,{X:function(){return r}});var e=s(20641),a=s(90033);function r(n,t,s,r,i,o){return(0,e.uX)(),(0,e.CE)("div",{class:(0,a.normalizeClass)(["vs-panel",o.panelClasses]),"data-test":"vs-panel"},[(0,e.RG)(n.$slots,"vs-panel-title"),(0,e.RG)(n.$slots,"default")],2)}},61474:function(n,t,s){"use strict";s.r(t);var e=s(50741),a=s(4294);s(16403);const r=(0,s(66262).A)(a.A,[["render",e.X]]);t.default=r},95343:function(n,t,s){"use strict";var e=s(85072),a=s.n(e),r=s(97825),i=s.n(r),o=s(77659),l=s.n(o),c=s(55056),u=s.n(c),f=s(10540),d=s.n(f),p=s(41113),v=s.n(p),m=s(33625),y=s.n(m),A={};A.styleTagTransform=v(),A.setAttributes=u(),A.insert=l().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=d(),a()(y(),A),y()&&y().locals&&y().locals},99282:function(n,t){"use strict";t.A={name:"VsPanel",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"secondary",validator:function(n){return n.match(/(secondary|information)/)}}},computed:{panelClasses:function(){return"vs-panel--".concat(this.variant)}}}}}]);
@@ -1 +1 @@
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.VsPanel=t():e.VsPanel=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7255],{},function(e){return e.O(0,[641,6262,7510,3751,4352,1474],(function(){return e(e.s=61474)})),e.O()}])}));
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.VsPanel=t():e.VsPanel=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7255],{},function(e){return e.O(0,[641,6262,7510,1474],(function(){return e(e.s=61474)})),e.O()}])}));
@@ -1 +1 @@
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,4467,7527,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,1459,5921,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3614,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,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,555,8978,3033,6649,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,1474,3734,1901,8969,5106,627,538,1493,4297,4856,7006,6689,8995],(function(){return e(e.s=58995)})),e.O()}])}));
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,4467,7527,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,1459,5921,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3614,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,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,555,5809,3337,2810,7086,3603,8978,3033,6649,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,8995],(function(){return e(e.s=58995)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFederatedSearch=t():e.VsFederatedSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1746],{39535:function(e,t,a){"use strict";a.d(t,{A:function(){return r.A}});var r=a(77891)},49439:function(e,t,a){"use strict";a.r(t);var r=a(39535);a(69803);const s=r.A;t.default=s},62285:function(){},69803:function(e,t,a){"use strict";a(87415)},77891:function(e,t,a){"use strict";var r=a(20641),s=a(50953),n=a(53751),o=a(90033),l=a(12903),i=a(45922),u=a.n(i),d=a(88620),c=a(1780),f=a(58995),g=a(35965),p={class:"vs-federated-search","data-test":"vs-federated-search"},v={class:"vs-federated-search__container"},b={key:0,class:"vs-federated-search__results"},y={key:2},m={class:"position-relative"},h={class:"position-absolute bottom-0 start-0 d-flex gap-2"},R={class:"position-absolute bottom-0 end-0 d-flex"},k={class:"truncate-3-lines"},C={class:"d-flex justify-content-end align-items-end mt-050"},L={key:0,class:"d-flex align-items-start flex-grow-1"},_={key:3,class:"vs-federated-search__warning"};t.A={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:(0,d.A)("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number((0,d.A)("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number((0,d.A)("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:(0,d.A)("EVENTS_API_URL")},cludoCategories:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:function(){}}},setup:function(e){var t=u()(),a=(0,s.KR)({message:"",error:!1}),i=e;(0,r.Gt)("cludoCategories",i.cludoCategories);var d=(0,r.EW)((function(){var e;return t.selectedCategoryKey?"events"!==t.selectedCategoryKey?e=Math.ceil(t.totalResultsCludo/12):"events"===t.selectedCategoryKey&&(e=Math.ceil(t.totalResultsEvents/12)):e=t.totalResultsCludo>=t.totalResultsEvents?Math.ceil(t.totalResultsCludo/6):Math.ceil(t.totalResultsEvents/6),e}));function D(){t.endDate&&t.startDate>t.endDate?(a.value.error=!0,a.value.message=i.errorMessages.incorrectDateOrder):"events"===t.selectedCategoryKey&&t.eventsApiError&&!t.isLoading?(a.value.error=!0,a.value.message=i.errorMessages.eventError):(t.searchTerm||t.selectedCategory)&&"events"!==t.selectedCategoryKey&&t.cludoError&&!t.isLoading?(a.value.error=!0,a.value.message=i.errorMessages.cludoError):0!==t.totalResults||t.isLoading?(a.value.error=!1,a.value.message=""):(a.value.error=!0,a.value.message=i.errorMessages.noResults)}function S(e){t.startDate=e,t.navigateToResultsPage(!0)}function E(e){t.endDate=e,t.navigateToResultsPage(!0)}function V(e){t.sortBy=e,t.navigateToResultsPage(!0)}function A(e){t.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),t.navigateToResultsPage()}function I(e){if(e.url)return e.url;if(e.placeUrl)return e.placeUrl;var t=encodeURIComponent(e.title.replaceAll(" ","-").toLowerCase());return"".concat("https://www.datathistle.com/event/").concat(e.parentId,"-").concat(t)}return(0,r.sV)((function(){if(t.cludoCredentials={apiKey:i.cludoApiKey,customerId:i.cludoCustomerId,engineId:i.cludoEngineId},t.eventsApi=i.eventsApi,t.cludoCategories=i.cludoCategories,D(),"undefined"!=typeof window&&"undefined"!=typeof document){var e=new URLSearchParams(document.location.search),a=e.get("search-term"),r=parseInt(e.get("page"),10);r&&(t.currentPage=r),a&&(t.searchTerm=a,t.getSearchResults())}})),(0,r.$u)((function(){D()})),function(u,D){return(0,r.uX)(),(0,r.CE)("div",p,[(0,r.Lk)("div",v,[(0,r.bF)(f.default,{"cludo-api-key":i.cludoApiKey,"cludo-customer-id":i.cludoCustomerId,"cludo-engine-id":i.cludoEngineId,"sub-filters":i.subFilters,labels:i.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","sub-filters","labels"]),(0,r.bF)(c.default,{class:"my-200"}),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,s.R1)(t).cludoCategories,(function(e,a){return(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",{key:a,class:"mb-200"},[(0,r.RG)(u.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[n.vShow,(0,s.R1)(t).selectedCategoryKey===e.Key]])})),128)),(0,s.R1)(t).results?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",null,[(0,r.bF)((0,s.R1)(l.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.searchResults),1)]})),_:1}),0!==(0,s.R1)(t).totalResults?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsDetail),{key:0},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.resultsFirst)+" "+(0,o.toDisplayString)((0,s.R1)(t).totalResults)+" "+(0,o.toDisplayString)(i.searchLabels.resultsSecond),1)]})),_:1})):(0,r.Q3)("",!0)]),"events"===(0,s.R1)(t).selectedCategoryKey?((0,r.uX)(),(0,r.Wv)(g.default,{key:0,"date-filter-visible":!0,"sort-options":i.sortLabels.sortOptions,"from-date-label":i.sortLabels.dateFrom,"to-date-label":i.sortLabels.dateTo,"sort-label":i.sortLabels.sort,onFromDateUpdated:S,onEndDateUpdated:E,onSortOrderUpdated:V},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,r.Q3)("",!0)])):(0,r.Q3)("",!0),(0,s.R1)(t).isLoading?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsLoadingSpinner),{key:1})):(0,r.Q3)("",!0),(0,s.R1)(t).isLoading||!(0,s.R1)(t).results||(0,s.R1)(t).eventsApiError?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",y,[(0,r.bF)((0,s.R1)(l.VsCardGroup),{"cards-per-row":3},{default:(0,r.k6)((function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,s.R1)(t).results,(function(t){return(0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsCard),{key:t.id},{"vs-card-header":(0,r.k6)((function(){return[(0,r.Lk)("div",m,[(0,r.bF)((0,s.R1)(l.VsImg),{src:t.imgSrc||"https://static.visitscotland.com/img/fallback-img.png",class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),(0,r.Lk)("div",h,[t.minPrice?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.fromText)+" "+(0,o.toDisplayString)((e=t.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,r.Q3)("",!0),t.startDate?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)((e=t.startDate,a=t.endDate,e===a?e:"".concat(e," - ").concat(a))),1)];var e,a})),_:2},1024)):(0,r.Q3)("",!0)]),(0,r.Lk)("div",R,[t.categoryCard&&e.cardCategoryLabels[t.categoryCard]?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(e.cardCategoryLabels[t.categoryCard]),1)]})),_:2},1024)):(0,r.Q3)("",!0)])])]})),"vs-card-body":(0,r.k6)((function(){return[(0,r.bF)((0,s.R1)(l.VsHeading),{level:"3","heading-style":"heading-xs"},{default:(0,r.k6)((function(){return[(0,r.bF)((0,s.R1)(l.VsLink),{href:I(t),class:"stretched-link",variant:"secondary"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(t.title),1)]})),_:2},1032,["href"])]})),_:2},1024),(0,r.bF)((0,s.R1)(l.VsBody),null,{default:(0,r.k6)((function(){return[(0,r.Lk)("p",k,(0,o.toDisplayString)(t.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,r.k6)((function(){return[(0,r.Lk)("div",C,[t.location?((0,r.uX)(),(0,r.CE)("div",L,[(0,r.bF)((0,s.R1)(l.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),(0,r.bF)((0,s.R1)(l.VsDetail),{"no-margins":"",color:"tertiary"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(t.location),1)]})),_:2},1024)])):(0,r.Q3)("",!0),(0,r.Lk)("div",null,["data-thistle"===t.dataSrc?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):(0,r.Q3)("",!0)])])]})),_:2},1024)})),128))]})),_:1}),(0,s.R1)(t).results&&d.value>1?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":d.value,"next-button-label":i.paginationLabels.nextButtonLabel,"previous-button-label":i.paginationLabels.previousButtonLabel,"page-label":i.paginationLabels.pageLabel,"of-label":i.paginationLabels.ofLabel,modelValue:(0,s.R1)(t).currentPage,"onUpdate:modelValue":D[0]||(D[0]=function(e){return(0,s.R1)(t).currentPage=e}),onPageClick:A},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,r.Q3)("",!0)])),a.value.error?((0,r.uX)(),(0,r.CE)("div",_,[a.value.error?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsWarning),{key:0},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(a.value.message),1)]})),_:1})):(0,r.Q3)("",!0)])):(0,r.Q3)("",!0)]),(0,r.bF)((0,s.R1)(l.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.noJs),1)]})),_:1})])}}}},87415:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),o=a.n(n),l=a(77659),i=a.n(l),u=a(55056),d=a.n(u),c=a(10540),f=a.n(c),g=a(41113),p=a.n(g),v=a(62285),b=a.n(v),y={};y.styleTagTransform=p(),y.setAttributes=d(),y.insert=i().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=f(),s()(b(),y),b()&&b().locals&&b().locals}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,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,1459,5921,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3614,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,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,555,8978,3033,6649,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,1474,3734,1901,8969,5106,627,538,1493,4297,4856,7006,6689,8995,5965,1780],(function(){return e(e.s=49439)})),e.O()}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFederatedSearch=t():e.VsFederatedSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1746],{39535:function(e,t,a){"use strict";a.d(t,{A:function(){return r.A}});var r=a(77891)},49439:function(e,t,a){"use strict";a.r(t);var r=a(39535);a(69803);const s=r.A;t.default=s},62285:function(){},69803:function(e,t,a){"use strict";a(87415)},77891:function(e,t,a){"use strict";var r=a(20641),s=a(50953),n=a(53751),o=a(90033),l=a(12903),i=a(45922),u=a.n(i),d=a(88620),c=a(1780),f=a(58995),g=a(35965),p={class:"vs-federated-search","data-test":"vs-federated-search"},v={class:"vs-federated-search__container"},b={key:0,class:"vs-federated-search__results"},y={key:2},m={class:"position-relative"},h={class:"position-absolute bottom-0 start-0 d-flex gap-2"},R={class:"position-absolute bottom-0 end-0 d-flex"},k={class:"truncate-3-lines"},C={class:"d-flex justify-content-end align-items-end mt-050"},L={key:0,class:"d-flex align-items-start flex-grow-1"},_={key:3,class:"vs-federated-search__warning"};t.A={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:(0,d.A)("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number((0,d.A)("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number((0,d.A)("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:(0,d.A)("EVENTS_API_URL")},cludoCategories:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:function(){}}},setup:function(e){var t=u()(),a=(0,s.KR)({message:"",error:!1}),i=e;(0,r.Gt)("cludoCategories",i.cludoCategories);var d=(0,r.EW)((function(){var e;return t.selectedCategoryKey?"events"!==t.selectedCategoryKey?e=Math.ceil(t.totalResultsCludo/12):"events"===t.selectedCategoryKey&&(e=Math.ceil(t.totalResultsEvents/12)):e=t.totalResultsCludo>=t.totalResultsEvents?Math.ceil(t.totalResultsCludo/6):Math.ceil(t.totalResultsEvents/6),e}));function D(){t.endDate&&t.startDate>t.endDate?(a.value.error=!0,a.value.message=i.errorMessages.incorrectDateOrder):"events"===t.selectedCategoryKey&&t.eventsApiError&&!t.isLoading?(a.value.error=!0,a.value.message=i.errorMessages.eventError):(t.searchTerm||t.selectedCategory)&&"events"!==t.selectedCategoryKey&&t.cludoError&&!t.isLoading?(a.value.error=!0,a.value.message=i.errorMessages.cludoError):0!==t.totalResults||t.isLoading?(a.value.error=!1,a.value.message=""):(a.value.error=!0,a.value.message=i.errorMessages.noResults)}function S(e){t.startDate=e,t.navigateToResultsPage(!0)}function E(e){t.endDate=e,t.navigateToResultsPage(!0)}function V(e){t.sortBy=e,t.navigateToResultsPage(!0)}function A(e){t.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),t.navigateToResultsPage()}function I(e){if(e.url)return e.url;if(e.placeUrl)return e.placeUrl;var t=encodeURIComponent(e.title.replaceAll(" ","-").toLowerCase());return"".concat("https://www.datathistle.com/event/").concat(e.parentId,"-").concat(t)}return(0,r.sV)((function(){if(t.cludoCredentials={apiKey:i.cludoApiKey,customerId:i.cludoCustomerId,engineId:i.cludoEngineId},t.eventsApi=i.eventsApi,t.cludoCategories=i.cludoCategories,D(),"undefined"!=typeof window&&"undefined"!=typeof document){var e=new URLSearchParams(document.location.search),a=e.get("search-term"),r=parseInt(e.get("page"),10);r&&(t.currentPage=r),a&&(t.searchTerm=a,t.getSearchResults())}})),(0,r.$u)((function(){D()})),function(u,D){return(0,r.uX)(),(0,r.CE)("div",p,[(0,r.Lk)("div",v,[(0,r.bF)(f.default,{"cludo-api-key":i.cludoApiKey,"cludo-customer-id":i.cludoCustomerId,"cludo-engine-id":i.cludoEngineId,"sub-filters":i.subFilters,labels:i.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","sub-filters","labels"]),(0,r.bF)(c.default,{class:"my-200"}),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,s.R1)(t).cludoCategories,(function(e,a){return(0,r.bo)(((0,r.uX)(),(0,r.CE)("div",{key:a,class:"mb-200"},[(0,r.RG)(u.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[n.vShow,(0,s.R1)(t).selectedCategoryKey===e.Key]])})),128)),(0,s.R1)(t).results?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",null,[(0,r.bF)((0,s.R1)(l.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.searchResults),1)]})),_:1}),0!==(0,s.R1)(t).totalResults?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsDetail),{key:0},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.resultsFirst)+" "+(0,o.toDisplayString)((0,s.R1)(t).totalResults)+" "+(0,o.toDisplayString)(i.searchLabels.resultsSecond),1)]})),_:1})):(0,r.Q3)("",!0)]),"events"===(0,s.R1)(t).selectedCategoryKey?((0,r.uX)(),(0,r.Wv)(g.default,{key:0,"date-filter-visible":!0,"sort-options":i.sortLabels.sortOptions,"from-date-label":i.sortLabels.dateFrom,"to-date-label":i.sortLabels.dateTo,"sort-label":i.sortLabels.sort,onFromDateUpdated:S,onEndDateUpdated:E,onSortOrderUpdated:V},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,r.Q3)("",!0)])):(0,r.Q3)("",!0),(0,s.R1)(t).isLoading?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsLoadingSpinner),{key:1})):(0,r.Q3)("",!0),(0,s.R1)(t).isLoading||!(0,s.R1)(t).results||(0,s.R1)(t).eventsApiError?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",y,[(0,r.bF)((0,s.R1)(l.VsCardGroup),{"cards-per-row":3},{default:(0,r.k6)((function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,s.R1)(t).results,(function(t){return(0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsCard),{key:t.id},{"vs-card-header":(0,r.k6)((function(){return[(0,r.Lk)("div",m,[(0,r.bF)((0,s.R1)(l.VsImg),{src:t.imgSrc||"https://static.visitscotland.com/img/fallback-img.png",class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),(0,r.Lk)("div",h,[t.minPrice?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.fromText)+" "+(0,o.toDisplayString)((e=t.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,r.Q3)("",!0),t.startDate?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)((e=t.startDate,a=t.endDate,e===a?e:"".concat(e," - ").concat(a))),1)];var e,a})),_:2},1024)):(0,r.Q3)("",!0)]),(0,r.Lk)("div",R,[t.categoryCard&&e.cardCategoryLabels[t.categoryCard]?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(e.cardCategoryLabels[t.categoryCard]),1)]})),_:2},1024)):(0,r.Q3)("",!0)])])]})),"vs-card-body":(0,r.k6)((function(){return[(0,r.bF)((0,s.R1)(l.VsHeading),{level:"3","heading-style":"heading-xs"},{default:(0,r.k6)((function(){return[(0,r.bF)((0,s.R1)(l.VsLink),{href:I(t),class:"stretched-link",variant:"secondary"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(t.title),1)]})),_:2},1032,["href"])]})),_:2},1024),(0,r.bF)((0,s.R1)(l.VsBody),null,{default:(0,r.k6)((function(){return[(0,r.Lk)("p",k,(0,o.toDisplayString)(t.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,r.k6)((function(){return[(0,r.Lk)("div",C,[t.location?((0,r.uX)(),(0,r.CE)("div",L,[(0,r.bF)((0,s.R1)(l.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),(0,r.bF)((0,s.R1)(l.VsDetail),{"no-margins":"",color:"tertiary"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(t.location),1)]})),_:2},1024)])):(0,r.Q3)("",!0),(0,r.Lk)("div",null,["data-thistle"===t.dataSrc?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):(0,r.Q3)("",!0)])])]})),_:2},1024)})),128))]})),_:1}),(0,s.R1)(t).results&&d.value>1?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":d.value,"next-button-label":i.paginationLabels.nextButtonLabel,"previous-button-label":i.paginationLabels.previousButtonLabel,"page-label":i.paginationLabels.pageLabel,"of-label":i.paginationLabels.ofLabel,modelValue:(0,s.R1)(t).currentPage,"onUpdate:modelValue":D[0]||(D[0]=function(e){return(0,s.R1)(t).currentPage=e}),onPageClick:A},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,r.Q3)("",!0)])),a.value.error?((0,r.uX)(),(0,r.CE)("div",_,[a.value.error?((0,r.uX)(),(0,r.Wv)((0,s.R1)(l.VsWarning),{key:0},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(a.value.message),1)]})),_:1})):(0,r.Q3)("",!0)])):(0,r.Q3)("",!0)]),(0,r.bF)((0,s.R1)(l.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,o.toDisplayString)(i.searchLabels.noJs),1)]})),_:1})])}}}},87415:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),o=a.n(n),l=a(77659),i=a.n(l),u=a(55056),d=a.n(u),c=a(10540),f=a.n(c),g=a(41113),p=a.n(g),v=a(62285),b=a.n(v),y={};y.styleTagTransform=p(),y.setAttributes=d(),y.insert=i().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=f(),s()(b(),y),b()&&b().locals&&b().locals}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,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,1459,5921,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3614,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,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,555,5809,3337,2810,7086,3603,8978,3033,6649,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,8995,5965,1780],(function(){return e(e.s=49439)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[555],{10787:function(e,t,r){"use strict";r(27735)},19317:function(e,t,r){"use strict";r.d(t,{A:function(){return a.A}});var a=r(20025)},20025:function(e,t,r){"use strict";var a=r(89394),l=r(82284),n=r(20641),i=r(90033),s=r(50953),o=r(48836),c=r(44580),f={class:"vs-fed-filter"},u={class:"vs-fed-filter__scroll-container"},d=["id"];t.A={__name:"FedFilter",props:{filterCategories:{type:Array,required:!0},variant:{type:String,default:"primary",validator:function(e){return/^(primary|secondary)$/.test(e)}},wrap:{type:Boolean,default:!1},activeFilter:{type:[String,Array],default:""},scrollButtons:{type:Boolean,default:!1},scrollLeftText:{type:String,default:""},scrollRightText:{type:String,default:""}},emits:["filter-updated"],setup:function(e){var t=e,r=(0,s.KR)(null);function v(e){var t,a;"left"===e?null===(t=r.value)||void 0===t||t.scrollBy(-200,0):"right"===e&&(null===(a=r.value)||void 0===a||a.scrollBy(200,0))}var y=(0,n.EW)((function(){return(0,a.A)(t.filterCategories).sort((function(e,t){var r=(e.Label||e.Key||"").toLowerCase(),a=(t.Label||t.Key||"").toLowerCase();return r<a?-1:r>a?1:0}))}));function _(e){var t;switch(e){case"accommodation":t="fa-regular fa-bed";break;case"active-adventure":t="fa-kit fa-vs-landscape";break;case"city-break":t="fa-regular fa-city";break;case"culture-history":t="fa-regular fa-chess-rook";break;case"events":t="fa-regular fa-calendar-range";break;case"family-friendly":t="fa-regular fa-family";break;case"food-drink":t="fa-regular fa-utensils";break;case"nature-outdoors":t="fa-regular fa-leaf";break;case"tours":t="fa-regular fa-binoculars";break;case"travel-information":t="fa-regular fa-circle-info";break;case"wellness":t="fa-regular fa-spa";break;default:t=null}return t}return function(a,s){return(0,n.uX)(),(0,n.CE)("div",f,[a.$slots["fed-filter-header"]&&a.$slots["fed-filter-header"]()?((0,n.uX)(),(0,n.Wv)(c.default,{key:0,class:"vs-fed-filter__header mb-025 ms-025","data-test":"vs-fed-filter__header"},{default:(0,n.k6)((function(){return[(0,n.RG)(a.$slots,"fed-filter-header")]})),_:3})):(0,n.Q3)("",!0),(0,n.Lk)("div",u,[e.scrollButtons?((0,n.uX)(),(0,n.Wv)(o.default,{key:0,variant:"secondary",icon:"fa-regular fa-chevron-left","icon-only":"",class:"vs-fed-filter__scroll-button me-050","data-test":"vs-fed-filter__scroll-button--left",onClick:s[0]||(s[0]=function(e){return v("left")}),"aria-label":t.scrollLeftText},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(t.scrollLeftText),1)]})),_:1},8,["aria-label"])):(0,n.Q3)("",!0),(0,n.Lk)("div",{class:(0,i.normalizeClass)(["vs-fed-filter__scroll-rail",["vs-fed-filter__scroll-rail--".concat(t.variant),t.wrap?"vs-fed-filter__scroll-rail--wrap":""]]),id:"vs-fed-filter__scroll-rail--".concat(t.variant),ref_key:"scrollRail",ref:r},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(y.value,(function(e,r){return(0,n.uX)(),(0,n.Wv)(o.default,{key:r,class:"vs-fed-filter__category-button","data-test":"vs-fed-filter__category-button--".concat(e.Key),icon:"primary"===t.variant?_(e.Key):null,variant:(s=e.Key,("string"==typeof t.activeFilter?t.activeFilter===s:t.activeFilter&&"object"===(0,l.A)(t.activeFilter)&&t.activeFilter.includes(s))?"primary":"secondary"),size:"secondary"===t.variant?"sm":"md",onClick:function(t){return a.$emit("filter-updated",e)}},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(e.Label||e.Key),1)]})),_:2},1032,["data-test","icon","variant","size","onClick"]);var s})),128))],10,d),e.scrollButtons?((0,n.uX)(),(0,n.Wv)(o.default,{key:1,variant:"secondary",icon:"fa-regular fa-chevron-right","icon-only":"",class:"vs-fed-filter__scroll-button ms-050","data-test":"vs-fed-filter__scroll-button--right",onClick:s[1]||(s[1]=function(e){return v("right")}),"aria-label":t.scrollRightText},{default:(0,n.k6)((function(){return[(0,n.eW)((0,i.toDisplayString)(t.scrollRightText),1)]})),_:1},8,["aria-label"])):(0,n.Q3)("",!0)])])}}}},27735:function(e,t,r){"use strict";var a=r(85072),l=r.n(a),n=r(97825),i=r.n(n),s=r(77659),o=r.n(s),c=r(55056),f=r.n(c),u=r(10540),d=r.n(u),v=r(41113),y=r.n(v),_=r(90561),b=r.n(_),k={};k.styleTagTransform=y(),k.setAttributes=f(),k.insert=o().bind(null,"head"),k.domAPI=i(),k.insertStyleElement=d(),l()(b(),k),b()&&b().locals&&b().locals},30555:function(e,t,r){"use strict";r.r(t);var a=r(19317);r(10787);const l=a.A;t.default=l},90561:function(){}}]);
@@ -0,0 +1 @@
1
+ .vs-panel{padding:1.75rem;border-radius:.75rem}.vs-panel--secondary{background-color:#f2f2f8}.vs-panel--information{background-color:#e5e5f0}.vs-panel .vs-panel__title{display:block;text-align:center}.vs-panel .card-header{text-align:center;background:none;border-bottom-width:0;padding:0}