(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27261,85683,62658],{327251:function(e,t,n){"use strict";n.d(t,{P:function(){return g}});var r=n(487462),i=n(686656),o=n(145987),a=n(667294),s=n(294184),c=n.n(s),l=n(432408),u=n(338314),d=".CloseButton_CloseIcon__PEKs- {\n height: 12px;\n width: 12px;\n fill: #aeb5bc;\n transition: 50ms;\n}\n.CloseButton_CLoseIconSizeS__f9iGm {\n height: 8px;\n width: 8px;\n}\n.CloseButton_CloseButton__gFueD {\n position: absolute;\n right: 0;\n height: 48px;\n width: 48px;\n background: none;\n border: 0;\n outline: 0;\n cursor: pointer;\n}\n.CloseButton_CloseButton__gFueD:hover .CloseButton_CloseIcon__PEKs-,\n.CloseButton_CloseButton__gFueD:hover .CloseButton_CloseIconSizeS__LHeTb {\n fill: #6f757b;\n}\n.CloseButton_CloseButton__gFueD.CloseButton_left__bGfMz {\n left: 0;\n}\n",p={__getCSS:function(){return d},__getFilename:function(){return"/src/CloseButton/CloseButton.less"},CloseIcon:"CloseButton_CloseIcon__PEKs-",CLoseIconSizeS:"CloseButton_CLoseIconSizeS__f9iGm",CloseButton:"CloseButton_CloseButton__gFueD",CloseIconSizeS:"CloseButton_CloseIconSizeS__LHeTb",left:"CloseButton_left__bGfMz"};(0,u.Z)(d);var f=n(371308),g=(0,l.Jj)((function(e){var t=e.className,n=e.size,s=(0,o.Z)(e,["className","size"]);return a.createElement("button",(0,r.Z)({className:c()(t,p.CloseButton)},s),a.createElement(f.Z,{className:c()(p.CloseIcon,(0,i.Z)({},p.CloseIconSizeS,"s"===n))}))}),p)},918609:function(e,t,n){"use strict";n.d(t,{r:function(){return f}});var r=n(487462),i=n(686656),o=n(145987),a=n(667294),s=n(294184),c=n.n(s),l=n(432408),u=n(338314),d=".Link_link__BANmW {\n display: inline-flex;\n align-items: center;\n border: 0;\n padding: 0;\n background: none;\n color: #3bb3bd;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n transition: color 50ms;\n}\n.Link_link__BANmW:hover {\n color: #33aab4;\n}\n.Link_link__BANmW:active {\n color: #35a1aa;\n}\n.Link_link__BANmW svg {\n fill: currentColor;\n margin-right: 4px;\n}\n.Link_linkWeightMedium__-Qxl7 {\n font-weight: 500;\n}\n.Link_linkWeightThin__AZs97 {\n font-weight: 300;\n}\n.Link_linkSizeS__Ki00R {\n font-size: 13px;\n}\n.Link_linkSizeL__np-lr {\n font-size: 16px;\n}\n",p={__getCSS:function(){return d},__getFilename:function(){return"/src/Link/Link.less"},link:"Link_link__BANmW",linkWeightMedium:"Link_linkWeightMedium__-Qxl7",linkWeightThin:"Link_linkWeightThin__AZs97",linkSizeS:"Link_linkSizeS__Ki00R",linkSizeL:"Link_linkSizeL__np-lr"};(0,u.Z)(d);var f=(0,l.Jj)((function(e){var t,n,s=e.href,l=e.size,u=e.weight,d=e.className,f=e.children,g=e.onClick,h=(0,o.Z)(e,["href","size","weight","className","children","onClick"]);return s?a.createElement("a",(0,r.Z)({className:c()(d,p.link,(t={},(0,i.Z)(t,p.linkSizeS,"s"===l),(0,i.Z)(t,p.linkSizeL,"l"===l),(0,i.Z)(t,p.linkWeightThin,"thin"===u),(0,i.Z)(t,p.linkWeightMedium,"medium"===u),t)),href:s,onClick:g},h),f):a.createElement("button",(0,r.Z)({className:c()(d,p.link,(n={},(0,i.Z)(n,p.linkSizeS,"s"===l),(0,i.Z)(n,p.linkSizeL,"l"===l),(0,i.Z)(n,p.linkWeightThin,"thin"===u),(0,i.Z)(n,p.linkWeightMedium,"medium"===u),n)),onClick:g},h),f)}),p)},45e4:function(e,t,n){"use strict";n.d(t,{a:function(){return p}});var r=n(487462),i=n(145987),o=n(667294),a=n(294184),s=n.n(a),c=n(432408),l=n(338314),u="@keyframes Loader_spin__VsLD8 {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.Loader_loader__gW0UH:before,\n.Loader_loader__gW0UH:after {\n content: '';\n display: block;\n position: absolute;\n}\n.Loader_loader__gW0UH:after {\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 1;\n}\n.Loader_loader__gW0UH:before {\n left: 50%;\n top: 50%;\n border: 6px solid #e3e5e6;\n border-radius: 50%;\n border-top-color: #3bb3bd;\n border-width: 2px;\n width: 24px;\n height: 24px;\n margin-top: -12px;\n margin-left: -12px;\n animation: Loader_spin__VsLD8 1s cubic-bezier(0.46, 0.17, 0.58, 0.87) infinite;\n z-index: 2;\n}\n.Loader_loader__gW0UH.Loader_l__AfI7q:before {\n width: 32px;\n height: 32px;\n margin-top: -16px;\n margin-left: -16px;\n}\n.Loader_loader__gW0UH.Loader_s__ECEGB:before {\n width: 16px;\n height: 16px;\n margin-top: -8px;\n margin-left: -8px;\n}\n",d={__getCSS:function(){return u},__getFilename:function(){return"/src/Loader/Loader.less"},loader:"Loader_loader__gW0UH",spin:"Loader_spin__VsLD8",l:"Loader_l__AfI7q",s:"Loader_s__ECEGB"};(0,l.Z)(u);var p=(0,c.Jj)((function(e){var t=e.size,n=e.className,a=(0,i.Z)(e,["size","className"]);return o.createElement("div",(0,r.Z)({className:s()(n,d.loader,t&&d[t])},a))}),d)},371308:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(487462),i=n(145987),o=n(667294),a=function(e){e.styles;var t=(0,i.Z)(e,["styles"]);return o.createElement("svg",(0,r.Z)({height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg"},t),o.createElement("path",{d:"M6 4.586L10.293.293l1.414 1.414L7.414 6l4.293 4.293-1.414 1.414L6 7.414l-4.293 4.293-1.414-1.414L4.586 6 .293 1.707 1.707.293z"}))}},613069:function(e,t,n){"use strict";var r,i,o=n(667294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t\n '),a=null==e?void 0:e.startsWith("http");return r.innerHTML=a?"popover trigger icon button"):null!=e?e:i,r.dataset.testid="default-icon",r}(g.customIcon,g.buttonColor||l.buttonColor),w=function(){var e=document.createElement("div");e.className="tf-v1-spinner";var t=document.createElement("div");return t.className="tf-v1-popover-button-icon",t.dataset.testid="spinner-icon",t.append(e),t}(),O=c(),P=c("button","tf-v1-popover-close"),k=function(e,t){void 0===t&&(t={});var n=(0,o.getTextColor)(e),r=document.createElement("button");return r.className="tf-v1-popover-button",r.dataset.testid="tf-v1-popover-button",r.style.backgroundColor=e,r.style.color=n,(0,o.addAttributesToElement)(r,t),r}(g.buttonColor||l.buttonColor,g.buttonProps);(g.container||document.body).append(j),_.append(v),j.append(k),j.append(P),k.append(x);var S=function(){u&&u.parentNode&&(u.classList.add("closing"),setTimeout((function(){(0,o.unmountElement)(u)}),250))};g.tooltip&&g.tooltip.length>0&&(u=function(e,t){var n=document.createElement("span");n.className="tf-v1-popover-tooltip-close",n.dataset.testid="tf-v1-popover-tooltip-close",n.innerHTML="×",n.onclick=t;var r=document.createElement("div");r.className="tf-v1-popover-tooltip-text",r.innerHTML=e;var i=document.createElement("div");return i.className="tf-v1-popover-tooltip",i.dataset.testid="tf-v1-popover-tooltip",i.appendChild(r),i.appendChild(n),i}(g.tooltip,S),j.append(u)),g.notificationDays&&(g.enableSandbox||(0,a.canBuildNotificationDot)(e))&&(d=(0,a.buildNotificationDot)(),k.append(d)),v.onload=function(){j.classList.add("open"),_.style.opacity="1",P.style.opacity="1",s(w,O),(0,o.addCustomKeyboardListener)(I)};var C=(0,o.makeAutoResize)(j),E=function(){(0,o.isOpen)(_)||(S(),d&&(d.classList.add("closing"),g.notificationDays&&!g.enableSandbox&&(0,a.saveNotificationDotHideUntilTime)(e,g.notificationDays),setTimeout((function(){(0,o.unmountElement)(d)}),250)),C(),window.addEventListener("resize",C),setTimeout((function(){(0,o.isInPage)(_)?(_.style.opacity="0",P.style.opacity="0",_.style.display="flex",setTimeout((function(){j.classList.add("open"),_.style.opacity="1",P.style.opacity="1"})),s(x,O)):(j.append(_),s(x,w),_.style.opacity="0",P.style.opacity="0")})))},I=function(){var e;(0,o.isOpen)(j)&&(null===(e=t.onClose)||void 0===e||e.call(t),setTimeout((function(){g.keepSession?_.style.display="none":(0,o.unmountElement)(_),j.classList.remove("open"),s(O,x)}),250))};(0,o.setAutoClose)(m,g.autoClose,I);var T=function(){(0,o.isOpen)(_)?I():E()};return k.onclick=(0,o.invokeWithoutDefault)(T),P.onclick=(0,o.invokeWithoutDefault)(I),g.open&&!(0,o.isOpen)(_)&&(n=(0,o.handleCustomOpen)(E,g.open,g.openValue)),{open:E,close:I,toggle:T,refresh:b,focus:y,unmount:function(){(0,o.unmountElement)(j),window.removeEventListener("resize",C),g.open&&(null==n?void 0:n.remove)&&n.remove()}}}},1797:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7528),t),i(n(6100),t)},1320:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt&&(t&&function(e){var t=i();delete t[e],o(t)}(e),!0)},t.buildNotificationDot=function(){var e=document.createElement("span");return e.className="tf-v1-popover-unread-dot",e.dataset.testid="tf-v1-popover-unread-dot",e}},6100:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},9630:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i\n '),a=null==e?void 0:e.startsWith("http");return r.innerHTML=a?"popover trigger icon button"):null!=e?e:i,r.dataset.testid="default-icon",r}(d.customIcon,d.buttonColor||a.buttonColor),w=s(),O=s("button","tf-v1-sidetab-close");(d.container||document.body).append(m),b.append(f),m.append(j),m.append(O),j.append(x),j.append(_),setTimeout((function(){m.classList.add("ready")}),250),f.onload=function(){m.classList.add("open"),c(y,w),(0,o.addCustomKeyboardListener)(S)};var P=(0,o.makeAutoResize)(m),k=function(){(0,o.isOpen)(b)||(P(),window.addEventListener("resize",P),(0,o.isInPage)(b)?(b.style.display="flex",m.classList.add("open"),c(x,w)):(m.append(b),c(x,y)))},S=function(){var e;(0,o.isOpen)(b)&&(null===(e=d.onClose)||void 0===e||e.call(d),m.classList.remove("open"),setTimeout((function(){d.keepSession?b.style.display="none":(0,o.unmountElement)(b),c(w,x)}),250))};(0,o.setAutoClose)(g,d.autoClose,S);var C=function(){(0,o.isOpen)(b)?S():k()};return j.onclick=(0,o.invokeWithoutDefault)(C),O.onclick=(0,o.invokeWithoutDefault)(S),d.open&&!(0,o.isOpen)(b)&&(n=(0,o.handleCustomOpen)(k,d.open,d.openValue)),{open:k,close:S,toggle:C,refresh:h,focus:v,unmount:function(){(0,o.unmountElement)(m),window.removeEventListener("resize",P),d.open&&(null==n?void 0:n.remove)&&n.remove()}}}},1434:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(382),t),i(n(7668),t)},7668:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2603:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.createWidget=void 0;var o=n(6797),a=n(8554),s=n(2313),c=n(1126);t.createWidget=function(e,t){if(!(0,o.hasDom)())return{refresh:function(){},focus:function(){},unmount:function(){}};var n=t.domain,l=r(t,["domain"]);l.inlineOnMobile=t.inlineOnMobile||t.fullScreen,l.inlineOnMobile||!l.forceTouch&&!(0,o.isFullscreen)()||(l.displayAsFullScreenModal=!0,l.forceTouch=!0);var u,d=(0,o.createIframe)("widget",{formId:e,domain:n,options:l}),p=d.embedId,f=d.iframe,g=d.refresh,h=d.focus,v=(0,s.buildWidget)(f,l.width,l.height);if(l.fullScreen&&((0,c.overrideFullScreenStyles)(t.container,f),u=(0,o.makeAutoResize)(t.container,!0),window.addEventListener("resize",u),u()),l.autoResize){var m=i("string"==typeof l.autoResize?l.autoResize.split(",").map((function(e){return parseInt(e)})):[],2),b=m[0],y=m[1];window.addEventListener("message",(0,a.getFormHeightChangedHandler)(p,(function(e){var n=Math.max(e.height,b||0);y&&(n=Math.min(n,y)),t.container.style.height="".concat(n,"px")})))}l.autoFocus&&window.addEventListener("message",(0,a.getFormReadyHandler)(p,(function(){setTimeout((function(){h()}),1e3)})));var j,_=function(){return t.container.append(v)};if(t.container.innerHTML="",t.lazy?(0,o.lazyInitialize)(t.container,_):_(),l.displayAsFullScreenModal){var x="",w=t.container;u=(0,o.makeAutoResize)(w);var O=w.style.height;window.addEventListener("message",(0,a.getWelcomeScreenHiddenHandler)(p,(function(){w.classList.add("tf-v1-widget-fullscreen"),void 0!==t.opacity&&(w.style.backgroundColor=x),u(),window.addEventListener("resize",u)}))),window.addEventListener("message",(0,a.getFormThemeHandler)(p,(function(e){var t;x=(0,o.changeColorOpacity)(null===(t=null==e?void 0:e.theme)||void 0===t?void 0:t.backgroundColor)})));var P=((j=document.createElement("button")).className="tf-v1-widget-close tf-v1-close-icon",j.innerHTML="×",j);P.onclick=(0,o.invokeWithoutDefault)((function(){var e;if(window.removeEventListener("resize",u),w.style.height=O,null===(e=t.onClose)||void 0===e||e.call(t),w.classList.remove("tf-v1-widget-fullscreen"),w.style.backgroundColor="",t.keepSession){var n=document.createElement("div");n.className="tf-v1-widget-iframe-overlay",n.onclick=function(){w.classList.add("tf-v1-widget-fullscreen"),(0,o.unmountElement)(n)},v.append(n)}else t.container.innerHTML="",_(),w.append(P)})),w.append(P)}return{refresh:g,focus:h,unmount:function(){u&&window.removeEventListener("resize",u),(0,o.unmountElement)(v)}}}},1419:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.buildWidget=void 0;var r=n(6797);t.buildWidget=function(e,t,n){var i=document.createElement("div");return i.className="tf-v1-widget",i.dataset.testid="tf-v1-widget",i.append(e),(0,r.setElementSize)(i,{width:t,height:n})}},2313:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1419),t)},1126:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.overrideFullScreenStyles=void 0,t.overrideFullScreenStyles=function(e,t){Object.assign(e.style,{zIndex:"10001",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}),t.style.borderRadius="0",Object.assign(document.body.style,{overflow:"hidden"})}},9321:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(718),t),i(n(4058),t)},4058:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},1920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1797),t),i(n(5970),t),i(n(4071),t),i(n(9321),t),i(n(1434),t)},5084:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addAttributesToElement=void 0;var r=n(7377);t.addAttributesToElement=function(e,t){void 0===t&&(t={}),Object.keys(t).forEach((function(n){e.setAttribute((0,r.camelCaseToKebabCase)(n),t[n])}))}},3626:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.buildIframeSrc=void 0;var o=n(8027),a=n(4527),s=n(2346),c=n(2698),l=n(863),u={widget:"embed-widget",popup:"popup-blank",slider:"popup-drawer",popover:"popup-popover","side-tab":"popup-side-panel"};t.buildIframeSrc=function(e){var t=e.domain,n=e.formId,d=e.type,p=e.embedId,f=e.options,g=function(e,t,n){var i=n.transitiveSearchParams,o=n.source,a=n.medium,s=n.mediumVersion,l=n.hideFooter,d=n.hideHeaders,p=n.opacity,f=n.disableTracking,g=n.enableSandbox,h=n.shareGaInstance,v=n.forceTouch,m=n.displayAsFullScreenModal,b=n.tracking,y=n.redirectTarget,j=n.autoResize,_=n.disableScroll,x=n.onEndingButtonClick,w=n.noHeading,O=(0,c.getTransitiveSearchParams)(i);return r(r(r({},{"typeform-embed-id":t,"typeform-embed":u[e],"typeform-source":o,"typeform-medium":a,"typeform-medium-version":s,"embed-hide-footer":l?"true":void 0,"embed-hide-headers":d?"true":void 0,"embed-opacity":p,"disable-tracking":f||g?"true":void 0,"__dangerous-disable-submissions":g?"true":void 0,"share-ga-instance":h?"true":void 0,"force-touch":v?"true":void 0,"add-placeholder-ws":"widget"===e&&m?"true":void 0,"typeform-embed-redirect-target":y,"typeform-embed-auto-resize":j?"true":void 0,"typeform-embed-disable-scroll":_?"true":void 0,"typeform-embed-handle-ending-button-click":x?"true":void 0,"typeform-embed-no-heading":w?"true":void 0}),O),b)}(d,p,function(e){return e.noHeading||(e.noHeading=document.querySelectorAll("h1").length>0),r(r({},{source:null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.hostname.replace(/^www\./,""),medium:"embed-sdk",mediumVersion:"next"}),(0,a.removeUndefinedKeys)(e));var t}(f)),h=function(e,t,n){if(void 0===t&&(t=o.DEFAULT_DOMAIN),void 0===n&&(n=!1),e.startsWith("http://")||e.startsWith("https://"))return new URL(e);var r=n?"c":"to";return new URL("https://".concat(t,"/").concat(r,"/").concat(e))}(n,t,f.chat);if(Object.entries(g).filter((function(e){var t=i(e,2)[1];return(0,s.isDefined)(t)})).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];h.searchParams.set(n,r)})),f.hubspot){var v=(0,l.getHubspotHiddenFields)();f.hidden=r(r({},f.hidden),v)}if(f.hidden){var m=new URLSearchParams;Object.entries(f.hidden).filter((function(e){var t=i(e,2)[1];return(0,s.isDefined)(t)&&""!==t})).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];"boolean"==typeof f.transitiveSearchParams&&h.searchParams.delete(n),m.set(n,r)}));var b=m.toString();b&&(h.hash=b)}return h.href}},2391:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.changeColorOpacity=void 0,t.changeColorOpacity=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=255),e.startsWith("rgba(")?null==e?void 0:e.replace(/, [\d.]+\)$/,", ".concat(t,")")):e}},8972:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.handleCustomOpen=void 0;var n={remove:function(){}};t.handleCustomOpen=function(e,t,r){switch(t){case"load":return e(),n;case"exit":return r?function(e,t){var n=0,r=function(i){i.clientY=o;(s>=e||c)&&(t(),document.removeEventListener("scroll",n))}return document.addEventListener("scroll",n),{remove:function(){return document.removeEventListener("scroll",n)}}}(r,e):n;default:return n}}},1553:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createIframe=void 0;var r=n(3626),i=n(6797),o=n(8866),a=n(8554),s=n(2256),c=n(7144),l=n(5511);t.createIframe=function(e,t){var n=t.formId,u=t.domain,d=t.options,p=(0,o.generateEmbedId)(),f=d.iframeProps,g=void 0===f?{}:f,h=d.onReady,v=d.onQuestionChanged,m=d.onHeightChanged,b=d.onSubmit,y=d.onEndingButtonClick,j=d.shareGaInstance,_=(0,r.buildIframeSrc)({formId:n,domain:u,embedId:p,type:e,options:d}),x=document.createElement("iframe");return x.src=_,x.dataset.testid="iframe",x.style.border="0px",x.allow="microphone; camera",(0,i.addAttributesToElement)(x,g),x.addEventListener("load",s.triggerIframeRedraw,{once:!0}),window.addEventListener("message",(0,a.getFormReadyHandler)(p,h)),window.addEventListener("message",(0,a.getFormQuestionChangedHandler)(p,v)),window.addEventListener("message",(0,a.getFormHeightChangedHandler)(p,m)),window.addEventListener("message",(0,a.getFormSubmitHandler)(p,b)),window.addEventListener("message",(0,a.getFormThemeHandler)(p,(function(e){var t;if(null==e?void 0:e.theme){var n=document.querySelector(".tf-v1-close-icon");n&&(n.style.color=null===(t=e.theme)||void 0===t?void 0:t.color)}}))),window.addEventListener("message",(0,a.getThankYouScreenButtonClickHandler)(p,y)),"widget"!==e&&window.addEventListener("message",c.dispatchCustomKeyEventFromIframe),j&&window.addEventListener("message",(0,a.getFormReadyHandler)(p,(function(){(0,i.setupGaInstance)(x,p,j)}))),{iframe:x,embedId:p,refresh:function(){return(0,l.refreshIframe)(x)},focus:function(){var e;null===(e=x.contentWindow)||void 0===e||e.postMessage("embed-focus","*")}}}},8866:function(e,t){var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.generateEmbedId=void 0,t.generateEmbedId=function(){var e=Math.random();return n(String(e).split("."),2)[1]}},8554:function(e,t){var n=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]150?"#000000":"#FFFFFF"}},2698:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?e.reduce((function(e,r){var i,o=t.searchParams.get(r);return o?n(n({},e),((i={})[r]=o,i)):e}),{}):{}}},8252:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasDom=void 0,t.hasDom=function(){return"undefined"!=typeof document&&"undefined"!=typeof window}},2938:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hexRgb=void 0;var n="a-f\\d",r="#?[".concat(n,"]{3}[").concat(n,"]?"),i="#?[".concat(n,"]{6}([").concat(n,"]{2})?"),o=new RegExp("[^#".concat(n,"]"),"gi"),a=new RegExp("^".concat(r,"$|^").concat(i,"$"),"i");t.hexRgb=function(e){if("string"!=typeof e||o.test(e)||!a.test(e))throw new TypeError("Expected a valid hex string");8===(e=e.replace(/^#/,"")).length&&(e=e.slice(0,6)),4===e.length&&(e=e.slice(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=Number.parseInt(e,16);return{red:t>>16,green:t>>8&255,blue:255&t}}},863:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.loadOptionsFromAttributes=t.transformAttributeValue=t.camelCaseToKebabCase=void 0,t.camelCaseToKebabCase=function(e){return e.split("").map((function(e,t){return e.toUpperCase()===e?"".concat(0!==t?"-":"").concat(e.toLowerCase()):e})).join("")};var i=function(e){return e||void 0},o=function(e){return""===e||"yes"===e||"true"===e},a=function(e){var t=e?parseInt(e,10):NaN;return isNaN(t)?void 0:t},s="%ESCAPED_COMMA%",c=function(e){if(e)return e.replace(/\s/g,"").replace(/\\,/g,s).split(",").filter((function(e){return!!e})).map((function(e){return e.replace(s,",")}))};t.transformAttributeValue=function(e,t){var l,u,d;switch(t){case"string":return i(e);case"boolean":return o(e);case"integer":return a(e);case"function":return function(e){var t=e&&e in window?window[e]:void 0;return"function"==typeof t?t:void 0}(e);case"array":return c(e);case"record":return function(e){if(e)return e.replace(/\\,/g,s).split(",").filter((function(e){return!!e})).map((function(e){return e.replace(s,",")})).reduce((function(e,t){var i,o=t.match(/^([^=]+)=(.*)$/);if(o){var a=r(o,3),s=a[1],c=a[2];return n(n({},e),((i={})[s.trim()]=c,i))}return e}),{})}(e);case"integerOrBoolean":return null!==(l=a(e))&&void 0!==l?l:o(e);case"stringOrBoolean":return null!==(u=i(e))&&void 0!==u?u:o(e);case"arrayOrBoolean":return null!==(d=c(e))&&void 0!==d?d:o(e);default:throw new Error("Invalid attribute transformation ".concat(t))}},t.loadOptionsFromAttributes=function(e,r){return Object.keys(r).reduce((function(i,o){var a;return n(n({},i),((a={})[o]=(0,t.transformAttributeValue)(e.getAttribute("data-tf-".concat((0,t.camelCaseToKebabCase)(o))),r[o]),a))}),{})}},318:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.makeAutoResize=void 0;var r=n(6563);t.makeAutoResize=function(e,t){return void 0===t&&(t=!1),function(){var n=t||(0,r.isMobile)();e&&n&&e.style.setProperty("height","".concat(window.innerHeight,"px"),"important")}}},6563:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isFullscreen=t.isMobile=t.isBigScreen=void 0,t.isBigScreen=function(){return window.screen.width>=1024&&window.screen.height>=768},t.isMobile=function(){return/mobile|tablet|android/i.test(navigator.userAgent.toLowerCase())},t.isFullscreen=function(){return(0,t.isMobile)()&&!(0,t.isBigScreen)()}},4527:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.removeUndefinedKeys=void 0;var o=n(2346);t.removeUndefinedKeys=function(e){return Object.entries(e).filter((function(e){var t=i(e,2)[1];return(0,o.isDefined)(t)})).reduce((function(e,t){var n,o=i(t,2),a=o[0],s=o[1];return r(r({},e),((n={})[a]=s,n))}),{})}},4748:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setAutoClose=void 0;var r=n(8554);t.setAutoClose=function(e,t,n){if(t&&n){var i="number"==typeof t?t:0;window.addEventListener("message",(0,r.getFormSubmitHandler)(e,(function(){return setTimeout(n,i)})))}}},9533:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setElementSize=void 0,t.setElementSize=function(e,t){var n=t.width,r=t.height;return n&&(e.style.width="".concat(n,"px")),r&&(e.style.height="".concat(r,"px")),e}},4392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setupGaInstance=t.sendGaIdMessage=void 0,t.sendGaIdMessage=function(e,t,n){var r={embedId:e,gaClientId:t};setTimeout((function(){n&&n.contentWindow&&n.contentWindow.postMessage({type:"ga-client-id",data:r},"*")}),0)};var n=function(e){console.error(e)},r=function(e){n("Whoops! You enabled the shareGaInstance feature in your typeform embed but ".concat(e,".\n\n")+"Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page and use correct tracker ID.\n\nIt is also possible the Google Analytics was blocked by your adblock plugin.")};t.setupGaInstance=function(e,i,o){var a="string"==typeof o?o:void 0;if(window.gtag){if(a||(a=function(){if(window.dataLayer){var e=window.dataLayer.find((function(e){return e.length>1&&"config"===e[0]}));return e&&e[1]}}()),!a)return void r("the tracking ID could not be retrieved");var s=!1;window.gtag("get",a,"client_id",(function(n){s=!0,(0,t.sendGaIdMessage)(i,n,e)})),setTimeout((function(){s||r("the tracker with ID ".concat(a," was not found"))}),3e3)}else try{var c=function(e,t){return t?e.find((function(e){return e.get("trackingId")===t})):e[0]}(window.ga.getAll(),a);c?(0,t.sendGaIdMessage)(i,c.get("clientId"),e):r("the tracker with ID ".concat(a," was not found"))}catch(e){r("the Google Analytics object was not found"),n(e)}}},4623:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},1451:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unmountElement=void 0,t.unmountElement=function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}},t={};return function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(1920)}()},156:function(e){"use strict";e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Sidetab=e.Popover=e.SliderButton=e.PopupButton=e.Widget=void 0;var t=n(611),r=n(281),o=n(797),a=(0,o.memoComponent)(r.Widget);e.Widget=a;var s=(0,o.memoComponent)((0,r.makeButtonComponent)(t.createPopup,"popup"));e.PopupButton=s;var c=(0,o.memoComponent)((0,r.makeButtonComponent)(t.createSlider,"slider"));e.SliderButton=c;var l=(0,o.memoComponent)((0,r.makeInitializerComponent)(t.createPopover,"popover"));e.Popover=l;var u=(0,o.memoComponent)((0,r.makeInitializerComponent)(t.createSidetab,"sidetab"));e.Sidetab=u}(),i}())},364001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(879221),i=n(912249),o="\r\n";t.eol=o;t.separator=",";var a=new RegExp('"',"g"),s=new RegExp('["\r\n]',"g"),c=function(e,t){return function(e,t){return e.search(s)>=0||e.includes(t)}(e,t)?'"'+e.replace(a,'""')+'"':e},l=function(e,t,n,r){return e=function(e){if(0===e?e="0":void 0!==e&&null!==e||(e=""),"string"!=typeof e){var t=e.toString();"[object Object]"==t?"{}"==(e=JSON.stringify(e))&&(e=""):e=t}return e}(e),(void 0!==t||r?""+t+n:"")+c(e,n)},u=function(e){var t=[",",";","|","\t"].map((function(t){return e.indexOf(t)})).reduce((function(e,t){return-1===e||-1!==t&&t0);n+=o}else if("object"==typeof e){for(var i in e)e.hasOwnProperty(i)&&(n=l(e[i],n,t));n+=o}else n=l(e,n,t)+o;return n};function p(e,t,n,i){if(void 0===i)if(void 0===n){if("function"!==typeof t)throw Error("Last/second argument is not a callback");i=t,t=","}else{if("function"!==typeof n)throw Error("Last/third argument is not a callback");i=n,n='"'}var o=new r.Parser(e,t,n);return i(o.Row()),o.pointer}t.stringify=d,t.parse=function(e,t,n){var i="object"===typeof t?t:{};return"string"===typeof t&&(i.comma=t),n&&(i.quote=n),void 0===i.comma&&(i.comma=u(e)),i.comma&&(i.comma=i.comma[0]),i.quote&&(i.quote=i.quote[0]),new r.Parser(e,i.comma,i.quote).File(i.output)},t.read=p,t.forEach=function(e,t,n,r){if(void 0===r)if(void 0===n){if("function"!==typeof t)throw Error("Last/second argument is not a callback");r=t,t=","}else{if("function"!==typeof n)throw Error("Last/third argument is not a callback");r=n,n='"'}for(var i,o=0,a=0;i=p(e.slice(a),t,n,(function(e){return r(e,o++)}));)a+=i},t.readAll=function(e,t,n,i){if(void 0===i)if(void 0===n){if("function"!==typeof t)throw Error("Last/second argument is not a callback");i=t,t=","}else{if("function"!==typeof n)throw Error("Last/third argument is not a callback");i=n,n='"'}var o=new r.Parser(e,t,n);return i(o.File()),o.pointer},t.readChunk=function(e,t,n,i){if(void 0===i)if(void 0===n){if("function"!==typeof t)throw Error("Last/second argument is not a callback");i=t,t=","}else{if("function"!==typeof n)throw Error("Last/third argument is not a callback");i=n,n='"'}var o=new r.Parser(e,t,n),a=o.File(),s=0;return o.pointer0)){this.linePointer&&this.pointer!==this.input.length&&(t.pop(),this.pointer=this.linePointer);break}if(this.linePointer=n,t.push(r),this.EOF()){this.linePointer&&this.pointer!==this.input.length&&(t.pop(),this.pointer=this.linePointer);break}}if(e&&"objects"===e){if(0===t.length)return[];var i=t.shift();return t.map((function(e){return i.reduce((function(t,n,r){return t[n]=e[r],t}),{})}))}return t},e.prototype.Row=function(){for(var e=[];;)if(e.push(this.Value()),!this.Comma())return this.LineBreak()||this.EOF()||e.pop(),e},e.prototype.Value=function(){var e=this.Residue(),t=this.QuotedValue();if(t){var n=t.slice(1,-1).replace(this._replaceQuoteRegExp,this.quote);return this.Residue(),n}var r=this.SimpleValue();return r?e?e+r:r:""},e.prototype.Comma=function(){if(this.input.slice(this.pointer,this.pointer+this.comma.length)===this.comma)return this.pointer+=this.comma.length,this.comma},e.prototype.LineBreak=function(){return"\r\n"===this.input.slice(this.pointer,this.pointer+2)?(this.pointer+=2,"\r\n"):"\n"===this.input.charAt(this.pointer)?(this.pointer+=1,"\n"):"\r"===this.input.charAt(this.pointer)?(this.pointer+=1,"\r"):void 0},e.prototype.SimpleValue=function(){var e="",t=this.input.slice(this.pointer).search(this._simpleValueRegExp);if(this.input.charAt(this.pointer)!==this.quote){if(-1===t)e=this.input.slice(this.pointer);else{if(0===t)return;e=this.input.slice(this.pointer,this.pointer+t)}return this.pointer+=e.length,e}},e.prototype.QuotedValue=function(){if(this.input.charAt(this.pointer)===this.quote)for(var e=void 0,t=1;;){if(-1===(e=this.input.slice(this.pointer+t).search(this.quote)))return;if(this.input.charAt(this.pointer+t+e+1)!==this.quote){var n=this.input.slice(this.pointer,this.pointer+t+e+1);return this.pointer+=n.length,n}t+=e+2}},e.prototype.EOF=function(){return this.pointer>=this.input.length},e.prototype.Residue=function(){var e="",t=this.input.slice(this.pointer).search(this._residueRegExp);if(-1===t)e=this.input.slice(this.pointer);else{if(0===t)return"";e=this.input.slice(this.pointer,this.pointer+t)}return this.pointer+=e.length,e},e}();t.Parser=n},912249:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(879681),o=n(364001),a=n(879221),s=function(e){function t(t){var n=e.call(this,{readableObjectMode:!0,writableObjectMode:!1})||this;return n.buffer="",n.sep=t&&t.separator,n.quo=t&&t.quote,n}return r(t,e),t.prototype._transform=function(e,t,n){var r=this;this.buffer=this.buffer.concat(e.toString()),void 0===this.sep&&(this.sep=o.detect(this.buffer));var i=new a.Parser(this.buffer,this.sep,this.quo),s=i.File();i.linePointer!==i.pointer&&s.pop(),this.buffer=this.buffer.slice(i.linePointer),s.length>0&&s.forEach((function(e){r.push(e)})),n()},t.prototype._flush=function(e){var t=this,n=new a.Parser(this.buffer,this.sep,this.quo).File();n.length>0&&n.forEach((function(e){t.push(e)})),e()},t}(i.Transform);t.Streamer=s},423853:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(364001))},844174:function(e){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i",""":'"',"'":"'"});e.exports=r},607739:function(e,t,n){var r=n(789465),i=n(555189),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},441609:function(e,t,n){var r=n(400280),i=n(664160),o=n(135694),a=n(701469),s=n(498612),c=n(644144),l=n(225726),u=n(936719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},354061:function(e,t,n){var r=n(62663),i=n(989881),o=n(267206),a=n(210107),s=n(701469);e.exports=function(e,t,n){var c=s(e)?r:a,l=arguments.length<3;return c(e,o(t,4),n,l,i)}},27955:function(e,t,n){var r=n(479833),i=n(683729),o=/&(?:amp|lt|gt|quot|#39);/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,i):e}},430174:function(e,t,n){"use strict";n.d(t,{d:function(){return g}});var r=n(521071),i=n(667294),o=n(847902),a=n(780459),s=n(294184),c=n.n(s),l=n(410821),u=n(204590),d=n(338314),p="/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-less.ts @Wed Apr 15 2026 13:08:03 GMT+0000 (Coordinated Universal Time) */\n.styles-module_chipWrapper__QoRUp button[data-override='true'] {\n padding: var(--66b80b) var(--558c4c);\n min-height: unset;\n min-width: unset;\n text-align: left;\n}\n.styles-module_chipWrapper__QoRUp button[data-override='true']:not(:hover) {\n background-color: var(--3546c3);\n}\n.styles-module_chipWrapper__QoRUp button[data-override='true'][data-selected='true'] {\n background-color: var(--302ecf);\n border-color: var(--11d206);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_secondary__aWLjy button[data-override='true']:not(:hover) {\n background-color: var(--302ecf);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_activePositive__wQEUz button[data-override='true']:active {\n border-color: var(--ae7f1f);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_activeCritical__tDZGX button[data-override='true']:active {\n border-color: var(--87fcf8);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_selectedPositive__N4Jeg button[data-override='true'][data-selected='true'] {\n background-color: var(--1836a4);\n border-color: var(--ae7f1f);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_selectedCritical__Ln7EM button[data-override='true'][data-selected='true'] {\n background-color: var(--f15644);\n border-color: var(--87fcf8);\n}\n.styles-module_chipWrapper__QoRUp.styles-module_disabled__jSr3R button[data-override='true'][disabled] {\n border-color: var(--04daeb);\n opacity: 0.5;\n}\n.styles-module_chipWrapper__QoRUp.styles-module_disabled__jSr3R button[data-override='true'][disabled]:hover {\n background-color: var(--3546c3);\n}\n",f={__getCSS:function(){return p},__getFilename:function(){return"/src/rebrand/components/RebrandChip/styles.module.less"},chipWrapper:"styles-module_chipWrapper__QoRUp",secondary:"styles-module_secondary__aWLjy",activePositive:"styles-module_activePositive__wQEUz",activeCritical:"styles-module_activeCritical__tDZGX",selectedPositive:"styles-module_selectedPositive__N4Jeg",selectedCritical:"styles-module_selectedCritical__Ln7EM",disabled:"styles-module_disabled__jSr3R"};(0,d.Z)(p);var g=(0,u.Jj)((function(e){var t=e.label,n=e.isSelected,s=e.isSelectedWithCloseIcon,u=e.isDisabled,d=e.secondary,p=e.activeVariant,g=void 0===p?"default":p,h=e.selectedVariant,v=void 0===h?"default":h,m=e["data-qa-id"],b=e.onClick,y=e.dataset,j=e.icon;return i.createElement("div",{className:c()(f.chipWrapper,d&&f.secondary,"positive"===g&&f.activePositive,"critical"===g&&f.activeCritical,"positive"===v&&f.selectedPositive,"critical"===v&&f.selectedCritical,u&&f.disabled),"data-preply-ds-component":"RebrandChip"},i.createElement(o.t,{variant:"tertiary",size:"small",leadingSvgIcon:j,onClick:b,disabled:u,dataset:(0,r.Zj)((0,r.Zj)((0,r.Zj)({},y),m&&{"qa-id":m}),{},{override:!0,selected:!0===n||!0===s})},s?i.createElement(a.t,{svg:l.Z}):null,i.createElement("span",{className:f.label},t)))}),f)},242159:function(e,t,n){"use strict";n.r(t),n.d(t,{RebrandListItem:function(){return h}});var r=n(521071),i=n(667294),o=n(711917),a=n(704710),s=n(952420),c=n(780459),l=n(641778),u=n(687e3),d=n(204590),p=n(338314),f="/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-less.ts @Wed Apr 15 2026 13:08:03 GMT+0000 (Coordinated Universal Time) */\n/* AUTO GENERATED by support/tools/src/tool/code-generator/output/hover/web-core-hover-less.ts @Wed Apr 15 2026 13:08:03 GMT+0000 (Coordinated Universal Time) */\n.styles-module_root__OVOJ1 {\n all: unset;\n background: var(--3546c3);\n padding: 0 var(--558c4c);\n box-sizing: border-box;\n width: 100%;\n max-width: 100%;\n transition: all 0.15s linear;\n}\n.styles-module_root__OVOJ1.styles-module_fullWidthDivider__LHR8K {\n padding: 0;\n}\n.styles-module_root__OVOJ1:last-child .styles-module_dividerWrapper__zARw7 {\n display: none;\n}\nbutton.styles-module_disabled__pQgNg,\na.styles-module_disabled__pQgNg {\n cursor: not-allowed;\n pointer-events: none;\n touch-action: none;\n}\nbutton.styles-module_root__OVOJ1:not([disabled]),\na.styles-module_root__OVOJ1:not([disabled]) {\n cursor: pointer;\n}\n@media (hover: hover) and (pointer: fine) {\n button.styles-module_root__OVOJ1:not([disabled]):hover,\n a.styles-module_root__OVOJ1:not([disabled]):hover {\n background: var(--302ecf);\n }\n}\nbutton.styles-module_root__OVOJ1:not([disabled]):focus-visible,\na.styles-module_root__OVOJ1:not([disabled]):focus-visible {\n outline-style: solid;\n outline-color: var(--603ec6);\n outline-width: var(--99d31f);\n outline-offset: -2px;\n}\n.styles-module_trailingDetail__-7GwS {\n margin-left: auto;\n}\n",g={__getCSS:function(){return f},__getFilename:function(){return"/src/rebrand/components/RebrandListItem/styles.module.less"},root:"styles-module_root__OVOJ1",fullWidthDivider:"styles-module_fullWidthDivider__LHR8K",dividerWrapper:"styles-module_dividerWrapper__zARw7",disabled:"styles-module_disabled__pQgNg",trailingDetail:"styles-module_trailingDetail__-7GwS"};(0,p.Z)(f);var h=(0,d.Jj)((function(e){var t=e.onClick,n=e.onMouseDown,d=e.value,p=e.label,f=e.secondLine,h=e.icon,v=e.trailingDetail,m=e.variant,b=void 0===m?"default":m,y=e.size,j=void 0===y?"default":y,_=e.dataset,x=e.withDivider,w=void 0===x||x,O=e.fullWidthDivider,P=void 0!==O&&O,k=e.href,S=e.download,C=e.opensInNewTab,E=e.nofollow,I=e.disabled,T=e.wrap,D=void 0===T||T,R=e.tag,L=void 0===R?"button":R,N=e.image,M=e.alignItems,A=void 0===M?"center":M,Z=e.onMouseEnter,z=e.onMouseLeave,H=(0,o.b)(),B=(0,r.Zj)({onClick:t?function(e){return t(d,e)}:void 0,onMouseDown:n?function(e){return n(d,e)}:void 0,onMouseEnter:Z,onMouseLeave:z},(0,a.J)(_)),U=(0,r.Zj)((0,r.Zj)({},B),{},{download:S,role:"button",tabIndex:0,href:k}),V=(0,i.useMemo)((function(){return I?"tertiary":"default"!==b?b:"primary"}),[b,I]),W=(0,i.useMemo)((function(){return I?"tertiary":"default"!==b?b:"secondary"}),[b,I]),F=i.createElement(i.Fragment,null,i.createElement(s.t,{padding:{_:["compact"===j?"12":"16",P?"16":"0"]},gap:"16",tag:"span",nowrap:D,alignItems:A},h?i.createElement(c.t,{svg:h,accent:W}):null,N?i.createElement(i.Fragment,null,N):null,i.createElement(s.t,{direction:"column",gap:"4",tag:"span"},i.createElement(l.t,{variant:"default-regular",accent:V,tag:"span"},p),f?i.createElement(l.t,{variant:"small-regular",accent:W,tag:"span"},f):null),v?i.createElement("span",{className:g.trailingDetail},v):null),!!w&&i.createElement("div",{className:g.dividerWrapper},i.createElement(u.y,null))),q="".concat(g.root," ").concat(P?g.fullWidthDivider:""," ").concat(I?g.disabled:"");return k?i.createElement("a",(0,r.gY)({className:q},U,(0,a._)(H,k,C,E)),F):i.createElement(L,(0,r.gY)({className:q},B,{disabled:I,"data-preply-ds-component":"RebrandListItem"}),F)}),g)},470535:function(e,t,n){"use strict";var r=n(43171),i=n(848416),o=n(647069),a=n(420968),s=["src","srcSet","sizes","height","width","decoding","className","style","fetchPriority","placeholder","loading","unoptimized","fill","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","sizesInput","onLoad","onError"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=r[0]*l})),kind:"w"}}return{widths:i,kind:"w"}}return"number"!==typeof t?{widths:r,kind:"w"}:{widths:o(new Set([t,2*t].map((function(e){return i.find((function(t){return t>=e}))||i[i.length-1]})))),kind:"x"}}(t,i,s),u=l.widths,d=l.kind,p=u.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:u.map((function(e,r){return c({config:t,src:n,quality:a,width:e})+" "+("w"===d?e:r+1)+d})).join(", "),src:c({config:t,src:n,quality:a,width:u[p]})}}function h(e,t){var n,r=e.src,c=e.sizes,h=e.unoptimized,v=void 0!==h&&h,m=e.priority,b=void 0!==m&&m,y=e.loading,j=e.className,_=e.quality,x=e.width,w=e.height,O=e.fill,P=void 0!==O&&O,k=e.style,S=e.overrideSrc,C=(e.onLoad,e.onLoadingComplete,e.placeholder),E=void 0===C?"empty":C,I=e.blurDataURL,T=e.fetchPriority,D=e.decoding,R=void 0===D?"async":D,L=e.layout,N=e.objectFit,M=e.objectPosition,A=(e.lazyBoundary,e.lazyRoot,i(e,a)),Z=t.imgConf,z=t.showAltText,H=t.blurComplete,B=t.defaultLoader,U=Z||d.imageConfigDefault;if("allSizes"in U)n=U;else{var V,W=[].concat(o(U.deviceSizes),o(U.imageSizes)).sort((function(e,t){return e-t})),F=U.deviceSizes.sort((function(e,t){return e-t})),q=null==(V=U.qualities)?void 0:V.sort((function(e,t){return e-t}));n=l(l({},U),{},{allSizes:W,deviceSizes:F,qualities:q})}if("undefined"===typeof B)throw new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");var G=A.loader||B;delete A.loader,delete A.srcSet;var Q="__next_img_default"in G;if(Q){if("custom"===n.loader)throw new Error('Image with src "'+r+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{var Y=G;G=function(e){e.config;var t=i(e,s);return Y(t)}}if(L){"fill"===L&&(P=!0);var $={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[L];$&&(k=l(l({},k),$));var J={responsive:"100vw",fill:"100vw"}[L];J&&!c&&(c=J)}var K,X,ee="",te=f(x),ne=f(w);if(function(e){return"object"===typeof e&&(p(e)||function(e){return void 0!==e.src}(e))}(r)){var re=p(r)?r.default:r;if(!re.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(re));if(!re.height||!re.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(re));if(K=re.blurWidth,X=re.blurHeight,I=I||re.blurDataURL,ee=re.src,!P)if(te||ne){if(te&&!ne){var ie=te/re.width;ne=Math.round(re.height*ie)}else if(!te&&ne){var oe=ne/re.height;te=Math.round(re.width*oe)}}else te=re.width,ne=re.height}var ae=!b&&("lazy"===y||"undefined"===typeof y);(!(r="string"===typeof r?r:ee)||r.startsWith("data:")||r.startsWith("blob:"))&&(v=!0,ae=!1),n.unoptimized&&(v=!0),Q&&r.endsWith(".svg")&&!n.dangerouslyAllowSVG&&(v=!0),b&&(T="high");var se=f(_),ce=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:M}:{},z?{}:{color:"transparent"},k),le=H||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,u.getImageBlurSvg)({widthInt:te,heightInt:ne,blurWidth:K,blurHeight:X,blurDataURL:I||"",objectFit:ce.objectFit})+'")':'url("'+E+'")',ue=le?{backgroundSize:ce.objectFit||"cover",backgroundPosition:ce.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:le}:{};var de=g({config:n,src:r,unoptimized:v,width:te,quality:se,sizes:c,loader:G});return{props:l(l({},A),{},{loading:ae?"lazy":y,fetchPriority:T,width:te,height:ne,decoding:R,className:j,style:l(l({},ce),ue),sizes:de.sizes,srcSet:de.srcSet,src:S||de.src}),meta:{unoptimized:v,priority:b,placeholder:E,fill:P}}}},568415:function(e,t){"use strict";function n(e){var t=e.widthInt,n=e.heightInt,r=e.blurWidth,i=e.blurHeight,o=e.blurDataURL,a=e.objectFit,s=r?40*r:t,c=i?40*i:n,l=s&&c?"viewBox='0 0 "+s+" "+c+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},91381:function(e,t,n){"use strict";var r=n(43171);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return c}});var i=n(210260),o=n(842703),a=n(470535),s=i._(n(713155));function c(e){for(var t=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}}).props,n=0,i=Object.entries(t);n1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"es":t="/es/cursos-ingles-para-empresas";break;case"pt":t="/pt/cursos-ingles-para-empresas";break;default:t=p.uo[e]||p.uo.en}var r=new URLSearchParams(n).toString();return r?"".concat(t,"?").concat(r):t}(e,"search"===t?{start:"logged_out_search"}:void 0);return(0,E.jsx)(s.h.Link,{title:(0,E.jsx)(a._H,{id:"header_ssr.links.for_business.link",defaultMessage:"For business"}),href:n,dataQaId:"enterprise-btn",onClick:function(){"home"===t&&(0,h.EX)("enterprise"),N({viewName:t,linkName:"enterprise"})}})},z=function(){var e=(0,r.useContext)(c.q).headerNavigationUrls,t=(null===e||void 0===e?void 0:e.navigationUrls.teach.name)||"",n=(0,l.p1)();return(0,E.jsx)(s.h.Link,{title:(0,E.jsx)(a._H,{id:"header_ssr.links.become_tutor.link",defaultMessage:"Become a tutor"}),href:t,dataQaId:"become-tutor-btn",active:"teach"===n,onClick:function(){"home"===n&&(0,h.EX)("become_a_tutor"),N({viewName:n,linkName:"become_a_tutor"})}})},H=function(){var e=(0,u.V)(),t=(0,l.p1)();return(0,E.jsx)(s.h.Link,{title:(0,E.jsx)(a._H,{id:"header_ssr.links.messages.link",defaultMessage:"Messages"}),href:"/".concat(e,"/messages"),dataQaId:"messages",onClick:function(){N({viewName:t,linkName:"messages"})}})},B=function(){var e=(0,u.V)(),t=(0,l.p1)();return(0,E.jsx)(s.h.Link,{title:(0,E.jsx)(a._H,{id:"header_ssr.links.help.link",defaultMessage:"Help"}),href:"https://help.preply.com/".concat((0,d.E)(e),"/"),dataQaId:"help-button",onClick:function(){N({viewName:t,linkName:"help"})}})},U=function(){var e=(0,u.V)(),t=(0,l.p1)(),n="es"===e?"https://preply.com/es/progreso-en-idiomas-comprobado":"https://preply.com/en/proven-progress-platform";return(0,E.jsx)(s.h.Link,{title:(0,E.jsx)(a._H,{id:"header_ssr.links.brand.link",defaultMessage:"Proven Progress"}),href:n,dataQaId:"brand-button",onClick:function(){N({viewName:t,linkName:"brand"})}})},V=function(e){var t=e.viewName,n=e.dropdownData,r=e.languageSwitcherLinks,i=e.language,o=x({viewName:t,dropdownData:n,languageSwitcherLinks:r});return(0,E.jsx)(R,{language:i,languages:o})},W=function(e){var t=e.language,n=e.background,i=e.viewName,a=e.dropdownData,c=e.languageSwitcherLinks,l=(0,r.useContext)(g.a5),u=!l.mobile&&!l.tablet,d="tokyo-pink"===n?"tokyo-pink":"white",p=(0,v.t)()[m.E.EXP_SHOW_BRAND_LINK_IN_HEADER];(0,r.useEffect)((function(){(0,b.z)(m.E.EXP_SHOW_BRAND_LINK_IN_HEADER)}),[]);var h=function(e){var t=e.viewName,n=e.dropdownData,i=(0,r.useContext)(O.O9),a="home"===t,s=o().get("currency_code")||"",c=a&&""!==s&&s!==i?s:i,l=P.w.of(null===n||void 0===n?void 0:n.allCurrencies).map((function(e){return c&&!e.some((function(e){return(null===e||void 0===e?void 0:e.code)===c}))?[].concat((0,w.Z)(e),[{id:null,code:c,factor:1,isStandard:!1}]):e})).getOrElse([]);return{currentCurrency:T(l,c),allCurrencies:l}}({viewName:i,dropdownData:a}),y=h.currentCurrency,_=h.allCurrencies,k=(0,f.W)(x({viewName:i,dropdownData:a,languageSwitcherLinks:c}),t),S="login"===i||"signup"===i;return(0,E.jsx)(s.h.MainLayout,{desktopLinks:(0,E.jsxs)(s.h.Links,{theme:"Header",children:[(0,E.jsx)(A,{})," ",(0,E.jsx)(Z,{})," ",(0,E.jsx)(z,{})," ",p?(0,E.jsx)(U,{}):null]}),mobileLinks:(0,E.jsxs)(s.h.Links,{theme:"Drawer",children:[(0,E.jsx)(M,{}),(0,E.jsx)(A,{}),(0,E.jsx)(Z,{}),p?(0,E.jsx)(U,{}):null,(0,E.jsx)(z,{}),(0,E.jsx)(H,{}),(0,E.jsx)(B,{})]}),background:d,customLanguageSelector:(0,E.jsx)(V,{language:t,viewName:i,dropdownData:a,languageSwitcherLinks:c}),customCurrencySelector:(0,E.jsx)(D,{allCurrencies:(0,j.o)(_),onOpen:function(){}}),helpWidget:S?(0,E.jsx)(L.v,{language:t}):null,currentCurrency:y.code,currentLanguage:{name:k.name,code:k.code},viewName:i,isMobileSsr:!u})}},209995:function(e,t,n){"use strict";n.d(t,{t6:function(){return D},_V:function(){return R}});var r=n(759499),i=n(667294),o=n(294184),a=n.n(o),s=n(641778),c=n(837319),l=n.n(c),u=n(785893),d=function(){throw new Error("Missing context")},p=(0,i.createContext)(d),f=(0,i.createContext)(d);function g(e){var t=(0,i.useContext)(p),n=e.option?t(e.option):"";return(0,u.jsx)(s.t,{tag:"span",variant:"default-regular",children:n})}function h(e){var t=(0,i.useContext)(f)(e.option);return(0,u.jsx)("a",{href:t,className:a()(l().interactive,l().link),onClick:e.onClick,children:(0,u.jsx)(g,{option:e.option})})}function v(e){return(0,u.jsx)("button",{className:a()(l().interactive,l().button),onClick:e.onClick,children:(0,u.jsx)(g,{option:e.option})})}var m=n(217674),b=n(136550),y=n(847902);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;tt.top?"bottom":"top"}(t.current);if(null!==i){var o=function(e){var t=document.body.getBoundingClientRect(),n=e.getBoundingClientRect();return{top:t.bottom-n.top,bottom:n.bottom-t.top}}(n.currentTarget),a="top"===i?o.bottom:o.top;f(a-120)}null===(r=e.onOpen)||void 0===r||r.call(e,{visible:!g}),c(i)},dataset:e.qaId?{"qa-id":e.qaId}:void 0,children:(0,u.jsx)(v,{option:h})}),panel:(0,u.jsx)(S,{maxHeight:p,Option:e.Option,options:e.options,valueReader:e.valueReader,onSelect:function(t){var n=!1;e.onChange({option:t.option,closeSelect:function(){c(null)},preventDefault:function(){t.preventDefault()},preventClose:function(){n=!0}}),n||c(null)}})})})]})};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"auth_social_button_click";return(0,r.JZ)({event_name:n,json_data:{provider:t,event_location:e}})}},343509:function(e,t,n){"use strict";n.d(t,{CI:function(){return c},EX:function(){return s},WI:function(){return l},Z9:function(){return u},jg:function(){return a}});var r=n(634045),i=n(635985),o=n(629738),a=function(e){(0,i.JZ)({event_name:"home_page_subject_grid_clicked",json_data:{source:e}})},s=function(e){(0,i.JZ)({event_name:"home_page_header_link_clicked",json_data:{source:e}})},c=function(){return(0,o.z)((function(e,t){e[0].isIntersecting&&((0,r.pA)({event_name:"home_page_business_section_viewed"}),t())}))},l=function(){(0,r.pA)({event_name:"home_page_business_section_book_demo_clicked"})},u=function(){(0,r.pA)({event_name:"home_page_business_section_refer_company_clicked"})}},884278:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(759499),i=n(704730),o=n(667294),a=n(294184),s=n.n(a),c=n(599101),l=n(785893),u=["imgUrl","className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t150?u(!1):u(!0)}),[]);return(0,f.useEffect)((function(){return window.addEventListener("scroll",h),function(){return window.removeEventListener("scroll",h)}}),[h]),(0,D.jsx)("div",{className:s()(Qe().banner,(p||l)&&Qe().hidden),children:(0,D.jsx)(qe.e,{accent:"info",hideIcon:!0,fullPageWidth:!0,button:(0,D.jsxs)(ze.t,{variant:"secondary",size:"small",fullWidth:!0,wrap:!0,href:r,onClick:function(){!function(e){var t=e.subject,n=e.cta_name,r=e.cta_location,i=e.cta_destination,o=e.page_type;(0,Ue.JZ)({event_name:Ve,json_data:{subject:t,cta_name:n,cta_location:r,cta_destination:i,page_type:o}})}({subject:t,cta_name:o(Ye.controlAnchor),cta_location:a,cta_destination:r,page_type:i})},children:[o(Ye.controlAnchor),(0,D.jsx)(He.t,{svg:Fe.Z})]}),onRequestClose:function(){!function(e){var t=e.subject,n=e.cta_location,r=e.page_type;(0,Ue.JZ)({event_name:We,json_data:{subject:t,cta_location:n,page_type:r}})}({subject:t,cta_location:a,page_type:i}),window.removeEventListener("scroll",h),g(!0)},children:(0,D.jsx)(q.t,{variant:"default-regular",children:(0,D.jsx)(Be._H,{id:"LearningHub.StickyBanner.LearnText",defaultMessage:"Learn {subject} effectively",values:{subject:n}})})})})},Je=n(715067),Ke=n(436974),Xe=n(974654);function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var tt,nt={Renderer:function(e){var t=e.data;return(0,D.jsx)(Xe._,{cards:t.cards||[]})},id:"HowToCTA",title:"HowTo CTA block",description:"2 cards with CTA buttons for group vs private lessons.",version:1,createInitialData:function(){return{cards:[{heading:"Change heading",subline:"Change subline",buttonUrl:"https://preply.com",buttonAnchor:"Change link",variant:"group"},{heading:"Change heading",subline:"Change subline",buttonUrl:"https://preply.com",buttonAnchor:"Change link",variant:"private"}]}},controls:{type:"autoform",schema:{properties:{cards:{type:"array",items:{type:"object",properties:function(e){for(var t=1;t30?[]:Zn({perPage:e.perPage,orderBy:[p.SjO.IdDesc],seoPageFilter:{language:i,pageType:p.mby.Landing,tag:e.seoPageTag,noindex:!1},headers:o}).then((function(e){return Vn(e)})):(0,Rn.P)({language:i,categoryAlias:e.categoryAlias,tagAlias:e.tagAlias,perPage:e.perPage})}))).then((function(e){return e.reduce((function(e,t,i){return Bn(Bn({},e),{},(0,r.Z)({},n[i].nodeId,t))}),{})})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Fn=n(836634),qn=n(618227),Gn=n(250296),Qn=n(574950),Yn=n(954582),$n=n(716219),Jn=[{lang:p.SQ0.En,case:"nominative"},{lang:p.SQ0.De,case:"nominative"},{lang:p.SQ0.It,case:"it_article"},{lang:p.SQ0.Es,case:"nominative"},{lang:p.SQ0.Fr,case:"accusative"},{lang:p.SQ0.Pt,case:"nominative"},{lang:p.SQ0.Pl,case:"genitive"}],Kn=n(178860),Xn=n(496627),er=n(757580),tr=n(327251),nr=n(532588),rr=n.n(nr),ir=function(e){var t=e.isOpen,n=e.setRuleIdSelected,r=e.children,i=(0,f.useRef)(null),o=function(){var e;null===(e=i.current)||void 0===e||e.close(),n(null)};return(0,f.useEffect)((function(){var e;t&&(null===(e=i.current)||void 0===e||e.showModal())}),[t]),(0,D.jsxs)("dialog",{ref:i,className:rr().modal,onCancel:function(){return n(null)},onClick:function(e){e.target===i.current&&o()},children:[(0,D.jsx)("div",{className:rr().closeButtonContainer,children:(0,D.jsx)(tr.P,{onClick:o})}),r]})};function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t")}})})},hr=n(416127),vr=n(821428),mr=function(e){var t=e.exampleText,n=e.correct;return(0,D.jsxs)(k.t,{alignItems:"center",gap:"12",nowrap:!0,children:[(0,D.jsx)(He.t,{size:"24",svg:n?vr.Z:hr.Z}),(0,D.jsx)(q.t,{variant:"default-regular-italic",children:t})]})},br=n(551644),yr=n.n(br),jr=function(e){var t=e.state,n=JSON.parse(t).document.nodes[0].nodes;return(0,D.jsx)("div",{className:yr().tableContainer,children:(0,D.jsxs)("table",{className:yr().table,children:[(0,D.jsx)("thead",{children:(0,D.jsx)("tr",{children:n[0].nodes.map((function(e,t){return(0,D.jsx)("th",{children:e.nodes[0].nodes[0].text},t)}))})}),(0,D.jsx)("tbody",{children:n.map((function(e,t){return 0!==t&&(0,D.jsx)("tr",{children:e.nodes.map((function(e,t){return(0,D.jsx)("td",{children:e.nodes[0].nodes[0].text},t)}))},t)}))})]})})},_r=[(0,D.jsx)(Be._H,{defaultMessage:"Explanation",id:"LearningHub.GrammarRules.Modal.Explanation"}),(0,D.jsx)(Be._H,{defaultMessage:"Example",id:"LearningHub.GrammarRules.Modal.Example"}),(0,D.jsx)(Be._H,{defaultMessage:"Common mistakes",id:"LearningHub.GrammarRules.Modal.Mistakes"}),(0,D.jsx)(Be._H,{defaultMessage:"Additionally",id:"LearningHub.GrammarRules.Modal.Additionally"})],xr=function(e){var t=e.blocks,n=e.heading;return(0,D.jsx)(it.t,{padding:{_:["24","0","0"],"medium-l":["32","0","0"]},children:(0,D.jsxs)(k.t,{padding:{_:["0","16","24"],"medium-l":["0","32","32"]},direction:"column",gap:"16",children:[(0,D.jsx)(S.t,{tag:"h2",variant:"large",children:n}),(0,D.jsx)(k.t,{direction:"column",gap:"16",children:null===t||void 0===t?void 0:t.map((function(e,t){var n;return(0,D.jsxs)(k.t,{direction:"column",gap:"12",children:[!!_r[t]&&(0,D.jsx)(q.t,{variant:"large-semibold",children:_r[t]}),null===(n=e.gears)||void 0===n?void 0:n.map((function(e){return e.type===p.tdV.Text?(0,D.jsx)(gr,{text:e.payload.text},e.id):e.type===p.tdV.Example?e.payload.exampleItems.map((function(e,t){return(0,D.jsx)(mr,{exampleText:e.text,correct:e.isCorrect},t)})):e.type===p.tdV.Table?(0,D.jsx)(jr,{state:e.payload.state},e.id):null}))]},e.id)}))})]})})},wr=n(543129),Or={beginner:{name:(0,D.jsx)(Be._H,{defaultMessage:"Beginners",id:"LearningHub.GrammarRules.Tabs.Beginners"}),levels:"A0-A2"},intermediate:{name:(0,D.jsx)(Be._H,{defaultMessage:"Intermediate",id:"LearningHub.GrammarRules.Tabs.Intermediate"}),levels:"B1-B2"},advanced:{name:(0,D.jsx)(Be._H,{defaultMessage:"Advanced",id:"LearningHub.GrammarRules.Tabs.Advanced"}),levels:"C1-C2"}},Pr=function(e){var t=e.levels,n=e.tabSelected,r=e.setTabSelected;return(0,D.jsx)(wr.f,{onChange:function(e){r(parseInt(e,10))},type:"fixed",defaultValue:"0",value:"".concat(n),items:t.map((function(e,t){return{value:"".concat(t),label:(0,D.jsxs)(k.t,{gap:{_:"0","medium-l":"8"},direction:{_:"column-reverse","medium-l":"row"},children:[(0,D.jsx)(q.t,{tag:"span",variant:{_:"default-semibold","medium-l":"large-semibold"},children:Or[e].name}),(0,D.jsx)(q.t,{tag:"span",variant:{_:"default-regular","medium-l":"large-regular"},accent:"secondary",children:Or[e].levels})]})}}))})},kr=n(61695),Sr=n.n(kr),Cr=function(e){var t=e.heading,n=e.subline,r=e.grammarRules,i=e.prevTopic,o=e.nextTopic,a=(0,f.useState)(null),c=a[0],l=a[1],u=(0,f.useState)(0),d=u[0],p=u[1],g=(0,f.useMemo)((function(){var e={};return null===r||void 0===r||r.forEach((function(t){null!==t&&void 0!==t&&t.level.startsWith("A")?e.beginner=[].concat((0,_e.Z)((null===e||void 0===e?void 0:e.beginner)||[]),[t]):null!==t&&void 0!==t&&t.level.startsWith("B")?e.intermediate=[].concat((0,_e.Z)((null===e||void 0===e?void 0:e.intermediate)||[]),[t]):t&&(e.advanced=[].concat((0,_e.Z)((null===e||void 0===e?void 0:e.advanced)||[]),[t]))})),Object.values(e).forEach((function(e){e.sort((function(e,t){return e.level.localeCompare(t.level)}))})),e}),[r]),h=(0,f.useMemo)((function(){var e=Object.keys(g);return["beginner","intermediate","advanced"].filter((function(t){return e.includes(t)}))}),[g]);return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(k.t,{direction:"column",children:(0,D.jsxs)(k.t,{direction:"column",gap:{_:"16","medium-l":"32"},children:[!!t&&(0,D.jsx)(S.t,{variant:"extraLarge",tag:"h1",children:t}),!!n&&(0,D.jsx)(q.t,{tag:"div",variant:"default-regular",children:(0,D.jsx)(er.D,{text:n,mobileOnly:!0})}),(0,D.jsx)(Pr,{levels:h,tabSelected:d,setTabSelected:p}),h.map((function(e,t){var n,r,i,o;return(0,D.jsx)("div",{className:s()(Sr().rules,d===t&&Sr().active),children:(0,D.jsx)(k.t,{direction:"column",gap:"16",children:1===(null===(n=g[e])||void 0===n?void 0:n.length)?(0,D.jsx)(xr,{blocks:(null===(r=g[e])||void 0===r||null===(r=r[0].content)||void 0===r?void 0:r.steps[0].blocks)||[],heading:(null===(i=g[e])||void 0===i?void 0:i[0].name)||""}):null===(o=g[e])||void 0===o?void 0:o.map((function(e){var t;return(0,D.jsxs)(f.Fragment,{children:[(0,D.jsx)(fr,{title:e.name,onClick:function(){return l(e.id)}}),(0,D.jsx)(ir,{isOpen:c===e.id,setRuleIdSelected:l,children:(0,D.jsx)(xr,{blocks:(null===(t=e.content)||void 0===t?void 0:t.steps[0].blocks)||[],heading:e.name})})]},e.id)}))})},e)})),!!(null!==i&&void 0!==i&&i.url||null!==o&&void 0!==o&&o.url)&&(0,D.jsx)(ur,{prevTopic:i,nextTopic:o})]})})})},Er="grammarRules",Ir=function(e){return{Renderer:function(t){var n=t.data,r=t.nodeId;return(0,D.jsx)(Cr,{heading:n.heading,subline:n.subline,grammarRules:(null===e||void 0===e?void 0:e[r])||[],prevTopic:n.previousTopic,nextTopic:n.nextTopic})},id:Er,title:"Grammar Rules",description:"Complex block with grammar rules from EDU.",version:1,controls:{type:"autoform",schema:{properties:{heading:{type:"string"},subline:{type:"string"},previousTopic:{type:"object",properties:{name:{type:"string"},url:{type:"string"}}},nextTopic:{type:"object",properties:{name:{type:"string"},url:{type:"string"}}},ids:{type:"array",items:{type:"string"}}}}}}},Tr=n(734155),Dr=(0,Nn.ZP)(ar||(ar=(0,Ln.Z)(["\n query GrammarRules($ids: [_GrammarRuleFilter!], $subject: String) {\n grammarRule(filter: { OR: $ids }, subjectAlias: $subject) {\n id\n level\n name\n content {\n id\n steps {\n id\n blocks {\n id\n title\n gears {\n id\n type\n payload {\n ... on TextGear {\n id\n text\n }\n ... on ExampleGear {\n id\n exampleItems {\n id\n text\n isCorrect\n }\n }\n ... on TableGear {\n id\n state\n }\n }\n }\n }\n }\n }\n }\n }\n"]))),Rr=function(){var e=(0,wn.Z)(Pn().mark((function e(t){var n,r,i;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.headers,r=t.ids,i=t.subject,e.abrupt("return",(0,Mn.P)({headers:n,query:Dr,variables:{ids:r,subject:i},host:Tr.env.EDU_API_GQL_ENDPOINT}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;tg,displayNextSentence:function(){t>=g&&h(t+1)}},e.id)})),!!m[+s]&&(0,D.jsx)(k.t,{gap:"16",children:null===(t=m[+s].options)||void 0===t?void 0:t.map((function(e){return(0,D.jsx)(Yr.d,{onClick:function(){var t;i(),d(ji(ji({},u),{},(0,r.Z)({},s,e))),e===m[+s].answer&&(c(s+1),t=m[+s].id,v.current.add(t),v.current.size===m.length&&o())},label:e},"".concat(s).concat(e))}))})]})},Oi=function(e){var t=e.id,n=e.steps,r=e.subject,i=e.parentUnit,o=e.contentType,a=e.title,s=n[0],c=null===i||void 0===i?void 0:i[0],l=null===c||void 0===c?void 0:c.parentContentTopic[0];return{subject:r,curriculum_id:t,exercise_title:a,content_topic_id:null===l||void 0===l?void 0:l.id,level_chosen:null===c||void 0===c?void 0:c.level,content_type:o,entrance_type:"LEARNING_HUB",exercise_type:s.templateType}},Pi=function(e){(0,Ue.JZ)({event_name:"exercise_started",json_data:Oi(e)})},ki=function(e){(0,Ue.JZ)({event_name:"exercise_completed",json_data:Oi(e)})},Si=n(760509),Ci=n.n(Si),Ei=function(e){var t,n=e.option,i=e.isAnswered,o=e.setIsAnswered,a=e.onQuestionStart,c=e.onQuestionComplete,l=e.questionId,u=(0,f.useState)(!1),d=u[0],p=u[1];return(0,D.jsx)("label",{className:Ci().label,htmlFor:n.text,children:(0,D.jsxs)(k.t,{nowrap:!0,alignItems:"center",gap:"8",children:[(0,D.jsx)("input",{id:n.text,onChange:function(){null===a||void 0===a||a(),p(!0),n.isCorrect&&(o(!0),null===c||void 0===c||c(l))},type:"checkbox",checked:d,disabled:i||d,className:s()((t={},(0,r.Z)(t,Ci().input,!0),(0,r.Z)(t,Ci().correct,d&&n.isCorrect),(0,r.Z)(t,Ci().wrong,d&&!n.isCorrect),t))}),(0,D.jsx)(q.t,{variant:"default-regular",children:n.text})]})})},Ii=function(e){var t=e.question,n=e.onQuestionStart,r=e.onQuestionComplete,i=(0,f.useState)(!1),o=i[0],a=i[1];return(0,D.jsxs)(k.t,{direction:"column",gap:"24",children:[(0,D.jsx)(q.t,{accent:"primary",variant:"default-semibold",children:t.text}),t.options.map((function(e){return(0,D.jsx)(Ei,{onQuestionStart:n,onQuestionComplete:r,questionId:t.id,option:e,isAnswered:o,setIsAnswered:a},e.id)}))]})},Ti=(_i={},(0,r.Z)(_i,p.tdV.Text,(function(e){var t=e.payload;return(0,D.jsx)(q.t,{variant:"default-regular",children:(0,D.jsx)("span",{dangerouslySetInnerHTML:{__html:t.text.replace(/\n/g,"
")}})})})),(0,r.Z)(_i,p.tdV.Questionnaire,(function(e){var t=e.payload,n=e.onExerciseStart,r=e.onExerciseComplete,i=(0,f.useRef)(new Set),o=function(e){i.current.add(e),i.current.size===t.questions.length&&(null===r||void 0===r||r())};return(0,D.jsx)(xe.J,{columns:{_:1,"medium-l":2},gap:{_:"32","medium-l":"48"},children:t.questions.map((function(e){return(0,D.jsx)(Ii,{onQuestionStart:n,onQuestionComplete:o,question:e},e.id)}))})})),_i),Di=function(e){var t=e.gear,n=e.onExerciseStart,r=e.onExerciseComplete,i=t.type,o=Ti[i];return o?(0,D.jsx)(o,{payload:t.payload,onExerciseStart:n,onExerciseComplete:r}):(0,D.jsx)(D.Fragment,{children:"Gear type not supported"})},Ri=function(e){var t=e.exerciseGears,n=e.onExerciseStart,r=e.onExerciseComplete;return(0,D.jsx)(k.t,{direction:"column",gap:"32",children:t.map((function(e){return(0,D.jsx)(Di,{onExerciseStart:n,onExerciseComplete:r,gear:e},e.id)}))})},Li=n(70234),Ni=n(447355);function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=2&&(0,D.jsx)(Hi,{answer:o})]}),(0,D.jsx)("span",{children:S[1]})]})};function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t# review} other {# reviews}}",values:{number:o.numberReviews,b:function(e){return(0,D.jsx)(Kt.t,{weight:"bold",accent:"tertiary",children:e})}}})})]}):null]})]})},To=n(633600),Do=n.n(To),Ro=function(e){var t,n,r=e.tutor,i=e.maskLinks,o="".concat(r.publicUrl,"?source=cms_tutors_feed#requestBook");return(0,D.jsx)("div",{className:Do().cardWrapper,children:(0,D.jsxs)(k.t,{direction:"column",gap:"12",children:[(0,D.jsxs)(k.t,{gap:"12",nowrap:!0,children:[(0,D.jsx)(fo.t,{src:null===(t=r.user)||void 0===t||null===(t=t.profile)||void 0===t?void 0:t.avatarUrlHttps,size:"96"}),(0,D.jsx)(Io,{tutor:r,maskLinks:i})]}),(0,D.jsx)(vo,{headline:r.headline||"",shortBio:(null===(n=r.seoSnippet)||void 0===n?void 0:n.shortBio)||"",tutorUrl:r.publicUrl||"",maskLinks:i}),(0,D.jsx)("div",{children:(0,D.jsx)(ze.t,{variant:"secondary",onClick:function(){i&&(window.location.href=o)},href:i?void 0:o,children:(0,D.jsx)(Be._H,{id:"cms.tutors_feed.tutor_card.book.button",defaultMessage:"Book trial lesson"})})})]})})},Lo=function(e){var t=e.tutors,n=e.heading,r=e.links,i=e.tutorsToShow,o=e.viewAllAnchor,a=e.searchPageUrl,s=e.maskTutorsLinks,c=(0,po.M)();return(0,D.jsxs)(k.t,{direction:"column",gap:"16",children:[(0,D.jsxs)(k.t,{direction:"column",gap:"8",children:[n?(0,D.jsx)(S.t,{variant:"large",tag:"h2",children:n}):null,null!==r&&void 0!==r&&r.length?(0,D.jsx)(k.t,{gap:{_:"8"},children:r.map((function(e){return(0,D.jsx)(ze.t,{variant:"secondary",href:e.href,children:e.anchor},e.href)}))}):null]}),(0,D.jsx)(xe.J,{columns:["repeat(auto-fit, minmax(min(100%, 400px), 1fr))"],gap:{_:"16"},children:t.slice(0,i).map((function(e){return(0,D.jsx)(Ro,{tutor:e,maskLinks:s},e.id)}))}),o?(0,D.jsx)(oe.t,{alignSelf:"center",children:(0,D.jsx)(ze.t,{variant:"ghost",href:a,children:o})}):null,c?(0,D.jsx)(uo.Z,{eventLocation:"cms_seo_page_tutors_feed_review_verification"}):null]})},No="tutorsFeed",Mo=function(e){return{Renderer:function(t){var n=t.data,r=t.nodeId;return(0,D.jsx)(Lo,{heading:n.heading,links:n.links,tutorsToShow:n.tutorsToShow,searchPageUrl:n.searchPageUrl,viewAllAnchor:n.viewAllAnchor,maskTutorsLinks:n.maskTutorsLinks,tutors:e[r]||[]})},id:No,title:"Tutors feed",description:"A feed of tutors",version:1,controls:{type:"autoform",schema:{properties:{searchPageUrl:{type:"string",title:"Search page URL (starting with https://)"},maskTutorsLinks:{type:"boolean",title:"Mask tutors links"},viewAllAnchor:{type:"string",title:"View all tutors anchor"},heading:{type:"string",title:"Heading"},links:{type:"array",title:"Links",items:{type:"object",properties:{href:{type:"string",title:"Href"},anchor:{type:"string",title:"Anchor"}}}},tutorsToShow:{type:"number",title:"Tutors to show"}}}}}},Ao=n(109006),Zo=n.n(Ao),zo=function(e){var t=e.columns,n=e.rows;return(0,D.jsx)("div",{className:Zo().ratesTableContainer,children:(0,D.jsx)("div",{className:Zo().ratesTableWrapper,children:(0,D.jsxs)("table",{className:Zo().ratesTable,children:[(0,D.jsx)("thead",{children:(0,D.jsx)("tr",{children:t.map((function(e){return(0,D.jsx)("th",{children:e.title},e.key)}))})}),(0,D.jsx)("tbody",{children:n.map((function(e,n){return(0,D.jsx)("tr",{children:t.map((function(t){return(0,D.jsx)("td",{children:e[t.key]},t.key)}))},e.id||n)}))})]})})})};function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;tClasses ",values:{count:i,icon:function(){return(0,D.jsx)(He.t,{svg:qo,size:"24"})},t:function(e){return(0,D.jsx)(q.t,{tag:"span",variant:"default-semibold",children:e})}}})})}),(0,D.jsx)("div",{className:Qo().textLabel,children:(0,D.jsx)(q.t,{tag:"div",variant:"default-semibold",children:(0,D.jsx)(Be._H,{id:"group_lessons_space.class_card.pricng.text",defaultMessage:"{currency}{minPrice} - {currency}{maxPrice} Price range ",values:{minPrice:o,maxPrice:a,currency:s,t:function(e){return(0,D.jsx)(q.t,{tag:"span",variant:"default-regular",accent:"secondary",children:e})},icon:function(){return(0,D.jsx)(He.t,{svg:qo,size:"24"})}}})})})]}),(0,D.jsx)(q.t,{tag:"div",variant:"default-regular",children:n}),(0,D.jsx)("div",{children:(0,D.jsx)(ze.t,{variant:"secondary",size:"medium",href:void 0,onClick:function(){h(),window.open(c,"_blank")},children:(0,D.jsx)(Be._H,{id:"group_lessons_space.class_card.button",defaultMessage:"Find a class"})})})]})]})})})};function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t instead of )"}},iconUrl:{type:"string",uniforms:{component:(0,De.Q)()}},image:(0,_.Z)()}}}}},ta=(0,Nn.ZP)(Ko||(Ko=(0,Ln.Z)(["\n query SearchStats(\n $urlPath: String\n $level: String\n $tags: String\n $perPage: Int\n $fieldsToReturn: [String!]\n ) {\n allTutorsEs(\n urlPath: $urlPath\n level: $level\n tags: $tags\n perPage: $perPage\n fieldsToReturn: $fieldsToReturn\n ) {\n totalResults\n stats {\n avgPrice\n minPrice\n maxPrice\n }\n tutors {\n id\n price {\n value\n }\n }\n }\n }\n"])));function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t>0}})):[]}))).then((function(e){return e.reduce((function(e,n,i){return ra(ra({},e),{},(0,r.Z)({},t[i].nodeId,n))}),{})}))},sa="resultHash",ca=(0,Nn.ZP)(ia||(ia=(0,Ln.Z)(["\n query TestYourVocabScore($hashScore: String!) {\n testyourvocabGetScore(hashScore: $hashScore)\n }\n"]))),la=function(){var e=(0,wn.Z)(Pn().mark((function e(t){var n,r;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.headers,r=t.hashScore,e.abrupt("return",(0,Mn.P)({headers:n,query:ca,variables:{hashScore:r}}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ua=(0,Nn.ZP)(oa||(oa=(0,Ln.Z)(["\n query TestYourVocabStepOneWords {\n testyourvocabStepOneWords {\n value\n word_id\n }\n }\n"]))),da=function(){var e=(0,wn.Z)(Pn().mark((function e(t){return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,Mn.P)({headers:t,query:ua}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pa=n(423853),fa=n(463935),ga=n.n(fa),ha=(0,Be.vU)({rank:{defaultMessage:"Rank",id:"CMS.d.Table.Rank"}}),va=function(e){var t=e.csvString,n=e.showButtonCustomAnchor,i=e.hideButtonCustomAnchor,o=e.addRankColumn,a=e.rankColumnCustomText,c=(0,Be.YB)(),l=c.formatMessage,u=c.locale,d=(0,f.useState)(!0),p=d[0],g=d[1],h=(0,f.useState)(0),v=h[0],m=h[1],b=(0,f.useState)(1),y=b[0],j=b[1],_=(0,f.useMemo)((function(){var e=a||l(ha.rank),n=pa.parse(t);return o?n.map((function(t,n){return[0===n?e:n.toString()].concat((0,_e.Z)(t))})):n}),[o,t,l,a]);return(0,D.jsxs)(k.t,{direction:"column",gap:"16",children:[(0,D.jsx)("div",{className:ga().tableContainer,children:(0,D.jsxs)("table",{className:ga().table,children:[(0,D.jsx)("thead",{className:ga().thead,children:(0,D.jsx)("tr",{children:_[0].map((function(e,t){var n=o&&0===t;return(0,D.jsx)("th",{className:s()((0,r.Z)({},ga().rankColumn,n)),children:(0,D.jsx)("button",{className:ga().thButton,onClick:function(){var e;(e=t)===v?j((function(e){return-1*e})):(m(e),j(1))},children:(0,D.jsxs)(k.t,{gap:"8",alignItems:"center",nowrap:!0,children:[(0,D.jsx)(S.t,{variant:"small",tag:"div",children:e}),(0,D.jsxs)(k.t,{direction:"column",children:[(0,D.jsx)("div",{className:ga().upsidedown,children:(0,D.jsx)(He.t,{svg:jt.Z,size:"16"})}),(0,D.jsx)(He.t,{svg:jt.Z,size:"16"})]})]})})},t)}))})}),(0,D.jsx)("tbody",{children:_.slice(1).sort((function(e,t){return function(e,t){return e.localeCompare(t,u,{numeric:!0})*y}(e[v],t[v])})).map((function(e,t){return(0,D.jsx)("tr",{className:s()((0,r.Z)({},ga().hidden,p&&t>=5)),children:e.map((function(e,t){var n=o&&0===t;return(0,D.jsx)("td",{className:s()(n&&ga().rankColumn),children:n?(0,D.jsx)(S.t,{variant:"small",tag:"div",children:e}):(0,D.jsx)(q.t,{accent:"secondary",variant:"large-regular",children:e})},t)}))},t)}))})]})}),_.length>6&&(0,D.jsx)(oe.t,{alignSelf:"center",children:(0,D.jsx)(ze.t,{onClick:function(){return g((function(e){return!e}))},children:p?n||(0,D.jsx)(Be._H,{defaultMessage:"View full table",id:"CMS.d.Table.ShowFullTable"}):i||(0,D.jsx)(Be._H,{defaultMessage:"Hide full table",id:"CMS.d.Table.HideFullTable"})})})]})},ma="table",ba=function(e){return{Renderer:function(t){var n=t.data,r=t.nodeId;return(0,D.jsx)(va,{csvString:(null===e||void 0===e?void 0:e[r])||"",showButtonCustomAnchor:n.showButtonCustomAnchor,hideButtonCustomAnchor:n.hideButtonCustomAnchor,addRankColumn:n.addRankColumn,rankColumnCustomText:n.rankColumnCustomText})},id:ma,title:"Table",description:"Loads table from a CSV file",version:1,controls:{type:"autoform",schema:{properties:{csvFile:{type:"string",uniforms:{component:(0,De.Q)(),label:"CSV"}},showButtonCustomAnchor:{type:"string"},hideButtonCustomAnchor:{type:"string"},addRankColumn:{type:"boolean"},rankColumnCustomText:{type:"string"}},required:["csvFile"]}}}},ya=n(287066);function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{Renderer:function(){return(0,D.jsx)(pu,{testYourVocabResultUrl:t,words:e})},id:"VocabWords",title:"Words plugin for Test Your Vocab",version:1,childConstraints:{maxChildren:1},controls:{type:"autoform",schema:{properties:{},required:[]}}}},gu=n(890879),hu=n(265376),vu=n(576135),mu=n(711107),bu=n(687819),yu=n.n(bu),ju=function(e){var t=e.promoCode,n=e.promoCodeAnchor,r=e.bulletPoints,i=e.heading,o=(0,Be.YB)().locale,a=(0,f.useContext)(vu.a5),s=a.mobile||a.tablet,c=mu.Ig.TEST_YOUR_VOCAB(),l=(0,mu.q_)(o),u=l.appStoreImage,d=l.googlePlayImage;return(0,D.jsxs)(k.t,{direction:"column",gap:"16",children:[(0,D.jsx)(S.t,{variant:"large",tag:"h2",children:i}),t&&n?(0,D.jsx)("div",{className:yu().alert,children:(0,D.jsx)(it.t,{padding:["4","12"],background:"infoLight",radius:"2",children:(0,D.jsxs)(k.t,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsx)(oe.t,{stretch:!0,children:(0,D.jsx)(q.t,{variant:"large-regular",children:n})}),(0,D.jsx)(gu.t,{size:"small",svg:hu.Z,assistiveText:"Copy promo code",variant:"ghost",onClick:function(){navigator.clipboard.writeText(t)}})]})})}):null,r?(0,D.jsx)("ul",{className:yu().list,children:r.map((function(e){return(0,D.jsxs)("li",{className:yu().listItem,children:[(0,D.jsx)("span",{children:(0,D.jsx)(vr.Z,{})}),(0,D.jsx)(q.t,{variant:"large-regular",children:e})]},e)}))}):null,(0,D.jsxs)(k.t,{gap:{_:"16","medium-l":"24"},children:[(0,D.jsx)("button",{className:yu().AppBadgeLink,onClick:function(){window.open(s?c:Fn.y5.appStore,"_blank"),ru({platform:"ios"})},children:(0,D.jsx)(C.t3,{src:u,alt:"App store",className:yu().BadgeImage})}),(0,D.jsx)("button",{className:yu().AppBadgeLink,onClick:function(){window.open(s?c:Fn.y5.googlePlay,"_blank"),ru({platform:"android"})},children:(0,D.jsx)(C.t3,{src:d,alt:"Google play",className:yu().BadgeImage})})]})]})};function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var xu={Renderer:function(e){var t=e.data;return(0,D.jsx)(ju,function(e){for(var t=1;tt.threshold}))}(e))&&void 0!==t?t:Cu[Cu.length-1]};function Iu(e){return(0,D.jsx)("div",{className:s()(Su().border,Su().shadow,Su().score),children:(0,D.jsxs)(k.t,{direction:"column",padding:"24",alignItems:"center",justifyContent:"center",children:[(0,D.jsx)(S.t,{tag:"h3",variant:"huge",centered:!0,children:e.score}),(0,D.jsx)(q.t,{variant:"large-semibold",centered:!0,children:(0,D.jsx)(Be._H,{id:"testYourVocab.ResultsHero.resultWordsCount",defaultMessage:"words"})})]})})}function Tu(e){return(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{className:Su().border,children:(0,D.jsx)(k.t,{direction:"row",alignItems:"end",justifyContent:"center",gap:"4",padding:["8","24","16","24"],children:Cu.concat().reverse().map((function(t){var n;return(0,D.jsx)("div",{children:(0,D.jsxs)(k.t,{direction:"column",alignItems:"center",justifyContent:"center",children:[e.value.level===t.level&&(0,D.jsx)(He.t,{svg:Pu.Z}),(0,D.jsx)("div",{className:s()(Su().tick,(n={},(0,r.Z)(n,Su().red,"red"===t.color),(0,r.Z)(n,Su().yellow,"yellow"===t.color),(0,r.Z)(n,Su().green,"green"===t.color),n))})]})},t.level)}))})}),(0,D.jsxs)(k.t,{justifyContent:"space-between",padding:["8","0","0"],children:[(0,D.jsx)(q.t,{variant:"small-regular",accent:"tertiary",children:(0,D.jsx)(Be._H,{id:"testYourVocab.ResultsHero.beginner",defaultMessage:"Beginner"})}),(0,D.jsx)(q.t,{variant:"small-regular",accent:"tertiary",children:(0,D.jsx)(Be._H,{id:"testYourVocab.ResultsHero.proficient",defaultMessage:"Proficient"})})]})]})}function Du(e){var t=Eu(e.score);return(0,D.jsxs)(k.t,{direction:"column",gap:"16",children:[(0,D.jsx)(Iu,{score:e.score}),(0,D.jsx)(Tu,{value:t})]})}var Ru=n(876854),Lu=n.n(Ru);function Nu(e){var t=e.share,n=e.underShareText,r=e.score,i=void 0===r?0:r,o=(0,v.useRouter)().query;return(0,D.jsxs)(k.t,{alignItems:"center",direction:"column",gap:"16",children:[(0,D.jsx)("div",{children:(0,D.jsx)(k.t,{gap:"16",children:null===t||void 0===t?void 0:t.map((function(e){var t=e.platform,n=e.files,r=e.link,a=e.text;return(0,D.jsx)(f.Fragment,{children:!!t&&(0,D.jsx)(Ou.Q,{isRebranded:!0,link:"".concat(r,"?").concat(sa,"=").concat(o[sa]),text:a,platform:t,filesUrls:n,onClickAction:function(){!function(e){var t=e.score,n=e.source;(0,Ue.JZ)({event_name:"test_your_vocab_social_button_clicked",json_data:{social_source:n,score:1e3*Math.round(t/1e3)}})}({score:i,source:t})},monochrome:!0})},t)}))})}),!!n&&(0,D.jsx)(q.t,{variant:"large-regular",children:n})]})}var Mu=function(e){var t=e.text,n=e.testYourVocabUrl,r=e.share,i=e.underShareText,a=e.score,s=void 0===a?0:a,c=e.pageTitle,l=c?c.replace("{score}",s.toString()):"";return(0,f.useEffect)((function(){!function(e){var t=e.score;(0,Ue.JZ)({event_name:"test_your_vocab_finished",json_data:{score:1e3*Math.round(t/1e3)}})}({score:s})}),[s]),(0,f.useEffect)((function(){s||(window.location.href=n)}),[s,n]),(0,D.jsxs)("div",{className:Lu().container,children:[(0,D.jsx)(o(),{children:l?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("title",{children:l}),(0,D.jsx)("meta",{property:"og:title",content:l}),(0,D.jsx)("meta",{property:"twitter:title",content:l})]}):null}),(0,D.jsxs)("div",{className:Lu().grid,children:[(0,D.jsx)("div",{className:Lu().main,children:(0,D.jsx)(k.t,{direction:"column",alignItems:{_:"center","medium-l":"start"},gap:{_:"32"},children:t})}),(0,D.jsx)("div",{className:Lu().gauge,children:(0,D.jsx)(Du,{score:s})}),(0,D.jsx)("div",{className:Lu().share,children:(0,D.jsx)(Nu,{share:r,underShareText:i,score:s})})]})]})},Au=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{Renderer:function(n){var r=n.children,i=n.data;return(0,D.jsx)(Mu,{testYourVocabUrl:t,score:e,text:r,share:i.share,underShareText:i.underShareText,pageTitle:i.pageTitle})},id:"testYourVocabResultsHero",title:"Result Hero",description:"Hero block for Test Your Vocab results page. Use at the top of the page.",version:1,cellPlugins:function(){return[rt.m]},createInitialChildren:function(){return[[{plugin:rt.m,data:rt.m.createData((function(e){return{children:[{plugin:e.plugins.paragraphs.text,children:["Add Heading and Subline here"],data:{size:"l"}}]}}))}]]},childConstraints:{maxChildren:1},migrations:[],controls:{type:"autoform",schema:{properties:{pageTitle:{type:"string",title:"Page (you can use {score} placeholder)"},underShareText:{type:"string"},share:{type:"array",items:{type:"object",properties:{platform:{type:"string",enum:wu.D},text:{type:"string"},link:{type:"string"},files:{type:"array",items:{type:"string",uniforms:{component:(0,De.Q)()}}}}}}}}}}},Zu=n(121896),zu=n(190019),Hu=n.n(zu),Bu=function(e){var t=e.text,n=e.cards;return(0,D.jsxs)(xe.J,{gap:{_:"24","medium-l":"48"},children:[(0,D.jsx)("div",{className:Hu().text,children:t}),(0,D.jsx)("div",{className:Hu().cards,children:n.map((function(e){var t=e.image,n=e.title,r=e.description;return(0,D.jsx)("div",{className:Hu().card,children:(0,D.jsxs)(k.t,{padding:"24",direction:"column",gap:"24",children:[(0,D.jsx)("img",{className:Hu().image,src:t,alt:n}),(0,D.jsxs)(k.t,{direction:"column",gap:"8",children:[(0,D.jsx)(S.t,{variant:"medium",tag:"h3",children:n}),(0,D.jsx)(q.t,{accent:"secondary",variant:"default-regular",children:r})]})]})},t)}))})]})};function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uu(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wu={Renderer:function(e){var t=e.data,n=e.children;return(0,D.jsx)(Bu,Vu(Vu({},t),{},{text:n}))},id:"HowItWorksPlacemntResult",title:"How it works Result",description:"Block with how it works section for placement test result pages.",version:1,cellPlugins:function(){return[rt.m]},createInitialChildren:function(){return[[{plugin:rt.m,data:rt.m.createData((function(e){return{children:[{plugin:e.plugins.paragraphs.text,children:["How Preply works"],data:{size:"m"}}]}}))}]]},createInitialData:function(){return{cards:[]}},childConstraints:{maxChildren:1},controls:{type:"autoform",schema:{required:["cards"],properties:{cards:{type:"array",items:{type:"object",properties:{image:{type:"string",uniforms:{component:(0,De.Q)()}},title:{type:"string"},description:{type:"string"}}}}}}}},Fu=n(395360),qu=n(300656),Gu=n(828149),Qu=n(10349),Yu=n.n(Qu),$u=function(e){var t=e.text,n=e.buttonUrl,i=e.buttonAnchor,o=e.image,a=e.eventName,s=e.eventProperties,c=e.ctaRedirectsToMatcher,l=void 0===c||c,u=(0,f.useContext)(mt.A).subject,d=(0,Be.YB)().locale,p=(0,gt.Mz)(),g=(0,po.M)();return(0,D.jsxs)(k.t,{direction:"row-reverse",alignItems:"center",gap:"64",nowrap:!0,children:[(0,D.jsxs)("div",{className:Yu().image,children:[(0,D.jsx)(Fu.e_,{src:o.src,width:496,srcSet:(0,C.oO)(o),repetition:"growing",distance:p?56:112,sizes:(0,C.f7)({_:292,"medium-s":496}),fetchPriority:"high"}),g?(0,D.jsx)(is.Z,{eventLocation:"cms_seo_page_generic_hero_illustrative_image"}):null]}),(0,D.jsx)("div",{className:Yu().content,children:(0,D.jsxs)(k.t,{direction:"column",alignItems:{_:"center","medium-l":"start"},gap:{_:"12"},children:[(0,D.jsx)(q.t,{tag:"div",variant:"default-regular",children:t}),!!n&&!!i&&(0,D.jsx)(ze.t,{onClick:function(){(0,Ke.Z)({eventName:a,eventProperties:s}),l&&(window.location.href=(0,Gu.h)(qu.wO[d],(0,r.Z)({subject:u||"english"},Fn.Eb,"CMS_HERO_CTA")))},size:"large",url:l?void 0:n,wrap:!0,children:i})]})})]})};function Ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ju(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xu={Renderer:function(e){var t=e.data,n=e.children;return(0,D.jsx)($u,Ku({text:n},t))},id:"hero",title:"Hero",description:"Generic hero block (originally for Test Your Vocab and Placement Test). Use at the top of the page.",version:2,migrations:[{fromVersion:1,toVersion:2,migrate:function(e){return Ku(Ku({},e),{},{image:(0,x.w)(e.imgUrl)})}}],cellPlugins:function(){return[rt.m]},createInitialChildren:function(){return[[{plugin:rt.m,data:rt.m.createData((function(e){return{children:[{plugin:e.plugins.paragraphs.text,children:["Add Heading and Subline here"],data:{size:"l"}}]}}))}]]},createInitialData:function(){return{buttonAnchor:"Start the test",buttonUrl:"/",image:{src:""}}},childConstraints:{maxChildren:1},controls:{type:"autoform",schema:{properties:Ku({ctaRedirectsToMatcher:{type:"boolean",default:!0},buttonUrl:{type:"string",uniforms:{showIf:function(e){return!e.ctaRedirectsToMatcher}}},buttonAnchor:{type:"string"},image:(0,_.Z)()},Ke.M)}}},ed=n(482606),td=function(e){var t=e.id,n=e.isB2BPlacementTest,r=(0,v.useRouter)().query,i=(0,f.useContext)(mn).currentUser,o=(0,gt.Mz)(),a=(0,f.useMemo)((function(){var e={};return n&&(e.email=null===i||void 0===i?void 0:i.email,e.token=r.token),e}),[null===i||void 0===i?void 0:i.email,n,r.token]);return(0,f.useEffect)((function(){n?function(e){var t=e.subject,n=new URLSearchParams(window.location.search);(0,Ue.JZ)({event_name:"page_viewed",json_data:{subject:t,page_name:"b2b_language_test_questions"}}),(0,Ue.JZ)({event_name:"b2b_language_test_questions_viewed",json_data:{subject:t,token:n.get("token")}})}({subject:r.subject}):function(e){var t=e.subject,n=new URLSearchParams(window.location.search);(0,Ue.JZ)({event_name:"page_viewed",json_data:{subject:t,page_name:"public_placement_test_questions_general",utm_source:n.get("utm_source"),utm_medium:n.get("utm_medium")}})}({subject:r.subject})}),[n,r.subject]),(0,D.jsx)(ed.Widget,{inlineOnMobile:!0,height:o?450:650,id:t,hidden:a})},nd={Renderer:function(e){var t=e.data;return(0,D.jsx)(td,{id:t.id,isB2BPlacementTest:t.isB2BPlacementTest})},id:"placementQuestionsTypeform",title:"Placement Questions Typeform",description:"Typeform block for placement test questions page.",version:1,createInitialData:function(){return{id:""}},controls:{type:"autoform",schema:{properties:{id:{type:"string"},isB2BPlacementTest:{type:"boolean",default:!1}},required:["id"]}}},rd=n(178520),id=n.n(rd),od=["A0","A1","A2","B1","B2","C1","C2"],ad=["",""].concat(od,["",""]),sd=function(e){var t=e.text,n=e.buttonUrl,i=e.buttonAnchor,o=e.currentLevel,a=e.eventName,c=e.eventProperties,l=e.share,u=e.underShareText,d=e.isB2BPlacementTest,p=ad.indexOf(o),g=ad.slice(p-2,p+3),h=(0,v.useRouter)().query;return(0,f.useEffect)((function(){d?function(e){var t=e.level,n=e.subject,r=new URLSearchParams(window.location.search);(0,Ue.JZ)({event_name:"b2b_language_test_questions_finished",json_data:{level:t,subject:n,token:r.get("token")}})}({subject:h.subject,level:o}):function(e){var t=e.level,n=e.subject;(0,Ue.JZ)({event_name:"public_placement_test_finished",json_data:{level:t,subject:n}})}({subject:h.subject,level:o})}),[o,d,h.subject]),(0,D.jsxs)("div",{className:id().grid,children:[(0,D.jsx)("div",{className:id().main,children:(0,D.jsxs)(k.t,{direction:"column",alignItems:{_:"center","medium-l":"start"},gap:{_:"16"},children:[t,(0,D.jsx)(ze.t,{onClick:function(){(0,Ke.Z)({eventName:a,eventProperties:c})},size:"large",url:n,children:i})]})}),(0,D.jsx)("div",{className:id().levels,children:g.map((function(e){return(0,D.jsx)("div",{className:s()(id().level,(0,r.Z)({},id().active,e===o)),children:(0,D.jsx)(S.t,{variant:e===o?"huge":"extraLarge",tag:"p",children:e})},e)}))}),(0,D.jsx)("div",{className:id().share,children:(0,D.jsxs)(k.t,{alignItems:"center",direction:"column",gap:{_:"24"},children:[u?(0,D.jsx)(q.t,{variant:{_:"large-semibold"},children:u}):null,(0,D.jsx)(k.t,{gap:{_:"24"},children:null===l||void 0===l?void 0:l.map((function(e){var t=e.platform,n=e.files,r=e.link,i=e.text;return(0,D.jsx)(f.Fragment,{children:t?(0,D.jsx)(Ou.Q,{isRebranded:!0,link:r,text:i,platform:t,filesUrls:n,monochrome:!0,onClickAction:function(){!function(e){var t=e.test_score,n=e.social_source;(0,Ue.JZ)({event_name:"public_placement_test_social_button_clicked",json_data:{social_source:n,test_score:t}})}({social_source:t,test_score:o})}}):null},t)}))})]})})]})};function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ud={Renderer:function(e){var t=e.data,n=e.children;return(0,D.jsx)(sd,ld({text:n},t))},id:"resultsHero",title:"Result Hero",description:"Hero block for placement test results page. Use at the top of the page.",version:1,cellPlugins:function(){return[rt.m]},createInitialChildren:function(){return[[{plugin:rt.m,data:rt.m.createData((function(e){return{children:[{plugin:e.plugins.paragraphs.text,children:["Add Heading and Subline here"],data:{size:"l"}}]}}))}]]},createInitialData:function(){return{currentLevel:"B1",buttonAnchor:"Try an English lesson",buttonUrl:"/",underShareText:"Share your results"}},childConstraints:{maxChildren:1},migrations:[],controls:{type:"autoform",schema:{properties:ld({currentLevel:{type:"string",enum:od},buttonUrl:{type:"string"},buttonAnchor:{type:"string"},underShareText:{type:"string"},isB2BPlacementTest:{type:"boolean",default:!1},share:{type:"array",items:{type:"object",properties:{platform:{type:"string",enum:wu.D},text:{type:"string"},link:{type:"string"},files:{type:"array",items:{type:"string",uniforms:{component:(0,De.Q)()}}}}}}},Ke.M),required:["buttonUrl","buttonAnchor","currentLevel"]}}},dd=n(524906),pd={Renderer:function(){return(0,D.jsx)(dd.T,{})},id:"trustpilotWithPreplyStats",title:"Trustpilot & Preply stats",description:"Block with Preply stats and Trustpilot widget",version:1},fd=function(e){var t=e.blocks;return(0,D.jsx)(it.t,{padding:{_:"32","medium-l":["48","96"]},radius:"8",children:(0,D.jsx)(xe.J,{columns:{_:1,"medium-l":3},gap:"48",children:null===t||void 0===t?void 0:t.map((function(e){var t=e.heading,n=e.links;return(0,D.jsxs)(k.t,{direction:"column",gap:"24",children:[(0,D.jsx)(S.t,{variant:"medium",tag:"h3",children:t}),null===n||void 0===n?void 0:n.map((function(e){var t=e.anchor,n=e.url;return(0,D.jsx)(q.t,{variant:"default-semibold",children:(0,D.jsx)(ht.t,{href:n,children:t})},n)}))]},t)}))})})},gd={Renderer:function(e){var t=e.data;return(0,D.jsx)(fd,{blocks:t.blocks})},id:"landingInterlinking",title:"Landing interlinking",description:"Landing interlinking with custon links",version:1,controls:{type:"autoform",schema:{properties:{blocks:{type:"array",items:{type:"object",properties:{heading:{type:"string"},links:{type:"array",items:{type:"object",properties:{anchor:{type:"string"},url:{type:"string"}},required:["anchor","url"]}}},required:["heading","links"],default:{heading:"Add heading here",links:[]}}}},required:["blocks"]}}},hd=n(505152),vd=n.n(hd),md=vd()((function(){return Promise.all([n.e(11310),n.e(57654)]).then(n.bind(n,557654)).then((function(e){return e.MostRecognizableLanguages}))}),{loadableGenerated:{webpack:function(){return[557654]}}}),bd={Renderer:function(){return(0,D.jsx)(md,{})},id:"mostRecognizableLanguages",title:"Most recognizable languages",description:"Quiz for Most recognizable languages page",version:1},yd=vd()((function(){return Promise.all([n.e(86880),n.e(96295)]).then(n.bind(n,96295)).then((function(e){return e.SpanishAccentGame}))}),{loadableGenerated:{webpack:function(){return[96295]}}}),jd={Renderer:function(e){var t=e.children;return(0,D.jsx)(yd,{text:t})},id:"spanishAccentGame",title:"Spanish accent game",description:"Quiz for Spanish accent game",cellPlugins:function(){return[rt.m]},createInitialChildren:function(){return[[{plugin:rt.m,data:rt.m.createData((function(e){return{children:[{plugin:e.plugins.paragraphs.text,children:["Add text here"],data:{size:"m"}}]}}))}]]},childConstraints:{maxChildren:1},version:1},_d=n(208628),xd=n(988009),wd=n(822462),Od=n(253972),Pd=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(Od.Z,{eventLocation:t}):null},kd=n(886080),Sd=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(kd.Z,{eventLocation:t}):null},Cd=n(6663),Ed=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(Cd.Z,{eventLocation:t}):null},Id=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(is.Z,{eventLocation:t}):null},Td=n(542798),Dd=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(Td.Z,{eventLocation:t}):null},Rd=function(e){var t=e.eventLocation;return(0,po.M)()?(0,D.jsx)(uo.Z,{eventLocation:t}):null},Ld=n(769624),Nd=n.n(Ld),Md=function(e){var t=e.titlePrimary,n=e.titleSecondary,r=e.titleTertiary,i=e.subheading,o=e.leftImageUrl,a=e.leftImageAlt,c=e.rightImageUrl,l=e.rightImageAlt,u=(0,f.useRef)(null);return(0,D.jsx)("div",{ref:u,children:(0,D.jsxs)(k.t,{direction:"column",alignItems:"center",gap:"16",children:[(0,D.jsxs)("div",{className:Nd().container,children:[(0,D.jsx)(C.t3,{src:o,alt:a||"",className:s()(Nd().img,Nd().imgLeft),isRemoteSrc:!0,lazyload:!1,fetchPriority:"high",width:660,height:660,sizes:"(min-width: 1667px) 660px, (min-width: 612px) 40vw, 242px"}),(0,D.jsx)("div",{className:Nd().headingContainer,children:(0,D.jsxs)(S.t,{tag:"h1",variant:"large",children:[(0,D.jsx)("span",{className:s()(Nd().text,Nd().textPrimary),children:t}),(0,D.jsx)("span",{className:s()(Nd().text,Nd().textSecondary),children:n}),(0,D.jsx)("span",{className:s()(Nd().text,Nd().textTertiary),children:r})]})}),(0,D.jsx)(C.t3,{src:c,alt:l||"",className:s()(Nd().img,Nd().imgRight),isRemoteSrc:!0,lazyload:!1,width:600,height:600,sizes:"(min-width: 1667px) 600px, (min-width: 612px) 36vw, 220px"})]}),(0,D.jsx)("div",{className:Nd().subheadingContainer,children:(0,D.jsx)(q.t,{tag:"p",variant:{_:"default-regular","medium-l":"large-regular"},centered:!0,children:(0,D.jsx)("span",{className:Nd().subheading,children:i})})}),(0,D.jsx)(gu.t,{variant:"ghost",svg:jt.Z,assistiveText:"next section",size:"large",onClick:function(){var e=u.current,t=e?e.getBoundingClientRect().bottom+window.scrollY:0,n=Array.from(document.querySelectorAll("h2")).find((function(e){return e.getBoundingClientRect().top+window.scrollY>=t}));n?window.scrollTo({top:n.getBoundingClientRect().top+window.scrollY,behavior:"smooth"}):window.scrollBy({top:window.innerHeight,behavior:"smooth"})}})]})})};function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zd={titlePrimary:"Progress",titleSecondary:"Takes",titleTertiary:"Two",subheading:"Time to celebrate the ultimate duo: tutor and learner.",leftImageUrl:"",leftImageAlt:"First Tutor",rightImageUrl:"",rightImageAlt:"Second Tutor"},Hd={Renderer:function(e){var t=e.data;return(0,D.jsx)(Md,Zd({},Zd(Zd({},zd),t)))},id:"ProgressTakesTwo",title:"Progress Takes Two section",description:"Progress Takes Two section",version:1,createInitialData:function(){return zd},controls:{type:"autoform",schema:{required:["titlePrimary","titleSecondary","titleTertiary","subheading","leftImageUrl","rightImageUrl"],properties:{titlePrimary:{type:"string"},titleSecondary:{type:"string"},titleTertiary:{type:"string"},subheading:{type:"string",uniforms:{multiline:!0,label:"Subheading (use a new line to split text)"}},leftImageUrl:{type:"string",uniforms:{component:(0,De.Q)(),label:"Left image"}},leftImageAlt:{type:"string"},rightImageUrl:{type:"string",uniforms:{component:(0,De.Q)(),label:"Right image"}},rightImageAlt:{type:"string"}}}}},Bd=n(876861),Ud=n(105016),Vd=n(603128),Wd="en",Fd=function(e){var t=e.trim();if(!t)return"";try{return new URL(t,"https://preply.com").pathname.split("/").filter(Boolean).pop()||t}catch(n){return t.split("/").filter(Boolean).pop()||t}},qd=function(e){return e.post_description||e.meta_description||""},Gd=function(e){return e.post_date?new Date(1e3*e.post_date).getUTCFullYear().toString():""},Qd=function(e){var t,n=e.loadState,r=e.title;if("idle"===n.type)return null;var i="critical",o="Error";"success"===n.type?(t="positiveLight",i="positive",o="Loaded"):"loading"===n.type&&(t="infoLight",i="info",o="Loading");var a=(0,D.jsxs)(k.t,{direction:"column",gap:"4",children:[(0,D.jsx)(q.t,{variant:"default-semibold",accent:i,children:o}),(0,D.jsx)(q.t,{variant:"caption-regular",accent:i,children:n.message}),"success"===n.type&&r?(0,D.jsxs)(q.t,{variant:"caption-regular",accent:i,children:["Loaded article: ",r]}):null]});return t?(0,D.jsx)(it.t,{background:t,padding:["8","12"],radius:"2",children:a}):a},Yd=function(){var e=(0,wn.Z)(Pn().mark((function e(t){var n,r,i,o,a,s,c,l,u,d;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.slug,r=t.languages,i=0;case 2:if(!(i<r.length)){e.next=26;break}o=r[i],a="",s=1;case 6:return e.next=8,(0,Rn.P)({language:o,perPage:100,page:s});case 8:if((l=e.sent).length){e.next=11;break}return e.abrupt("break",23);case 11:if(!(u=(null===(c=l[0])||void 0===c?void 0:c.link)||"")||u!==a){e.next=14;break}return e.abrupt("break",23);case 14:if(a=u,!(d=l.find((function(e){return Fd(e.link)===n})))){e.next=18;break}return e.abrupt("return",d);case 18:if(!(l.length<100)){e.next=20;break}return e.abrupt("break",23);case 20:s+=1,e.next=6;break;case 23:i+=1,e.next=2;break;case 26:return e.abrupt("return",null);case 27:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kd=(0,Bd.e)((function(e){var t=e.value,n=e.onChange,i=e.label,o=(0,Vd.k)(),a=(0,v.useRouter)().locale,s=(0,f.useState)((null===t||void 0===t?void 0:t.slug)||""),c=s[0],l=s[1],u=(0,f.useState)((null===t||void 0===t?void 0:t.image)||""),d=u[0],p=u[1],g=a||Wd,h=(0,f.useMemo)((function(){return function(e){return(0,_e.Z)(new Set([e,Wd].filter(Boolean)))}(g)}),[g]),m=function(e){var t=e.slugInput,n=e.languages,r=e.onChange,i=e.onSuccess,o=(0,f.useState)(!1),a=o[0],s=o[1],c=(0,f.useState)({type:"idle"}),l=c[0],u=c[1],d=function(){var e=(0,wn.Z)(Pn().mark((function e(){var o,a,c;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Fd(t)){e.next=4;break}return u({type:"error",message:"Enter an article slug first."}),e.abrupt("return");case 4:return s(!0),u({type:"loading",message:"Loading article data..."}),e.prev=6,e.next=9,Yd({slug:o,languages:n});case 9:if(a=e.sent){e.next=13;break}return u({type:"error",message:"Article not found. Check the slug and try again."}),e.abrupt("return");case 13:c={slug:o,year:Gd(a)||void 0,title:a.post_title,author_first_name:a.author_first_name||void 0,author_last_name:a.author_last_name||void 0,description:qd(a)||void 0,link:a.link,image:a.image||""},r(c),i({slug:o,image:c.image||""}),u({type:"success",message:"Article loaded. You can save the page now."}),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(6),u({type:"error",message:"Could not load article data. Try again."});case 22:return e.prev=22,s(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[6,19,22,25]])})));return function(){return e.apply(this,arguments)}}();return{isLoading:a,loadState:l,loadArticle:d,resetLoadState:function(){"idle"!==l.type&&u({type:"idle"})}}}({slugInput:c,languages:h,onChange:n,onSuccess:function(e){var t=e.slug,n=e.image;l(t),p(n)}}),b=m.isLoading,y=m.loadState,j=m.loadArticle,_=m.resetLoadState;(0,f.useEffect)((function(){l((null===t||void 0===t?void 0:t.slug)||"")}),[null===t||void 0===t?void 0:t.slug]),(0,f.useEffect)((function(){p((null===t||void 0===t?void 0:t.image)||"")}),[null===t||void 0===t?void 0:t.image]);var x=function(e,i){n(Jd(Jd({},t),{},(0,r.Z)({},e,i||void 0)))},w=function(e){p(e),n(Jd(Jd({},t),{},{image:e}))},O=function(){var e=(0,wn.Z)(Pn().mark((function e(t){var n,r,i;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(n=t.target.files)&&void 0!==n&&n[0]){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,o(t.target.files[0]);case 4:r=e.sent,i=r.url,w(i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,D.jsxs)("div",{children:[(0,D.jsx)(q.t,{variant:"caption-regular",children:i}),(0,D.jsxs)(k.t,{direction:"column",gap:"8",children:[(0,D.jsx)(Ud.Z,{label:"Article slug",value:c,onChange:function(e){return t=e.target.value,l(t),void _();var t},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),j())},margin:"dense",fullWidth:!0,helperText:"Paste an article slug or full blog URL."}),(0,D.jsx)(ze.t,{size:"medium",onClick:function(){j()},busy:b,disabled:!c.trim(),children:"Load article by slug"}),(0,D.jsx)(Ud.Z,{label:"Author first name",value:(null===t||void 0===t?void 0:t.author_first_name)||"",onChange:function(e){return x("author_first_name",e.target.value)},margin:"dense",fullWidth:!0,helperText:"Optional fallback if author is not loaded automatically."}),(0,D.jsx)(Ud.Z,{label:"Author last name",value:(null===t||void 0===t?void 0:t.author_last_name)||"",onChange:function(e){return x("author_last_name",e.target.value)},margin:"dense",fullWidth:!0,helperText:"Optional fallback if author is not loaded automatically."}),(0,D.jsx)(Ud.Z,{label:"Year",value:(null===t||void 0===t?void 0:t.year)||"",onChange:function(e){return x("year",e.target.value)},margin:"dense",fullWidth:!0}),(0,D.jsx)(Ud.Z,{label:"Title",value:(null===t||void 0===t?void 0:t.title)||"",onChange:function(e){return x("title",e.target.value)},margin:"dense",fullWidth:!0}),(0,D.jsx)(Ud.Z,{label:"Description",value:(null===t||void 0===t?void 0:t.description)||"",onChange:function(e){return x("description",e.target.value)},margin:"dense",fullWidth:!0,multiline:!0,minRows:3}),(0,D.jsx)(Ud.Z,{label:"Link",value:(null===t||void 0===t?void 0:t.link)||"",onChange:function(e){return x("link",e.target.value)},margin:"dense",fullWidth:!0}),(0,D.jsx)(Qd,{loadState:y,title:null===t||void 0===t?void 0:t.title}),d?(0,D.jsx)("img",{alt:"",style:{width:150},src:d}):null,(0,D.jsx)("input",{type:"file",onChange:function(e){O(e)}}),(0,D.jsx)(q.t,{variant:"caption-regular",children:"or existing URL"}),(0,D.jsx)("input",{value:d,onChange:function(e){return w(e.target.value)}})]})]})}),{kind:"leaf"}),Xd={type:"object",properties:{slug:{type:"string"},year:{type:"string"},title:{type:"string"},author_first_name:{type:"string"},author_last_name:{type:"string"},description:{type:"string"},link:{type:"string"},image:{type:"string"}},uniforms:{component:Kd}},ep=n(689088),tp=n.n(ep),np=function(e){var t=e.articles,n=e.buttonText,r=(0,v.useRouter)().asPath,i=(0,f.useContext)(mt.A),o=i.seoPageType,a=i.subject;return t.length?(0,D.jsx)("div",{className:tp().list,children:t.map((function(e){var t=[e.author_first_name,e.author_last_name].filter(Boolean).join(" ");return(0,D.jsxs)("article",{className:tp().article,children:[(0,D.jsx)(C.t3,{className:tp().image,src:e.image||"",width:560,height:560,sizes:{_:"min(258px, calc(100vw - 96px))","medium-l":"280px"},alt:e.title}),(0,D.jsxs)(k.t,{direction:"column",gap:{_:"16","medium-l":"0"},padding:["12","0"],alignItems:"start",justifyContent:"space-between",children:[e.year?(0,D.jsx)("div",{className:tp().metaText,children:(0,D.jsx)(q.t,{tag:"p",variant:"small-semibold",children:e.year})}):null,(0,D.jsx)(S.t,{tag:"h3",variant:{_:"medium","medium-l":"large"},children:e.title}),t?(0,D.jsx)(q.t,{tag:"p",variant:"small-semibold",children:t}):null,e.description?(0,D.jsx)(q.t,{accent:"secondary",tag:"p",variant:"default-regular",children:e.description}):null,(0,D.jsx)(q.t,{tag:"p",variant:"default-semibold",children:(0,D.jsx)(ht.t,{href:e.link,onClick:function(){return function(e){(0,vt.XY)({subject:a,cta_name:e.title,cta_type:"blog_feed",cta_location:r,cta_destination:e.link,page_type:o})}(e)},children:n})})]})]},"".concat(e.link,"_").concat(e.title))}))}):null},rp="Read the article",ip=n(384835),op=n.n(ip),ap=function(e){var t,n=e.viewName,i=e.currentUser,a=e.seoData,c=e.language,P=e.blogArticles,k=e.grammarRules,S=e.exercisesFeed,C=e.exercises,E=e.absoluteUrl,I=e.subjectName,T=e.findTutorsUrl,R=e.tutorsFeed,L=e.csvData,N=e.currency,M=e.searchStats,Z=e.testYourVocabWords,H=e.testYourVocabUrl,B=e.testYourVocabResultUrl,U=e.testYourVocabScore,q=e.cmsExperimentFlagValues,G=(0,v.useRouter)(),Q=G.query,Y=G.asPath,$=(0,y.R)().isRebranded,J=(0,f.useRef)(null),K=a.allFooterGroups,X=a.seoPage,ee=Y.split("#")[0].split("?")[0],te=new Set(["progress-takes-two"]).has(n),ne={currentUser:i,currency:N,seoTitle:(null===X||void 0===X?void 0:X.seoTitle)||"",seoMetaDescription:(null===X||void 0===X?void 0:X.seoMetaDescription)||"",seoPageCreated:(null===X||void 0===X?void 0:X.created)||"",blogArticles:P,grammarRules:k,exercisesFeed:S,exercises:C,tutorsFeed:R,searchStats:M,csvData:L,testYourVocab:{words:Z,testYourVocabUrl:H,testYourVocabResultUrl:B,score:U}},ie=(null===X||void 0===X?void 0:X.type)&&[p.mby.Classes,p.mby.ClassesByLevel,p.mby.SeoLearnCategories,p.mby.SeoLearningExercises,p.mby.Online,p.mby.OnlineGeneric,p.mby.PlacementLanding,p.mby.TestYouVocab].includes(null===X||void 0===X?void 0:X.type),oe=[Xu,nt,Je.Y,hn(P),{Renderer:function(e){var t=e.data;return(0,D.jsx)(np,{articles:(t.articles||[]).filter((function(e){return Boolean(e.title)&&Boolean(e.link)})),buttonText:t.buttonText||rp})},id:"featuredArticles",title:"Featured Articles",description:"Article cards loaded by slug and saved into CMS data.",version:1,createInitialData:function(){return{articles:[],buttonText:rp}},controls:{type:"autoform",schema:{properties:{articles:{type:"array",items:Xd},buttonText:{type:"string"}}}}},Mo(R),Xa.S,ts,Rs,ft,pd,(0,V.Mg)(q),Ht,Ie.m,Ze,re,je,Ee,Dt,bs,ys.o,As,Qt,Ir(k),zr(k),cc,$s,rl,bc,Bl,oi(S),Xl,$i(C),Tl,qc,ea(M,N),Wo(M,N),Au(U,H),fu(Z,B),xu,ud,nd,Zu.p,Wu,ba(L),gd,bd,jd,Hd,_d.k,xd.G,Ka,(0,W.t)(),{Renderer:function(e){var t=e.data;return(0,D.jsx)(A,z({},t))},id:"form-section",title:"Form section",description:"B2B plugin",version:5,migrations:[(0,w.ow)({fromVersion:1,toVersion:2,fields:[["title","h4"]]}),(0,O.b)({fromVersion:2,toVersion:3,fields:[["leadSource","Inbound"]]}),new j.U({fromVersion:3,toVersion:4,migrate:function(e){return z(z({},e),{},{image1Url:(0,x.w)(e.image1Url),image2Url:(0,x.w)(e.image2Url)})}}),new j.U({fromVersion:4,toVersion:5,migrate:function(e){return z({},e)}})],controls:{type:"autoform",schema:{properties:{id:{type:"string"},title:w.N4,image1Url:(0,_.Z)(),image2Url:(0,_.Z)(),leadSource:{type:"string"},rounded:{type:"boolean"}},required:["id","title","image1Url","image2Url","leadSource"]}}},F.S,wd.E,{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Pd,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"ContinuousFeedback"})},id:"continuous-feedback",title:"Continuous feedback",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Sd,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"EfficiencyStudyInfo"})},id:"efficiency-study-info",title:"Efficiency study info",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Ed,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"HowRatingsWork"})},id:"how-ratings-work",title:"How ratings work",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Id,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"IllustrativeImage"})},id:"illustrative-image",title:"Illustrative image",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Dd,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"IllustrativeProfile"})},id:"illustrative-profile",title:"Illustrative profile",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},{Renderer:function(e){var t,n=e.data;return(0,D.jsx)(Rd,{eventLocation:null!==(t=null===n||void 0===n?void 0:n.eventLocation)&&void 0!==t?t:"ReviewVerification"})},id:"review-verification",title:"Review verification",description:"UWG disclaimer",version:1,controls:{type:"autoform",schema:{properties:{eventLocation:{type:"string",title:"Event location"}},required:["eventLocation"]}}},fe];return(0,f.useEffect)((function(){if((null===X||void 0===X?void 0:X.type)!==p.mby.PlacementResults||h.o.getItem("publicPlacementTestQuestionsVisited"))(null===X||void 0===X?void 0:X.type)===p.mby.PlacementQuestions?h.o.setItem("publicPlacementTestQuestionsVisited","true"):(0,g.Q0)(n);else{var e=m.routes.findByName("placement:".concat(c));window.location.replace(e.toPath({subject:Q.subject}))}}),[]),(0,f.useEffect)((function(){(null===X||void 0===X?void 0:X.type)===p.mby.PlacementLanding&&vn({subject:Q.subject,page_name:"public_placement_test_lp_general"}),(null===X||void 0===X?void 0:X.type)===p.mby.TestYouVocab&&vn({subject:Q.subject,page_name:"test_your_vocab_lp_general"})}),[]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o(),{children:(0,D.jsx)("style",{children:"\n .rc-tooltip-inner {\n background-color: transparent !important;\n color: var(--c9575) !important;\n }\n html {\n scroll-behavior: smooth;\n }\n"})}),(0,D.jsx)("div",{className:op().header,children:(0,D.jsx)(b.HeaderWrap,{language:c,anonymousUser:!i,background:te?"tokyo-pink":"white",authenticatedHeader:(0,D.jsx)(u.h,{delayedInitPayload:{isAnonymousUser:!i},language:c,showSupportWidget:!1})})}),!!ie&&(0,D.jsx)($e,{subjectAlias:null===X||void 0===X||null===(t=X.subject)||void 0===t?void 0:t.alias,subjectName:I,findTutorsUrl:T,pageType:null===X||void 0===X?void 0:X.type}),(0,D.jsxs)("div",{ref:J,className:s()(op().trackingContainer,(0,r.Z)({},op().container,!$)),children:[(0,D.jsx)(d.R,{absoluteUrl:E,seoData:a,cellPlugins:oe,EditorContext:mn,contextData:ne}),(0,D.jsx)(_n,{containerRef:J,pagePath:ee,pageType:null===X||void 0===X?void 0:X.type,lpSubtype:(null===X||void 0===X?void 0:X.lpSubtype)||void 0,sentinelClassName:op().scrollDepthSentinel})]}),(0,D.jsx)(l.$,{footerGroups:K})]})};ap.getInitialProps=Ca;var sp=(0,c.H)(ap)},178860:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var r,i=n(750029),o=n(71383),a=n(364687),s=n.n(a),c=n(459567),l=n(590758),u=(0,c.ZP)(r||(r=(0,o.Z)(["\n query SeoLandingCurrentUser {\n currentUser {\n id\n email\n isStaff\n tutor {\n id\n }\n client {\n id\n isB2bHourSubscriptionClient\n employee {\n id\n isEmployed\n subject\n maxPrice\n minPrice\n nativeSpeaker\n otherLanguagesSpoken\n onlySuperTutors\n category\n professionalTutors\n }\n lessons {\n nodes {\n id\n }\n }\n }\n }\n }\n"]))),d=function(){var e=(0,i.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.P)({headers:t,query:u}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},83833:function(e,t,n){"use strict";n.d(t,{Q:function(){return u},Z:function(){return d}});var r,i=n(750029),o=n(71383),a=n(364687),s=n.n(a),c=n(459567),l=n(590758),u=(0,c.ZP)(r||(r=(0,o.Z)(["\n query FindTutorsUrl($language: String!, $subjectAlias: String!) {\n findTutorsUrl(language: $language, subjectAlias: $subjectAlias) {\n name\n }\n }\n"]))),d=function(){var e=(0,i.Z)(s().mark((function e(t){var n,r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.subjectAlias,r=t.language,i=t.headers,e.abrupt("return",(0,l.P)({headers:i,query:u,variables:{subjectAlias:n,language:r}}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},476214:function(e,t,n){"use strict";n.d(t,{i:function(){return m}});var r,i=n(759499),o=n(750029),a=n(71383),s=n(364687),c=n.n(s),l=n(459567),u=n(675301),d=n(590758),p=n(250296),f=n(808309);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=(0,l.Ps)(r||(r=(0,a.Z)(["\n query SearchPageAllTutors(\n $city: String!\n $subject: String\n $page: Int!\n $sort: TutorSortEnum!\n $tags: String!\n $priceRange: String\n $additional: String!\n $availability: TutorAvailabilityInput\n $currencyFactor: String\n $sex: String\n $urlPath: String!\n $tl: String!\n $CoB: String!\n $tutId: String\n $onlyTutId: String\n $searchText: String\n $favTutors: Boolean\n $filters: [FilterEnum!]\n $isOnlineSearchPage: Boolean\n $taxonomySubject: String\n $taxonomyAttributes: [String!]\n ) {\n allTutorsEs(\n city: $city\n s: $subject\n page: $page\n sort: $sort\n tags: $tags\n priceRange: $priceRange\n additional: $additional\n availabilityFilter: $availability\n cf: $currencyFactor\n sex: $sex\n urlPath: $urlPath\n tl: $tl\n CoB: $CoB\n tutId: $tutId\n onlyTutId: $onlyTutId\n searchText: $searchText\n favTutors: $favTutors\n filters: $filters\n isOnlineSearchPage: $isOnlineSearchPage\n taxonomySubject: $taxonomySubject\n taxonomyAttributes: $taxonomyAttributes\n ) {\n ingressRequestId\n backendRequestId\n remoteAddr\n interleavingSearchHash\n totalResults\n noSearchResults\n scoreName\n userEmbedding\n userEmbeddingFeaturesJson\n embeddingModelColor\n embeddingModelId\n perPage\n stats {\n ...AllTutorStatsData\n }\n subject {\n id\n alias\n languageCode\n group\n translatedName\n translatedAlias\n grammaticalCaseReplacements {\n placeholder\n value\n }\n }\n filters {\n alias\n groups {\n title\n alias\n options {\n title\n alias\n }\n }\n }\n excludedParams\n searchStatus\n tutors {\n id\n position\n postsCount\n isVolunteer\n verifiedTutor\n searchType\n sortOrderJson\n segmentId\n attributes {\n name\n title\n description\n ui\n iconName\n }\n badges {\n name\n persona\n quantity\n rating\n }\n countryOfBirth {\n name\n flagSvg\n }\n featuredKeywords {\n speciality\n keyword\n }\n headline\n headlineOriginal\n seoSnippetOriginal {\n shortBio\n autoTranslated\n }\n highlights {\n fullName\n headline\n shortBio\n }\n averageScore\n lessonRatingAverageScore\n numberReviews\n activeStudentsCount\n alternativeTranslatedContent {\n headline\n shortBio\n }\n seoSnippet {\n shortBio\n autoTranslated\n preplyTranslated\n alternativeTranslatedShortBio\n }\n totalLessons\n publicUrl\n canonicalUrl\n isVisibleOnSearch\n isProfessionalTutor\n price(allowLocalCurrencies: true) {\n currency {\n id\n code\n translatedCode\n symbol\n factor\n }\n value\n }\n priceShortTrial(roundPrice: true) {\n currency {\n id\n code\n translatedCode\n symbol\n factor\n }\n value\n }\n recentLeadsAmount\n lessonsBookedLast48h\n seoPrice {\n currency {\n id\n code\n translatedCode\n symbol\n factor\n }\n value\n }\n user {\n id\n firstName\n fullName\n profile {\n id\n avatarUrlHttps\n isOnline\n timezone {\n id\n tzname\n }\n onlineStatus {\n isOnline\n hint\n }\n }\n }\n tutorSubjects {\n subject {\n alias\n translatedAlias\n translatedName\n priority\n languageCode\n }\n }\n multiLanguages {\n id\n canSpeak\n name\n levelCode\n levelCodeI18n\n levelI18n\n language\n }\n seoReview {\n id\n author\n content\n created\n user {\n id\n profile {\n id\n avatarUrlHttps\n }\n }\n }\n videoIntro\n videoThumbnailUrl\n isFavorite\n skypeOnly\n isSkype\n avatarAlt\n teachingType\n isSuperTutor\n isSuperTutorLowerCr\n tutorTaughtLearnersWithGoals {\n goal\n value\n }\n tutorTaughtLearnersWithLevels {\n level\n value\n }\n tutorSummary {\n studentsFeedback\n }\n metadataTags {\n id\n slug\n translatedName\n }\n }\n }\n }\n ","\n"])),p.yG),m=function(){var e=(0,o.Z)(c().mark((function e(t,n,r){var i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=h(h({subject:t.subject,city:t.cityAlias,page:t.pageNumber,urlPath:t.path,filters:[u.Ncw.Specialties],isOnlineSearchPage:!!t.isOnlineSearchPage,tzname:t.timezone},(0,f.u)(t.filtersState)),t.taxonomySubject?{taxonomySubject:t.taxonomySubject,taxonomyAttributes:t.taxonomyAttributes,tags:""}:{}),e.next=3,(0,d.P)({abortSignal:r,variables:i,headers:n,query:v});case 3:if(!(o=e.sent)||!("allTutorsEs"in o)){e.next=6;break}return e.abrupt("return",o.allTutorsEs);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()},507969:function(e,t,n){"use strict";n.d(t,{$r:function(){return f},Kc:function(){return g},ck:function(){return h},ge:function(){return d},ku:function(){return v}});var r=n(490116),i=n(759499),o=n(441609),a=n.n(o),s=n(675301),c=n(850906);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){switch(e){case"search_native":return"native";case"search_speciality":return"tag";case"search_skype":return"sort";case"search_tutor_language":return"tl";default:return null}},p=function(e,t,n){if(!t&&!n)return e;if(e){var r=t&&e.min<t?t:e.min,i=n&&e.max>n?n:e.max;return{min:r&&r<i?r:0,max:i}}return n?{min:t||0,max:n}:null},f=function(e){var t=u({},c.v),n=e.minPrice,i=e.maxPrice,o=e.nativeSpeaker,a=e.otherLanguagesSpoken,s=e.onlySuperTutors,l=e.professionalTutors;return i&&(t.priceRange={min:n||0,max:i}),a&&(t.tl=a.split(",")),s&&(t.additional=["only_super_tutors"]),l&&(t.additional=[].concat((0,r.Z)(t.additional),["certified"])),o&&(t.additional=[].concat((0,r.Z)(t.additional),["native"])),t},g=function(e,t,n,i){var o,a,s=u({},e);if(!t)return s;var c=t.minPrice,l=t.maxPrice,d=p(null===e||void 0===e?void 0:e.priceRange,c,l);if(((null===d||void 0===d?void 0:d.min)!==(null===(o=e.priceRange)||void 0===o?void 0:o.min)||(null===d||void 0===d?void 0:d.max)!==(null===(a=e.priceRange)||void 0===a?void 0:a.max))&&(s.priceRange=d),null!==d&&void 0!==d&&d.max&&(s.isMaxPriceRange=!1),s=n?u(u({},e),s):u({},e),i&&!e.additional.includes("only_super_tutors")){var f=[].concat((0,r.Z)(e.additional),["only_super_tutors"]);s=u(u({},s),{},{additional:f})}return s},h=function(e){var t,n,i=e.filtersState,o=e.employee,s=e.isB2bHourSubscriptionClient,c=e.isLanguageSubject,l={};if(!o)return l;var u=o.minPrice,d=o.maxPrice,f=o.nativeSpeaker,g=o.otherLanguagesSpoken,h=o.professionalTutors;g&&a()(i.tl)&&(l.tl=g.split(",")),f&&c&&!i.additional.includes("native")&&(l.additional=[].concat((0,r.Z)(i.additional),["native"])),h&&!i.additional.includes("certified")&&(l.additional=[].concat((0,r.Z)(i.additional),["certified"]));var v=p(null===i||void 0===i?void 0:i.priceRange,u,d),m=(null===v||void 0===v?void 0:v.min)!==(null===(t=i.priceRange)||void 0===t?void 0:t.min)||(null===v||void 0===v?void 0:v.max)!==(null===(n=i.priceRange)||void 0===n?void 0:n.max);return!s&&m&&(l.priceRange=v),l},v=function(e,t,n,i,o){return"native"===e?(a=t).additional.includes("native")?a:u(u({},a),{},{additional:[].concat((0,r.Z)(a.additional),["native"])}):"tag"===e?function(e,t){return e.tags.includes(t)?e:u(u({},e),{},{tags:[].concat((0,r.Z)(e.tags),[t])})}(t,n):"sort"===e?function(e){return e.sort===s.cwW.Popularity?e:u(u({},e),{},{sort:s.cwW.Popularity})}(t):"tl"===e?function(e,t){if(null===t)return e;var n=null===t||void 0===t?void 0:t.toUpperCase();return e.tl.includes(n)?e:u(u({},e),{},{tl:[].concat((0,r.Z)(e.tl),[n])})}(t,i):o?function(e,t){if(e.priceRange&&e.currencyFactor&&t.factor!==e.currencyFactor){var n=t.factor/e.currencyFactor;return u(u({},e),{},{priceRange:{min:Math.floor(n*e.priceRange.min),max:Math.floor(n*e.priceRange.max)},currencyFactor:t.factor})}return e}(t,o):t;var a}},850906:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r={sort:n(675301).cwW.No,tags:[],priceRange:null,additional:[],sex:null,currencyFactor:null,day:[],time:[],tl:[],CoB:[],searchText:null,tutId:null,onlyTutId:null,favTutors:!1,isMaxPriceRange:!1}},210584:function(e,t,n){"use strict";n.d(t,{P6:function(){return j},kZ:function(){return m},ky:function(){return y},rW:function(){return _}});var r=n(704730),i=n(759499),o=n(217674),a=n(354061),s=n.n(a),c=n(66604),l=n.n(c),u=n(609556),d=n(675301),p=n(850906),f=["priceRange","currencyFactor","time","tl","tutId"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(){var e=[["morning",d.QRG.Morning],["late-morning",d.QRG.MorningLate],["afternoon",d.QRG.Afternoon],["late-afternoon",d.QRG.AfternoonLate],["evening",d.QRG.Evening],["late-evening",d.QRG.EveningLate],["night",d.QRG.Night],["late-night",d.QRG.NightLate]];return new Map(e)}(),m=function(){var e=new Map;return v.forEach((function(t,n){return e.set(t,n)})),e}(),b=function(e,t){return null!==e&&void 0!==e&&e.trim()&&e.split(",").map((function(e){return Number(e)})).every(Number.isInteger)?e:t},y=function(e){var t,n,r=(0,u.n)(e);return{sort:r.sort&&(n=r.sort,Object.values(d.cwW).includes(n))?r.sort:p.v.sort,tags:r.tags?r.tags.split(","):p.v.tags,additional:r.additional?r.additional.split(","):p.v.additional,sex:r.sex?r.sex:null,priceRange:r.priceRange?function(){var e=r.priceRange.split("-").map((function(e){return parseInt(e,10)})),t=(0,o.Z)(e,2),n=t[0],i=t[1];return[n,i].some(Number.isNaN)?null:{min:n,max:i}}():null,currencyFactor:r.cf?Number(r.cf):null,time:r.time?r.time.split(",").filter((function(e){return v.has(e)})).map((function(e){return v.get(e)})):p.v.time,day:r.day?r.day.split(",").filter((function(e){return["mon","tue","wed","thu","fri","sat","sun"].includes(e)})):p.v.day,tl:r.tl?r.tl.split(",").map((function(e){return e.toUpperCase()})):p.v.tl,CoB:r.CoB?r.CoB.split(","):p.v.CoB,searchText:(null===(t=r.searchText)||void 0===t?void 0:t.split("-").join(" "))||null,tutId:b(r.tut_id,p.v.tutId),onlyTutId:b(r.onlyTutId,p.v.onlyTutId),favTutors:r.favTutors?"true"===r.favTutors:p.v.favTutors,isMaxPriceRange:r.isMaxPriceRange?"true"===r.isMaxPriceRange:p.v.isMaxPriceRange}},j=function(e){return s()(e,(function(e,t,n){return void 0===t||null===t||"string"===typeof t&&0===t.length||Array.isArray(t)&&0===t.length||p.v[n]===t?e:h(h({},e),{},(0,i.Z)({},n,t))}),{})},_=function(e,t){var n={},i=e.priceRange,o=e.currencyFactor,a=e.time,s=e.tl,c=e.tutId,u=(0,r.Z)(e,f);return i&&!t&&(n.priceRange="".concat(i.min,"-").concat(i.max)),o&&(n.cf=String(o)),s&&(n.tl=s.map((function(e){return e.toLowerCase()})).join(",")),a&&(n.time=a.map((function(e){return m.get(e)})).join(",")),c&&(n.tut_id=c),Object.assign(n,l()(u,(function(e){return Array.isArray(e)?e.join(","):String(e)}))),n}},808309:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(759499),i=n(704730),o=n(836634),a=["tags","additional","time","day","priceRange","currencyFactor","tl","CoB","searchText","isMaxPriceRange"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){var t=e.isMaxPriceRange,n=e.currencyFactor,r=e.priceRange;if(!t||!n)return JSON.stringify(r);var i={min:null===r||void 0===r?void 0:r.min,max:n*o.jb};return JSON.stringify(i)},u=function(e){var t=e.tags,n=e.additional,r=e.time,o=e.day,s=e.priceRange,u=e.currencyFactor,d=e.tl,p=e.CoB,f=e.searchText,g=e.isMaxPriceRange,h=(0,i.Z)(e,a),v=o.length>0||r.length>0?{days:0===o.length?null:o,times:0===r.length?null:r}:null;return c(c({},h),{},{availability:v,tags:t.join(","),additional:n.join(","),priceRange:l({isMaxPriceRange:g,currencyFactor:u,priceRange:s}),currencyFactor:u?String(u):null,tl:d.map((function(e){return e.toLowerCase()})).join(","),CoB:p.join(","),searchText:f||null})}},618227:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(575665),i=n(836634),o=function(e){return(0,r.Sv)(null,e.cookies[i.E9.browserTimezone]||null)||(0,r.PU)()}},789575:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(e,t){return e&&e.find((function(e){return e&&e.code===t}))||{name:"English",code:"en"}}},609556:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(217674),i=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return[n,Array.isArray(i)?i[0]:i]})))}},850581:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var r=n(981531),i=n(263553),o=n(837247),a=n(282262),s=n(992777),c=n(13819),l=n(401631),u=function(){function e(){(0,s.Z)(this,e),this.maxSize=64,this.recentKey="_nsl_recent",this.delimiter="\0",this.ls=this.initLocalStorage()}return(0,a.Z)(e,[{key:"initLocalStorage",value:function(){var e;return null===(e=window)||void 0===e?void 0:e.localStorage}},{key:"getMaxSize",value:function(){return this.maxSize}},{key:"serialize",value:function(e){return"string"===typeof e?e:JSON.stringify(e)}},{key:"set",value:function(e,t){if(e===this.recentKey)throw new Error('localStorage: Key "'.concat(this.recentKey,'" is reserved.'));if(-1!==e.indexOf(this.delimiter))throw new Error('localStorage: Cannot use "'.concat(this.delimiter,'" as a character in a key'));var n=this.serialize(t);this.recordUsage(e);try{this.ls.setItem(e,n)}catch(r){l.a.Sentry.captureMessage("localStorage: set error -- ".concat(r),c.z.Warning),this.trim(e,n)}}},{key:"get",value:function(e){try{var t=this.ls.getItem(e);return this.recordUsage(e),t}catch(n){return l.a.Sentry.captureMessage("localStorage: get error -- ".concat(n),c.z.Warning),null}}},{key:"has",value:function(e){return null!=this.ls.getItem(e)}},{key:"getRecent",value:function(){try{var e,t;return null!==(e=null===(t=this.ls.getItem(this.recentKey))||void 0===t?void 0:t.split(this.delimiter))&&void 0!==e?e:[]}catch(n){return[]}}},{key:"recordUsage",value:function(e){try{var t=this.getRecent();(t=(t=t.slice(0,this.maxSize-1)).filter((function(t){return t!==e}))).unshift(e);var n=t.join(this.delimiter);try{this.ls.setItem(this.recentKey,n)}catch(r){this.trim(this.recentKey,n)}}catch(i){l.a.Sentry.captureMessage("localStorage: unable to record usage of '".concat(e,"' -- ").concat(i),c.z.Warning)}}},{key:"deleteUsage",value:function(e){try{var t=this.getRecent().filter((function(t){return t!==e}));this.ls.setItem(this.recentKey,t.join(this.delimiter))}catch(n){l.a.Sentry.captureMessage("localStorage: unable to delete usage of '".concat(e,"' -- ").concat(n),c.z.Warning)}}},{key:"trim",value:function(e,t){for(var n=null,r=0;r<10;r++){this.trimOldEntries();try{return this.ls.setItem(e,t),!0}catch(i){n=i}}return l.a.Sentry.captureMessage("localStorage: trim error -- ".concat(n),c.z.Warning),!1}},{key:"trimOldEntries",value:function(){if(0!==this.size())for(var e=Math.min(this.size(),10),t=this.keys(),n=this.getRecent(),r=0;r<20;r++){var i=t[Math.floor(Math.random()*t.length)];if(i!==this.recentKey&&!n.includes(i)){try{this.ls.removeItem(i)}catch(o){return void l.a.Sentry.captureMessage("localStorage: trimming/delete does not work",c.z.Warning)}if((e-=1)<=0||0===this.size())return}}}},{key:"keys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object.keys(this.ls),r=n.filter((function(t){return t!==e.recentKey}));return t&&r.sort(),r}},{key:"delete",value:function(e){if(e===this.recentKey)throw new Error('localStorage: Key "'.concat(this.recentKey,'" is reserved.'));try{this.deleteUsage(e),this.ls.removeItem(e)}catch(t){l.a.Sentry.captureMessage("localStorage: delete error -- ".concat(t),c.z.Warning)}}},{key:"localStorageIsAvailable",value:function(){return e.testLocalStorage(this.ls)}},{key:"size",value:function(){try{var e=this.ls.length;return this.has(this.recentKey)?e-1:e}catch(t){return 0}}},{key:"clear",value:function(){try{return this.ls.clear(),!0}catch(e){return l.a.Sentry.captureMessage("localStorage: clear error -- ".concat(e),c.z.Warning),!1}}},{key:"getLocalStorage",value:function(){return this.ls}},{key:"getRecentKey",value:function(){return this.recentKey}}],[{key:"testLocalStorage",value:function(e){try{var t="__test__666__",n="".concat(Date.now());if(e.setItem(t,n),e.getItem(t)!==n)throw new Error("localStorage: test failed");return e.removeItem(t),!0}catch(r){return!1}}}]),e}();function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,o.Z)(e);if(t){var a=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}var p=(0,a.Z)((function e(){(0,s.Z)(this,e)})),f=function(e){(0,r.Z)(n,e);var t=d(n);function n(){var e;return(0,s.Z)(this,n),(e=t.call(this)).storage=new u,e}return(0,a.Z)(n,[{key:"getItem",value:function(e){var t=this.storage.get(e);if(!t)return null;if("object"===typeof t)return t;try{return JSON.parse(t)}catch(n){return t}}},{key:"setItem",value:function(e,t){this.storage.set(e,t)}},{key:"removeItem",value:function(e){this.storage.delete(e)}}],[{key:"Instance",get:function(){return this.instance=this.instance||new this,this.instance}}]),n}(p),g=function(e){(0,r.Z)(n,e);var t=d(n);function n(){return(0,s.Z)(this,n),t.call(this)}return(0,a.Z)(n,[{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}}],[{key:"Instance",get:function(){return this.instance=this.instance||new this,this.instance}}]),n}(p),h=function(){try{return f.Instance}catch(e){return l.a.Sentry.captureMessage("localStorage: init error -- ".concat(e),c.z.Warning),g.Instance}}()},403241:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var r=function(e){return["en","de","es","fr","it","pl","pt","ru"].indexOf(e)>=0?e:"en"}},250296:function(e,t,n){"use strict";n.d(t,{CC:function(){return g},Ks:function(){return f},W8:function(){return p},yG:function(){return d}});var r,i=n(759499),o=n(490116),a=n(71383),s=n(354061),c=n.n(s);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=(0,n(459567).ZP)(r||(r=(0,a.Z)(["\n fragment AllTutorStatsData on AllTutorsStats {\n distinctCities\n distinctCountries\n distinctTimezones\n feedbackAmount\n nativesAmount\n avgPrice\n maxPrice\n minPrice\n avgScore\n }\n"]))),p=function(e,t,n){var r={STATS_COUNT:t};return n&&Object.assign(r,{STATS_DISTINCT_CITIES:n.distinctCities,STATS_DISTINCT_COUNTRIES:n.distinctCountries,STATS_NATIVES_AMOUNT:n.nativesAmount,STATS_DISTINCT_TIMEZONES:n.distinctTimezones,STATS_FEEDBACK_AMOUNT:n.feedbackAmount,STATS_AVG_PRICE:n.avgPrice,STATS_MAX_PRICE:n.maxPrice,STATS_MIN_PRICE:n.minPrice,STATS_AVG_SCORE:n.avgScore}),c()(r,(function(e,t,n){return e.replace(new RegExp(n,"g"),String(t))}),e)},f=function(e,t){var n={QUESTIONS_COUNT:t};return c()(n,(function(e,t,n){return e.replace(new RegExp(n,"g"),String(t))}),e)},g=function(e,t){return[].concat((0,o.Z)(e),(0,o.Z)(t.map((function(e){return e.rows.map((function(t,n){return u(u({},t),{},{nodeId:"".concat(e.nodeId).concat(n)})}))})).reduce((function(e,t){return e.push.apply(e,(0,o.Z)(t)),e}),[])))}},960076:function(e){e.exports={container:"styles_container__ClOdi",borderRadius:"styles_borderRadius__zBOHJ",none:"styles_none__3RCGz",normal:"styles_normal__Z3gic",large:"styles_large__FZeKm",content:"styles_content__N7dGd","overlay-light":"styles_overlay-light__WVCgW","overlay-dark":"styles_overlay-dark__Nhw6v",hideMobile:"styles_hideMobile__wbXFZ",hideDesktop:"styles_hideDesktop__a8ZLS"}},509676:function(e){e.exports={article:"styles_article__QARDU",image:"styles_image__pj_Ga",link:"styles_link__x06xQ"}},97496:function(e){e.exports={grid:"styles_grid__IackD",heading:"styles_heading__99WVU",button:"styles_button__b8ueH",articles:"styles_articles__fnPb8"}},131581:function(e){e.exports={cardContainer:"styles_cardContainer__hcA2i",shadow:"styles_shadow__Bc7vv",imageBox:"styles_imageBox__re2vg",cardImage:"styles_cardImage__PNTOj"}},997933:function(e){e.exports={section:"styles_section__EqYOS",headingWrap:"styles_headingWrap__52qZd",heading:"styles_heading__hl8XI",media:"styles_media__v4IbX",imageWrap:"styles_imageWrap__QGOZE",image:"styles_image__xw8zS",divider:"styles_divider__HZ84J"}},125873:function(e){e.exports={SeoTable:"styles_SeoTable__4StC3",button:"styles_button__V8XEn",answer:"styles_answer__C4cGl",collapsed:"styles_collapsed__GNX3u",arrow:"styles_arrow__kKRBf"}},991824:function(e){e.exports={navigation:"styles_navigation__Qhz9g",hoverPink:"styles_hoverPink__YgNtW",active:"styles_active__2FPvJ",itemPadding:"styles_itemPadding__xp3d_",dropdownWrapper:"styles_dropdownWrapper__x1R6F",dropdownHeading:"styles_dropdownHeading__jQTLm",dropdown:"styles_dropdown__npaW8"}},213991:function(e){e.exports={hidden:"styles_hidden__xve5I",link:"styles_link__qs_Gz"}},61691:function(e){e.exports={wrapper:"styles_wrapper__s1uSg",navigation:"styles_navigation__D_Z2T",hidden:"styles_hidden___qmwW",link:"styles_link__fBPvu"}},149398:function(e){e.exports={container:"styles_container__1ExQC",card:"styles_card__BQ_d5",image:"styles_image__S7J0n"}},486433:function(e){e.exports={card:"styles_card__Q4TJr",link:"styles_link__Iu9gR"}},127170:function(e){e.exports={card:"styles_card__VjCdh",media:"styles_media__r7PSf",image:"styles_image__bmNXo",arrowWrap:"styles_arrowWrap__BqCkX",arrowShape:"styles_arrowShape__TpOmI",arrowText:"styles_arrowText__pQlRC",arrowTextInner:"styles_arrowTextInner__fyyYP",description:"styles_description__UjX13"}},200781:function(e){e.exports={videoPlayer:"VideoSection_videoPlayer__w_4hQ",sectionWrapper:"VideoSection_sectionWrapper__ziIs_",sectionInner:"VideoSection_sectionInner__b0ho2",overlay:"VideoSection_overlay__EyWKW",playIconWrapper:"VideoSection_playIconWrapper__l0sLU",aspect_none:"VideoSection_aspect_none__5F_FD",ctaOverlay:"VideoSection_ctaOverlay__bLdfN",aspect_16_9:"VideoSection_aspect_16_9__EItUL",aspect_1_1:"VideoSection_aspect_1_1__cm_DG",aspect_9_16:"VideoSection_aspect_9_16__WL94A",previewImage:"VideoSection_previewImage__CIvZ1"}},837319:function(e){e.exports={interactive:"Options_interactive___hokI",link:"Options_link__Ugowf",button:"Options_button__kgcwk"}},118618:function(e){e.exports={root:"Select_root__m2kRM",busy:"Select_busy__s84q0",popover:"Select_popover__YwAJs",top:"Select_top__4rhla",bottom:"Select_bottom__0TnaI",panel:"Select_panel____gFU","fade-in":"Select_fade-in__wvp4f",item:"Select_item__jyPBf"}},475472:function(e){e.exports={HelpWidgetWrap:"styles_HelpWidgetWrap__uA_yF",HelpWidgetMenu:"styles_HelpWidgetMenu__v2F9z",HelpWidgetOpen:"styles_HelpWidgetOpen__KBsGa",HelpWidget:"styles_HelpWidget__uMGSP"}},884328:function(e){e.exports={pressContainer:"styles_pressContainer__5eCAB",pressItem:"styles_pressItem__MHUWQ",borderLegacy:"styles_borderLegacy__VBjbY",border:"styles_border__Ka9Tr"}},517343:function(e){e.exports={link:"styles_link__k_pxX"}},163177:function(e){e.exports={layout:"FormSectionRebranded_layout__VHlKG",section:"FormSectionRebranded_section__GU2PJ",desktopOnly:"FormSectionRebranded_desktopOnly__eKYw5",form:"FormSectionRebranded_form__O5Xcq",picture:"FormSectionRebranded_picture__MlNCQ"}},96365:function(e){e.exports={section:"styles_section__APRKl",container:"styles_container__XXkGk",image:"styles_image__WQv8M",headingText:"styles_headingText__BdimD",descriptionText:"styles_descriptionText__C3Zs9"}},33497:function(e){e.exports={textLabel:"styles_textLabel__eYS64",card:"styles_card__j_zus",cardBanner:"styles_cardBanner__LF45W"}},477223:function(e){e.exports={videoPlayer:"styles_videoPlayer__2ZYBq",duration:"styles_duration__JKvB7",otherCourse:"styles_otherCourse__uDY_z",wrapper:"styles_wrapper__tb_b0",infoWrapper:"styles_infoWrapper__DG58Y"}},228426:function(e){e.exports={nowrap:"styles_nowrap__H9_7x",icon:"styles_icon__4AIYL"}},831e3:function(e){e.exports={gap:"styles_gap__uHRbk",gapInFocus:"styles_gapInFocus__FUmCV",hidden:"styles_hidden__go03T"}},682254:function(e){e.exports={hint:"styles_hint__yu9hw",tooltipContainer:"styles_tooltipContainer__IQ5s5",revealAnswer:"styles_revealAnswer__ZQSOz",noBlur:"styles_noBlur__bWJzs"}},492105:function(e){e.exports={inputWrapper:"styles_inputWrapper__7n5zN",submit:"styles_submit__qjpa6",hidden:"styles_hidden__X_Ajh"}},931347:function(e){e.exports={gap:"gapStyles_gap__knIqZ",gapActive:"gapStyles_gapActive__vt80S",gapIncorrect:"gapStyles_gapIncorrect__nZWRc",gapCorrect:"gapStyles_gapCorrect__lAWbY",input:"gapStyles_input__1KKhd"}},760509:function(e){e.exports={label:"styles_label__7N7bV",input:"styles_input__3vjD5",correct:"styles_correct__VeyqI",wrong:"styles_wrong__L5svu"}},371509:function(e){e.exports={image:"styles_image__ig5oA",exerciseCard:"styles_exerciseCard__B_Vf_"}},315007:function(e){e.exports={card:"styles_card__H7qrk",image:"styles_image__eTKgZ",link:"styles_link__nQRD8"}},689088:function(e){e.exports={list:"styles_list__OrS7Y",article:"styles_article__ATzbE",image:"styles_image__xWvwV"}},10349:function(e){e.exports={heroWrapper:"styles_heroWrapper__1Hetg",content:"styles_content__HOiOM",image:"styles_image__KU3Wt"}},551644:function(e){e.exports={tableContainer:"styles_tableContainer___piA_",table:"styles_table__wKX6z"}},548494:function(e){e.exports={button:"styles_button__eemTR"}},532588:function(e){e.exports={modal:"styles_modal__eHPCZ",closeButtonContainer:"styles_closeButtonContainer__M6am7"}},219137:function(e){e.exports={link:"styles_link__jliS1",next:"styles_next__NAih0"}},61695:function(e){e.exports={rules:"styles_rules__zqJM_",active:"styles_active__nBJXm"}},406017:function(e){e.exports={topicCardWrapper:"styles_topicCardWrapper__RPqbE",link:"styles_link__IFERq",dot:"styles_dot__tT3lk",green:"styles_green__NBS1U",yellow:"styles_yellow__COrJr",red:"styles_red__iOq_0"}},234701:function(e){e.exports={topics:"styles_topics__HqbXD"}},662700:function(e){e.exports={dropShadow:"styles_dropShadow__AJr7G",wrap:"styles_wrap__DBtF4",iconWrap:"styles_iconWrap__cT4KS"}},796221:function(e){e.exports={heroWrapper:"styles_heroWrapper__GEmKk",bgBlobContainer:"styles_bgBlobContainer__dLZAb",blob:"styles_blob__m7Bg_",textWrapper:"styles_textWrapper___mILF",videoContainer:"styles_videoContainer__dFupp",videoBorder:"styles_videoBorder__Ra13S",videoContent:"styles_videoContent__F64Q9",video:"styles_video__VPoOR",levels:"styles_levels__q7DDj"}},190019:function(e){e.exports={text:"styles_text__dCGN7",cards:"styles_cards__ibBzX",card:"styles_card__L_p4y",image:"styles_image__w4qVV"}},178520:function(e){e.exports={grid:"styles_grid__qoQ1f",share:"styles_share__8YLsW",main:"styles_main__HOIW9",levels:"styles_levels__r4vNl",level:"styles_level___AJEL",active:"styles_active__dmbIy"}},769624:function(e){e.exports={text:"styles_text__BCD_S",textPrimary:"styles_textPrimary__6lJMh",textSecondary:"styles_textSecondary__myzTG",textTertiary:"styles_textTertiary__RtBQP",headingContainer:"styles_headingContainer__LQ0v5",img:"styles_img__0UsyI",imgLeft:"styles_imgLeft__DYAQC",imgRight:"styles_imgRight___SiZ9",container:"styles_container__WB4JC",subheading:"styles_subheading__eiS2L",subheadingContainer:"styles_subheadingContainer__IY2A0"}},109006:function(e){e.exports={ratesTableContainer:"styles_ratesTableContainer__6StuG",ratesTableWrapper:"styles_ratesTableWrapper__xvFEZ",ratesTable:"styles_ratesTable__6VjvM"}},797866:function(e){e.exports={card:"styles_card__pbYLY"}},22425:function(e){e.exports={container:"styles_container__H5xa8",heading:"styles_heading__lc0Z_",reviewsContainer:"styles_reviewsContainer__zHJFN",reviewsContent:"styles_reviewsContent__W00H_",uwgCompliance:"styles_uwgCompliance__8FzcM"}},586483:function(e){e.exports={note:"styles_note__0zKGm",pin:"styles_pin__wEIaf"}},463935:function(e){e.exports={tableContainer:"styles_tableContainer__oqYdx",table:"styles_table__wsLAa",thButton:"styles_thButton__TpLl8",upsidedown:"styles_upsidedown__D_j2f",rankColumn:"styles_rankColumn__lASdA",thead:"styles_thead__vK_ez",hidden:"styles_hidden__hkSAb"}},858694:function(e){e.exports={score:"Gauge_score__y8hVI",tick:"Gauge_tick__Oyxlc",red:"Gauge_red__SnluH",yellow:"Gauge_yellow__ioZKX",green:"Gauge_green__Itv3O",border:"Gauge_border__Y9w6I",shadow:"Gauge_shadow__M2v8n"}},876854:function(e){e.exports={container:"styles_container__OIBFr",grid:"styles_grid__dl34X",main:"styles_main__aee0w",gauge:"styles_gauge__mhPm9",gaugeLevel:"styles_gaugeLevel__ZTL6K",gaugeArrow:"styles_gaugeArrow__ep_cq",share:"styles_share__VsUIX"}},209344:function(e){e.exports={root:"styles_root__HcTCW"}},687819:function(e){e.exports={alert:"styles_alert___GIWh",list:"styles_list__NWdP_",listItem:"styles_listItem__0Uv6p",AppBadgeLink:"styles_AppBadgeLink__1bKD3",BadgeImage:"styles_BadgeImage__yU5fL"}},287100:function(e){e.exports={text:"styles_text__Zbwlm"}},633600:function(e){e.exports={cardWrapper:"styles_cardWrapper__COet4"}},218861:function(e){e.exports={episodeNumber:"styles_episodeNumber__TuCKC"}},427469:function(e){e.exports={videoContainer:"styles_videoContainer__M0EUI",reactPlayer:"styles_reactPlayer__kRMw9",image:"styles_image__L4Tyq",goalItem:"styles_goalItem__GgJcI"}},476222:function(e){e.exports={card:"styles_card__KYoKm",image:"styles_image__a4PC9",text:"styles_text__JUCkj",button:"styles_button__yn4vj",stats:"styles_stats__maOpb"}},960418:function(e){e.exports={videoPlayer:"styles_videoPlayer__Pjz5Z",reactPlayer:"styles_reactPlayer__zt72c"}},272189:function(e){e.exports={videoPlayerWrapper:"styles_videoPlayerWrapper__WEzA9"}},282182:function(e){e.exports={container:"styles_container__AReWQ"}},384835:function(e){e.exports={container:"styles_container__zzNrr",trackingContainer:"styles_trackingContainer__PIrbx",scrollDepthSentinel:"styles_scrollDepthSentinel__GgfTa",header:"styles_header__engqE"}},141677:function(e){e.exports={banner:"styles_banner__Taltf",hidden:"styles_hidden__WEo6U"}},540370:function(){},425675:function(e,t,n){e.exports=n(91381)},686656:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(671002);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},982965:function(e,t,n){"use strict";n.d(t,{t:function(){return w}});var r=n(759499),i=n(704730),o=n(711298),a=n(900161),s=n(25685),c=n(667294);var l=n(377094),u=n(704710),d=n(891529),p=n(785893),f=(n(540370),["title","titleId"]),g=["title","titleId"],h=["id","name","checked","defaultChecked","indeterminate","onChange","onCheckedChange","hasError","disabled","required","aria-label","aria-labelledby","aria-describedby","dataset","onBlur","onFocus"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e,t){var n=e.title,r=e.titleId,o=(0,i.Z)(e,f);return c.createElement("svg",m({"data-preply-ds-component":"SvgTokyoUIIcon",viewBox:"0 0 14 2",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?c.createElement("title",{id:r},n):null,c.createElement("path",{d:"M0 0h14v2H0z"}))},y=(0,c.forwardRef)(b),j=function(e,t){var n=e.title,r=e.titleId,o=(0,i.Z)(e,g);return c.createElement("svg",m({"data-preply-ds-component":"SvgTokyoUIIcon",viewBox:"0 0 13 11",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?c.createElement("title",{id:r},n):null,c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.923 10.101 0 6.18 1.179 5l2.744 2.744L11.667 0l1.178 1.179z"}))},_=(0,c.forwardRef)(j),x={checkbox:"checkbox__KtCna",remove:"remove__GrRcv",checkmark:"checkmark__ha-Nu"},w=(0,c.forwardRef)((function(e,t){var n=e.id,r=e.name,f=e.checked,g=e.defaultChecked,v=e.indeterminate,b=e.onChange,j=e.onCheckedChange,w=e.hasError,O=e.disabled,P=e.required,k=e["aria-label"],S=e["aria-labelledby"],C=e["aria-describedby"],E=e.dataset,I=e.onBlur,T=e.onFocus,D=(0,i.Z)(e,h),R=function(e){var t=e.ref,n=e.onChange,r=e.indeterminate,i=e.onCheckedChange,o=(0,c.useRef)(null),a=(0,s.q)(o,t);(0,c.useLayoutEffect)((function(){o.current&&"boolean"===typeof r&&(o.current.indeterminate=r)}),[r]);var l=(0,c.useCallback)((function(e){null===n||void 0===n||n(e),"boolean"===typeof r&&(e.target.indeterminate=r),null===i||void 0===i||i(e.target.checked)}),[n,r,i]);return{mergedRef:a,ariaChecked:r?"mixed":void 0,onChangeHandler:l}}({ref:t,onChange:b,indeterminate:v,onCheckedChange:j}),L=R.mergedRef,N=R.onChangeHandler,M=R.ariaChecked,A=(0,l.q8)(x,"checkbox");return(0,p.jsxs)("div",m(m({},(0,o.r)(D)),{},{className:A.join(" "),"data-preply-ds-component":d.W_.Checkbox,children:[(0,p.jsx)("input",m({id:n,name:r,type:"checkbox",required:P,disabled:O,checked:f,defaultChecked:g,"aria-checked":M,"aria-invalid":!0===w||void 0,"aria-label":k,"aria-labelledby":S,"aria-describedby":C,onChange:N,ref:L,onBlur:I,onFocus:T},(0,u.J)(E))),(0,a.h)(_,{focusable:"false","aria-hidden":"true",className:x.checkmark}),(0,a.h)(y,{focusable:"false","aria-hidden":"true",className:x.remove})]}))}))}}]); //# sourceMappingURL=27261-216d9b9bf47f7db3.js.map