1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1902],{23160:function(e,a,t){t.d(a,{C:function(){return s}});var n=t(85893);t(67294);var l=t(31);let s=e=>{let{className:a="",children:t,href:s="",label:i,title:r,type:o="",useNext:c=!1,variant:d="blue",...u}=e,m=["badge",a];switch(m.push("badge-"+d+("status"===o?"-fade":"")),o){case"pill":m.push("badge-pill");break;case"sale":m.push("badge-sale");break;case"topic":m.push("badge-topic");break;case"status":m.push("badge-status");break;case"carousel":m.push("badge-activity")}let p=m.join(" ");return(0,n.jsx)(n.Fragment,{children:s?(0,n.jsx)(l.N,{href:s,extraClass:p,useNext:c,title:r,children:i}):(0,n.jsxs)("span",{className:p,children:[i,t]})})}},43960:function(e,a,t){t.d(a,{c:function(){return o}});var n=t(85893),l=t(67294),s=t(10848),i=t(52823),r=t(28895);let o=e=>{var a;let{componentClass:t="",disabled:o=!1,error:c=!1,errorText:d="",groupName:u="",handleChange:m=e=>console.log("CheckboxGroup handleChange",e),helperText:p="",item:h,labelText:x,labelClass:b="",name:f="",required:g=!1,...v}=e,[j,y]=(0,l.useState)(null!==(a=null==h?void 0:h.checked)&&void 0!==a&&a);(0,l.useEffect)(()=>y(j),[j]);let _=e=>{m(e),y(e)},N=["form-checkbox-group"];N.push(t),o&&N.push("disabled"),c&&N.push("error");let k=N.join(" ");return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:k,children:[x&&(0,n.jsx)(i._,{text:x,required:g}),p&&(0,n.jsx)(r.s,{text:p}),(0,n.jsxs)("div",{className:"group",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{checked:null==h?void 0:h.checked,disabled:o,name:f,onChange:e=>_(e.target.checked),required:g,type:"checkbox",...v}),(0,n.jsxs)("span",{className:"checkbox ".concat(null==h?void 0:h.checked),children:[(0,n.jsx)("div",{className:"side-a"}),(0,n.jsx)("div",{className:"side-b"})]})]}),(0,n.jsx)("div",{className:"label ".concat(b),children:null==h?void 0:h.label})]}),d&&c&&(0,n.jsx)(s.y,{text:d})]})})}},56034:function(e,a,t){t.d(a,{X:function(){return s}});var n=t(85893);t(67294);var l=t(23160);let s=e=>{let{discount:a=null,...t}=e;return null==a||isNaN(Number(null==a?void 0:a.amount))?null:(0,n.jsxs)("div",{className:"floating-bar z-index-1 bg-yellow-light position-fixed position-bottom shadow-lg w-100 border-top border-lighten-extra",children:[(0,n.jsx)("div",{className:"d-flex justify-content-center position-absolute w-100 pt-1",children:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mr-md-2 d-none d-md-inline py-0";return(0,n.jsx)(l.C,{type:"sale",label:e,variant:"yellow",className:a})}(null==a?void 0:a.code,"d-inline-block mt-n3 shadow-sm font-primary font-size-14")}),(0,n.jsx)("div",{className:"container-fluid px-4 py-3 d-flex flex-column flex-md-row justify-content-between align-items-center",children:(0,n.jsxs)("div",{className:"text-center px-0 text-secondary font-weight-bolder w-100",children:["Claiming ",(null==a?void 0:a.amount)>1?"$"+(null==a?void 0:a.amount):100*(null==a?void 0:a.amount)+"%"," Off ",(0,n.jsx)("span",{className:"text-capitalize",children:null==a?void 0:a.schedule})," Premium Membership"]})})]})}},21902:function(e,a,t){t.r(a),t.d(a,{CreateAccount:function(){return p}});var n=t(85893),l=t(20512),s=t(67294),i=t(45902),r=t(46290),o=t(31),c=t(43960),d=t(26026),u=t(9252),m=t(56034);let p=e=>{let{createAccountHandler:a=async e=>console.log("createAccountHandler values",e),discount:t=null,error:p="",formId:h="create-account-form",loading:x=!1,loginLinkUrl:b,privacyPolicyFunction:f=()=>console.log("CreateAccount privacyPolicyFunction()"),termsFunction:g=()=>console.log("CreateAccount termsFunction()"),type:v="family",...j}=e,[y,_]=(0,s.useState)(v),[N,k]=(0,s.useState)(x);(0,s.useEffect)(()=>k(x),[x]),(0,s.useEffect)(()=>k(""===p&&x),[p,x]);let C={checked:!1,label:(0,n.jsxs)("div",{children:["I agree to the ",(0,n.jsx)("a",{className:"btn btn-link text-secondary body-normal bg-transparent underline",href:r.m.termsOfService,target:"_blank",rel:"noreferrer",children:"Terms of Service"})," and ",(0,n.jsx)("a",{className:"btn btn-link text-secondary body-normal bg-transparent underline",href:r.m.privacyPolicy,target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),"."]}),name:"tos_pp_opt_in",value:"true"},w={checked:!1,label:"Yes, I want free learning resources, updates, and tips for getting started delivered to my inbox. Unsubscribing is quick and easy.",name:"mail_opt_in",value:"true"};return(0,n.jsx)(l.J9,{initialValues:{first_name:"",last_name:"",email:"",password:"",tos_pp_opt_in:!1,mail_opt_in:!0,studio_name:"",account_type:v},onSubmit:e=>{a(e),k(!0)},validate:e=>({}),validationSchema:i.Q5.createAccount,children:e=>{let{values:a,errors:s,touched:x,isValid:f,dirty:g,isSubmitting:v}=e;return p&&(v=!1),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsxs)("div",{className:"col",children:[(0,n.jsx)("h1",{className:"mb-2",children:"Create Account"}),(0,n.jsxs)("p",{className:"mb-4",children:["Already have a Hoffman Academy account? ",(0,n.jsx)(o.N,{href:b||r.m.logIn,extraClass:"text-tan-light underline","cy-data":"link-login",children:"Log In"})]}),(0,n.jsxs)("div",{className:"toggle-container col-sm-10 col-md-9 col-lg-7",children:[(0,n.jsxs)("label",{className:"p-3 option ".concat("family"===y?"active":""),children:[(0,n.jsx)(l.gN,{type:"radio",name:"account_type",value:"family",onClick:()=>_("family"),checked:"family"===y,"data-cy":"account-type-family-radio"}),(0,n.jsx)("span",{className:"d-block mb-0 font-weight-bolder letter-spacing-1-2",children:"FAMILY ACCOUNT"}),(0,n.jsx)("span",{className:"d-block font-size-15 line-height-18 font-italic ".concat("family"===y?"toggle-caption":""),children:"Best for self-paced learning at home"})]}),(0,n.jsxs)("label",{className:"p-3 option ".concat("studio"===y?"active":""),children:[(0,n.jsx)(l.gN,{type:"radio",name:"account_type",value:"studio",onClick:()=>_("studio"),checked:"studio"===y,"data-cy":"account-type-studio-radio"}),(0,n.jsx)("span",{className:"d-block mb-0 font-weight-bolder letter-spacing-1-2",children:"TEACHER STUDIO"}),(0,n.jsx)("span",{className:"d-block font-size-15 line-height-18 font-italic ".concat("studio"===y?"toggle-caption":""),children:"Best for independent music teachers"})]})]}),(0,n.jsxs)(d.l,{formId:h,error:p,loading:N,spinnerClass:"m-n3",componentClass:"card px-3 py-4 p-md-5 col-sm-10 col-md-9 col-lg-7 m-auto mt-3 text-left form",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-md-6",children:(0,n.jsx)(l.gN,{name:"first_name",children:e=>{let{field:t}=e;return(0,n.jsx)(u.B,{error:s.first_name&&x.first_name,errorText:s.first_name,componentClass:"mb-3",labelText:"First Name",name:"first_name",placeholder:"ex: Kathy",required:!0,type:"text",unified:!0,value:a.first_name,"data-cy":"first-name-input",...t})}})}),(0,n.jsx)("div",{className:"col-md-6",children:(0,n.jsx)(l.gN,{name:"last_name",children:e=>{let{field:t}=e;return(0,n.jsx)(u.B,{error:s.last_name&&x.last_name,errorText:s.last_name,componentClass:"mb-3 ",labelText:"Last Name",name:"last_name",placeholder:"ex: Smith",required:!0,type:"text",unified:!0,value:a.last_name,"data-cy":"last-name-input",...t})}})})]}),(0,n.jsx)(l.gN,{name:"email",children:e=>{let{field:t}=e;return(0,n.jsx)(u.B,{error:s.email&&x.email,errorText:s.email,componentClass:"mb-3",labelText:"Email",n
1ame:"email",placeholder:"ex: [email protected]",required:!0,type:"email",unified:!0,value:a.email,"data-cy":"email-input",...t})}}),"studio"===y&&(0,n.jsx)(l.gN,{name:"studio_name",children:e=>{let{field:t}=e;return(0,n.jsx)(u.B,{error:s.studio_name&&x.studio_name,errorText:s.studio_name,componentClass:"mb-3",labelText:"Studio Name",name:"studio_name",placeholder:"ex: Kathy's Piano Studio",required:!0,type:"text",unified:!0,value:a.studio_name,"data-cy":"studio-name-input",...t})}}),(0,n.jsx)(l.gN,{name:"password",children:e=>{let{field:t}=e;return(0,n.jsx)(u.B,{error:s.password&&x.password,errorText:s.password,componentClass:"mb-4",labelText:"Password",name:"password",placeholder:i.CI.password,required:!0,type:"password",unified:!0,value:a.password,"data-cy":"password-input",...t})}}),(0,n.jsx)(l.gN,{name:"tos_pp_opt_in",children:a=>{let{field:t}=a;return(0,n.jsx)(c.c,{checked:null==t?void 0:t.value,componentClass:"pt-2 mb-3 font-size-16 line-height-20",handleChange:a=>{e.setFieldTouched("tos_pp_opt_in",a)},error:(null==s?void 0:s.tos_pp_opt_in)&&(null==x?void 0:x.tos_pp_opt_in),errorText:null==s?void 0:s.tos_pp_opt_in,item:C,labelClass:"text-neutral-devil",required:!0,"data-cy":"tos-pp-opt-in-checkbox",...t})}}),(0,n.jsx)(l.gN,{name:"mail_opt_in",children:e=>{let{field:a}=e;return(0,n.jsx)(c.c,{checked:null==a?void 0:a.value,componentClass:"mb-5 font-size-16 line-height-20",item:w,labelClass:"text-neutral-devil",required:!1,"data-cy":"mail-opt-in-checkbox",...a})}}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:!(g&&f)||v,"data-cy":"create-account-submit-button",children:"Create Account"})})]})]}),(0,n.jsx)(m.X,{discount:t})]})}})};a.default=p}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.