1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6605],{58650(e,t,l){l.r(t),l.d(t,{default:()=>Z});var a=l(64180),i=l(68175),r=l(28407),n=l(77810),o=l(49785),s=l(34692),d=l(83881),c=l(54443),u=l(77355),m=l(1518),p=l(41539),f=l(25517),y=l(49632),v=l(11692),g=l(27821),E=l(21302),h=l(28287),S=l(62539),b=l(95266),_=l(14084),O=l(4026),M=l(71114),x=l(68066),A=l(14924),D=l(12570),C=l(97690);const F={submitMusicRecordLabel:{model:C.Im,isStatic:!1},submitMusicLiveAgency:{model:C.Od,isStatic:!1},bookOurArtist:{model:C.yJ,isStatic:!1},bookOurStudio:{model:C.Be,isStatic:!1},licenceOurMusic:{model:C.ap,isStatic:!1},getABusinessDeal:{model:C.Nx,isStatic:!1},livehouse:{model:C.m1,isStatic:!1},orderReturn:{model:C.uV,isStatic:!0},productDefectIssues:{model:C.cS,isStatic:!0},productInquiry:{model:C.YM,isStatic:!0},orderCancellation:{model:C.J8,isStatic:!0},howToCreateOrder:{model:C.TN,isStatic:!0},questionsAboutAnOrder:{model:C.zb,isStatic:!0},BusinessAndWholesaleInquiries:{model:C.os,isStatic:!0},GDPR:{model:C.p8,isStatic:!0}};var I=l(75826),w=l.n(I),B=l(18938),P=l(22049),T=l(62346),N=l(10881),j=l(62849),q=l(90727),k=l(87433),R=l(98713),L=l(68352),$=l(69024),W=l(60013);const H=({field:e,register:t,control:l,errors:i,resetField:r,filesName:o,setFilesName:d,fileSizeError:c,handleFileSelected:u,handleDropdownSelect:m,productOptions:p,returnOptions:f,inputStyles:y,stylesModal:E,styles:h})=>{var S;const _=(0,s.A)(),O=null==i?void 0:i[null==e?void 0:e.fieldId];return"input"===(null==e?void 0:e.type)?n.createElement(B.MJ,{isRequired:null==e?void 0:e.isRequired,isInvalid:!!O,name:e.fieldId},n.createElement(W.A,(0,a.A)({name:null==e?void 0:e.fieldId,placeholder:null!=e&&e.isRequired?`${null==e?void 0:e.title} *`:null==e?void 0:e.title,colorMode:"light",control:l},t(e.fieldId,{validate:t=>null!=e&&e.email&&!(0,$.A)(t)?_.formatMessage({id:"enter.valid.email",defaultMessage:[{type:0,value:"Enter a valid email address."}]}):(null==t?void 0:t.length)>50?_.formatMessage({id:"enter.shorter.email",defaultMessage:[{type:0,value:"Use less than 50 characters."}]}):void 0,required:(null==e?void 0:e.isRequired)&&"Enter a value."}),{style:y||{}})),O&&n.createElement(P.Wt,null,n.createElement(g.E,(0,a.A)({},h.errorMessage,{textStyle:"smallBody"}),null==O?void 0:O.message))):"textArea"===(null==e?void 0:e.type)?n.createElement(B.MJ,{isInvalid:!!O,name:e.fieldId},n.createElement(T.p,(0,a.A)({as:"textarea",defaultValue:(null==e?void 0:e.defaultValue)||"",name:e.fieldId,placeholder:e.title,_placeholder:{textStyle:"label",color:R.T.marshall_colors.text.text_secondary_light}},E.formModalTextareaField,t(e.fieldId,{validate:e=>{if((null==e?void 0:e.length)>4e3)return _.formatMessage({id:"enter.shorter.email",defaultMessage:[{type:0,value:"Use less than 4000 characters."}]})}}),{style:y||{}})),O&&n.createElement(P.Wt,null,n.createElement(g.E,(0,a.A)({},h.errorMessage,{textStyle:"smallBody"}),null==O?void 0:O.message))):"dropdown"===(null==e?void 0:e.type)?n.createElement(B.MJ,{isRequired:null==e?void 0:e.isRequired,isInvalid:!!O,onChange:t=>m(t,e.fieldId)},n.createElement(N.l,(0,a.A)({placeholder:null!=e&&e.isRequired?`${null==e?void 0:e.title} *`:null==e?void 0:e.title},E.modalDropdown,{textStyle:"label",color:R.T.marshall_colors.text.text_secondary_light,icon:n.createElement(k.D3,null),disabled:"Product__c"===e.fieldId&&!(null!=p&&p.length)},t(e.fieldId,{required:(null==e?void 0:e.isRequired)&&_.formatMessage({id:"select.value",defaultMessage:[{type:0,value:"Select a value."}]})}),{style:y||{}}),null!=e&&e.dropdownOptions?"Product__c"!==e.fieldId?"Subcategory__c"!==e.fieldId?e.dropdownOptions:f:p:null==e||null===(M=e.options)||void 0===M?void 0:M.map((t,l)=>{var a;return n.createElement("option",{value:"Country__c"===e.fieldId?null==t?void 0:t.countryCode:null==t?void 0:t.value,key:`${t.value}${l}`},"Country__c"===e.fieldId?null==t||null===(a=t.name)||void 0===a?void 0:a.default:null==t?void 0:t.name)})),O&&n.createElement(P.Wt,null,n.createElement(g.E,(0,a.A)({},h.errorMessage,{textStyle:"smallBody"}),null==O?void 0:O.message))):n.createElement(v.s,{flexDirection:"column",gap:L.x.small},n.createElement(g.E,(0,a.A)({textStyle:"body"},E.fileDescriptionText),null==e?void 0:e.description),n.createElement(v.s,null,o?
1n.createElement(j.M,{gap:L.x.small},n.createElement(T.p,(0,a.A)({defaultValue:o,name:e.fieldId,readOnly:!0,placeholder:o,_placeholder:{textStyle:"label",color:R.T.marshall_colors.text.text_secondary_light}},E.formModalFileNameField)),n.createElement(q.t,E.fileDisplayStyle,n.createElement(k.Og,{onClick:()=>{d(),r("file")}}))):n.createElement(b.$,(0,a.A)({w:"50%",variant:"cta-secondary-light",type:"file"},E.inputFileButton,{onChange:u,textStyle:"label"}),n.createElement("label",{htmlFor:"actualButton",style:{cursor:"pointer",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",whiteSpace:"break-spaces"}},o||_.formatMessage({id:"choose.a.file",defaultMessage:[{type:0,value:"Choose a file"}]})),null!=e&&null!==(S=e.description)&&void 0!==S&&S.startsWith("Attach")?n.createElement("input",(0,a.A)({type:"file",id:"actualButton",accept:"application/pdf",hidden:!0},t("file"))):n.createElement("input",(0,a.A)({type:"file",id:"actualButton",accept:"image/jpeg, image/gif, image/png, application/pdf",hidden:!0},t("file")))),c&&n.createElement(g.E,(0,a.A)({},h.errorMessage,{textStyle:"smallBody"}),_.formatMessage({id:"enter.smaller.file",defaultMessage:[{type:0,value:"File is larger than 2MB."}]}))));var M};H.propTypes={field:w().shape({type:w().string,fieldId:w().string,title:w().string,isRequired:w().bool,email:w().bool,defaultValue:w().string,description:w().string,options:w().array,dropdownOptions:w().node}),register:w().func.isRequired,control:w().object.isRequired,errors:w().object,resetField:w().func,filesName:w().string,setFilesName:w().func,fileSizeError:w().bool,handleFileSelected:w().func,handleDropdownSelect:w().func,productOptions:w().node,returnOptions:w().node,inputStyles:w().object,stylesModal:w().object,styles:w().object};const J=H;var z=l(11530),U=l(59584),V=l(25199),G=l(12213),K=l(79435),Y=l(69061);function Q(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,a)}return l}function X(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(l),!0).forEach(function(t){(0,i.A)(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):Q(Object(l)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}const Z=({inputStyles:e})=>{var t;const{isOpen:l,onClose:i,onOpen:C,canGoBack:I,closeAll:w,data:{selectedOption:B,voyadoLabel:P}={}}=(0,U.yP)("forms"),{app:T}=(0,O.getConfig)(),N=(0,s.A)(),{isOpen:j,onOpen:q,onClose:R}=(0,d.j)(),$=(0,c.o5)("Modal"),W=(0,c.o5)("Input"),H=(0,u.A)({base:"bottom",lg:"right"}),{modalDataModel:Q,isStaticForm:Z}=(e=>{const[t,l]=(0,n.useState)(),[a,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=null==e?void 0:e.replace("/",""),a=F[t];a&&(l(a.model),i(a.isStatic))},[e]),{modalDataModel:t,isStaticForm:a}})(B),{register:ee,handleSubmit:te,reset:le,resetField:ae,control:ie,formState:{errors:re}}=(0,o.mN)(),{locale:ne,buildUrl:oe}=(0,x.A)(),{push:se}=(0,V.W)(),[de,ce]=(0,n.useState)(),[ue,me]=(0,n.useState)(),[pe,fe]=(0,n.useState)("Confirmation"),[ye,ve]=(0,n.useState)(),[ge,Ee]=(0,n.useState)(""),[he,Se]=(0,n.useState)(""),[be,_e]=(0,n.useState)(!1),[Oe,Me]=(0,n.useState)(""),[xe,Ae]=(0,n.useState)(!1),De=function(){var e=(0,r.A)(function*(e,t){let l;t.preventDefault(),_e(!0);try{l=yield(0,M.h)(T.reCaptcha.id)}catch{return console.error("[reCAPTCHA] failed to load script"),void _e(!1)}var a;me(e.First_Name__c),Z||fe(null===(a=Q[0])||void 0===a?void 0:a.modalHeader);const r="getABusinessDeal"===B;let n=e;var o,s;n=r?{oid:T.webToLead.oid,Brand__c:"Marshall","00N1i0000026Jeq":e.Region,company:e.Company_Name__c,first_name:e.First_Name__c,last_name:e.Last_Name__c,email:e.SuppliedEmail,phone:e.Phone,"00N1i0000026JfU":e.Message,"00N1i0000026Jh1":"Partnership","00N1i0000026Gfd":"Reseller",lead_source:"Website"}:X(X({},n),{},{Request_Area__c:null===(o=Q[0])||void 0===o?void 0:o.modalHeader,Request_Type:null===(s=Q[1])||void 0===s?void 0:s.modalType,Privacy_Policy__c:!0,recaptcha_response:l});try{const e=yield(0,z.p)("POST","Case-Create",r,ne.id.replace("-","_"),"",X({},n));if(!e.success&&!e.ok)throw new Error(e.errorMessage);r&&(e=>{e({event:"generate_lead"})})(se),le(),q(),_e(!1),i()}catch(e){Me(e)}finally{_e(!1)}});return function(t,l){return e.apply(this,arguments)}}(),Ce=e=>{e.target.files[0].name.length>30?ce(`${e.target.files[0].name.substring(0,20)}...${e.target.files[0].name.substring(e.target.files[0].name.length-7,e.target.files[0].name.length)}`):ce(e.target.files[0].name),e.target.files[0].size>2097152?Ae(!0):Ae(!1)},Fe=(e,t)=>{"Product_Type__c"===t&&ve(e.target.value)};return(0,n.useEffect)(()=>{Ee((0,A.f)(ye)),Se((0,D.x)(ye))},[ye]),(0,n.useEffect)(()=>{setTimeout(()=>{document.body.style.overflow=l?"hidden":"auto"},100)},[l]),null!=B&&B.includes("sign-up-campaign-modal")?n.createElement(G.A,{isOpen:l,onClose:i,selectedOption:B,voyadoLabel:P}):n.createElement(n.Fragment,null,n.createElement("style",null,"\n .grecaptcha-badge {\n display: none;\n }\n "),n.createElement("form",{onSubmit:te(De)},n.createElement(m._,{isOpen:l,onClose:w,placement:H,blockScrollOnMount:!1,scrollBehavior:"inside"},n.createElement(p.m,{bg:I?"none":void 0},n.createElement(f.z,(0,a.A)({},$.formModalContent,$.drawerStyleFullHeight,{onWheel:e=>{e.stopPropagation()},onTouchMove:e=>{e.preventDefault(),e.stopPropagation()},onScroll:e=>{e.preventDefault(),e.stopPropagation()}}),n.createElement(y.r,$.header,n.createElement(v.s,{alignItems:"center",gap:L.x.extraThin},I&&n.createElement(k.YJ,{onClick:()=>{i(),le()}}),n.createElement(g.E,$.headerTitle,Q&&(null===(t=Q[0])||void 0===t?void 0:t.modalHeader))),n.createElement(E.s,(0,a.A)({},$.closeButton,{onClick:le}),n.createElement(k.US,{isClose:!0}))),n.createElement(h.c,(0,a.A)({},$.formModalBody,{gap:L.x.large,display:"flex",flexDirection:"column"}),n.createElement(v.s,{flexDirection:"column",gap:L.x.micro},Oe.length>0&&n.createElement(g.E,(0,a.A)({},W.errorMessage,{textStyle:"smallBody"}),Oe),null==Q?void 0:Q.map((t,l)=>{var i;if(0!==l&&1!==l)return null===(i=Object.entries(t))||void 0===i?void 0:i.map(([t,l],i)=>{var r;if("submitMail"!==t)return n.createElement(n.Fragment,{key:`${t}${i}`},Z||"filesInfo"===t?n.createElement(S.az,null,n.createElement(g.E,$.introText,null==l?void 0:l.introText),n.createElement(g.E,$.formModalHeaderTitle,null==l?void 0:l.title)):n.createElement(n.Fragment,null,(null==l?void 0:l.title)&&n.createElement(v.s,(0,a.A)({flexWrap:"wrap",gap:L.x.extraMicro},$.titleText),n.createElement(g.E,{as:"span"},n.createElement(g.E,{as:"span",textStyle:"item"},null==l?void 0:l.title)," ",(null==l?void 0:l.titleLink)&&n.createElement(g.E,{as:"a",textStyle:"itemFocus",href:oe("/artist-services/artists/submit-your-music")},null==l?void 0:l.titleLink)))),null===(r=Object.values(null==l?void 0:l.fields))||void 0===r?void 0:r.map((t,l)=>n.createElement(n.Fragment,{key:`${null==t?void 0:t.fieldId}${l}`},n.createElement(J,{field:t,register:ee,control:ie,errors:re,resetField:ae,filesName:de,setFilesName:ce,fileSizeError:xe,handleFileSelected:Ce,handleDropdownSelect:Fe,productOptions:ge,returnOptions:he,inputStyles:e,stylesModal:$,styles:W}))));ee(t,{value:l})})})),n.createElement(v.s,(0,a.A)({flexWrap:"wrap",gap:L.x.extraMicro},$.fileDescriptionText),n.createElement(g.E,null,n.createElement(g.E,{as:"span",textStyle:"item"},N.formatMessage({id:"privacy.policy.description",defaultMessage:[{type:0,value:"By sending this request you agree to our"}]}))," ",n.createElement(Y.A,{onBeforeNav:()=>w(),href:"/policies/privacy-policy"},n.createElement(g.E,{as:"span",textStyle:"itemFocus"},N.formatMessage({id:"privacy.policy.link",defaultMessage:[{type:0,value:"privacy policy."}]}))))),n.createElement(b.$,{variant:"cta-primary-dark-send",w:{base:"100%",lg:"50%"},onClick:te(e=>De(e,event)),h:"4.4rem",textStyle:"label",isDisabled:be},n.createElement("label",{htmlFor:"sendButton",style:{cursor:"pointer"}},be?n.createElement(_.y,{size:"lg"}):N.formatMessage({id:"modal.submit.form",defaultMessage:[{type:0,value:"Submit"}]})),n.createElement("input",{type:"submit",id:"sendButton",hidden:!0}))))))),n.createElement(K.A,{isOpen:j,confirmationHeader:pe,onClose:R,onOpen:q,clientName:ue,isStaticForm:Z,onOpenPrevious:C}))}}}]);
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.