@visitscotland/component-library 5.27.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.
Files changed (27) hide show
  1. package/dist/client/manifest.json +22 -53
  2. package/dist/client/scripts/{e64ed3126572382cb3b7.js → 1077b219313276c21765.js} +1 -1
  3. package/dist/client/scripts/29a09e10b4c826dc6bcd.js +1 -0
  4. package/dist/client/scripts/{220d28a699f7c8ff1752.js → 2a512ada29fd6340b561.js} +1 -1
  5. package/dist/client/scripts/{faad944c2028ee77bd1c.js → 529b4b855c5a64c0b642.js} +1 -1
  6. package/dist/client/scripts/54fcee78c1e79b5c6b24.js +1 -0
  7. package/dist/client/scripts/{913670cf11fb47143cc4.js → ab909b2eab152aa32959.js} +1 -1
  8. package/dist/client/scripts/d01d42b8ada5f41c3036.js +1 -0
  9. package/dist/client/scripts/{b67e49703dfa94258c7e.js → f1222f479de1a0431059.js} +1 -1
  10. package/dist/components/style.css +1 -1
  11. package/dist/components/vs-component-library.js +10 -10
  12. package/dist/components/vs-component-library.mjs +1191 -1540
  13. package/dist/ssr/index.js +1 -1
  14. package/dist/ssr/manifest.json +1 -1
  15. package/package.json +1 -1
  16. package/dist/client/scripts/6406b5883a8017f0bf59.js +0 -1
  17. package/dist/client/scripts/a59d80b25b1a2d40844e.js +0 -1
  18. package/dist/client/scripts/d15b3712f04d6c8972a1.js +0 -1
  19. package/dist/client/scripts/d870fb064aba8e31a918.js +0 -1
  20. package/dist/components/src/components/product-search/components/GuestSelector.vue.d.ts +0 -15
  21. package/dist/components/src/components/product-search/components/GuestSelectorNumberGroup.vue.d.ts +0 -45
  22. package/dist/components/src/components/product-search/components/GuestSelectorRow.vue.d.ts +0 -31
  23. /package/dist/client/styles/{6406b5883a8017f0bf59.css → 29a09e10b4c826dc6bcd.css} +0 -0
  24. /package/dist/client/styles/{913670cf11fb47143cc4.css → ab909b2eab152aa32959.css} +0 -0
  25. /package/dist/client/styles/{a59d80b25b1a2d40844e.css → d01d42b8ada5f41c3036.css} +0 -0
  26. /package/dist/client/styles/{b67e49703dfa94258c7e.css → f1222f479de1a0431059.css} +0 -0
  27. /package/dist/ssr/styles/{6bb772fc5ee56d6200ef.css → d754ab8074fa86f9f258.css} +0 -0
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/6bb772fc5ee56d6200ef.css"
23
+ "styles/d754ab8074fa86f9f258.css"
24
24
  ]
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.27.0",
3
+ "version": "5.28.0",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4900],{21726:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a.a}});var l=n(38300),a=n.n(l),o={};for(var u in l)"default"!==u&&(o[u]=function(e){return l[e]}.bind(0,u));n.d(t,o)},31440:function(e,t,n){"use strict";n(44596)},34900:function(e,t,n){"use strict";n.r(t);var l=n(21726),a={};for(var o in l)"default"!==o&&(a[o]=function(e){return l[e]}.bind(0,o));n.d(t,a),n(31440);const u=l.default;t.default=u},38300:function(e,t,n){"use strict";var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(17527),o=n(17527),u={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},s={class:"vs-guest-selector__label"},r=["disabled"],i={class:"vs-guest-selector__button-row mb-075"},c={class:"d-flex justify-content-between"},d=["value","disabled"],v=["value","disabled"],m=n(17527),f=n(378),g=l(n(26216)),b=l(n(48836));t.default=(0,a.defineComponent)({__name:"GuestSelector",props:{availability:{type:Boolean}},setup:function(e){var t=(0,m.getCurrentInstance)(),n=(0,f.getLabelText)("add_room_label","Add a Room","guests_rooms"),l=(0,f.getLabelText)("save_changes","Save","guests_rooms"),a=(0,m.ref)(2),p=(0,f.getLabelText)("guest","Guest","guests_rooms"),_=(0,f.getLabelText)("guests","Guests","guests_rooms"),h=(0,m.ref)(!1),C=(0,m.ref)(0),x=(0,m.ref)([{id:"".concat(t.uid),showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:(0,f.getLabelText)("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:(0,f.getLabelText)("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:(0,f.getLabelText)("infants","Infants","guests_rooms")}}}]),k=(0,m.ref)(1),y=(0,f.getLabelText)("room","Room","guests_rooms"),L=(0,f.getLabelText)("rooms","Rooms","guests_rooms"),T=(0,m.ref)(!1),N=(0,m.ref)(!1),V=function(){N.value=!1},B=function(){N.value=!N.value},w=function(){if(x.value.length<5){var e={id:"".concat(t.uid),showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(x.value.length+1)+"a",unitLabel:(0,f.getLabelText)("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(x.value.length+1)+"children",unitLabel:(0,f.getLabelText)("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(x.value.length+1)+"infants",unitLabel:(0,f.getLabelText)("infants","Infants","guests_rooms")}}},n=x.value.slice();n.push(e),x.value=n,k.value=n.length,h.value=!0,a.value=a.value+1}},E=function(e,t,n){var l=x.value.findIndex((function(e){return e.id===n}));x.value.splice(l,1),k.value=x.value.length,T.value=!0,a.value=a.value-e,C.value=C.value-t,1===x.value.length&&(h.value=!1)},S=function(e,t,n){a.value="increase"===e?a.value+1:a.value-1,"adults"!==t&&(C.value="increase"===e?C.value+1:C.value-1);var l=x.value.findIndex((function(e){return e.id===n}));x.value[l].numberGroups[t].count="increase"===e?x.value[l].numberGroups[t].count+1:x.value[l].numberGroups[t].count-1};return function(e,t){return(0,o.openBlock)(),(0,o.createElementBlock)("div",u,[(0,o.createElementVNode)("span",s,(0,o.toDisplayString)((0,o.unref)(_)),1),(0,o.createElementVNode)("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:(0,o.withModifiers)(B,["prevent"]),disabled:!e.availability},[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(k.value)+" ",1),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(k.value>1?(0,o.unref)(L):(0,o.unref)(y)),1),t[0]||(t[0]=(0,o.createTextVNode)(",  ")),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(a.value)+" ",1),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(a.value>1?(0,o.unref)(_):(0,o.unref)(p)),1)],8,r),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vs-guest-selector__modal",N.value?"vs-guest-selector__modal--visible":""])},[(0,o.createVNode)(b.default,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:(0,o.withModifiers)(V,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(f.getLabelText)("close","Close","guests_rooms")),1)]})),_:1}),(0,o.createElementVNode)("div",i,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(x.value,(function(e,t){return(0,o.openBlock)(),(0,o.createBlock)(g.default,{key:e.id,name:"r"+(t+1),"show-remove-btn":h.value,"unit-label":(0,o.unref)(f.getLabelText)("room","Room","guests_rooms")+" "+(t+1),"unit-options":e,"unit-removed":T.value,onNumberChange:S,onOnRemove:E},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"])})),128))]),(0,o.createElementVNode)("div",c,[x.value.length<5?((0,o.openBlock)(),(0,o.createBlock)(b.default,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-050 align-self-start",onClick:(0,o.withModifiers)(w,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(n)),1)]})),_:1})):(0,o.createCommentVNode)("",!0),x.value.length<5?((0,o.openBlock)(),(0,o.createBlock)(b.default,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:(0,o.withModifiers)(V,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(l)),1)]})),_:1})):(0,o.createCommentVNode)("",!0)])],2),x.value?((0,o.openBlock)(),(0,o.createElementBlock)("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:k.value,disabled:!e.availability},null,8,d)):(0,o.createCommentVNode)("",!0),x.value?((0,o.openBlock)(),(0,o.createElementBlock)("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:a.value,disabled:!e.availability},null,8,v)):(0,o.createCommentVNode)("",!0)])}}})},44596:function(e,t,n){"use strict";var l=n(85072),a=n.n(l),o=n(97825),u=n.n(o),s=n(77659),r=n.n(s),i=n(55056),c=n.n(i),d=n(10540),v=n.n(d),m=n(41113),f=n.n(m),g=n(51590),b=n.n(g),p={};p.styleTagTransform=f(),p.setAttributes=c(),p.insert=r().bind(null,"head"),p.domAPI=u(),p.insertStyleElement=v(),a()(b(),p),b()&&b().locals&&b().locals},51590:function(){}}]);
@@ -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,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
- };
@@ -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
- };