@visitscotland/component-library 1.0.20 → 1.0.22

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 CHANGED
@@ -2,6 +2,20 @@
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.22](https://github.com/visitscotland/vs-component-library/compare/v1.0.21...v1.0.22) (2023-09-01)
6
+
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ * **product search:** remove label as well ([bd7e6ff](https://github.com/visitscotland/vs-component-library/commit/bd7e6ff5c86f0555bf71c9936c26179a5b503d4a))
11
+
12
+ ### [1.0.21](https://github.com/visitscotland/vs-component-library/compare/v1.0.20...v1.0.21) (2023-09-01)
13
+
14
+
15
+ ### 🐛 Bug Fixes
16
+
17
+ * **product search:** remove vueform multiselect ([7dfcac9](https://github.com/visitscotland/vs-component-library/commit/7dfcac9949ff862252f38c40c4226275fb961645))
18
+
5
19
  ### [1.0.20](https://github.com/visitscotland/vs-component-library/compare/v1.0.19...v1.0.20) (2023-09-01)
6
20
 
7
21
 
@@ -5035,7 +5035,7 @@
5035
5035
  "scripts/fa27436d08e582301bdd.js",
5036
5036
  "scripts/ed2666d42b3da813ad4c.js",
5037
5037
  "scripts/e0f7b37b41e238639597.js",
5038
- "scripts/2b243a25741677961be9.js",
5038
+ "scripts/493d0a69ffda99f87b0d.js",
5039
5039
  "scripts/c1e52b98d340cd47fee7.js",
5040
5040
  "scripts/f8af198424679e336ce9.js",
5041
5041
  "scripts/a942eb63d464cf141793.js",
@@ -5051,11 +5051,10 @@
5051
5051
  "scripts/6c28685f52b01d108e4d.js",
5052
5052
  "scripts/aa3efed6b1f6232ce3fe.js",
5053
5053
  "scripts/96174af322a67416c0a9.js",
5054
- "scripts/80b095fb2b0ff1b4d2ca.js",
5055
- "scripts/4bb6255bcb851fab18eb.js"
5054
+ "scripts/9f1410bbc12b850a2071.js",
5055
+ "scripts/5231395c152ded2ccd8c.js"
5056
5056
  ],
5057
5057
  "styles": [
5058
- "styles/2b243a25741677961be9.css",
5059
5058
  "styles/c1e52b98d340cd47fee7.css",
5060
5059
  "styles/c609148fc3e4bae68f67.css",
5061
5060
  "styles/bbffd3414a7c7fddbcd6.css",
@@ -5063,7 +5062,7 @@
5063
5062
  "styles/1b952d87bc0aca49a896.css",
5064
5063
  "styles/8c5347740d69b612c97c.css",
5065
5064
  "styles/6c28685f52b01d108e4d.css",
5066
- "styles/80b095fb2b0ff1b4d2ca.css"
5065
+ "styles/9f1410bbc12b850a2071.css"
5067
5066
  ]
5068
5067
  },
5069
5068
  "VsSelectInput": {
@@ -5157,7 +5156,7 @@
5157
5156
  "scripts/fa27436d08e582301bdd.js",
5158
5157
  "scripts/ed2666d42b3da813ad4c.js",
5159
5158
  "scripts/e0f7b37b41e238639597.js",
5160
- "scripts/2b243a25741677961be9.js",
5159
+ "scripts/493d0a69ffda99f87b0d.js",
5161
5160
  "scripts/c1e52b98d340cd47fee7.js",
5162
5161
  "scripts/f8af198424679e336ce9.js",
5163
5162
  "scripts/a942eb63d464cf141793.js",
@@ -5179,11 +5178,10 @@
5179
5178
  "scripts/6c28685f52b01d108e4d.js",
5180
5179
  "scripts/aa3efed6b1f6232ce3fe.js",
5181
5180
  "scripts/96174af322a67416c0a9.js",
5182
- "scripts/80b095fb2b0ff1b4d2ca.js",
5183
- "scripts/82653f6f78e1b8736333.js"
5181
+ "scripts/9f1410bbc12b850a2071.js",
5182
+ "scripts/74b978e38ecae74c59f2.js"
5184
5183
  ],
5185
5184
  "styles": [
5186
- "styles/2b243a25741677961be9.css",
5187
5185
  "styles/c1e52b98d340cd47fee7.css",
5188
5186
  "styles/c609148fc3e4bae68f67.css",
5189
5187
  "styles/66b8a5d09a8317bd9092.css",
@@ -5194,8 +5192,8 @@
5194
5192
  "styles/1b952d87bc0aca49a896.css",
5195
5193
  "styles/8c5347740d69b612c97c.css",
5196
5194
  "styles/6c28685f52b01d108e4d.css",
5197
- "styles/80b095fb2b0ff1b4d2ca.css",
5198
- "styles/82653f6f78e1b8736333.css"
5195
+ "styles/9f1410bbc12b850a2071.css",
5196
+ "styles/74b978e38ecae74c59f2.css"
5199
5197
  ]
5200
5198
  },
5201
5199
  "VsQuote": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7218],{97218:function(e,t,n){var r=n(48764).lW,o=n(25108);function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:d}=Array,p=f("undefined"),h=l("ArrayBuffer"),m=f("string"),y=f("function"),g=f("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=l("Date"),O=l("File"),S=l("Blob"),R=l("FileList"),A=l("URLSearchParams");function T(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function v(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,j=e=>!p(e)&&e!==N,C=(x="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>x&&e instanceof x);var x;const P=l("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=l("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};T(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},L="abcdefghijklmnopqrstuvwxyz",B="0123456789",D={DIGIT:B,ALPHA:L,ALPHA_DIGIT:L+L.toUpperCase()+B},k=l("AsyncFunction");var q={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isUndefined:p,isDate:E,isFile:O,isBlob:S,isRegExp:U,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:A,isTypedArray:C,isFileList:R,forEach:T,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},r=(r,o)=>{const i=t&&v(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):d(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(T(t,((t,r)=>{n&&y(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:v,global:N,isContextDefined:j,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return T(e,((e,t)=>{const i=n(e,r+1);!p(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:k,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch)};function I(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const z=I.prototype,M={};function H(e){return q.isPlainObject(e)||q.isArray(e)}function J(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{M[e]={value:e}})),Object.defineProperties(I,M),Object.defineProperty(z,"isAxiosError",{value:!0}),I.from=(e,t,n,r,o,i)=>{const s=Object.create(z);return q.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),I.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const K=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,s=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!c&&q.isBlob(e))throw new I("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):r.from(e):e}function l(e,n,r){let i=e;if(e&&!r&&"object"==typeof e)if(q.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(H)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(i=q.toArray(e)))return n=J(n),i.forEach((function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,s):null===a?n:n+"[]",u(e))})),!1;return!!H(e)||(t.append(W(r,n,s),u(e)),!1)}const f=[],d=Object.assign(K,{defaultVisitor:l,convertValue:u,isVisitable:H});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&i.call(t,n,q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}const X=$.prototype;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){if(!t)return e;const r=n&&n.encode||Q,o=n&&n.serialize;let i;if(i=o?o(t,n):q.isURLSearchParams(t)?t.toString():new $(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Y=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function ne(e){function t(e,n,r,o){let i=e[o++];const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&q.isArray(r)?r.length:i,a?(q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&q.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&q.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,((e,r)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const re={"Content-Type":void 0},oe={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r&&r?JSON.stringify(ne(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new te.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return te.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw I.from(e,I.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:te.classes.FormData,Blob:te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],(function(e){oe.headers[e]={}})),q.forEach(["post","put","patch"],(function(e){oe.headers[e]=q.merge(re)}));var ie=oe;const se=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals");function ce(e){return e&&String(e).trim().toLowerCase()}function ue(e){return!1===e||null==e?e:q.isArray(e)?e.map(ue):String(e)}function le(e,t,n,r,o){return q.isFunction(r)?r.call(this,t,n):(o&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}class fe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ce(t);if(!o)throw new Error("header name must be a non-empty string");const i=q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ue(e))}const i=(e,t)=>q.forEach(e,((e,n)=>o(e,n,t)));return q.isPlainObject(e)||e instanceof this.constructor?i(e,t):q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&se[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ce(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ce(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!le(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ce(e)){const o=q.findKey(n,e);!o||t&&!le(0,n[o],o,t)||(delete n[o],r=!0)}}return q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!le(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return q.forEach(this,((r,o)=>{const i=q.findKey(n,o);if(i)return t[i]=ue(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=ue(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ce(e);t[r]||(function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.freezeMethods(fe.prototype),q.freezeMethods(fe);var de=fe;function pe(e,t){const n=this||ie,r=t||n,o=de.from(r.headers);let i=r.data;return q.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function he(e){return!(!e||!e.__CANCEL__)}function me(e,t,n){I.call(this,null==e?"canceled":e,I.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(me,I,{__CANCEL__:!0});var ye=te.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const s=[];s.push(e+"="+encodeURIComponent(t)),q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),q.isString(r)&&s.push("path="+r),q.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ge(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var be=te.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=q.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function we(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,c=r(a);n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ee={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=de.from(e.headers).normalize(),i=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}q.isFormData(r)&&(te.isStandardBrowserEnv||te.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=ge(e.baseURL,e.url);function l(){if(!c)return;const r=de.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new I("Request failed with status code "+n.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Z(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new I("Request aborted",I.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new I(t,r.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,c)),c=null},te.isStandardBrowserEnv){const t=(e.withCredentials||be(u))&&e.xsrfCookieName&&ye.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&q.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),q.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",we(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",we(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{c&&(n(!t||t.type?new me(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===te.protocols.indexOf(f)?n(new I("Unsupported protocol "+f+":",I.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};q.forEach(Ee,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new me(null,e)}function Se(e){return Oe(e),e.headers=de.from(e.headers),e.data=pe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=q.isString(n)?Ee[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new I(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(q.hasOwnProp(Ee,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!q.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||ie.adapter)(e).then((function(t){return Oe(e),t.data=pe.call(e,e.transformResponse,t),t.headers=de.from(t.headers),t}),(function(t){return he(t)||(Oe(e),t&&t.response&&(t.response.data=pe.call(e,e.transformResponse,t.response),t.response.headers=de.from(t.response.headers))),Promise.reject(t)}))}const Re=e=>e instanceof de?e.toJSON():e;function Ae(e,t){t=t||{};const n={};function r(e,t,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,n){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!q.isUndefined(t))return r(void 0,t)}function s(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Re(e),Re(t),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);q.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Te={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Te[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ve={};Te.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,s)=>{if(!1===e)throw new I(r(i," has been removed"+(t?" in "+t:"")),I.ERR_DEPRECATED);return t&&!ve[i]&&(ve[i]=!0,o.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}};var Ne={assertOptions:function(e,t,n){if("object"!=typeof e)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new I("option "+i+" must be "+n,I.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}},validators:Te};const je=Ne.validators;class Ce{constructor(e){this.defaults=e,this.interceptors={request:new Y,response:new Y}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ae(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let i;void 0!==n&&Ne.assertOptions(n,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean)},!1),null!=r&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:Ne.assertOptions(r,{encode:je.function,serialize:je.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&q.merge(o.common,o[t.method]),i&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=de.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=s.length;let d=t;for(f=0;f<l;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Se.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Z(ge((e=Ae(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){Ce.prototype[e]=function(t,n){return this.request(Ae(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ae(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ce.prototype[e]=t(),Ce.prototype[e+"Form"]=t(!0)}));var xe=Ce;class Pe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new me(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Pe((function(t){e=t})),cancel:e}}}var _e=Pe;const Ue={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ue).forEach((([e,t])=>{Ue[t]=e}));var Fe=Ue;const Le=function e(t){const n=new xe(t),r=i(xe.prototype.request,n);return q.extend(r,xe.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ae(t,n))},r}(ie);Le.Axios=xe,Le.CanceledError=me,Le.CancelToken=_e,Le.isCancel=he,Le.VERSION="1.4.0",Le.toFormData=V,Le.AxiosError=I,Le.Cancel=Le.CanceledError,Le.all=function(e){return Promise.all(e)},Le.spread=function(e){return function(t){return e.apply(null,t)}},Le.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},Le.mergeConfig=Ae,Le.AxiosHeaders=de,Le.formToJSON=e=>ne(q.isHTMLForm(e)?new FormData(e):e),Le.HttpStatusCode=Fe,Le.default=Le,e.exports=Le}}]);
@@ -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.VsProductSearchEmbed=t():e.VsProductSearchEmbed=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[100],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,8764,7429,4300,8437,7370,5730,976,3918,7810,5643,2604,2147,2336,2278,7710,6971,9335,7175,501,7809],(function(){return 97809,e(e.s=97809)})),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.VsProductSearchEmbed=t():e.VsProductSearchEmbed=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[100],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,8764,7429,4300,7218,7370,5730,976,3918,7810,5643,2604,2147,2336,2278,7710,6971,9335,7175,501,7809],(function(){return 97809,e(e.s=97809)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsProductSearch=e():t.VsProductSearch=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7018],{88113:function(){},63529:function(t,e,n){"use strict";var r=n(81779),s=n(73366),o=n(22048),u=n(97809);e.Z={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:r.xB,VsRow:r.ou,VsCol:r.hY,VsProductSearchEmbed:u.default,VsHeading:s.default,VsWarning:o.default},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:""}}}},87786:function(t,e,n){"use strict";n.d(e,{s:function(){return a}});var r=n(66252),s=n(3577),o={class:"vs-product-search"},u={class:"vs-product-search__intro"};function a(t,e,n,a,c,l){var i=(0,r.up)("VsHeading"),d=(0,r.up)("VsCol"),f=(0,r.up)("VsProductSearchEmbed"),p=(0,r.up)("VsWarning"),_=(0,r.up)("VsRow"),v=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(v,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(_,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(d,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:(0,r.w5)((function(){return[(0,r.Wm)(i,{level:"2",alternative:"",class:"vs-product-search__heading mt-0"},{default:(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-module-heading")]})),_:3}),(0,r._)("div",u,[(0,r.WI)(t.$slots,"vs-module-intro")])]})),_:3}),(0,r.Wm)(d,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:(0,r.w5)((function(){return[(0,r.Wm)(f,{class:"vs-product-search__widget","default-location":n.defaultLocation,"default-locale":n.defaultLocale,"default-prod":n.defaultProd},null,8,["default-location","default-locale","default-prod"]),(0,r.Wm)(p,{class:"vs-product-search__no-js"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,s.toDisplayString)(n.noJsMessage),1)]})),_:1})]})),_:1})]})),_:3})]})),_:3})])}},52001:function(t,e,n){"use strict";var r=n(93379),s=n.n(r),o=n(7795),u=n.n(o),a=n(90569),c=n.n(a),l=n(3565),i=n.n(l),d=n(19216),f=n.n(d),p=n(44589),_=n.n(p),v=n(88113),h=n.n(v),m={};m.styleTagTransform=_(),m.setAttributes=i(),m.insert=c().bind(null,"head"),m.domAPI=u(),m.insertStyleElement=f(),s()(h(),m),h()&&h().locals&&h().locals},65121:function(t,e,n){"use strict";n.r(e);var r=n(42213),s=n(11406);n(86422);const o=(0,n(83744).Z)(s.Z,[["render",r.s]]);e.default=o},11406:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(63529)},42213:function(t,e,n){"use strict";n.d(e,{s:function(){return r.s}});var r=n(87786)},86422:function(t,e,n){"use strict";n(52001)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,8764,7429,4300,8437,7370,5730,976,3918,7581,4186,1321,1779,3366,2048,7810,5643,2604,2147,2336,2278,7710,6971,9335,7175,501,7809],(function(){return 65121,t(t.s=65121)})),t.O()}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsProductSearch=e():t.VsProductSearch=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7018],{88113:function(){},63529:function(t,e,n){"use strict";var r=n(81779),s=n(73366),o=n(22048),u=n(97809);e.Z={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:r.xB,VsRow:r.ou,VsCol:r.hY,VsProductSearchEmbed:u.default,VsHeading:s.default,VsWarning:o.default},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:""}}}},87786:function(t,e,n){"use strict";n.d(e,{s:function(){return a}});var r=n(66252),s=n(3577),o={class:"vs-product-search"},u={class:"vs-product-search__intro"};function a(t,e,n,a,c,l){var i=(0,r.up)("VsHeading"),d=(0,r.up)("VsCol"),f=(0,r.up)("VsProductSearchEmbed"),p=(0,r.up)("VsWarning"),_=(0,r.up)("VsRow"),v=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(v,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(_,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(d,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:(0,r.w5)((function(){return[(0,r.Wm)(i,{level:"2",alternative:"",class:"vs-product-search__heading mt-0"},{default:(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-module-heading")]})),_:3}),(0,r._)("div",u,[(0,r.WI)(t.$slots,"vs-module-intro")])]})),_:3}),(0,r.Wm)(d,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:(0,r.w5)((function(){return[(0,r.Wm)(f,{class:"vs-product-search__widget","default-location":n.defaultLocation,"default-locale":n.defaultLocale,"default-prod":n.defaultProd},null,8,["default-location","default-locale","default-prod"]),(0,r.Wm)(p,{class:"vs-product-search__no-js"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,s.toDisplayString)(n.noJsMessage),1)]})),_:1})]})),_:1})]})),_:3})]})),_:3})])}},52001:function(t,e,n){"use strict";var r=n(93379),s=n.n(r),o=n(7795),u=n.n(o),a=n(90569),c=n.n(a),l=n(3565),i=n.n(l),d=n(19216),f=n.n(d),p=n(44589),_=n.n(p),v=n(88113),h=n.n(v),m={};m.styleTagTransform=_(),m.setAttributes=i(),m.insert=c().bind(null,"head"),m.domAPI=u(),m.insertStyleElement=f(),s()(h(),m),h()&&h().locals&&h().locals},65121:function(t,e,n){"use strict";n.r(e);var r=n(42213),s=n(11406);n(86422);const o=(0,n(83744).Z)(s.Z,[["render",r.s]]);e.default=o},11406:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(63529)},42213:function(t,e,n){"use strict";n.d(e,{s:function(){return r.s}});var r=n(87786)},86422:function(t,e,n){"use strict";n(52001)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,8764,7429,4300,7218,7370,5730,976,3918,7581,4186,1321,1779,3366,2048,7810,5643,2604,2147,2336,2278,7710,6971,9335,7175,501,7809],(function(){return 65121,t(t.s=65121)})),t.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7809],{53115:function(){},34156:function(e,t,a){"use strict";var n=a(93379),l=a.n(n),o=a(7795),r=a.n(o),u=a(90569),c=a.n(u),i=a(3565),s=a.n(i),d=a(19216),f=a.n(d),v=a(44589),p=a.n(v),m=a(53115),b=a.n(m),h={};h.styleTagTransform=p(),h.setAttributes=s(),h.insert=c().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=f(),l()(b(),h),b()&&b().locals&&b().locals},43062:function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,o){function r(e){try{c(n.next(e))}catch(e){o(e)}}function u(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,u)}c((n=n.apply(e,t||[])).next())}))},l=this&&this.__generator||function(e,t){var a,n,l,o,r={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(a)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(a=1,n&&(l=2&u[0]?n.return:u[0]?n.throw||((l=n.return)&&l.call(n),0):n.next)&&!(l=l.call(n,u[1])).done)return l;switch(n=0,l&&(u=[2&u[0],l.value]),u[0]){case 0:case 1:l=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!((l=(l=r.trys).length>0&&l[l.length-1])||6!==u[0]&&2!==u[0])){r=0;continue}if(3===u[0]&&(!l||u[1]>l[0]&&u[1]<l[3])){r.label=u[1];break}if(6===u[0]&&r.label<l[1]){r.label=l[1],l=u;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(u);break}l[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e],n=0}finally{a=l=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(76765),u=a(76765),c={class:"vs-product-search-embed"},i={class:"container"},s={class:"row"},d={class:"col-12"},f=["action","onSubmit"],v={"aria-live":"polite"},p=["disabled","value"],m=["disabled","value"],b=["value"],h={key:4,type:"hidden",name:"areaproxdist",value:"10"},y={key:5},k={key:3},g=[(0,u.createElementVNode)("input",{hidden:"true",name:"avail",value:"on"},null,-1)],w={key:0},_=["value"],T=a(76765),N=a(12147),V=a(61309),x=a(68504),E=a(83506),L=o(a(27175)),B=o(a(17710)),S=o(a(49335)),C=o(a(10501)),P=o(a(96971)),D=o(a(83918));t.default=(0,r.defineComponent)({__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta"},defaultLocation:{type:String,default:""},defaultLocale:{type:String,default:"fr"}},setup:function(e){var t=this,a=e,o=(0,T.ref)(),r=(0,T.ref)([]),O=((0,T.ref)(null),(0,T.ref)()),j=(0,T.ref)(!1),M=(0,T.computed)((function(){var e=void 0===o.value?"see-do":o.value;return"/info/".concat(V.paths[e])})),A=!1,F=(0,T.computed)((function(){var e=a.defaultLocale.length>0?a.defaultLocale:(0,N.getLocale)();return"en"===e&&(e=""),e})),U=(0,T.computed)((function(){return"".concat(V.baseUrl.prod).concat(F.value?"/"+F.value:"").concat(M.value,"/search-results")})),I="https://www.visitscotland.com/data/locations?locale=".concat(F.value),G=(0,T.ref)([]),R=function(e){O.value=G.value.find((function(t){return t.name===e}))},J=(0,T.ref)([]),Y=(0,T.ref)([]),K=(0,T.ref)([]);(0,T.onMounted)((function(){return n(t,void 0,void 0,(function(){var e,t,n;return l(this,(function(l){switch(l.label){case 0:return[4,(0,E.getData)(I)];case 1:return(e=l.sent())&&(G.value=e.data),""!==a.defaultLocation&&R(a.defaultLocation),A=!0,o.value=a.defaultProd,r=(0,x.getProductTypes)(),u=[],r.forEach((function(e){u.push(e)})),J.value=u,[4,(0,E.getData)("https://www.visitscotland.com/tms-api/v1/attractions")];case 2:return(t=l.sent())&&(Y.value=t.data),[4,(0,E.getData)("https://www.visitscotland.com/tms-api/v1/origins?active=1")];case 3:return(n=l.sent())&&(K.value=n.data),[2]}var r,u}))}))}));var q=function(e){j.value=!0;var t=e.currentTarget;setTimeout((function(){t.submit()}),500)};return function(t,a){var n,l,T,x,E,M;return(0,u.openBlock)(),(0,u.createElementBlock)("div",c,[(0,u.createElementVNode)("div",i,[(0,u.createElementVNode)("div",s,[(0,u.createElementVNode)("div",d,[(0,u.createElementVNode)("form",{action:U.value,onSubmit:(0,u.withModifiers)(q,["prevent"]),"accept-charset":"UTF-8"},[(0,u.createVNode)(S.default,{label:(0,u.unref)(N.getLabelText)("for","For"),id:"select-type",name:"prodtypes","default-selected":e.defaultProd,onChangeOption:a[0]||(a[0]=function(e){return o.value=e}),options:J.value},null,8,["label","default-selected","options"]),(0,u.createElementVNode)("div",v,["tour"!=o.value&&(0,u.unref)(A)?((0,u.openBlock)(),(0,u.createBlock)(L.default,{key:0,id:"search-location",label:(0,u.unref)(N.getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:G.value,placeholder:(0,u.unref)(N.getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:a[1]||(a[1]=function(e){return R(e)}),"default-val":(0,u.unref)(O)},null,8,["label","options","placeholder","default-val"])):(0,u.createCommentVNode)("",!0),"tour"!==o.value?((0,u.openBlock)(),(0,u.createElementBlock)("input",{key:1,type:"hidden",name:"locplace",disabled:"POLYGON"===(null===(n=(0,u.unref)(O))||void 0===n?void 0:n.type),value:(null===(l=(0,u.unref)(O))||void 0===l?void 0:l.key)||""},null,8,p)):(0,u.createCommentVNode)("",!0),"tour"!==o.value?((0,u.openBlock)(),(0,u.createElementBlock)("input",{key:2,type:"hidden",name:"locpoly",disabled:"POLYGON"!==(null===(T=(0,u.unref)(O))||void 0===T?void 0:T.type),value:(null===(x=(0,u.unref)(O))||void 0===x?void 0:x.key)||""},null,8,m)):(0,u.createCommentVNode)("",!0),"tour"!==o.value?((0,u.openBlock)(),(0,u.createElementBlock)("input",{key:3,type:"hidden",name:"locprox",value:"DISTRICT"===(null===(E=(0,u.unref)(O))||void 0===E?void 0:E.type)?1:0},null,8,b)):(0,u.createCommentVNode)("",!0),"tour"!==o.value&&"DISTRICT"===(null===(M=(0,u.unref)(O))||void 0===M?void 0:M.type)?((0,u.openBlock)(),(0,u.createElementBlock)("input",h)):(0,u.createCommentVNode)("",!0),"even"===o.value||"acco"===o.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",y,["even"===o.value||"acco"===o.value?((0,u.openBlock)(),(0,u.createBlock)(P.default,{key:0,legend:(0,u.unref)(N.getLabelText)("date_label","Dates"),"start-label":(0,u.unref)(N.getLabelText)("checkin","Start Date","dates"),"end-label":(0,u.unref)(N.getLabelText)("checkout","End Date","dates"),"default-dates":j.value},null,8,["legend","start-label","end-label","default-dates"])):(0,u.createCommentVNode)("",!0),"even"===o.value?((0,u.openBlock)(),(0,u.createBlock)(C.default,{key:1,name:"name",label:(0,u.unref)(N.getLabelText)("keywords","Keywords"),id:"search-keywords"},null,8,["label"])):(0,u.createCommentVNode)("",!0),"acco"===o.value?((0,u.openBlock)(),(0,u.createBlock)(B.default,{key:2,availability:!0,label:(0,u.unref)(N.getLabelText)("guests","Guests"),id:"guest-selector"},null,8,["label"])):(0,u.createCommentVNode)("",!0),"acco"===o.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",k,g)):(0,u.createCommentVNode)("",!0)])):(0,u.createCommentVNode)("",!0)]),"tour"===o.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",w,[(0,u.createVNode)(L.default,{id:"tour-origin",label:(0,u.unref)(N.getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:K.value,placeholder:(0,u.unref)(N.getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.value,(function(e){return(0,u.openBlock)(),(0,u.createElementBlock)("input",{type:"hidden",name:"attractions[]",value:e},null,8,_)})),256)),(0,u.createVNode)(L.default,{id:"tour-month",label:(0,u.unref)(N.getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:(0,u.unref)(N.getLabelText)("months",(0,u.unref)(V.monthsEnglish)),placeholder:(0,u.unref)(N.getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):(0,u.createCommentVNode)("",!0),(0,u.createVNode)(D.default,{class:"mt-6",variant:"dark"},{default:(0,u.withCtx)((function(){return[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(N.getLabelText)("search","Search")),1)]})),_:1})],40,f)])])])])}}})},61309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monthsEnglish=t.baseUrl=t.paths=t.products=void 0,t.products=[{key:"accommodation",displayName:"Accommodation",optionValue:"acco"},{key:"eventsAndFestivals",displayName:"Events & Festivals",optionValue:"even"},{key:"foodAndDrink",displayName:"Food & Drink",optionValue:"cate"},{key:"thingsToDo",displayName:"Things to do",optionValue:"acti,attr,reta"},{key:"tours",displayName:"Tours",optionValue:"tour"}],t.paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},t.baseUrl={dev:"http://172.28.81.65:8089",prod:"https://www.visitscotland.com"},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,a){"use strict";var n=a(25108),l=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,o){function r(e){try{c(n.next(e))}catch(e){o(e)}}function u(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,u)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var a,n,l,o,r={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(a)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(a=1,n&&(l=2&u[0]?n.return:u[0]?n.throw||((l=n.return)&&l.call(n),0):n.next)&&!(l=l.call(n,u[1])).done)return l;switch(n=0,l&&(u=[2&u[0],l.value]),u[0]){case 0:case 1:l=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!((l=(l=r.trys).length>0&&l[l.length-1])||6!==u[0]&&2!==u[0])){r=0;continue}if(3===u[0]&&(!l||u[1]>l[0]&&u[1]<l[3])){r.label=u[1];break}if(6===u[0]&&r.label<l[1]){r.label=l[1],l=u;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(u);break}l[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e],n=0}finally{a=l=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getData=void 0;var u=r(a(97218));t.getData=function(e){return l(this,void 0,void 0,(function(){var t;return o(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,u.default.get(e)];case 1:return[2,a.sent().data];case 2:return t=a.sent(),n.error("Axios error: ".concat(t)),[3,3];case 3:return[2]}}))}))}},68504:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProductTypes=t.getURLParameters=void 0;var n,l=a(61309);n="undefined"!=typeof variable&&"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(n).length<=0)return l.products;var e=n.search_config.basic_config.productTypes,t=[];return Object.keys(e).forEach((function(a){t.push({key:e[a].value,displayName:e[a].text,optionValue:e[a].value})})),t}},97809:function(e,t,a){"use strict";a.r(t);var n=a(65531),l={};for(var o in n)"default"!==o&&(l[o]=function(e){return n[e]}.bind(0,o));a.d(t,l),a(76633);const r=n.default;t.default=r},76633:function(e,t,a){"use strict";a(34156)},65531:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return l.a}});var n=a(43062),l=a.n(n),o={};for(var r in n)"default"!==r&&(o[r]=function(e){return n[e]}.bind(0,r));a.d(t,o)}}]);