@clickview/streamable-learning 0.18.0-rc.2 → 0.18.0-rc.3
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 +1 -1
- package/dist/scripts/{1934-4be7771f6f-streamable-learning.chunk.js → 1934-7f41c4b759-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{1977-c9456305b0-streamable-learning.chunk.js → 1977-58d71aef9c-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{2215-17d89577a6-streamable-learning.chunk.js → 2215-4f553d3342-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{2676-4c215af54c-streamable-learning.chunk.js → 2676-1c7366f3b0-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{4018-5d3d55b77f-streamable-learning.chunk.js → 4018-bee21d97d2-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{65-e4697eec1c-streamable-learning.chunk.js → 65-1956c72ced-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{704-466cc5127b-streamable-learning.chunk.js → 704-421a38d22e-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{719-6a33be6f5e-streamable-learning.chunk.js → 719-7766cf402a-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{7694-77d3ad4d39-streamable-learning.chunk.js → 7694-319cd8917f-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{8598-9d64e0a878-streamable-learning.chunk.js → 8598-1cd66a8105-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{9861-d8a5fae450-streamable-learning.chunk.js → 9861-f8911bd469-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{bundle-f635a344fa.min.js → bundle-83b2980d22.min.js} +2 -2
- package/dist/scripts/{pdf.worker.entry-c0b1eccc23.min.worker.js → pdf.worker.entry-79d4d840b7.min.worker.js} +1 -1
- package/package.json +1 -1
- /package/dist/scripts/{1024-3a512c6276-streamable-learning.chunk.js → 1024-7a3b513fba-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{1067-8d751806cf-streamable-learning.chunk.js → 1067-1a22760dca-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{1437-c5c7cef3bc-streamable-learning.chunk.js → 1437-42d463c175-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{1661-66f049459d-streamable-learning.chunk.js → 1661-aa6651fafa-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{1934-4be7771f6f-streamable-learning.chunk.js.LICENSE.txt → 1934-7f41c4b759-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1977-c9456305b0-streamable-learning.chunk.js.LICENSE.txt → 1977-58d71aef9c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2012-0bf6183d2a-streamable-learning.chunk.js → 2012-b9bc7dbdbd-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2042-dbc0c5c752-streamable-learning.chunk.js → 2042-e12c2e0ede-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2087-e1c30d4a6f-streamable-learning.chunk.js → 2087-15bb851090-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2146-8ba39298c4-streamable-learning.chunk.js → 2146-28985b80ff-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2215-17d89577a6-streamable-learning.chunk.js.LICENSE.txt → 2215-4f553d3342-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2245-d1791c0475-streamable-learning.chunk.js → 2245-1469f789d9-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2676-4c215af54c-streamable-learning.chunk.js.LICENSE.txt → 2676-1c7366f3b0-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2700-854d096b87-streamable-learning.chunk.js → 2700-dd1f8656cd-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2861-d1f0f116cb-streamable-learning.chunk.js → 2861-2ceb1e99a2-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2877-c0a0c1db15-streamable-learning.chunk.js → 2877-37a0ba1bf3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2967-a4bb17cd8b-streamable-learning.chunk.js → 2967-87563101e3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{2987-b6736422fa-streamable-learning.chunk.js → 2987-344271b5b1-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{303-65ba42f8a4-streamable-learning.chunk.js → 303-87d80bf777-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{3093-88891815d6-streamable-learning.chunk.js → 3093-40925e3a49-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{339-c5b7a72802-streamable-learning.chunk.js → 339-511dd8d6c3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{3498-68523bc5b4-streamable-learning.chunk.js → 3498-5becdcc81f-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{370-034c115904-streamable-learning.chunk.js → 370-0ed45e1aa3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{3933-9deda766f5-streamable-learning.chunk.js → 3933-8e9a718307-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{3958-2f2ddbcc75-streamable-learning.chunk.js → 3958-556de244ac-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{4018-5d3d55b77f-streamable-learning.chunk.js.LICENSE.txt → 4018-bee21d97d2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4109-87cc3a42a6-streamable-learning.chunk.js → 4109-ea502d7dc6-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{4254-a05fddbb01-streamable-learning.chunk.js → 4254-37238d5782-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{4343-125c91af09-streamable-learning.chunk.js → 4343-a16a83561f-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{487-5d95cd24b2-streamable-learning.chunk.js → 487-67aa4c5ef3-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{4942-9f649ee553-streamable-learning.chunk.js → 4942-f757149b79-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{5173-304f37c633-streamable-learning.chunk.js → 5173-d508ecc955-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{5446-0b437f68f9-streamable-learning.chunk.js → 5446-f4c078330f-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{625-34d7fffcba-streamable-learning.chunk.js → 625-810d302a87-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{65-e4697eec1c-streamable-learning.chunk.js.LICENSE.txt → 65-1956c72ced-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6533-3b00bac85f-streamable-learning.chunk.js → 6533-32a4044485-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{6909-daece3f383-streamable-learning.chunk.js → 6909-366deeb77e-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{704-466cc5127b-streamable-learning.chunk.js.LICENSE.txt → 704-421a38d22e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7102-cafdb00149-streamable-learning.chunk.js → 7102-095a74b6f4-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{719-6a33be6f5e-streamable-learning.chunk.js.LICENSE.txt → 719-7766cf402a-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7272-8ba79de785-streamable-learning.chunk.js → 7272-8a394b4aa1-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{7545-83c580f226-streamable-learning.chunk.js → 7545-62e67421ca-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{7694-77d3ad4d39-streamable-learning.chunk.js.LICENSE.txt → 7694-319cd8917f-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7730-822bc23cd3-streamable-learning.chunk.js → 7730-076b9fec07-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{7925-2797a4a906-streamable-learning.chunk.js → 7925-dd60c98cb5-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{8352-6873baa74b-streamable-learning.chunk.js → 8352-9c5f39c3ec-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{8405-42c53e9051-streamable-learning.chunk.js → 8405-3b2d999859-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{8598-9d64e0a878-streamable-learning.chunk.js.LICENSE.txt → 8598-1cd66a8105-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8599-73cd6b36c8-streamable-learning.chunk.js → 8599-d1337572cf-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{8937-912ebbe295-streamable-learning.chunk.js → 8937-5287be5756-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{9531-d85e8b2740-streamable-learning.chunk.js → 9531-e81bfc3e76-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{9861-d8a5fae450-streamable-learning.chunk.js.LICENSE.txt → 9861-f8911bd469-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-f635a344fa.min.js.LICENSE.txt → bundle-83b2980d22.min.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{pdf.worker.entry-c0b1eccc23.min.worker.js.LICENSE.txt → pdf.worker.entry-79d4d840b7.min.worker.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 4018-
|
|
1
|
+
/*! For license information please see 4018-bee21d97d2-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4018],{83190:(e,t,r)=>{r.r(t),r.d(t,{ContactUsView:()=>ue});var n=r(32735),a=r(63093),o=r(81886),i=r(23481),l=r(92869),c=r(97395),s=r(20354),u=r(76153),m=r(57408),p=r(58960),f=r(83345),h=r(7822),d=r(39151),v=r(79612),g=r(75795),y=r(25301),b=r(30747),E=r(96359),w=r(41760),N=r(41135),S=r(7614),x=r(91975),O=r(93015),L=r(6117),A=r(15800),P=r(99742);const T={image:"pW4DD"};var j="default.contactUsError",C=i.T.encloseNamespace(j);function F(e){var t=e.className,r=void 0===t?"":t,a=e.onTryAgain;return n.createElement(A.u,{className:r},n.createElement(A.u.Image,{className:T.image,src:P.W.General.LOST_MESSAGE_BOTTLE}),n.createElement(A.u.Heading,{className:"w-100"},n.createElement(f.x,{namespace:j,phrase:"errorHeading"})),n.createElement(A.u.Info,{className:"w-100"},n.createElement(f.x,{namespace:j,phrase:"errorMessage"})),n.createElement(A.u.Cta,{text:C("buttonLabel"),className:"btn btn-dark w-100",onClick:a}))}var _=r(92802),k=r(5173),U=r(68293),I=r(47464),D=r(76530),V=r(1269),M=r(82644),q=r(2102),G=r(93824);function R(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,i,l=[],c=!0,s=!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)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var r={}.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)?K(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 K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var H="default.contactUsForm",W=i.T.encloseNamespace(H),B=k.Ry({firstName:k.Z_().required(W("firstNameRequired")),lastName:k.Z_().required(W("lastNameRequired")),email:k.Z_().email(W("emailValid")).required(W("emailRequired")),jobTitle:k.Z_().required(W("jobTitleRequired")),phoneNumber:k.Z_().matches(/^[0-9]+$/,W("phoneNumberValid")),schoolOrDistrict:k.Z_().required(W("schoolOrDistrictRequired"))});function Z(e){return n.createElement(M.n,{initialValues:e.initialValues,validateOnMount:!0,validationSchema:B,onSubmit:e.onSubmit},n.createElement($,{showSpinner:e.showSpinner,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function $(e){var t,r,a,o,i,l,c,s,u=e.showSpinner,m=e.googleMapsApiKey,p=e.searchProspectsUrl,h=(0,M.b)(),d=R(n.useState({}),2),v=d[0],g=d[1],y=R(n.useState(!1),2),b=y[0],E=y[1];function w(){h.setFieldValue("schoolOrDistrict",""),h.setFieldValue("country",""),h.setFieldValue("province",""),h.setFieldValue("prospectId",""),N()}function N(){window.setTimeout((function(){return h.validateForm()}),0)}return n.createElement(_.l0,null,n.createElement(V.W,{label:W("firstName"),name:"firstName",value:null===(t=h.values)||void 0===t?void 0:t.firstName,showRequiredStar:!0,placeholder:W("firstNamePlaceholder")}),n.createElement(V.W,{label:W("lastName"),name:"lastName",value:null===(r=h.values)||void 0===r?void 0:r.lastName,showRequiredStar:!0,placeholder:W("lastNamePlaceholder")}),n.createElement(V.W,{label:W("email"),name:"email",value:null===(a=h.values)||void 0===a?void 0:a.email,showRequiredStar:!0,placeholder:W("emailPlaceholder")}),b?n.createElement(V.W,{label:W("schoolOrDistrict"),name:"schoolOrDistrict",value:null===(o=h.values)||void 0===o?void 0:o.schoolOrDistrict,showRequiredStar:!0,placeholder:W("schoolOrDistrictPlaceholder"),autoFocus:!0}):n.createElement(n.Fragment,null,n.createElement(I.l,{data:v,setData:function(e){g(Object.assign(Object.assign({},v),e)),w()},clearData:function(){g({}),w()},labelClassName:"form-label",geoLocation:{countryCode:"US"},googleMapsApiKey:m,required:!0,hideOnBlur:!0}),n.createElement(D.X,{data:v,setData:function(e){g(Object.assign(Object.assign({},v),e)),h.setFieldValue("schoolOrDistrict",e.schoolName),h.setFieldValue("country",e.country),h.setFieldValue("province",e.province),h.setFieldValue("prospectId",e.prospectId),N()},clearData:function(){g(Object.assign(Object.assign({},v),{prospectId:void 0,schoolName:void 0,schoolPostCode:void 0})),w()},disabled:!v.schoolLocality,searchUrl:p,onClickNoSuggestions:function(e){E(!0),h.setFieldValue("schoolOrDistrict",e),N()},required:!0,placeholder:!v.schoolLocality&&W("schoolPlaceholder"),hideOnBlur:!0})),n.createElement(U.B,{id:"job-title",error:(null===(i=h.touched)||void 0===i?void 0:i.jobTitle)&&(null===(l=h.errors)||void 0===l?void 0:l.jobTitle),countryCode:G.C.US,initialValue:null===(c=h.values)||void 0===c?void 0:c.jobTitle,onChange:function(e){return h.setFieldValue("jobTitle",e,!1)},labelClassName:"form-label",required:!0}),n.createElement(V.W,{label:W("phoneNumber"),name:"phoneNumber",value:null===(s=h.values)||void 0===s?void 0:s.phoneNumber,showRequiredStar:!1,placeholder:W("phoneNumberPlaceholder")}),n.createElement(q.m,{type:"submit",className:"w-100 mt-3",variant:"dark",showSpinner:u,disabled:!h.isValid},n.createElement(f.x,{namespace:H,phrase:"contactUsButton"})))}const X={image:"ilT9m"};var Y="default.contactUsSuccess",J=i.T.encloseNamespace(Y);function Q(e){var t=e.className,r=void 0===t?"":t,a=e.onClose;return n.createElement(A.u,{className:r},n.createElement(A.u.Image,{className:X.image,src:P.W.General.EMAIL_SENT}),n.createElement(A.u.Heading,{className:"w-100"},n.createElement(f.x,{namespace:Y,phrase:"successHeading"})),n.createElement(A.u.Info,{className:"w-100"},n.createElement(f.x,{namespace:Y,phrase:"successMessage"})),a&&n.createElement(A.u.Cta,{text:J("buttonLabel"),className:"btn btn-dark w-100",onClick:a}))}const z={logo:"jNXAy",pageContainer:"HkwHS"};function ee(e){return ee="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},ee(e)}function te(){te=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new j(n||[]);return a(i,"_invoke",{value:L(e,r,l)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function b(){}var E={};s(E,i,(function(){return this}));var w=Object.getPrototypeOf,N=w&&w(w(C([])));N&&N!==r&&n.call(N,i)&&(E=N);var S=b.prototype=g.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(a,o,i,l){var c=m(e[a],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ee(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function L(t,r,n){var a=p;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===d){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var c=A(l,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var s=m(t,r,n);if("normal"===s.type){if(a=n.done?d:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=d,n.method="throw",n.arg=s.arg)}}}function A(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=m(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ee(t)+" is not iterable")}return y.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new O(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(S),s(S,c,"Generator"),s(S,i,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function re(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,i,l=[],c=!0,s=!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)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var r={}.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)?ne(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 ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ae=function(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function l(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((n=n.apply(e,t||[])).next())}))},oe="default.contactUs",ie=i.T.encloseNamespace(oe);function le(e){return n.createElement(n.Fragment,null,"data-entry"===e.formStage&&n.createElement(n.Fragment,null,n.createElement("h1",{className:"h2 text-center"},n.createElement(f.x,{namespace:oe,phrase:"contactUsHeading"})),n.createElement("p",{className:"text-center mb-3"},n.createElement(f.x,{namespace:oe,phrase:"contactUsDescription"})),n.createElement(Z,{initialValues:e.initialFormValues,showSpinner:e.submitting,onSubmit:e.onSubmit,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}),n.createElement(m.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:N.O.DEFAULT,action:E.e.Default.LOG_IN,params:e.loginParams}},n.createElement(f.x,{namespace:oe,phrase:"signInLink"}))),"error"===e.formStage&&n.createElement(F,{onTryAgain:e.onTryAgain}),"success"===e.formStage&&n.createElement(Q,{onClose:e.closePopup}))}function ce(e){return(0,v.M)(y.CG.getDefaultMetadata({title:ie("title"),phraseContext:{phraseHandler:ie,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:L.f.getCanonicalLink(),allowIndexing:!0,product:w.L.PRODUCT_NAME})),n.createElement("div",{className:"".concat(z.pageContainer," bg-white mt-4 mx-4 mx-sm-auto p-3 mb-3 border border-gray-400 rounded-3 shadow-sm")},n.createElement(le,{formStage:e.formStage,initialFormValues:e.initialFormValues,loginParams:e.loginParams,onSubmit:e.onSubmit,onTryAgain:e.onTryAgain,submitting:e.submitting,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function se(e){function t(){e.closePopup(),l.t.preventScrollTop()}return n.createElement(p.G,{title:ie("title"),closePopup:t,bodyClassName:"p-5",hideTitle:!0},n.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:t}),n.createElement("div",{className:"".concat(z.logo," position-absolute top-0 start-0 m-3")},n.createElement(b.p,null)),n.createElement(le,{formStage:e.formStage,initialFormValues:e.initialFormValues,loginParams:e.loginParams,onSubmit:e.onSubmit,onTryAgain:e.onTryAgain,submitting:e.submitting,closePopup:t,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function ue(e){var t=s.a.useGetFetchAsync(),r=s.a.useBasicFetch(d.L.config()),i=(0,O.k)(),l=re(n.useState("data-entry"),2),m=l[0],p=l[1],f=re(n.useState(!1),2),v=f[0],y=f[1],b=re(n.useState({firstName:"",lastName:"",email:"",schoolOrDistrict:"",jobTitle:"",phoneNumber:"",country:"",province:"",prospectId:""}),2),E=b[0],w=b[1],N=o.Q.C$.getHref(g.O.getCurrentRoute().appLink),L="/"!==N?{redirectUrl:N}:{};if(!r.hasCompleted)return n.createElement(n.Fragment,null);var A={formStage:m,initialFormValues:E,submitting:v,loginParams:L,onSubmit:function(e){var r,n;return ae(this,void 0,void 0,te().mark((function o(){var l,c,s,m;return te().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,y(!0),w(e),o.next=5,t(h.D.checkEmail(e.email));case 5:if(l=o.sent,!e.prospectId){o.next=11;break}return o.next=9,t(h.D.prospectLookups(e.prospectId));case 9:s=o.sent,c=null===(r=null==s?void 0:s.find((function(e){return"crm_id"===e.type})))||void 0===r?void 0:r.externalId;case 11:m={email:e.email,firstName:e.firstName,lastName:e.lastName,phone:e.phoneNumber,custom:{accountAddress:(null==e?void 0:e.province)?{countryCode:null==e?void 0:e.country,province:u.F.parseProvince((null==e?void 0:e.province)||"")}:void 0,accountName:e.schoolOrDistrict,jobTitle:e.jobTitle,syncToCrm:!(null===(n=null==l?void 0:l.users)||void 0===n?void 0:n.length)||void 0,crmId:c||void 0}},i.logFormSubmission({user:m,eventType:a.StreamableFormEvent.ContactUsFormSubmit,source:S._.ContactUs,topic:x.J.ContactUs}),p("success"),o.next=20;break;case 16:o.prev=16,o.t0=o.catch(0),console.warn(o.t0),p("error");case 20:return o.prev=20,y(!1),o.finish(20);case 23:case"end":return o.stop()}}),o,null,[[0,16,20,23]])})))},onTryAgain:function(){p("data-entry")},closePopup:e.closePopup,googleMapsApiKey:r.data.googleMapsApiKey,searchProspectsUrl:c._.safeUrlConcat(r.data.gatewayApiUrl,"/v1/search/prospects")};return e.fromPageLoad?n.createElement(ce,Object.assign({},A)):n.createElement(se,Object.assign({},A))}}}]);
|