vendor: 4,205 bytes, lines 1-2
1/*! For license information please see StartChat.27da1accd70795ef.js.LICENSE.txt */ 2"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([[102],{4911:(t,e,r)=>{r.r(e),r.d(e,{default:()=>y});var n=r(538),o=r(6486),i=r.n(o),a=r(7632);const l=function(t,e){var r;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r&&clearTimeout(r),r=setTimeout((function(){t.apply(void 0,o)}),e)}};var c=r(4955),s=r.n(c);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d(){d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),l=new k(o||[]);return n(a,"_invoke",{value:C(t,r,l)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function v(){}function m(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==e&&r.call(b,i)&&(y=b);var x=m.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(n,i,a,l){var c=f(t[n],t,i);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==u(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,a,l)}),(function(t){o("throw",t,a,l)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function C(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);
2if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=m,n(x,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:v,configurable:!0}),v.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(_.prototype),c(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),c(x,l,"Generator"),c(x,i,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function p(t,e,r,n,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,l,"next",t)}function l(t){p(i,n,o,a,l,"throw",t)}a(void 0)}))}}const m={__name:"SearchNav",props:{currentSite:{type:String,required:!0},cred:{type:String,required:!0}},setup:function(t){var e=t,r=(0,n.iH)(""),o=(0,n.iH)(""),c=(0,n.iH)(""),u=(0,n.iH)([]),h=(0,n.iH)([]),p=(0,n.iH)({}),m=(0,n.iH)(!0),y=(0,n.iH)(null),g=s()(JSON.parse(e.cred).id,JSON.parse(e.cred).secret),b=g.initIndex("frontend"),x=l(function(){var t=v(d().mark((function t(r){var n,o,i,a;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.trim()){t.next=4;break}return m.value=!0,p.value={},t.abrupt("return");case 4:return t.prev=4,n="site:".concat(e.currentSite),t.next=8,b.search(r,{filters:n});case 8:o=t.sent,i=o.hits,h.value.length>
20&&h.value.forEach((function(t){var e=t.id;i=i.filter((function(t){return t.id!==e}))})),a=[],i.map((function(t){a.push(w(t))})),_(a),m.value=!1,t.next=21;break;case 17:t.prev=17,t.t0=t.catch(4),console.error("Failed to fetch search items:",t.t0),m.value=!0;case 21:case"end":return t.stop()}}),t,null,[[4,17]])})));return function(e){return t.apply(this,arguments)}}(),300);function w(t){var r=null,n="",o={},a=null,l=t.url,c=null;return t.collection&&(t.collection.handle&&(o.handle=t.collection.handle),t.collection.title&&(o.title=t.collection.title)),t.featured_image?r=t.featured_image:t.feature_image&&(r=t.feature_image),t.featured_description?n=i().truncate(t.featured_description,{length:30}):t.feature_description&&(n=i().truncate(t.feature_description,{length:30})),t.collection&&"downloads"===t.collection.handle&&t.file&&(a=t.file,c=t.file.split(".").pop().toLowerCase()),t.collection&&"faq"===t.collection.handle&&(l=t.collection.mount[e.currentSite]),{title:t.title,url:l,file:a,extension:c,text:n,image:r,collection:o,id:t.id}}function _(t){var e=t.reduce((function(t,e){if(e.collection&&e.collection.handle){var r=e.collection.handle;t[r]||(t[r]={items:[],title:e.collection.title,id:(0,a.Z)(),handle:r}),t[r].items.push(e)}return t}),{}),r=Object.entries(e).map((function(t){var e=f(t,2);return{key:e[0],value:e[1]}})),n={};r.forEach((function(t){n[t.key]=t.value})),p.value=n}function C(){return S.apply(this,arguments)}function S(){return(S=v(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.get("/api/search-global?site=".concat(e.currentSite)).then((function(t){r.value=t.data.placeholder,o.value=t.data.suggestedLabel,u.value=t.data.suggested,h.value=t.data.excludes}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,n.YP)(c,(function(t){x(t)})),(0,n.YP)(c,(function(t,e){""===t.trim()&&""!==e.trim()&&(x.cancel(),searchCollectionItems.value=[],searchTaxonomyItems.value=[])})),(0,n.Ah)((function(){x.cancel()})),(0,n.bv)(v(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C();case 2:case"end":return t.stop()}}),t)})))),{__sfc:!0,placeholder:r,suggestedLabel:o,search:c,suggested:u,excludes:h,collections:p,notSearched:m,client:y,props:e,algoliaClient:g,algoliaIndex:b,debouncedSearch:x,toArray:w,groupData:_,getSearchGlobal:C}}};const y=(0,r(1900).Z)(m,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",{staticClass:"menubar__collapse xl:h-full xl:overflow-y-auto form"},[e("input",{directives:[{name:"model",rawName:"v-model",value:r.search,expression:"search"}],staticClass:"bg-[url(/images/magnifying-glass-black.svg)] bg-[length:13px_13px] bg-[center_left_12px] bg-no-repeat search-input pl-8 enter",staticStyle:{"--ani-order":"1"},attrs:{placeholder:r.placeholder,type:"text"},domProps:{value:r.search},on:{input:function(t){t.target.composing||(r.search=t.target.value)}}}),t._v(" "),r.notSearched?t._e():e("div",{staticClass:"enter",staticStyle:{"--ani-order":"2"}},t._l(Object.values(r.collections),(function(r){return e("div",{key:r.id},[e("div",{staticClass:"mt-6 mb-4 pl-2",domProps:{textContent:t._s(r.title)}}),t._v(" "),r.items&&r.items.length>0?e("div",[t._l(r.items,(function(n,o){return"downloads"!==r.handle?e("div",{key:n.id,staticClass:"mb-2"},[n.url?e("a",{staticClass:"flex items-center justify-between p-2 gap-2 rounded-lg hover:bg-[#4F4F4F]",attrs:{href:n.url}},[e("div",[e("p",{staticClass:"m-0 text-white",domProps:{textContent:t._s(n.title)}}),t._v(" "),n.text?e("p",{staticClass:"m-0 text-[#C2C2C2]",domProps:{textContent:t._s(n.text)}}):t._e()]),t._v(" "),n.image?e("div",{staticClass:"flex-shrink-0"},[e("img",{staticClass:"w-16 h-16 object-center object-cover",attrs:{src:n.image,alt:""}})]):t._e()]):e("div",{staticClass:"flex items-center justify-between p-2 gap-3 rounded-lg transition-all hover:bg-[#4F4F4F]"},[e("div",[e("p",{staticClass:"m-0 text-white",domProps:{textContent:t._s(n.title)}}),t._v(" "),n.text?e("p",{staticClass:"m-0",domProps:{textContent:t._s(n.text)}}):t._e()]),t._v(" "),n.image?e("div",{staticClass:"flex-shrink-0"},[e("img",{staticClass:"w-16 h-16 object-center object-cover",attrs:{src:n.image,alt:""}})]):t._e()])]):t._e()})),t._v(" "),t._l(r.items,(function(n){return"downloads"===r.handle?e("div",{key:n.id,staticClass:"mb-2"},[e("a",{staticClass:"flex items-center justify-between p-2 gap-2 rounded-lg hover:bg-[#4F4F4F]",attrs:{href:n.file,download:""}},[e("div",[e("p",{staticClass:"m-0 text-white",domProps:{textContent:t._s(n.title)}}),t._v(" "),n.text?e("p",{staticClass:"m-0 text-[#C2C2C2]",domProps:{textContent:t._s(n.text)}}):t._e()]),t._v(" "),n.extension?e("div",{staticClass:"flex-shrink-0"},[e("img",{attrs:{src:"/images/file-".concat(n.extension,".svg"),alt:""}})]):t._e()])]):t._e()}))],2):t._e()])})),0),t._v(" "),r.notSearched?e("div",[r.suggestedLabel?e("div",{staticClass:"mt-6 mb-4 pl-2 enter",staticStyle:{"--ani-order":"2"},domProps:{textContent:t._s(r.suggestedLabel)}}):t._e(),t._v(" "),r.suggested.length>0?e("div",{staticClass:"flex flex-wrap gap-3 enter",staticStyle:{"--ani-order":"3"}},t._l(r.suggested,(function(r){return e("a",{key:r.id,staticClass:"px-4 py-1.5 w-max bg-[#333333] rounded-lg hover:bg-[#4F4F4F]",attrs:{href:r.url},domProps:{textContent:t._s(r.title)}})})),0):t._e()]):t._e()])}),[],!1,null,null,null).exports},1270:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const n={data:function(){return{available:!1,attempts:0}},methods:{startChat:function(){this.available&&window.$zoho.salesiq.chat.start()},waitTillAvailable:function(){0==this.available&&this.attempts<40&&setTimeout(function(){this.available=void 0!==window.$zoho,this.attempts++,this.waitTillAvailable()}.bind(this),500)}},mounted:function(){this.waitTillAvailable()}};
2const o=(0,r(1900).Z)(n,undefined,undefined,!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.