1(window.webpackJsonp=window.webpackJsonp||[]).push([["quizApp"],{"1Vmc":function(t,e,n){var i=n("dzSG").QuizApp;document.addEventListener("DOMContentLoaded",(function(){(new i).init()}))},YB6o:function(t,e,n){"use strict";n.r(e),n.d(e,"loadSimplybookWidgetScript",(function(){return r}));var i=null;function r(){return i||(i=new Promise((function(t,e){var n=document.createElement("script");n.src="https://simplybook.me/v2/widget/widget.js",n.onload=function(){return t()},n.onerror=function(){i=null,e(new Error("Failed to load SimplyBook widget script"))},document.body.appendChild(n)})))}},dzSG:function(t,e,n){"use strict";n.r(e),function(t){function i(t){return(i="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})(t)}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof g?e:g,o=Object.create(r.prototype),s=new I(i||[]);return a(o,"_invoke",{value:A(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="executing",v="completed",y={};function g(){}function w(){}function b(){}var _={};d(_,u,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&o.call(k,u)&&(_=k);var E=b.prototype=g.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(r,a,s,u){var l=f(t[r],t,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==i(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(d).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var r;a(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function A(e,n,i){var r=p;return function(o,a){if(r===m)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var u=B(s,i);if(u){if(u===y)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=m;var l=f(e,n,i);if("normal"===l.type){if(r=i.done?v:"suspendedYield",l.arg===y)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=v,i.method="throw",i.arg=l.arg)}}}function B(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,B(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var o=f(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function W(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 q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(W,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[u];if(n)return n.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=d(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,d(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(L.prototype),d(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new L(h(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),d(E,c,"Generator"),d(E,u,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=O,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(q),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,y):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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),q(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;q(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function o(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,u,"next",t)}function u(t){o(a,i,r,s,u,"throw",t)}s(void 0)}))}}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,a=void 0,a=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===i(a)?a:String(a)),r)}var o,a}n.d(e,"QuizApp",(function(){return d}));var c=n("YB6o").loadSimplybookWidgetScript,d=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=this;this.quizData=[{id:1,question:_t("Have you used SimplyBook.me before?"),answers:[{answer_id:"a",text:_t("I donât have a SimplyBook.me account yet"),next:2},{answer_id:"b",text:_t("I just signed up for a free trial"),next:2},{answer_id:"c",text:_t("Iâve been using SimplyBook.me for a while"),next:4}]},{id:2,question:_t("Which of the following best describes your business?"),answers:[{answer_id:"a",text:_t("Weâre an established company"),next:3},{answer_id:"b",text:_t("We have a franchise network"),next:6},{answer_id:"c",text:_t("Weâre a startup"),next:"widget2"},{answer_id:"d",text:_t("Weâre a group of freelancers"),next:"widget2"},{answer_id:"e",text:_t("Weâre interested in a partnership or affiliate program"),next:"widget5"},{answer_id:"f",text:_t("Weâre a marketplace"),next:"widget2"},{answer_id:"g",text:_t("None of the above"),next:"widget3"}]},{id:3,question:_t("How many team members do you plan to have on the system?"),answers:[{answer_id:"a",text:_t("1â30"),next:4},{answer_id:"b",text:_t("31â60"),next:4},{answer_id:"c",text:_t("61â250"),next:7},{answer_id:"d",text:_t("251 or more"),next:7}]},{id:4,question:_t("Whatâs the main purpose of your meeting?"),answers:[{answer_id:"a",text:_t("Iâm interested in the Enterprise solution"),next:5},{answer_id:"b",text:_t("Iâd like paid CSS assistance"),next:"widget1"},{answer_id:"c",text:_t("Iâd like paid assistance with an account manager"),next:"widget1"},{answer_id:"d",text:_t("I need a demo session"),next:"widget2"},{answer_id:"e",text:_t("I have 1â2 quick setup questions"),next:"widget3"}]},{id:5,question:_t("Whatâs your approximate budget for this project?"),answers:[{answer_id:"a",text:_t("More than $6,000 annually"),next:"widget4"},{answer_id:"b",text:_t("More than $12,000 annually"),next:"widget4"},{answer_id:"c",text:_t("More than $20,000 annually"),next:"widget4"},{answer_id:"d",text:_t("Less than $6,000 annually"),next:"widget2"}]},{id:6,question:_t("Whatâs your approximate budget for this project?"),answers:[{answer_id:"a",text:_t("More than $6,000 annually"),next:"widget6"},{answer_id:"b",text:_t("More than $12,000 annually"),next:"widget6"},{answer_id:"c",text:_t("More than $20,000 annually"),next:"widget6"},{answer_id:"d",text:_t("Less than $6,000 annually"),next:"widget2"}]},{id:7,question:_t("Whatâs your approximate budget for this project?"),answers:[{answer_id:"a",text:_t("More than $6,000 annually"),next:"widget7"},{answer_id:"b",text:_t("More than $12,000 annually"),next:"widget7"},{answer_id:"c",text:_t("More than $20,000 annually"),next:"widget7"},{answer_id:"d",text:_t("Less than $6,000 annually"),next:"widget2"}]}],this.widgets={widget1:{title:_t("Setup evaluation with SimplyBook.me, please wait while the widget opens."),action:function(){var e,n=document.documentElement.getAttribute("lang");switch(!0){case n.startsWith("es"):e=75;break;case n.startsWith("pt"):e=76;break;case n.startsWith("zh"):e=13;break;default:e=3}t._openWidgetAfterDelay(e,17)}}
1,widget2:{title:_t("Demo call with SimplyBook.me: please wait while the widget opens."),action:function(){var e,n=document.documentElement.getAttribute("lang");switch(!0){case n.startsWith("es"):e=74;break;case n.startsWith("pt"):e=70;break;case n.startsWith("zh"):e=103;break;default:e=52}t._openWidgetAfterDelay(e,14)}},widget3:{title:_t("Chat with our team or dive into our quick onboarding tutorials below!"),content:'<div class="btn-bar" style="display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;"><a href="https://www.youtube.com/watch?v=TdvpW6XiuW8&list=PLM9QxGer1Y2qTVNQp5n3mNFI6tw_iNf3Y" target="_blank" rel="noopener noreferrer" id="sb-tutorials-link" class="btn btn--secondary btn-icon-left fa-youtube">'+_t("New user onboarding tutorials")+'</a><button type="button" id="sb-chat-link" class="btn btn--alt">'+_t("Open Live Chat")+"</button></div>",action:function(){document.addEventListener("click",(function(e){if(e.target.closest("#sb-tutorials-link")&&t.closeRoutingFormPopup(),e.target.closest("#sb-chat-link")){var n=document.querySelector("#trigger_support_chat, #supportChat .content");n&&n.click(),t.closeRoutingFormPopup()}}))}},widget4:{title:_t("Enterprise inquiry with SimplyBook.me, please wait while the widget opens."),action:function(){var e,n=document.documentElement.getAttribute("lang");switch(!0){case n.startsWith("en"):case n.startsWith("fr"):e=53;break;case n.startsWith("es"):e=54;break;case n.startsWith("pt"):e=56;break;case n.startsWith("zh"):e=57;break;default:e=53}t._openWidgetAfterDelay(e,11)}},widget5:{title:_t("Partnership and affiliates, please wait while the widget opens."),action:function(){t._openWidgetAfterDelay(14,18)}},widget6:{title:_t("Category Enterprise inquiry with SimplyBook.me, please wait while the widget opens."),action:function(){var e,n=document.documentElement.getAttribute("lang");switch(!0){case n.startsWith("en"):case n.startsWith("fr"):e=58;break;case n.startsWith("es"):e=59;break;case n.startsWith("pt"):e=62;break;case n.startsWith("zh"):e=64;break;default:e=58}t._openWidgetAfterDelay(e,13)}},widget7:{title:_t("Category Enterprise inquiry with SimplyBook.me, please wait while the widget opens."),action:function(){var e,n=document.documentElement.getAttribute("lang");switch(!0){case n.startsWith("en"):case n.startsWith("fr"):e=66;break;case n.startsWith("es"):e=67;break;case n.startsWith("pt"):e=63;break;case n.startsWith("zh"):e=65;break;default:e=66}t._openWidgetAfterDelay(e,14)}}},this.currentSlide=0,this.userAnswers={},this.totalSlides=0,this.historyStack=[],this.hideTimeout=null,this._widgetOpenTimeout=null,this.lastFocusedBeforeModal=null,this.modalEl=null,this.modalKeydownHandler=null,this.selectAnswer=this.selectAnswer.bind(this),this.handleAnswerClick=this.handleAnswerClick.bind(this)}var n,i,o,u,d;return n=e,(i=[{key:"init",value:function(){var t=this,e=function(){t.setupEventListeners(),t.setupSpionBird(),t.initQuiz(),t.setupModalA11y()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}},{key:"setupEventListeners",value:function(){var t;null===(t=document.querySelector(".widget_btn"))||void 0===t||t.addEventListener("click",(function(){var t;null===(t=document.querySelector("#sb_enterprise_widget"))||void 0===t||t.click()})),window.addEventListener("message",(function(t){var e;"bookingDone"===(null===(e=t.data)||void 0===e?void 0:e.event)&>ag("event","conversion",{send_to:"AW-1020314917/xrbDCP2h05YbEKWKw-YD"})}))}},{key:"setupModalA11y",value:function(){var e,n=this;this.modalEl=document.getElementById("routing-form__popup"),this.modalEl&&(document.addEventListener("click",(function(t){t.target.closest('[data-target="#routing-form__popup"], [href="#routing-form__popup"], .open-routing-form')&&(n.lastFocusedBeforeModal=document.activeElement)})),void 0!==t&&null!==(e=t.fn)&&void 0!==e&&e.modal&&(t(this.modalEl).on("shown.bs.modal",(function(){n.onModalOpened()})),t(this.modalEl).on("hidden.bs.modal",(function(){n.onModalClosed(),n.forceResetBird()}))))}},{key:"onModalOpened",value:function(){var t,e=this;c().catch((function(){}
1)),this.preconnectWidgetDataOrigin(),null===(t=this.modalEl.querySelector(".modal__close")||this.getFocusableElements(this.modalEl)[0])||void 0===t||t.focus(),this.modalKeydownHandler=function(t){if("Escape"===t.key)return t.preventDefault(),void e.closeRoutingFormPopup();"Tab"===t.key&&e.trapFocus(t,e.modalEl)},this.modalEl.addEventListener("keydown",this.modalKeydownHandler)}},{key:"onModalClosed",value:function(){this.modalKeydownHandler&&(this.modalEl.removeEventListener("keydown",this.modalKeydownHandler),this.modalKeydownHandler=null),this.lastFocusedBeforeModal&&"function"==typeof this.lastFocusedBeforeModal.focus&&this.lastFocusedBeforeModal.focus(),this.resetQuizFlow()}},{key:"getFocusableElements",value:function(t){return t?Array.from(t.querySelectorAll(["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","))).filter((function(t){return!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden")})):[]}},{key:"trapFocus",value:function(t,e){var n=this.getFocusableElements(e);if(n.length){var i=n[0],r=n[n.length-1];t.shiftKey&&document.activeElement===i?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),i.focus())}}},{key:"setupSpionBird",value:function(){var t,e,n=this;this.btn=document.getElementById("prevBtn"),this.birdVideo=document.getElementById("dance-bird"),this.birdBox=document.querySelector(".bird-wrapper"),this.birdEye=document.querySelector(".bird-eye"),this.eyes=document.querySelectorAll(".eye"),this.mouse={x:0,y:0,needsUpdate:!1,active:!1,rafId:null},document.addEventListener("mousemove",(function(t){return n.handleMouseMove(t)})),null===(t=this.btn)||void 0===t||t.addEventListener("mouseover",(function(){return n.handleBirdHover()})),null===(e=this.btn)||void 0===e||e.addEventListener("mouseout",(function(){return n.handleBirdLeave()}))}},{key:"handleMouseMove",value:function(t){this.mouse.x=t.clientX,this.mouse.y=t.clientY,this.mouse.needsUpdate=!0,this.mouse.active||(this.mouse.active=!0,this.animateEyesLoop())}},{key:"animateEyesLoop",value:function(){var t=this;this.mouse.needsUpdate&&(this.updateEyesPosition(),this.mouse.needsUpdate=!1),this.mouse.rafId=requestAnimationFrame((function(){return t.animateEyesLoop()}))}},{key:"updateEyesPosition",value:function(){var t;if(null!==(t=this.eyes)&&void 0!==t&&t.length){var e,n=s(this.eyes);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.closest(".eye-wrap");if(r){var o=r.getBoundingClientRect(),a=o.left+o.width/2,u=o.top+o.height/2,l=this.mouse.x-a,c=this.mouse.y-u,d=Math.sqrt(Math.pow(l,2)+Math.pow(c,2))||1,h=o.width/7,f=Math.min(h/d,1),p=i.dataset.pos?JSON.parse(i.dataset.pos):{x:0,y:0},m=p.x+.15*(l*f-p.x),v=p.y+.15*(c*f-p.y);i.style.transform="translate(".concat(m,"px, ").concat(v,"px)"),i.dataset.pos=JSON.stringify({x:m,y:v})}}}catch(t){n.e(t)}finally{n.f()}}}},{key:"toggleBirdState",value:function(t){if(this.birdVideo&&this.birdEye)if(t){this.birdEye.classList.add("hide"),this.birdVideo.muted=!0,this.birdVideo.setAttribute("playsinline",""),this.birdVideo.setAttribute("webkit-playsinline","");var e=this.birdVideo.play();e&&"function"==typeof e.catch&&e.catch((function(){}))}else this.birdEye.classList.remove("hide"),this.birdVideo.pause()}},{key:"handleBirdHover",value:function(){var t;clearTimeout(this.hideTimeout),null===(t=this.birdBox)||void 0===t||t.classList.add("_disagree"),this.toggleBirdState(!0)}},{key:"handleBirdLeave",value:function(){var t,e=this;null===(t=this.birdBox)||void 0===t||t.classList.remove("_disagree"),this.hideTimeout=setTimeout((function(){e.toggleBirdState(!1)}),2e3)}},{key:"initQuiz",value:function(){var t=this,e=document.getElementById("slides-container"),n=document.querySelector(".quiz-container--loader");e&&this.quizData.forEach((function(n,i){e.appendChild(t.createSlide(n,i))})),this.totalSlides=document.querySelectorAll(".slide").length,this.initNavigation(),this.updateProgress(),null==n||n.classList.add("fadeOutLeft"),setTimeout((function(){return null==n?void 0:n.remove()}),520),this.showSlide(0,{moveFocus:!0})}},{key:"createSlide",value:function(t,e){var n=this,i=document.createElement("div");i.className="animated slide ".concat(0===e?"fadeInRight active":"fadeOutLeft"),i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden",0===e?"false":"true");var r="quiz-sr-hint-".concat(t.id),o='<p id="'.concat(r,'" class="sr-only">').concat(_t("Use arrow keys to move between answers. Press Enter or Space to select."),"</p>");return i.innerHTML='\n <h3 class="title title--h3">'.concat(t.question,"</h3>\n ").concat(o,'\n <div class="answers" role="list">\n ').concat(t.answers.map((function(e,i){var o="q".concat(t.id,"-a").concat(e.answer_id);return'\n <div class="answer-option--wrapper" role="listitem">\n <b aria-hidden="true">'.concat(e.answer_id,'</b>\n <button\n type="button"\n id="').concat(o,'"\n class="answer-option"\n data-question-id="').concat(t.id,'"\n data-question-text="').concat(n.escapeAttr(t.question),'"\n data-answer-id="').concat(e.answer_id,'"\n data-answer-text="').concat(n.escapeAttr(e.text),'"\n data-next="').concat(e.next,'"\n aria-describedby="').concat(r,'"\n >\n ').concat(e.text,"\n </button>\n </div>\n ")})).join(""),"\n </div>\n "),i.querySelectorAll(".answer-option").forEach((function(t){t.addEventListener("click",(function(t){return n.handleAnswerClick(t)}))})),i.addEventListener("keydown",(function(t){return n.handleSlideKeydown(t,i)}
1)),i}},{key:"handleSlideKeydown",value:function(t,e){var n;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"].includes(t.key)){var i=Array.from(e.querySelectorAll(".answer-option"));if(i.length){var r=document.activeElement,o=Math.max(0,i.indexOf(r)),a=o;switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault(),a=(o-1+i.length)%i.length;break;case"ArrowDown":case"ArrowRight":t.preventDefault(),a=(o+1)%i.length;break;case"Home":t.preventDefault(),a=0;break;case"End":t.preventDefault(),a=i.length-1}null===(n=i[a])||void 0===n||n.focus()}}}},{key:"handleAnswerClick",value:function(t){var e=t.currentTarget;if(e){var n=parseInt(e.dataset.questionId,10),i=e.dataset.questionText||"",r=e.dataset.answerId||"",o=e.dataset.answerText||"",a=e.dataset.next,s=this.parseNext(a);this.birdVideo&&(this.birdVideo.muted=!0,this.birdVideo.playsInline=!0),this.selectAnswer(n,i,r,o,s)}}},{key:"parseNext",value:function(t){if("string"==typeof t&&t.startsWith("widget"))return t;var e=parseInt(t,10);return Number.isNaN(e)?t:e}},{key:"selectAnswer",value:function(t,e,n,i,r){this.historyStack.push(this.currentSlide),this.userAnswers[t]={question:e,answer_id:n,answer_text:i,next:r},"string"==typeof r&&r.startsWith("widget")?this.showResult(r):(this.currentSlide=this.quizData.findIndex((function(t){return t.id===parseInt(r,10)})),this.showSlide(this.currentSlide,{moveFocus:!0}),this.updateProgress())}},{key:"showResult",value:function(t){var e,n=this,i=document.getElementById("slides-container"),r=document.getElementById("result-section");if(i&&r){i.style.display="none",r.style.display="block";var o=this.widgets[t],a="";null!=o&&o.title&&(a+='<h3 class="title result-section_title">'.concat(o.title,"</h3>")),null!=o&&o.content&&(a+=o.content),r.innerHTML=a,null!=o&&o.action&&o.action(),this.updateProgress(100),this.toggleBirdState(!0),null===(e=document.getElementById("prevBtn"))||void 0===e||e.classList.add("hide"),setTimeout((function(){var t=n.getFocusableElements(r)[0];null==t||t.focus()}),0)}}},{key:"showSlide",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.moveFocus,i=void 0!==n&&n,r=Array.from(document.querySelectorAll(".slide"));if(r.forEach((function(e,n){var i=n===t;e.classList.toggle("active",i),e.classList.toggle("fadeInRight",i),e.classList.toggle("fadeOutLeft",!i&&n<t),e.setAttribute("aria-hidden",i?"false":"true")})),this.updateButtons(),this.updateProgress(),i){var o=r[t],a=null==o?void 0:o.querySelector(".answer-option");setTimeout((function(){return null==a?void 0:a.focus()}),0)}}},{key:"updateProgress",value:function(t){var e=document.querySelector(".progress");if(e){var n=t||(this.currentSlide+1)/this.totalSlides*100;e.style.width="".concat(n,"%");var i=e.closest(".progress-bar");i&&(i.setAttribute("role","progressbar"),i.setAttribute("aria-valuemin","0"),i.setAttribute("aria-valuemax","100"),i.setAttribute("aria-valuenow",String(Math.round(n))),i.setAttribute("aria-label",_t("Quiz progress")))}}},{key:"updateButtons",value:function(){var t=document.getElementById("prevBtn");if(t){var e=0===this.currentSlide;t.disabled=e,t.classList.toggle("hidden",e)}}},{key:"initNavigation",value:function(){var t,e,n=this;null===(t=document.getElementById("prevBtn"))||void 0===t||t.addEventListener("click",(function(){return n.prevSlide()})),null===(e=document.getElementById("nextBtn"))||void 0===e||e.addEventListener("click",(function(){return n.nextSlide()}))}},{key:"nextSlide",value:function(){this.currentSlide<this.totalSlides-1&&(this.currentSlide++,this.showSlide(this.currentSlide,{moveFocus:!0}))}},{key:"prevSlide",value:function(){if(this.historyStack.length>0){var t=this.historyStack.pop();this.currentSlide=t,this.showSlide(this.currentSlide,{moveFocus:!0})}}},{key:"closeRoutingFormPopup",value:function(){var e;if(void 0!==t&&null!==(e=t.fn)&&void 0!==e&&e.modal){var n;null===(n=t("#routing-form__popup"))||void 0===n||n.modal("hide")}else{var i=document.getElementById("routing-form__popup");i&&(i.classList.remove("show"),i.setAttribute("aria-hidden","true"))}}}
1,{key:"_openWidgetAfterDelay",value:(d=a(r().mark((function t(e,n){var i,o=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._widgetOpenTimeout&&(clearTimeout(this._widgetOpenTimeout),this._widgetOpenTimeout=null),t.next=3,this.createServiceIdInWidget(e,n);case 3:if(null!==(i=this.modalEl)&&void 0!==i&&i.classList.contains("in")){t.next=5;break}return t.abrupt("return");case 5:this._widgetOpenTimeout=setTimeout((function(){var t,e;o._widgetOpenTimeout=null,null===(t=document.querySelector("#sb_enterprise_widget"))||void 0===t||t.click(),null===(e=document.getElementsByClassName("result-section_title")[0])||void 0===e||e.classList.add("hide"),o.closeRoutingFormPopup()}),2e3);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return d.apply(this,arguments)})},{key:"preconnectWidgetDataOrigin",value:function(){if(!document.querySelector('link[rel="preconnect"][href="https://bigaccounts.simplybook.it"]')){var t=document.createElement("link");t.rel="preconnect",t.href="https://bigaccounts.simplybook.it",t.crossOrigin="anonymous",document.head.appendChild(t)}}},{key:"cleanupWidgetDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.keepButton,n=void 0!==e&&e;if(document.querySelectorAll(".simplybook-widget-container").forEach((function(t){return t.remove()})),document.querySelectorAll(".simplybook-widget-overlay").forEach((function(t){return t.remove()})),!n){var i=document.getElementById("sb_enterprise_widget");if(i&&i.parentNode){var r=i.cloneNode(!0);i.parentNode.replaceChild(r,i)}}}},{key:"forceResetBird",value:function(){var t;if(this.birdVideo){this.birdVideo.pause(),this.birdVideo.currentTime=0,this.birdVideo.removeAttribute("src"),this.birdVideo.load();var e=document.createElement("source");e.src=this.birdVideo.dataset.src||(null===(t=this.birdVideo.querySelector("source"))||void 0===t?void 0:t.src),e.type="video/mp4",this.birdVideo.appendChild(e)}}},{key:"resetQuizFlow",value:function(){this._widgetOpenTimeout&&(clearTimeout(this._widgetOpenTimeout),this._widgetOpenTimeout=null),this.currentSlide=0,this.userAnswers={},this.historyStack=[];var t=document.getElementById("result-section");t&&(t.innerHTML="",t.style.display="none");var e=document.getElementById("slides-container");e&&(e.style.display="");var n=document.getElementsByClassName("result-section_title");Array.from(n).forEach((function(t){return t.classList.remove("hide")}));var i=document.getElementById("prevBtn");i&&(i.classList.remove("hide"),i.classList.add("hidden"),i.disabled=!0),this.toggleBirdState(!1),this.showSlide(0),this.updateProgress()}},{key:"escapeAttr",value:function(t){return String(t).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}},{key:"createServiceIdInWidget",value:(u=a(r().mark((function t(e,n){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.cleanupWidgetDom(),t.prev=1,t.next=4,c();case 4:t.next=9;break;case 6:return t.prev=6,t.t0=t.catch(1),t.abrupt("return");case 9:if(null!==(i=this.modalEl)&&void 0!==i&&i.classList.contains("in")){t.next=11;break}return t.abrupt("return");case 11:new SimplybookWidget({widget_user_class:"enterprise-widget enterprise-widget__white",button_custom_id:"sb_enterprise_widget",widget_type:"button",url:"https://bigaccounts.simplybook.it",theme:"creative",theme_settings:{sb_base_color:"#06adef",timeline_show_end_time:"0",timeline_modern_display:"as_slots",dark_font_color:"#474747",light_font_color:"#ffffff",hide_img_mode:"1",sb_busy:"#dad2ce",sb_available:"#d3e0f1"},timeline:"modern",datepicker:"inline_datepicker",is_rtl:!1,app_config:{predefined:{category:n,service:e}}});case 12:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(t,e){return u.apply(this,arguments)})}])&&l(n.prototype,i),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),e}()}.call(this,n("EVdn"))}},[["1Vmc","runtime","vendor-jquery"]]]); 2//# sourceMappingURL=quizApp.3d535d30.js.map
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.