@clickview/lite 0.17.1 → 0.17.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{1053-lite-254fccec9d.chunk.css → 1053-lite-1694ef4285.chunk.css} +1 -1
- package/dist/css/{2153-lite-a3205bb6ab.chunk.css → 2153-lite-88c82db673.chunk.css} +1 -1
- package/dist/css/{9482-lite-1bdec3348c.chunk.css → 2191-lite-7ff818466d.chunk.css} +2 -2
- package/dist/css/{2319-lite-54f4169718.chunk.css → 2319-lite-d11335bef9.chunk.css} +2 -2
- package/dist/css/{249-lite-04c1bcf306.chunk.css → 249-lite-68eb3d78fd.chunk.css} +2 -2
- package/dist/css/{2851-lite-39147b2607.chunk.css → 2851-lite-e2160bfafd.chunk.css} +2 -2
- package/dist/css/{885-lite-aded4bdc6a.chunk.css → 309-lite-058a518c6d.chunk.css} +5 -4
- package/dist/css/{3177-lite-5f73117448.chunk.css → 3177-lite-4782b30176.chunk.css} +3 -3
- package/dist/css/{3626-lite-e89a23b5f8.chunk.css → 3626-lite-281b5d8cf1.chunk.css} +2 -2
- package/dist/css/{3994-lite-8e72471f8d.chunk.css → 3994-lite-c0284aa568.chunk.css} +2 -2
- package/dist/css/{9424-lite-c46fec7779.chunk.css → 4233-lite-da8d343988.chunk.css} +2 -2
- package/dist/css/{4453-lite-4f2aba4837.chunk.css → 4453-lite-8140e3b34f.chunk.css} +2 -2
- package/dist/css/{5985-lite-3ee0455feb.chunk.css → 4471-lite-9ab2d5e09d.chunk.css} +3 -3
- package/dist/css/{4484-lite-18f77e6767.chunk.css → 4484-lite-79cae540c6.chunk.css} +2 -2
- package/dist/css/{4519-lite-38288f9a4b.chunk.css → 4519-lite-6edbee8c07.chunk.css} +2 -2
- package/dist/css/{5104-lite-1145a0fa5f.chunk.css → 5104-lite-e0b42a9281.chunk.css} +1 -1
- package/dist/css/{4471-lite-f6e681eb00.chunk.css → 5985-lite-411dbea6f2.chunk.css} +3 -3
- package/dist/css/{6255-lite-497af69e9e.chunk.css → 6255-lite-08ea742390.chunk.css} +2 -2
- package/dist/css/6330-lite-46ed6be11f.chunk.css +7 -0
- package/dist/css/{6369-lite-af3f2910ba.chunk.css → 6369-lite-b43857e49a.chunk.css} +2 -2
- package/dist/css/{7007-lite-841c17f2bd.chunk.css → 7007-lite-0ca1b89c2b.chunk.css} +2 -2
- package/dist/css/{7756-lite-f2632cebd5.chunk.css → 7756-lite-d9505ae9c9.chunk.css} +2 -2
- package/dist/css/{777-lite-8e72471f8d.chunk.css → 777-lite-c0284aa568.chunk.css} +2 -2
- package/dist/css/{7958-lite-a7940e7abe.chunk.css → 7958-lite-1a4d8b8dd4.chunk.css} +3 -3
- package/dist/css/{8300-lite-6599e352a8.chunk.css → 8300-lite-cc73e26bd7.chunk.css} +2 -2
- package/dist/css/{8898-lite-54f4169718.chunk.css → 8898-lite-d11335bef9.chunk.css} +2 -2
- package/dist/css/{4233-lite-c46fec7779.chunk.css → 9424-lite-da8d343988.chunk.css} +2 -2
- package/dist/css/{2191-lite-1bdec3348c.chunk.css → 9482-lite-7ff818466d.chunk.css} +2 -2
- package/dist/css/{969-lite-84e2be4d4a.chunk.css → 969-lite-a768974cc7.chunk.css} +1 -1
- package/dist/css/{9767-lite-258436472d.chunk.css → 9767-lite-8e9338877d.chunk.css} +2 -2
- package/dist/css/{169-lite-aab6a30751.chunk.css → 9963-lite-84900b1bda.chunk.css} +3 -3
- package/dist/css/{lite-app-24bd7c7d54.css → lite-app-0eddd54de0.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1160-baa6acc98b-lite.chunk.js +1 -0
- package/dist/scripts/1442-8ecb7651ae-lite.chunk.js +2 -0
- package/dist/scripts/1725-4ef2cef26a-lite.chunk.js +1 -0
- package/dist/scripts/249-78644459d5-lite.chunk.js +1 -0
- package/dist/scripts/291-98aa4d621e-lite.chunk.js +1 -0
- package/dist/scripts/3019-581bb55112-lite.chunk.js +1 -0
- package/dist/scripts/{885-451836664e-lite.chunk.js → 309-82a6910606-lite.chunk.js} +1 -1
- package/dist/scripts/3143-2855610052-lite.chunk.js +2 -0
- package/dist/scripts/{3171-1136ef1490-lite.chunk.js → 3171-ca3656aec1-lite.chunk.js} +1 -1
- package/dist/scripts/{3237-7767ad4903-lite.chunk.js → 3237-ba03ae7add-lite.chunk.js} +1 -1
- package/dist/scripts/{3468-bfb42717ec-lite.chunk.js → 3468-852268650b-lite.chunk.js} +1 -1
- package/dist/scripts/4182-b6f53a82f6-lite.chunk.js +1 -0
- package/dist/scripts/{4484-498704a014-lite.chunk.js → 4484-2e7a219372-lite.chunk.js} +1 -1
- package/dist/scripts/{4541-0f34db8eaa-lite.chunk.js → 4541-4d78904280-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-ee30946c00-lite.chunk.js → 4617-79257249bf-lite.chunk.js} +1 -1
- package/dist/scripts/{482-b5d609eab9-lite.chunk.js → 482-d2d8fd4bda-lite.chunk.js} +1 -1
- package/dist/scripts/5606-2f27f2fe34-lite.chunk.js +1 -0
- package/dist/scripts/5875-95fbcaaa30-lite.chunk.js +2 -0
- package/dist/scripts/5877-ccf5835809-lite.chunk.js +1 -0
- package/dist/scripts/{5986-794584619c-lite.chunk.js → 5986-8827c2f2e2-lite.chunk.js} +1 -1
- package/dist/scripts/{6263-d5e330bed1-lite.chunk.js → 6263-b99a4903f4-lite.chunk.js} +1 -1
- package/dist/scripts/{6274-3043592753-lite.chunk.js → 6274-3f826f9e45-lite.chunk.js} +1 -1
- package/dist/scripts/6290-ad8e2d7e0c-lite.chunk.js +1 -0
- package/dist/scripts/{8987-c4cd06fd43-lite.chunk.js → 6330-9a7743427a-lite.chunk.js} +1 -1
- package/dist/scripts/6381-4aab2942be-lite.chunk.js +1 -0
- package/dist/scripts/6450-96d2502ab5-lite.chunk.js +1 -0
- package/dist/scripts/{6465-1a5ddad160-lite.chunk.js → 6465-c11641adbe-lite.chunk.js} +1 -1
- package/dist/scripts/{6689-520085da6e-lite.chunk.js → 6689-e5d9f27111-lite.chunk.js} +1 -1
- package/dist/scripts/{7128-c70c22c18c-lite.chunk.js → 7128-e78381873f-lite.chunk.js} +1 -1
- package/dist/scripts/{7172-5ce69097dc-lite.chunk.js → 7172-6b7be396b2-lite.chunk.js} +1 -1
- package/dist/scripts/{7939-0fdc3ce530-lite.chunk.js → 7939-36f426cfc9-lite.chunk.js} +1 -1
- package/dist/scripts/7989-4762231e68-lite.chunk.js +2 -0
- package/dist/scripts/{8025-73a0822c68-lite.chunk.js → 8025-a57448366a-lite.chunk.js} +1 -1
- package/dist/scripts/{8038-b236c86736-lite.chunk.js → 8038-4c3d785f60-lite.chunk.js} +1 -1
- package/dist/scripts/8801-371bb76921-lite.chunk.js +1 -0
- package/dist/scripts/{9060-719bb9c536-lite.chunk.js → 9060-5b1bdb98eb-lite.chunk.js} +1 -1
- package/dist/scripts/9455-4200b1193d-lite.chunk.js +1 -0
- package/dist/scripts/9963-df1840335f-lite.chunk.js +1 -0
- package/dist/scripts/bundle-ac897d6f4d.min.js +2 -0
- package/dist/scripts/{bundle-c14ddc53ef.min.js.LICENSE.txt → bundle-ac897d6f4d.min.js.LICENSE.txt} +9 -0
- package/package.json +1 -2
- package/dist/css/8987-lite-41d75882c6.chunk.css +0 -6
- package/dist/scripts/1160-630867953a-lite.chunk.js +0 -1
- package/dist/scripts/169-8cc73bfd6c-lite.chunk.js +0 -1
- package/dist/scripts/1725-5d4e3584f1-lite.chunk.js +0 -1
- package/dist/scripts/249-bff7b5ad3e-lite.chunk.js +0 -1
- package/dist/scripts/291-8fa8196cd0-lite.chunk.js +0 -1
- package/dist/scripts/3019-32af4287af-lite.chunk.js +0 -1
- package/dist/scripts/3143-a28a269db7-lite.chunk.js +0 -2
- package/dist/scripts/3588-8694fd9727-lite.chunk.js +0 -2
- package/dist/scripts/4182-e06b8cfae1-lite.chunk.js +0 -1
- package/dist/scripts/5606-49aa724d72-lite.chunk.js +0 -1
- package/dist/scripts/5875-380883e8d7-lite.chunk.js +0 -2
- package/dist/scripts/5877-42c1069df3-lite.chunk.js +0 -1
- package/dist/scripts/6290-eed85dc221-lite.chunk.js +0 -1
- package/dist/scripts/6381-5db2d18554-lite.chunk.js +0 -1
- package/dist/scripts/6450-e52e703cd0-lite.chunk.js +0 -1
- package/dist/scripts/7989-d27d009387-lite.chunk.js +0 -2
- package/dist/scripts/8801-410778ec03-lite.chunk.js +0 -1
- package/dist/scripts/9455-0e4f7dffc3-lite.chunk.js +0 -1
- package/dist/scripts/bundle-c14ddc53ef.min.js +0 -2
- /package/dist/scripts/{1053-6791248c33-lite.chunk.js → 1053-128b9e5e84-lite.chunk.js} +0 -0
- /package/dist/scripts/{3143-a28a269db7-lite.chunk.js.LICENSE.txt → 1442-8ecb7651ae-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2153-afc9a875a0-lite.chunk.js → 2153-901b25046f-lite.chunk.js} +0 -0
- /package/dist/scripts/{2319-a42cb2a6e7-lite.chunk.js → 2319-5a70978f17-lite.chunk.js} +0 -0
- /package/dist/scripts/{2851-01e85edd27-lite.chunk.js → 2851-ce45e50788-lite.chunk.js} +0 -0
- /package/dist/scripts/{3588-8694fd9727-lite.chunk.js.LICENSE.txt → 3143-2855610052-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3177-2d78857443-lite.chunk.js → 3177-9f72eae804-lite.chunk.js} +0 -0
- /package/dist/scripts/{3626-b34a6a7780-lite.chunk.js → 3626-458f2145ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{3994-c3c348bad9-lite.chunk.js → 3994-b2a5b4f657-lite.chunk.js} +0 -0
- /package/dist/scripts/{4233-e3b428f0c8-lite.chunk.js → 4233-8954941fea-lite.chunk.js} +0 -0
- /package/dist/scripts/{4453-9b9a192eb3-lite.chunk.js → 4453-2a7a132c00-lite.chunk.js} +0 -0
- /package/dist/scripts/{4471-3064cc798f-lite.chunk.js → 4471-5620ca10ad-lite.chunk.js} +0 -0
- /package/dist/scripts/{4519-43f2871344-lite.chunk.js → 4519-88242be1ac-lite.chunk.js} +0 -0
- /package/dist/scripts/{5104-9c7133b663-lite.chunk.js → 5104-4b64df3a3c-lite.chunk.js} +0 -0
- /package/dist/scripts/{5875-380883e8d7-lite.chunk.js.LICENSE.txt → 5875-95fbcaaa30-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5985-cec35a1b85-lite.chunk.js → 5985-e829a1f16f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6255-f50ef0919b-lite.chunk.js → 6255-0613937a45-lite.chunk.js} +0 -0
- /package/dist/scripts/{6369-2e6a9873bc-lite.chunk.js → 6369-72d977b629-lite.chunk.js} +0 -0
- /package/dist/scripts/{6801-958fd62c7b-lite.chunk.js → 6801-8e542cded8-lite.chunk.js} +0 -0
- /package/dist/scripts/{7007-4162314843-lite.chunk.js → 7007-322fe4cee7-lite.chunk.js} +0 -0
- /package/dist/scripts/{7756-75b039e775-lite.chunk.js → 7756-9bffa0ba48-lite.chunk.js} +0 -0
- /package/dist/scripts/{777-7da53eafaf-lite.chunk.js → 777-8dad152202-lite.chunk.js} +0 -0
- /package/dist/scripts/{7958-de2d43b6cd-lite.chunk.js → 7958-421db1a997-lite.chunk.js} +0 -0
- /package/dist/scripts/{7989-d27d009387-lite.chunk.js.LICENSE.txt → 7989-4762231e68-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8300-1812f33b07-lite.chunk.js → 8300-40617c6125-lite.chunk.js} +0 -0
- /package/dist/scripts/{9424-01bf5b0ff5-lite.chunk.js → 9424-26fd2eab2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{9482-dcd8e035d8-lite.chunk.js → 9482-d40d77f47f-lite.chunk.js} +0 -0
- /package/dist/scripts/{969-dfdef4e7d8-lite.chunk.js → 969-cee5fad6f6-lite.chunk.js} +0 -0
- /package/dist/scripts/{9767-c5aaebdd28-lite.chunk.js → 9767-b2d445a86d-lite.chunk.js} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3588-8694fd9727-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3588],{63850:(t,e,r)=>{r.d(e,{h:()=>fr});var n,o=r(1024),i=r.n(o),a=r(2903),c=r(65858),l=r(58130),u=r(2786),s=r(83914),f=r(99742),p=r(42976);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var h=["uk","gb","gg","im","je","ie"],d={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y=function(t){return d[null==t?void 0:t.toLowerCase()]||n.US},m={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},v={getMarketingUrlForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode);return m.Marketing[e]||m.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getTermsAndConditionsLink:function(t){return this.getMarketingUrlForGeoLocation(t)+"/terms-and-conditions/"},getSupportUrlForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode);return m.Support[e]||m.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="/login";return t.length?"".concat(e,"?redirectUrl=").concat(t):"/login"}};function g(t,e){var r=t===e?"bg-info":"bg-light";return"".concat("rounded-circle mx-2 HuHpb"," ").concat(r)}function b(t){return i().createElement("div",{className:"w-100 d-flex align-items-center justify-content-center"},t.crumbs.map((function(e){return i().createElement("div",{className:g(t.currentStep,e),key:e})})))}function w(t){return i().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i().createElement(s.x,{svgName:l.vn.ChevronLeft,size:s.S.Medium}),t.children)}var x=r(83345),E=r(49985),S=r(55460);function L(t){var e=t.href,r=t.className,n=t.newTab,i=t.children,a={onClick:function(r){var o;r.preventDefault(),null===(o=t.onClick)||void 0===o||o.call(t,r),t.analyticsData&&t.analyticsOptions&&E.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),S.LocationUtils.PageLoad(e,n)},href:e,className:r};return o.createElement("a",Object.assign({},a),i)}var k="signUp.general.termsAndConditions";function j(t){return i().createElement("span",{className:"text-center text-md mt-2 text-normal"},i().createElement(x.x,{phrase:"text",namespace:k})," ",i().createElement(L,{href:t.link,onClick:t.onClick,className:"info-link",newTab:!0},i().createElement(x.x,{phrase:"link",namespace:k})))}var O="signUp.general.existingAccountSignIn";function N(t){return i().createElement(i().Fragment,null,i().createElement(x.x,{phrase:"text",namespace:O}),i().createElement(L,{href:t.link,onClick:t.onClick,className:"info-link pl-1"},i().createElement(x.x,{phrase:"link",namespace:O})))}var A=r(26392);P.defaultProps={showBackButton:!0};var _=["enter-email","find-school"],I=["enter-email","find-school","cant-find-school"];function P(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,o=t.hasPreviousStep,a=t.showBackButton,h=t.closeApp,d=t.children,y=v.getTermsAndConditionsLink(e);function m(){return["enter-email","find-school","cant-find-school"].includes(r)}function g(){n(),t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.Back,workflowPhase:c.WorkflowPhase.Back})}var x=I.includes(t.currentStep),E=x?"".concat(A.Z.leftHalfLayout," ").concat(A.Z.withBg):A.Z.leftHalfLayout;return i().createElement("div",{className:E},i().createElement("div",{className:"row mx-0 p-3 ".concat(A.Z.zIndex1)},i().createElement("div",{className:"col d-lg-none"},o&&m()&&a&&i().createElement(w,{onClick:g})),i().createElement("div",{className:"col col-lg-6 px-0"},i().createElement("div",{className:A.Z.logo},i().createElement("div",{className:"d-none d-lg-block"},x?i().createElement(u.Yo,null):i().createElement(u.$S,null)),i().createElement("div",{className:"d-block d-lg-none"},i().createElement(u.$S,null)))),i().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},i().createElement("div",{className:"px-3"},i().createElement("div",{className:"d-none d-lg-block"},o&&m()&&a&&i().createElement(w,{onClick:g}))),i().createElement("a",{onClick:h,className:"cursor-pointer d-inline-flex align-items-center"},i().createElement(s.x,{svgName:l.vn.Close,size:s.S.Medium})))),i().createElement("div",{className:"row mx-0 flex-grow-1 ".concat(A.Z.zIndex1)},x&&i().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},i().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},i().createElement("img",{src:f.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),i().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(x?"col-12 col-lg-6":"col-12")},i().createElement("div",{className:"d-flex flex-column h-100"},_.includes(t.currentStep)&&i().createElement("div",{className:"d-flex mb-2"},i().createElement(b,{crumbs:_,currentStep:r})),i().createElement("div",{className:"position-relative flex-grow-1"},d),i().createElement("div",{className:"position-relative text-center"},"select-type"===r&&i().createElement(N,{link:v.getLoginLink(p._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}),"enter-email"===r&&i().createElement(j,{link:y,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.TermsAndConditions})}}))))))}U.defaultProps={showBackButton:!0};var T,C=["select-type","enter-email","find-school"];function U(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,o=t.hasPreviousStep,a=t.showBackButton,l=t.children,s=v.getTermsAndConditionsLink(e);return i().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("Ct4Ij")},i().createElement("div",{className:"d-flex mt-3 mb-2"},C.includes(r)&&i().createElement(b,{crumbs:C,currentStep:r})),i().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===r?"ifgIL":["enter-email","find-school","cant-find-school"].includes(r)?"VkYGJ":"LFZms")},i().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},o&&a&&["enter-email","find-school","cant-find-school"].includes(r)&&i().createElement(w,{onClick:function(){n(),t.logUserAction({step:r},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.Back,workflowPhase:c.WorkflowPhase.Back})}}),i().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("RcL6k")},i().createElement(u.$S,null))),l),i().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===r&&i().createElement(N,{link:v.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}),["enter-email","find-school"].includes(r)&&i().createElement(j,{link:s,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.TermsAndConditions})}})))}function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function F(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==G(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===G(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D,M,R,K={"cant-find-school":P,"enter-email":P,"find-school":P,"select-type":P,completed:P},B={"cant-find-school":U,"enter-email":U,"find-school":U,"select-type":U,completed:U},$=(F(T={},a.c.FullPage,B),F(T,a.c.Popup,K),T);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function z(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(D||(D={})),function(t){t.InvalidEmail="invalid-email"}(M||(M={}));var H=(z(R={},D.Available,f.W.SignUp.VERIFY_ACCOUNT),z(R,D.Active,f.W.SignUp.EXISTING_CUSTOMER),z(R,D.Expired,f.W.SignUp.EXPIRED_TRIAL),z(R,D.NotRequired,f.W.SignUp.EXISTING_CUSTOMER),z(R,D.Unavailable,f.W.SignUp.NOT_AVAILABLE),z(R,D.Unsupported,f.W.SignUp.NOT_AVAILABLE),R);function W(t){return i().createElement("div",{className:"d-flex justify-content-center my-5 px-2 px-lg-4"},i().createElement("img",{src:H[t.trialStatus],className:"w-100 h-auto"}))}var Z=r(23481),q=r(2102),V=r(33003),J=r.n(V),Q=r(63093),X=r(15661);function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(){et=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==tt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var rt=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))},nt={config:function(){return rt(this,void 0,void 0,et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",X.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return rt(this,void 0,void 0,et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",X.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(){it=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ot(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var at=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))},ct={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},lt={getConfig:function(){return at(this,void 0,void 0,it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt.config();case 2:return t.t0=t.sent,t.next=5,nt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return at(this,void 0,void 0,it().mark((function e(){var r,n,o,i,a;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lt.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,i=y(null==t?void 0:t.countryCode),a=n.braze[ct[i]],e.abrupt("return",(0,Q.getInstance)({baseUrl:a.url,apiKey:a.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return J().hash(e)}};function ut(t,e){return e?"".concat(t," ").concat(e):t}var st=function(t){return i().createElement("h4",{className:ut("text-center font-weight-bold mb-2",t.className)},t.children)},ft=function(t){return i().createElement("div",{className:ut("text-center text-sm px-2 px-lg-4",t.className)},t.children)},pt=function(t){return i().createElement("p",{className:ut("mb-1",t.className)},t.children)};function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(){dt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ht(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function yt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var vt="signUp.completedStepItem.unsupported",gt=Z.T.encloseNamespace(vt),bt="signUp.completedStepItem.expiredTrial",wt=r(99940);function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Et(){Et=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var St=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))},Lt={checkTrialStatus:function(t){return St(this,void 0,void 0,Et().mark((function e(){var r;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",X.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");X.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return St(this,void 0,void 0,Et().mark((function e(){var r;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",X.b.asyncFetch({url:"/api/user/trials",method:wt.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return St(this,void 0,void 0,Et().mark((function r(){var n;return Et().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",X.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:wt.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function kt(t){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(t)}function jt(){jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==kt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var At="signUp.completedStepItem.verifyAccount",_t="signUp.completedStepItem.existingCustomer";function It(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return i().createElement(ft,{className:"mb-3"},i().createElement(st,null,i().createElement(x.x,{namespace:_t,phrase:"heading"})),i().createElement(st,null,e?i().createElement(x.x,{phrase:"schoolMessageTitle",namespace:_t,options:{school:r}}):i().createElement(x.x,{phrase:"userMessageTitle",namespace:_t})),i().createElement(pt,null,e?i().createElement(x.x,{phrase:"schoolMessageParagraph",namespace:_t}):i().createElement("a",{href:v.getLoginLink(p._.getRelativeUrl()),className:"btn btn-dark"},"Sign in")),i().createElement(pt,null,i().createElement(x.x,{phrase:"helpText",namespace:_t})," ",i().createElement(L,{href:v.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},i().createElement(x.x,{phrase:"helpLink",namespace:_t}))))}var Pt,Tt="signUp.completedStepItem.trialNotAvailable";function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function Ut(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ct(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ct(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gt=(Ut(Pt={},D.Available,(function(t){var e=Ot(i().useState(0),2),r=e[0],n=e[1],o=Ot(i().useState(!1),2),a=o[0],l=o[1];if(null==t?void 0:t.email)return i().createElement(ft,null,i().createElement(st,null,i().createElement(x.x,{namespace:At,phrase:"heading"})),i().createElement(pt,null,i().createElement(x.x,{namespace:At,phrase:"message",options:{email:t.email}})),r<1?i().createElement(pt,null,i().createElement(x.x,{namespace:At,phrase:"helpText"})," ",i().createElement("button",{onClick:function(e){return o=this,i=void 0,a=void 0,u=jt().mark((function o(){return jt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Lt.resendTrialEmail(t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(a||(a=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}));var o,i,a,u},className:"btn info-link p-0"},i().createElement(x.x,{namespace:At,phrase:"helpLink"}))):i().createElement(x.x,{namespace:At,phrase:"resent"}),a&&i().createElement(pt,{className:"mb-0 text-danger"},i().createElement(x.x,{namespace:At,phrase:"resendErrorText"})," ",i().createElement("a",{href:v.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},i().createElement(x.x,{namespace:At,phrase:"resendErrorLink"}))))})),Ut(Pt,D.Active,It),Ut(Pt,D.Expired,(function(t){var e=v.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return i().createElement(ft,null,i().createElement(st,null,r?i().createElement(x.x,{namespace:bt,phrase:"schoolMessageTitle",options:{schoolName:n}}):i().createElement(x.x,{namespace:bt,phrase:"userMessageTitle"})),i().createElement(pt,null,i().createElement(x.x,{namespace:bt,phrase:"context"})," ",i().createElement(L,{href:e,className:"info-link",newTab:!0},i().createElement(x.x,{namespace:bt,phrase:"contextLink"}))))})),Ut(Pt,D.NotRequired,It),Ut(Pt,D.Unavailable,(function(t){var e=v.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return i().createElement(ft,null,i().createElement(st,null,i().createElement(x.x,{namespace:Tt,phrase:"heading"})),i().createElement(st,{className:"mb-3"},r?i().createElement(x.x,{namespace:Tt,phrase:"schoolMessage",options:{schoolName:n}}):i().createElement(x.x,{namespace:Tt,phrase:"userMessage"})),i().createElement(pt,null,i().createElement(x.x,{namespace:Tt,phrase:"helpText",options:{link:e}})))})),Ut(Pt,D.Unsupported,(function(t){var e=yt(i().useState(!1),2),r=e[0],n=e[1],o=yt(i().useState(),2),a=o[0],c=o[1],l=yt(i().useState(!1),2),u=l[0],s=l[1];function f(){var e={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,user_type:null==t?void 0:t.userType,organisation_sub_type:null==t?void 0:t.schoolType,account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country};return Object.keys(e).forEach((function(t){var r;e[t]&&(null===(r=e[t])||void 0===r?void 0:r.length)||delete e[t]})),e}return i().createElement(ft,null,i().createElement(st,{className:"px-2 px-lg-4"},i().createElement(x.x,{namespace:vt,phrase:"schoolMessageTitle"})),i().createElement(pt,null,i().createElement(x.x,{namespace:vt,phrase:"schoolMessageDescription"})),i().createElement(pt,null,u?i().createElement(x.x,{namespace:vt,phrase:"contextLinkAdded"}):i().createElement(q.m,{onClick:function(){return e=this,r=void 0,o=void 0,i=dt().mark((function e(){var r,o;return dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,lt.getClient(t.geoLocation);case 4:r=e.sent,n(!0),o=f(),r.setUser(lt.hashedEmail(null==t?void 0:t.email)),r.setUserEmail(null==t?void 0:t.email),r.openSession(),Object.entries(o).forEach((function(t){var e=yt(t,2),n=e[0],o=e[1];return r.setCustomUserAttribute(n,o)})),r.logEvent({type:"product_unsupported",data:o}),r.sendData((function(t){t?(c(void 0),s(!0)):(c(gt("error")),s(!1)),n(!1)}));case 13:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function c(t){try{l(i.throw(t))}catch(t){n(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(e,r||[])).next())}));var e,r,o,i},className:"btn ".concat(u?"btn-success":"btn-dark"),showSpinner:r},i().createElement(x.x,{namespace:vt,phrase:"contextLink"})),a&&i().createElement("span",{className:"text-danger"},a)))})),Pt);function Ft(t){var e=Gt[t.trialStatus];return i().createElement(e,Object.assign({},t))}function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function Mt(){Mt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Dt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Bt,$t=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Yt="signUp.enterEmailStepItem",zt=Z.T.encloseNamespace(Yt),Ht=[D.Expired,D.NotRequired,D.Unavailable,D.Unsupported,D.Active];!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(Bt||(Bt={}));var Wt=function(t){return function(t){return(null==t?void 0:t.toLowerCase())===n.US}(t)||function(t){return h.includes(t)}(t)?Bt.Freemium:Bt.FourteenDays},Zt=r(99910),qt=r(28329);function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Vt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Qt={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),X.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Jt().mark((function e(){return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",X.b.asyncFetch({url:"/api/prospects",method:wt.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};const Xt="j8tBX",te="hQufn",ee="CnoBz",re="GQ_aO";function ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ie="signUp.searchSchoolStepItem",ae=Z.T.encloseNamespace(ie);function ce(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick;return i().createElement(i().Fragment,null,e.map((function(t){return i().createElement("div",{className:re,key:t.id,onClick:function(){return n(t)}},i().createElement("span",null,r(t)))})))}function le(t){return i().createElement("div",{className:"info-link ".concat("xaEZw"),onClick:t.handleNoSuggestion},i().createElement(x.x,{namespace:ie,phrase:"cantFindSchool"}))}function ue(t){var e,r=ne(i().useState(!0),2),n=r[0],o=r[1],a=ne(i().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),l=a[0],u=a[1],s=ne(i().useState(),2),f=s[0],p=s[1],h=(0,qt.N)(l,250),d=!!(null===(e=t.data)||void 0===e?void 0:e.prospectId),y=n&&!d,m=!n&&!d&&!(null==f?void 0:f.length),v=(null==f?void 0:f.length)&&!d;function g(e){o(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Qt.search(r,(function(t){return p(t)}),null,(function(){return o(!1)}))}function b(t){return t.name}function w(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:l,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.CantFindSchool,workflowPhase:c.WorkflowPhase.Next})}return i().useEffect((function(){d||(h.length?!d&&h.length>1&&h===l&&g(h):g())}),[h,d]),i().createElement("div",{className:"mb-2 position-relative"},i().createElement("input",{value:l,onChange:function(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e.target.value!==l&&u(e.target.value)},className:"form-control ".concat(v||y||m?te:Xt),type:"text",autoComplete:"off",placeholder:ae("schoolInputPlaceholder"),disabled:t.disabled}),i().createElement("div",{className:"position-absolute w-100"},v?i().createElement("div",{className:ee},i().createElement(ce,{filteredSchoolsList:f,onSchoolSuggestionClick:function(e){u(b(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)},getSchoolName:b}),!m&&i().createElement(le,{handleNoSuggestion:w})):y&&i().createElement("div",{className:ee},i().createElement("div",{className:"".concat("Eo2UF"," py-4 d-flex justify-content-center")},i().createElement(Zt.Spinner,{animation:"border"}))),m&&i().createElement("div",{className:ee},i().createElement(le,{handleNoSuggestion:w}))))}var se=r(10874),fe=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r};const pe="__googleMapsScriptId";var he;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(he||(he={}));class de{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=pe,language:i,libraries:a=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||pe,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,de.instance){if(!fe(this.options,de.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(de.instance.options)}`);return de.instance}de.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?he.FAILURE:this.done?he.SUCCESS:this.loading?he.LOADING:he.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ve(t){return new de({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function ge(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=ye(i().useState(!1),2),n=r[0],o=r[1],a=ye(i().useState(ve(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(ve(e))}return i().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function be(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var xe=function(t){var e,r,n,o,i,a=t.formatted_address,c=be(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=be(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:a,country:n,postalCode:o,city:e,province:r}};function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Le(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Le(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ke(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?je(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Oe="signUp.searchSchoolStepItem",Ne=Z.T.encloseNamespace(Oe);function Ae(t){var e=t.predictions,r=t.getPlaceInfo;return i().createElement(i().Fragment,null,e.map((function(t){return i().createElement("div",{className:re,key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function _e(t){var e,r,n,o,a,u=i().useRef(),f=ke(i().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),p=f[0],h=f[1],d=ke(i().useState(!1),2),y=d[0],m=d[1],v=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,o=ge({apiKey:t.apiKey}).scriptLoaded,a=Se(i().useState(),2),c=a[0],l=a[1];i().useEffect((function(){o&&l(new google.maps.places.AutocompleteService)}),[o]);var u=(0,qt.N)(e,300),s=Se(i().useState(),2),f=s[0],p=s[1];function h(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?p(t):p(void 0)}return i().useEffect((function(){if(c)if(0!==(null==u?void 0:u.length)&&r){var t=(null==n?void 0:n.countryCode)||"us";c.getPlacePredictions({input:u,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},h)}else p(void 0)}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=xe(t),a=i.locality,c=i.country,l=i.postalCode,u=i.city,s=i.province;r({longitude:n,latitude:o,locality:a,country:c,city:u,postalCode:l,province:s})}}))}}}({search:p,makePredicition:y,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=function(t){var e,r,n=(e=i().useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1],c=ge(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),i=xe(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){t.onPositionError(e)}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(){m(!0)}}),E=w.placeDetails,S=w.onClickGetCurrentLocation;function L(e){var r=e.longitude,n=e.latitude,o=e.locality,i=e.country,a=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),i&&t.setDataProperty("country",i),a&&t.setDataProperty("city",a),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),h(e)}(o)}i().useEffect((function(){L(E)}),[E]);var k,j=(null==g?void 0:g.length)&&!(null===(n=null===(r=t.data)||void 0===r?void 0:r.schoolLocality)||void 0===n?void 0:n.length),O=window.navigator.geolocation&&!(null===(a=null===(o=t.data)||void 0===o?void 0:o.schoolLocality)||void 0===a?void 0:a.length),N=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat("zCAkp");return i().createElement("div",{className:"form-group position-relative"},i().createElement("label",{className:N,htmlFor:"locality-input"},i().createElement(x.x,{namespace:Oe,phrase:"localityInputLabel"})),i().createElement("input",{type:"text",value:p,onChange:function(e){var r,n,o;y||m(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),h(e.target.value)},id:"locality-input",className:(k="form-control",j?"".concat(k," ").concat(te):"".concat(k," ").concat(Xt)),ref:u,autoComplete:"off",placeholder:Ne(function(){var e,r,n="LocalityInputPlaceholder";return["gb","gg","im","je","ie"].includes(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode.toLocaleLowerCase())?"uk".concat(n):["nz","au"].includes(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode.toLocaleLowerCase())?"au".concat(n):"us".concat(n)}()),disabled:t.disabled}),i().createElement("div",{className:"position-absolute w-100"},!!j&&i().createElement("div",{className:function(){var t=ee;return j&&O?"".concat(t," ").concat("E3f3x"):"".concat(t)}()},i().createElement(Ae,{predictions:g,getPlaceInfo:function(t){y&&m(!1),b(t,u,L)}})),O&&i().createElement("div",{className:j?ee:"d-flex"},i().createElement(se.h,{onClick:function(e){e.preventDefault(),m(!1),S(),t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.UseMyLocation})},svgName:l.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:s.S.Small},i().createElement(x.x,{namespace:Oe,phrase:"locationButtonText"})))))}function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Pe(){Pe=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ie(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Te(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ce(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ce(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ue,Ge="signUp.searchSchoolStepItem",Fe=Z.T.encloseNamespace(Ge);!function(t){t.Staff="staff",t.Learner="learner"}(Ue||(Ue={}));const De={userTypeOption:"tbNZB",selected:"Ehs7R"};function Me(t){return i().createElement("div",{className:"d-flex flex-column justify-content-between h-100 cursor-pointer overflow-hidden p-3 mx-auto ".concat(De.userTypeOption," ").concat(t.selected?De.selected:""),onClick:function(){return t.onClick(t.type)}},i().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i().createElement("div",{className:"d-flex justify-content-center align-items-center text-dark py-2 font-weight-bold"},i().createElement("h3",{className:"".concat(De.userTypeOptionText," mb-0"),dangerouslySetInnerHTML:{__html:t.buttonText}})))}var Re,Ke="signUp.selectUserTypeStepItem",Be=Z.T.encloseNamespace(Ke);!function(t){t.Published="Published",t.Draft="Draft"}(Re||(Re={}));var $e=["Primary","Secondary","K12","Special","TAFE","University"],Ye=["Elementary","Middle School","High School","College","Other"],ze={au:$e,nz:$e,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Ye};function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function We(){We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==He(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ve="signUp.cantFindSchoolStepItem",Je=Z.T.encloseNamespace(Ve),Qe={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:c.UserAction.Click,workflowPhase:c.WorkflowPhase.Next,descriptor:e===Ue.Staff?c.SignUpDescriptors.Educator:c.SignUpDescriptors.Student}),t.nextStep({step:"enter-email",userType:e})}return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("h4",{className:"text-center font-weight-500 mb-3"},i().createElement(x.x,{namespace:Ke,phrase:"heading"})),i().createElement("p",{className:"text-sm text-center"},i().createElement(x.x,{namespace:Ke,phrase:"subHeading"}))),i().createElement("div",{className:"row mx-auto"},i().createElement("div",{className:"col-lg-6 flex-grow-1 mb-3 mb-lg-0"},i().createElement(Me,{type:Ue.Staff,buttonText:Be("educatorButtonText"),imageSrc:f.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===Ue.Staff})),i().createElement("div",{className:"col-lg-6 flex-grow-1"},i().createElement(Me,{type:Ue.Learner,buttonText:Be("studentButtonText"),imageSrc:f.W.SignUp.STUDENT,onClick:e,selected:t.userType===Ue.Learner}))))},"enter-email":function(t){var e,r,n=Rt(i().useState(!1),2),o=n[0],a=n[1],l=Rt(i().useState((null==t?void 0:t.email)||""),2),u=l[0],s=l[1],f=Rt(i().useState(),2),h=f[0],d=f[1],y=(e=t.geoLocation,r=v.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function m(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Mt().mark((function e(){var r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?$t.test(u)||(d(zt("invalidEmailErrorText")),0):(d(zt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return a(!0),d(""),e.prev=4,e.next=7,Lt.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),d(zt("trialStatusErrorText")),e.abrupt("return");case 14:if(a(!1),r.status!==M.InvalidEmail){e.next=18;break}return d(zt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:c.UserAction.Click,workflowPhase:c.WorkflowPhase.Next,descriptor:c.SignUpDescriptors.EnterEmail}),!Ht.includes(r.status)){e.next=22;break}return t.complete({email:u,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:u});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}))}()}return i().createElement("div",{className:"d-flex justify-content-between flex-column mx-auto h-100"},i().createElement("div",null,i().createElement("h4",{className:"text-center font-weight-500 mb-3"},i().createElement(x.x,{namespace:Yt,phrase:"heading"})),i().createElement("form",{className:"d-flex justify-content-center flex-column",onSubmit:m},i().createElement("label",{className:"text-left mb-1",htmlFor:"email-input"},i().createElement(x.x,{namespace:Yt,phrase:"emailInputLabel"})),i().createElement("input",{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),d("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg rounded ".concat(h&&"is-invalid"),placeholder:zt("emailInputPlaceholder"),autoComplete:"false",autoCorrect:"false"}),h&&i().createElement(i().Fragment,null,i().createElement("small",{className:"text-danger mt-2"},h),i().createElement("small",{className:"text-dark mt-1"},i().createElement(x.x,{phrase:"emailInputHelpText",namespace:Yt}),i().createElement(L,{href:y,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},i().createElement(x.x,{phrase:"emailInputHelpLinkText",namespace:Yt})))),i().createElement(q.m,{showSpinner:o,className:"btn btn-dark mt-2",disabled:o,onClick:m},i().createElement(x.x,{namespace:Yt,phrase:"nextButtonText"}))),i().createElement("div",{className:"text-md mt-2"},i().createElement(N,{link:v.getLoginLink(p._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}))))},"find-school":function(t){var e=t.email,r=t.userType,n=Te(i().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude}),2),o=n[0],a=n[1],c=Te(i().useState(),2),l=c[0],u=c[1],s=Te(i().useState(),2),f=s[0],p=s[1],h=Te(i().useState(!1),2),d=h[0],y=h[1],m=Te(i().useState(!1),2),v=m[0],g=m[1],b=Te(i().useState(!1),2),w=b[0],E=b[1];function S(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function L(t){g(t),E(t),y(t)}function k(t,e){"prospectId"===t&&e&&(y(!0),Lt.checkProspectTrialStatus({prospectId:e.toString()},(function(t){u(t.status)}),(function(){console.log("error")}),(function(){y(!1)}))),a((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ie(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ie(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function j(){k("prospectId",void 0),k("schoolName",""),k("schoolPostCode",void 0),p(void 0)}return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto mb-2"},i().createElement("h4",{className:"text-center font-weight-500 mb-2"},i().createElement(x.x,{namespace:Ge,phrase:"groupHeading"})),i().createElement("p",{className:"text-center"},i().createElement(x.x,{namespace:Ge,phrase:"groupSubHeading"}))),i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("form",{className:"d-flex justify-content-center flex-column"},i().createElement(_e,{data:o,setDataProperty:k,clearStepGroupData:function(){k("schoolLocality",void 0),a((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),k("city",void 0),k("province",void 0),k("country",void 0),j(),p(void 0)},disabled:v,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&i().createElement(ue,{data:o,setDataProperty:k,clearStepItemData:j,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:w,logUserAction:t.logUserAction}),f&&i().createElement("p",{className:"text-danger mb-2"},f),S()&&i().createElement(q.m,{className:"btn btn-dark font-weight-bold",onClick:function(){return n=this,i=void 0,a=void 0,c=Pe().mark((function n(){var i;return Pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d){n.next=2;break}return n.abrupt("return");case 2:if(S()){n.next=5;break}return p(Fe("cannotSubmitFormError")),n.abrupt("return");case 5:if(l===D.Active||l===D.Available){n.next=8;break}return t.complete(Object.assign({trialStatus:l,trialCreated:!1},o)),n.abrupt("return");case 8:return L(!0),n.prev=9,n.next=12,Lt.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Wt(o.country)});case 12:i=n.sent,n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(9),p(Fe("requestTrialError")),L(!1),n.abrupt("return");case 20:if(i.id&&i.dateCreated){n.next=24;break}return p(Fe("requestTrialError")),L(!1),n.abrupt("return");case 24:k("userId",i.id),t.complete(Object.assign({userId:i.id,trialCreated:!0,trialStatus:D.Available},o));case 26:case"end":return n.stop()}}),n,null,[[9,15]])})),new(a||(a=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function o(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,o)}l((c=c.apply(n,i||[])).next())}));var n,i,a,c},showSpinner:v||w||d,disabled:v||w||d},i().createElement(x.x,{namespace:Ge,phrase:"submitButtonText"})))))},"cant-find-school":function(t){var e,r,n,o=Ze(i().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country}),2),a=o[0],c=o[1],l=Ze(i().useState(),2),u=l[0],s=l[1],f=Ze(i().useState(!1),2),p=f[0],h=f[1],d=(r=a.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=y(r),ze[n]||Ye);function m(){var t=a.schoolName,e=a.schoolType,r=a.country;return!!(t&&e&&r)}function v(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==He(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===He(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function g(e){return r=this,n=void 0,o=void 0,i=We().mark((function r(){var n,o,i;return We().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),m()){r.next=3;break}return r.abrupt("return");case 3:return h(!0),r.prev=4,r.next=7,Qt.create({name:a.schoolName,status:Re.Draft,countryCode:a.country,prospectType:a.schoolType,city:a.city,postCode:a.schoolPostCode,province:a.province});case 7:if((n=r.sent).id){r.next=12;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 19:return r.prev=19,r.next=22,Lt.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Wt(a.country)});case 22:if((o=r.sent).id){r.next=27;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 27:t.complete({email:t.email,userId:o.id,prospectId:n.id,schoolName:a.schoolName,trialStatus:D.Available,trialCreated:!0}),r.next=38;break;case 30:if(r.prev=30,r.t1=r.catch(19),r.t1.body){r.next=36;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 36:400===(i=r.t1).body.status&&"trial-not-available"===i.body.type&&t.complete(Object.assign({trialStatus:D.Unsupported,trialCreated:!1},a));case 38:case"end":return r.stop()}}),r,null,[[4,14],[19,30]])})),new(o||(o=Promise))((function(t,e){function a(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(r,n||[])).next())}));var r,n,o,i}return i().createElement("form",{onSubmit:g},i().createElement("div",{className:"d-flex flex-column justify-content-center mx-auto mb-2"},i().createElement("h4",{className:"text-center font-weight-500 mb-2"},i().createElement(x.x,{namespace:Ve,phrase:"heading"})),i().createElement("p",{className:"text-center"},i().createElement(x.x,{namespace:Ve,phrase:"subHeading"}))),i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-name-input"},i().createElement(x.x,{namespace:Ve,phrase:"schoolNameInputLabel"})),i().createElement("input",{type:"text",value:(null==a?void 0:a.schoolName)||"",onChange:function(t){v("schoolName",t.target.value)},id:"school-name-input",className:"form-control",autoComplete:"off",placeholder:Je("schoolNameInputPlaceholder")})),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-type-select"},i().createElement(x.x,{namespace:Ve,phrase:"schoolTypeInputLabel"})),i().createElement("select",{id:"school-type-select",className:"form-control ".concat(a.schoolType?"":"text-muted"),autoComplete:"off",value:a.schoolType||"none",onChange:function(t){v("schoolType",t.target.value)}},i().createElement("option",{value:"none",className:"text-muted",disabled:!0},Je("schoolTypeInputDefault")),d.map((function(t){return i().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i().createElement(_e,{data:a,setDataProperty:v,clearStepGroupData:function(){v("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),v("city",void 0),v("province",void 0),v("country",void 0),v("schoolName",""),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),i().createElement("div",{className:"text-danger mb-3"},u||""),m()&&i().createElement(q.m,{className:"btn btn-dark font-weight-bold",onClick:g,showSpinner:p,disabled:p},i().createElement(x.x,{namespace:Ve,phrase:"submitButtonText"}))))},completed:function(t){return i().useEffect((function(){var e={actionType:c.UserAction.Create,descriptor:c.SignUpDescriptors.DeadEnd,workflowPhase:c.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=c.SignUpDescriptors.TrialCreated,e.workflowPhase=c.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),t.trialStatus&&t.email?i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i().createElement(W,{trialStatus:t.trialStatus}),i().createElement(Ft,Object.assign({},t))):i().createElement(i().Fragment,null)}};function Xe(t){var e=t.state,r=t.layoutMapping,n=t.back,o=t.nextStep,a=t.complete,c=t.hasPreviousStep,l=t.logUserAction,u=Qe[e.currentStepId],s=Object.assign(Object.assign({},e),{geoLocation:t.geoLocation,googleMapsApiKey:t.googleMapsApiKey,pageAppLinkString:t.pageAppLinkString,back:n,nextStep:o,complete:a,logUserAction:l}),f=r[e.currentStepId];return f?i().createElement(f,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:n,closeApp:t.close,logUserAction:l,hasPreviousStep:c},i().createElement(u,Object.assign({},s))):i().createElement(u,Object.assign({},s))}var tr=r(1048);function er(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return rr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("completed"===e.step){var o=tr.t.omit(e,["type","step"]);return o=tr.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return er(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return er(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?er(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function or(t){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(t)}function ir(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ar(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ar(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];tr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,lr(n)):e[r]=n})),e}function ur(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),i().createElement("div",{className:"pb-1"},e,": ",i().createElement("b",{className:"text-white"},n))}function sr(t){var e,r,n=t.developmentEnv,o=t.objects,a=(e=i().useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return cr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1],u=i().useMemo((function(){return lr(o)}),[o]);return n&&i().createElement(i().Fragment,null,i().createElement("div",{className:"position-fixed p-4 ".concat("muxxq")},i().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&i().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat("pbBua")},i().createElement("code",{className:"d-block p-4"},i().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return i().createElement(ur,{key:t,label:t,item:u[t]})})))))}function fr(t){var e,r=(e=t.type,$[e]),n=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=Object.assign({currentStepId:"select-type",previousStepIds:[]},r),a=ir(i().useReducer(nr,o),2),l=a[0],u=a[1];return i().useEffect((function(){null==n||n(l.currentStepId)}),[l.currentStepId]),{state:l,back:function(){u({type:"back"})},nextStep:function(t){u(Object.assign({type:"nextStep"},t))},complete:function(t){u(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!l.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({currentStepId:l.currentStepId},tr.t.omit(l,["email","longitude","latitude","trialCreated"])),t),o=Object.entries(n).filter((function(t){return void 0!==ir(t,2)[1]})).reduce((function(t,e){var r=ir(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==or(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===or(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});E.k.logUserAction(o,Object.assign({entity:c.EntityType.SignUp,location:e},r))}}}({location:t.location,initialValues:t.initialValues,onStepUpdate:t.onStepUpdate}),o=n.back,a=n.nextStep,l=n.complete,u=n.hasPreviousStep,s=n.state,f=n.logUserAction,p={state:s,layoutMapping:r,googleMapsApiKey:t.googleMapsApiKey,geoLocation:t.geoLocation,back:o,nextStep:a,complete:l,hasPreviousStep:u,logUserAction:f,close:t.close,pageAppLinkString:t.pageAppLinkString};return i().createElement(i().Fragment,null,i().createElement(Xe,Object.assign({},p)),i().createElement(sr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},s),{pageAppLinkString:t.pageAppLinkString}),t.geoLocation)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},15661:(t,e,r)=>{r.d(e,{b:()=>g});var n=r(99940);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},c(t)}function l(t,e,r){return l=u()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},l.apply(null,arguments)}function u(){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(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,r,n,o=(e=c,r=u(),function(){var t,n=f(e);if(r){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return a(this,t)});function c(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return i(this,c),(e=o.call(this,r)).body=t,e}return n=c,Object.defineProperty(n,"prototype",{writable:!1}),n}(c(Error)),h=r(42976);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(){y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new O(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(v=b);var w=m.prototype=p.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==d(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),l(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var m=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))};function v(t){var e={method:n.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r=t.url;return e.method===n.k.GET&&t.data?r=h._.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var g={asyncFetch:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new p(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=v(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))}},42976:(t,e,r)=>{r.d(e,{_:()=>n});var n={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r},getRelativeUrl:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname,n=r;return t&&(n+=window.location.search),e?encodeURIComponent(n):n}}},82301:(t,e,r)=>{r.d(e,{M:()=>s});var n=r(1024),o=r.n(n),i=r(15661);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new O(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function y(){}function m(){}var v={};s(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(v=b);var w=m.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,c,l){var u=p(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,c,l)}),(function(t){o("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,l)}))}l(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,u,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=["us","au","nz","gb","gg","im","je","ie"];function s(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function s(t){var e;u.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:"us"})}return o().useEffect((function(){!function(){var t,e,r,o;t=this,e=void 0,r=void 0,o=c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.b.fetch({url:"/api/geolocation"});case 5:s(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),s(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),new(r||(r=Promise))((function(n,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={zIndex1:"Hpi0T",logo:"JkF9k",modalBody:"CmPcN",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4182],{49935:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>m,b2:()=>f});var n=r(1024),a=r(8493),o=r(5859),l=r(86764),i=r(3747),c=r(83914),u=r(58130),s=function(e){var t=e.breadcrumb,r=t.name,o=t.appLink,l=t.active,i=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(l?" active":"")},l?n.createElement("strong",null,r):n.createElement(a.F,{appLink:o},i&&n.createElement(c.x,{svgName:u.vn.ChevronLeft,size:c.S.Small}),n.createElement("span",{className:i?"ml-2":""},r)))},m=function(e){var t=e.breadcrumbs,r=(0,i.a)(l.r.SMDown),a=null==t?void 0:t.length;return!a||r&&a<2?n.createElement(n.Fragment,null):r?n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0})):n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(s,{key:t,breadcrumb:e})})))},f=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},66903:(e,t,r)=>{"use strict";r.d(t,{k:()=>u});var n=r(1024),a=r(59087),o=r(99910),l=r(23481);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=l.T.encloseNamespace("shared.copyInput");function u(e){var t,r,l=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],s=l[1],m=n.createElement("div",{className:"input-group"},n.createElement("input",{type:"text",autoComplete:"off",className:"form-control ".concat("normal"===e.styling?"Q1UGv":""),spellCheck:!1,value:e.value,readOnly:!0}),n.createElement("div",{className:"input-group-append"},n.createElement(a,{text:e.value},n.createElement("button",{className:"btn btn-outline-dark border border-secondary py-0 text-nowrap ".concat("J3fBx"),onClick:function(t){t.preventDefault(),e.onCopy&&e.onCopy(),u||(s(!0),setTimeout((function(){return s(!1)}),2e3))}},c(u?"copied":"copy")))));return e.label?n.createElement(o.Form.Group,null,n.createElement(o.Form.Label,null,e.label),m):m}u.defaultProps={styling:"normal"}},23201:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(1024),a=r(92802),o=r(33936),l=r(83345),i=r(2102);function c(e){var t=(0,a.u6)(),r=(0,o.l)(t);return n.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!r,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?n.createElement(n.Fragment,null,e.submitText):n.createElement(l.x,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}},38365:(e,t,r)=>{"use strict";r.d(t,{n:()=>v,W:()=>h});var n=r(1024),a=r(92802),o=r(99910),l=r(1048),i=r(79014),c=r(73814),u=r(8493);function s(e){var t=e.label,r=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,l=e.className,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(o.Form.Group,null,n.createElement("div",{className:"custom-control custom-checkbox ".concat(l)},n.createElement(v,Object.assign({className:"custom-control-input"},i)),n.createElement(o.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===a?"font-weight-normal":""," \n ").concat(r),htmlFor:i.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=r(83914),f=r(58130),p=r(83345);function d(e){var t=(0,a.u6)().values[e.fieldName];return"string"!=typeof t?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function v(e){var t,r,o=e.children,c=y(e,["children"]),u=(t=n.useState(e.type),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],p=u[1],d=i.q.isFunction(o)?function(e){return o(e)}:n.Children.count(o)?o:null;if("password"!==c.type)return n.createElement(a.gN,Object.assign({},l.t.omit(c,["formSize"])),d);var v="position-relative ".concat("d78lK");return c.className&&(v+=" ".concat(c.className)),c.disabled&&(v+=" ".concat("asbVo")),n.createElement("div",{className:v},n.createElement(a.gN,Object.assign({},l.t.omit(c,["formSize","type","className"]),{type:s,className:"".concat("RBJnf"," border-0 w-100 h-100 outline-none rounded")}),d),"password"===c.type&&n.createElement(m.x,{svgName:"password"===s?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat("jCfI0"),onClick:function(){p("password"===s?"text":"password")}}))}function h(e){var t=e.label,r=e.className,i=e.showCharacterCounter,u=e.showRequiredStar,b=e.infoTooltip,h=e.infoText,g=e.formSize,O=e.showOptionalLabel,w=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),E=(0,a.u6)(),S=E.errors,C=E.touched,k=function(){};if("checkbox"===w.type){var j=l.t.omit(e,["formSize"]);return e.disabled&&(j.onChange=k),n.createElement(s,Object.assign({},j))}var x=Object.assign(Object.assign({},w),{className:c.w.getCustomFormControlClassName(S,C,w.name,g,r)});return e.disabled&&(x.onChange=k),n.createElement(o.Form.Group,null,!!t&&n.createElement(o.Form.Label,{htmlFor:w.id,className:"d-flex align-items-center"},t,u&&n.createElement("span",{className:"text-danger"},"*"),b&&n.createElement(m.x,{svgName:f.vn.Info,title:b,tooltipPlacement:"top",tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-muted"}," ",n.createElement(p.x,{namespace:"shared.formField",phrase:"optional"})),!!i&&!!w.maxLength&&n.createElement("div",{className:"ml-auto"},n.createElement(d,{fieldName:w.name,limit:w.maxLength}))),n.createElement(v,Object.assign({},x)),!!h&&n.createElement(o.Form.Text,{className:"text-muted"},h),n.createElement(a.Bc,{name:w.name},(function(e){return n.createElement(o.Form.Control.Feedback,{type:"invalid"},e)})))}v.defaultProps={autoComplete:"off"},h.defaultProps={autoComplete:"off"}},82644:(e,t,r)=>{"use strict";r.d(t,{b:()=>m,n:()=>s});var n=r(1024),a=r(92802),o=r(79014),l=r(1048);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e){var t=l.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(l.t.isObject(t[e])?t[e]=u(t[e]):null===t[e]&&delete t[e])})),t}function s(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,l=e.initialValues,c=e.onSubmit,s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(u(l)):l,f={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},s,{initialValues:m,onSubmit:function(t,n){var a=n.setSubmitting,o=n.resetForm,l=n.setFieldError,u=r&&e.validationSchema?e.validationSchema.cast(t):t;c(u,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.reset&&o(),e.errors)for(var t=0,r=Object.entries(e.errors);t<r.length;t++){var n=i(r[t],2),c=n[0],u=n[1];l(c,u)}a(!1)}))},initialStatus:f}),o.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function m(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},94644:(e,t,r)=>{"use strict";r.d(t,{r:()=>s});var n=r(81886),a=r(50242),o=r(67058),l=r(49075),i=r(14553),c=r(49267),u={notFound:o.d,forbidden:{rating:i.q,yearLevel:i.q,region:c.a,privacy:i.q},badRequest:l._};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var l=Object.assign(Object.assign({},u),t);o&&n.Q.ErrorHelper.isStatusCodeError(o)&&(o!==a.o.NotFound?o!==a.o.Forbidden?r.badRequest||n.Q.ErrorHelper.throw(new l.badRequest):r.forbidden||n.Q.ErrorHelper.throw(new l.forbidden.privacy):r.notFound||n.Q.ErrorHelper.throw(new l.notFound))}}},91286:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var n=r(1024),a=r(94644);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function l(e,t,r){var l=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){l.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[o(l),t,r])}},73814:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(92802),a={getCustomFormControlClassName:function(e,t,r,a,o){var l="form-control";return"sm"===a&&(l+=" form-control-sm"),"lg"===a&&(l+=" form-control-lg"),(0,n.u9)(t,r)&&(0,n.u9)(e,r)&&(l+=" is-invalid"),o&&(l+=" ".concat(o)),l}}},5859:(e,t,r)=>{"use strict";function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{u:()=>l});var o={numItems:5,minWidth:50,maxWidth:100},l={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},o),e),r=function(){return Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth)};return n(Array(t.numItems)).map((function(){return{width:"".concat(r(),"px")}}))}}},52734:(e,t,r)=>{"use strict";r.d(t,{W:()=>d});var n=r(1024),a=r.n(n),o=r(23481),l=r(83345),i=r(10874),c=r(58130),u=r(49935),s=r(97291),m=r(14070),f="settings.editLtiPlatformHeading",p=o.T.encloseNamespace(f);function d(e){return a().createElement(a().Fragment,null,a().createElement("div",{className:"d-flex align-items-center justify-content-between"},a().createElement("h1",{className:"h2"},e.name),a().createElement(i.h,{svgName:c.vn.Delete,appLink:e.deleteAppLink,className:"btn btn-outline-dark"},a().createElement(l.x,{namespace:f,phrase:"deletePlatform"}))),a().createElement("div",{className:"pb-3"},a().createElement(u.Oo,{breadcrumbs:[{name:p("settings"),appLink:{application:s.O.SETTINGS,action:m.e.Settings.HOME}},{name:p("ltiPlatforms"),appLink:{application:s.O.SETTINGS,action:m.e.Settings.LTI_PLATFORMS}},{name:e.name,active:!0}]})))}},28496:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(99940),a={getConsumers:function(){return{url:"/api/lti/consumers",key:"lti:consumers",normalize:!1}},getPlatforms:function(){return{url:"/api/lti/platforms",key:"lti:platforms",formatData:function(e){return e.map((function(e){return e.publicJwk=JSON.stringify(e.publicJwk),e}))},normalize:!1}},getConsumer:function(e){return{url:"/api/lti/consumers/".concat(e),key:"lti:consumer:".concat(e),normalize:!1}},getPlatform:function(e){return{url:"/api/lti/platforms/".concat(e),key:"lti:platform:".concat(e),formatData:function(e){return e.publicJwk=JSON.stringify(e.publicJwk),e},normalize:!1}},createConsumer:function(e,t,r){return{url:"/api/lti/consumers",key:"create:consumer",type:n.k.POST,invalidationKeys:["lti:consumers"],data:e,success:t,error:r}},createPlatform:function(e,t,r){return{url:"/api/lti/platforms",key:"create:platform",type:n.k.POST,invalidationKeys:["lti:platforms"],data:e,success:t,error:r}},updateConsumer:function(e,t,r){return{url:"/api/lti/consumers/".concat(e.key),key:"update:consumer",type:n.k.PUT,invalidationKeys:["lti:consumers","lti:consumer:".concat(e.key)],data:e,success:t,error:r}},updatePlatform:function(e,t,r){return{url:"/api/lti/platforms/".concat(e.id),key:"update:platform",type:n.k.PUT,invalidationKeys:["lti:platforms","lti:platform:".concat(e.id)],data:e,success:t,error:r}},deleteConsumer:function(e,t,r){return{url:"/api/lti/consumers/".concat(e),key:"delete:consumer",type:n.k.DELETE,invalidationKeys:"lti:consumers",success:t,error:r}},deletePlatform:function(e,t,r){return{url:"/api/lti/platforms/".concat(e),key:"delete:platform",type:n.k.DELETE,invalidationKeys:"lti:platforms",success:t,error:r}}}},42384:(e,t,r)=>{"use strict";r.d(t,{P:()=>c});var n=r(1024),a=r.n(n),o=r(37802),l=r(65858);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=function(){var e,t,r=(e=a().useState(void 0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,l,i=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],c=r[1],u=(0,o.r)(l.LocationContext.Settings).hasLti;return a().useEffect((function(){u&&!0!==n?c(!0):u||!1===n||c(!1)}),[u]),{canAccess:n}}},91969:(e,t,r)=>{"use strict";var n=r(47033),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,l,i,c,u,s=!1;t||(t={}),r=t.debug||!1;try{if(l=n(),i=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=a[t.format]||a.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),i.selectNodeContents(u),c.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(i):c.removeAllRanges()),u&&document.body.removeChild(u),l()}return s}},44818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=o(r(1024)),a=o(r(91969));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){function t(){var e,r;c(this,t);for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];return d(f(r=s(this,(e=m(t)).call.apply(e,[this].concat(l)))),"onClick",(function(e){var t=r.props,o=t.text,l=t.onCopy,i=t.children,c=t.options,u=n.default.Children.only(i),s=(0,a.default)(o,c);l&&l(o,s),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e)})),r}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,o=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["text","onCopy","options","children"]),a=n.default.Children.only(t);return n.default.cloneElement(a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(r,!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{onClick:this.onClick}))}}],o&&u(r.prototype,o),t}(n.default.PureComponent);t.CopyToClipboard=b,d(b,"defaultProps",{onCopy:void 0,options:void 0})},59087:(e,t,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},47033:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5606],{49935:(e,t,a)=>{a.d(t,{Oo:()=>m,b2:()=>d});var n=a(1024),r=a(8493),l=a(5859),i=a(86764),c=a(3747),o=a(83914),u=a(58130),s=function(e){var t=e.breadcrumb,a=t.name,l=t.appLink,i=t.active,c=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,a):n.createElement(r.F,{appLink:l},c&&n.createElement(o.x,{svgName:u.vn.ChevronLeft,size:o.S.Small}),n.createElement("span",{className:c?"ml-2":""},a)))},m=function(e){var t=e.breadcrumbs,a=(0,c.a)(i.r.SMDown),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(s,{breadcrumb:t[r-2],withBackIcon:!0})):n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(s,{key:t,breadcrumb:e})})))},d=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},23201:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(1024),r=a(92802),l=a(33936),i=a(83345),c=a(2102);function o(e){var t=(0,r.u6)(),a=(0,l.l)(t);return n.createElement(c.m,{variant:e.variant||"primary",type:"submit",disabled:!a,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?n.createElement(n.Fragment,null,e.submitText):n.createElement(i.x,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}},82644:(e,t,a)=>{a.d(t,{b:()=>m,n:()=>s});var n=a(1024),r=a(92802),l=a(79014),i=a(1048);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,i,c=[],o=!0,u=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=l.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){u=!0,r=e}finally{try{if(!o&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(u)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function u(e){var t=i.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(i.t.isObject(t[e])?t[e]=u(t[e]):null===t[e]&&delete t[e])})),t}function s(e){var t=e.castInitialValues,a=e.castValuesOnSubmit,i=e.initialValues,o=e.onSubmit,s=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(u(i)):i,d={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(r.J9,Object.assign({enableReinitialize:!0},s,{initialValues:m,onSubmit:function(t,n){var r=n.setSubmitting,l=n.resetForm,i=n.setFieldError,u=a&&e.validationSchema?e.validationSchema.cast(t):t;o(u,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.reset&&l(),e.errors)for(var t=0,a=Object.entries(e.errors);t<a.length;t++){var n=c(a[t],2),o=n[0],u=n[1];i(o,u)}r(!1)}))},initialStatus:d}),l.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function m(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},5859:(e,t,a)=>{function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}a.d(t,{u:()=>i});var l={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},l),e),a=function(){return Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth)};return n(Array(t.numItems)).map((function(){return{width:"".concat(a(),"px")}}))}}},81803:(e,t,a)=>{a.d(t,{d:()=>d});var n=a(1024),r=a.n(n),l=a(81886),i=a(23481),c=a(49935),o=a(97291),u=a(14070),s=a(96368);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function d(e){var t,a=(t=l.Q.AppLinkHelper.getCurrentAppLink(),(0,s.e)().some((function(e){return e.modules.some((function(e){return"appLink"in e&&e.appLink.action===t.action}))})));if(r().useEffect((function(){a||l.Q.AppLinkHelper.trigger({application:o.O.SETTINGS,action:u.e.Settings.HOME},{replace:!0})}),[a]),!a)return r().createElement(r().Fragment,null);var n,d=e.breadcrumbs.map((function(t,a){return{name:t,appLink:{application:o.O.SETTINGS,action:u.e.Settings.HOME},active:a===e.breadcrumbs.length-1}}));return r().createElement("div",{className:"px-3"},r().createElement("h1",{className:"h2"},e.heading),r().createElement("div",{className:"pb-3"},r().createElement(c.Oo,{breadcrumbs:[{name:i.T.getPhrase("settings.settingsLayout","settingsBreadcrumb"),appLink:{application:o.O.SETTINGS,action:u.e.Settings.HOME}}].concat((n=d,function(e){if(Array.isArray(e))return m(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})),e.description&&r().createElement(r().Fragment,null,r().createElement("p",null,e.description),r().createElement("hr",null)),e.children)}},55606:(e,t,a)=>{a.r(t),a.d(t,{VideoPlaybackSettingsView:()=>D});var n=a(1024),r=a.n(n),l=a(20354),i=a(23481),c=a(65858),o=a(31949),u=a(65728),s=a(69883),m=a(37802),d=a(77963),p=a(81803),b=a(92802),f=a(82644),v=a(83345),y=a(23201),h=a(99910);function g(e){return r().createElement("div",null,r().createElement(h.Form.Check,{custom:!0,type:"radio",id:e.id,label:e.name,value:e.value,onChange:function(){return e.onSelect(e.value)},checked:e.selected,className:"JKFf9"}),r().createElement("p",{className:"aVBqv"},e.description))}var E="settings.playbackQualitySettings",S=i.T.encloseNamespace(E);function N(){var e=(0,b.u6)();function t(t){e.setFieldValue("quality",t)}return r().createElement(b.l0,null,r().createElement(g,{id:"playback-480",name:S("lowName"),description:S("lowDescription"),value:480,selected:480===e.values.quality,onSelect:t}),r().createElement(g,{id:"playback-720",name:S("standardName"),description:S("standardDescription"),value:720,selected:720===e.values.quality,onSelect:t}),r().createElement(g,{id:"playback-1080",name:S("highName"),description:S("highDescription"),value:1080,selected:1080===e.values.quality,onSelect:t}),r().createElement(y.A,{isNew:!1,variant:"outline-dark"}))}function k(e){return r().createElement(r().Fragment,null,r().createElement("h2",{className:"h4"},r().createElement(v.x,{namespace:E,phrase:"heading"})),r().createElement("p",null,r().createElement(v.x,{namespace:E,phrase:"description"})),r().createElement(f.n,{initialValues:{quality:e.initialValue},onSubmit:e.onSubmit},r().createElement(N,null)))}var w="settings.localCacheQualitySettings",O=i.T.encloseNamespace(w);function A(){var e=(0,b.u6)();function t(t){e.setFieldValue("quality",t)}return r().createElement(b.l0,null,r().createElement(g,{id:"local-cache-480",name:O("lowName"),description:O("lowDescription"),value:480,selected:480===e.values.quality,onSelect:t}),r().createElement(g,{id:"local-cache-720",name:O("standardName"),description:O("standardDescription"),value:720,selected:720===e.values.quality,onSelect:t}),r().createElement(g,{id:"local-cache-1080",name:O("highName"),description:O("highDescription"),value:1080,selected:1080===e.values.quality,onSelect:t}),r().createElement(y.A,{isNew:!1,variant:"outline-dark"}))}function I(e){return r().createElement(r().Fragment,null,r().createElement("h2",{className:"h4"},r().createElement(v.x,{namespace:w,phrase:"heading"})),r().createElement("p",null,r().createElement(v.x,{namespace:w,phrase:"description"})),r().createElement(f.n,{initialValues:{quality:e.initialValue},onSubmit:e.onSubmit},r().createElement(A,null)))}var j=a(83523);function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var V="settings.subtitleSettings";function C(e){var t,a,n=(t=r().useState(e.initialValue),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,i,c=[],o=!0,u=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=l.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){u=!0,r=e}finally{try{if(!o&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(u)throw r}}return c}}(t,a)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?x(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=n[0],i=n[1];return r().createElement(r().Fragment,null,r().createElement("h2",{className:"h4"},r().createElement(v.x,{namespace:V,phrase:"heading"})),r().createElement("div",{className:"d-flex"},r().createElement("p",{className:"font-weight-500 mr-3"},r().createElement(v.x,{namespace:V,phrase:"alwaysShowCaptions"})),r().createElement(j.Z,{on:l,onClick:function(){var t=!l;e.onChange(t),i(t)}})))}const F="p1Wlx",L="BUF8M",P="bS4wu";function T(){return r().createElement("div",{className:"vKxI0"},r().createElement("div",{className:"".concat("ZPM9b"," mb-1 partial-loading-background")}),r().createElement("div",{className:"".concat(L," partial-loading-background")}))}function q(){return r().createElement(r().Fragment,null,r().createElement("div",{className:"".concat(F," mb-2 partial-loading-background")}),r().createElement("div",{className:"".concat(L," partial-loading-background")}),r().createElement(T,null),r().createElement(T,null),r().createElement(T,null),r().createElement("div",{className:"".concat(P," partial-loading-background")}),r().createElement("hr",{className:"my-4"}),r().createElement("div",{className:"".concat(F," mb-2 partial-loading-background")}),r().createElement("div",{className:"".concat(L," partial-loading-background")}),r().createElement(T,null),r().createElement(T,null),r().createElement(T,null),r().createElement("div",{className:"".concat(P," partial-loading-background")}),r().createElement("hr",{className:"my-4"}),r().createElement("div",{className:"".concat(F," mb-2 partial-loading-background")}),r().createElement("div",{className:"".concat("mVsyW"," partial-loading-background")}))}var M=i.T.encloseNamespace("settings.videoPlayback");function D(){var e=(0,s.Z)(),t=l.a.useBasicFetch(o.N.currentUser()),a=(0,m.r)(c.LocationContext.Settings),n=a.defaultPlaybackQuality,i=a.defaultLocalCachePlaybackQuality,b=a.enableSubtitlesDefault,f=a.isLoadingSettings,v=a.updateSetting;return r().createElement(p.d,{heading:M("heading"),breadcrumbs:[M("breadcrumb")]},f?r().createElement(q,null):r().createElement("div",{className:"oqAZz"},r().createElement(k,{initialValue:n,onSubmit:function(a,r){var l=a.quality;if(l!==n){var i={name:u.E.DefaultPlaybackQuality,value:l,kind:d.g.Permanent};v(t.data.customerId,i,(function(){return e.success(M("playbackSuccess"))}),(function(){return e.error(M("playbackError"))}),r)}}}),r().createElement("hr",{className:"my-4"}),r().createElement(I,{initialValue:i,onSubmit:function(a,n){var r=a.quality;if(r!==i){var l={name:u.E.DefaultLocalCachePlaybackQuality,value:r,kind:d.g.Permanent};v(t.data.customerId,l,(function(){return e.success(M("lcSuccess"))}),(function(){return e.error(M("lcError"))}),n)}}}),r().createElement("hr",{className:"my-4"}),r().createElement(C,{initialValue:b,onChange:function(a){var n={name:u.E.EnableSubtitlesDefault,value:a,kind:d.g.Permanent};v(t.data.customerId,n,(function(){return e.success(M(a?"subtitleEnableSuccess":"subtitleDisableSuccess"))}),(function(){return e.error(M("subtitleError"))}))}})))}}}]);
|