1"use strict";(self.webpackChunkdnb_marketing_website=self.webpackChunkdnb_marketing_website||[]).push([[3108],{13108:function(e,s,t){t.r(s),t.d(s,{default:function(){return ls}});var r=t(46804),a=t(65043),n=t(67357),i="uk-get-a-duns_stepGrid__vpT+g",o="uk-get-a-duns_textColumn__zGRDK",l="uk-get-a-duns_formColumn__xKq6C",d="uk-get-a-duns_inputLabel__nd5XR",u="uk-get-a-duns_selectInput__VaSi4",c="uk-get-a-duns_radioGroup__K5L9f",m="uk-get-a-duns_radioOption__DzkeN",p="uk-get-a-duns_radioInput__51DIN",h="uk-get-a-duns_radioLabel__wr59n",v="uk-get-a-duns_infoBox__x+FWc",g="uk-get-a-duns_infoBoxTitle__5MFls",y="uk-get-a-duns_infoTitle__QLQrB",b="uk-get-a-duns_infoText__KKOUr",N="uk-get-a-duns_checkboxContainer__oSt6c",x="uk-get-a-duns_autocompleteWrapper__fLbd1",f="uk-get-a-duns_suggestionsList__YkLgH",C="uk-get-a-duns_suggestionItem__8TRAM",j=t(19424),w=t(58387),_=t(94767),D="duns-request-form_stepsContainer__mt1Qt",S="duns-request-form_stepsWrapper__AJTrP",k="duns-request-form_stepsInside__sDPyv",A="duns-request-form_stepItem__2l2ke",L="duns-request-form_stepLabelItem__cUPSm",T="duns-request-form_stepLabelText__FTZxn",P="duns-request-form_stepCircle__kxHR3",q="duns-request-form_stepCircleActive__-IgQB duns-request-form_stepCircle__kxHR3",F="duns-request-form_stepCircleCompleted__tOU8A duns-request-form_stepCircle__kxHR3",I="duns-request-form_stepConnectorLine__a0obt",O="duns-request-form_stepGrid__e6lhZ",$="duns-request-form_textColumn__s3Luu",B="duns-request-form_formColumn__57lGZ",z="duns-request-form_infoTitle__WdhXj",E="duns-request-form_infoText__7MLrW",M="duns-request-form_inputLabel__iJj-U",R="duns-request-form_textInput__FRRMs",W="duns-request-form_selectInput__RxN1j",U="duns-request-form_radioGroup__bgL46",Y="duns-request-form_radioOption__kScwW",H="duns-request-form_radioInput__WjYxi",Z="duns-request-form_radioLabel__5X1Uy",G="duns-request-form_helperText__QkaCm",J="duns-request-form_navigationContainer__CNAeG",K="duns-request-form_ownerHeader__Ukqhi",Q="duns-request-form_ownerTitle__s98hD",V="duns-request-form_ownerSection__LTdw1",X="duns-request-form_formRow__s+WB+",ee="duns-request-form_formField__HvbnM",se="duns-request-form_addOwnerButtonWrapper__2sx2P",te="duns-request-form_tradingNameInputWrapper__4q3Cw",re="duns-request-form_finalInfoBlock__sX8vx",ae="duns-request-form_warningMessage__DsQUz",ne="duns-request-form_autocompleteWrapper__zr2jJ",ie="duns-request-form_suggestionsList__jbShw",oe="duns-request-form_suggestionItem__J2DJL",le="duns-request-form_disabledInput__W4+5-",de="duns-request-form_errorMessage__CzeYt",ue="duns-request-form_errorInput__c0EtW",ce=t(7214),me=t(6733),pe=t(69457);const he={required:"Please enter your full name",invalid:"Please enter a valid name using only letters, spaces, or hyphens."},ve="Please enter a valid email address",ge="Please enter a valid number (must not include spaces or special characters)",ye="Please select your relationship to the business",be="Please select what your business does from the list.",Ne="Please enter the number of full time employees using only digits",xe="Please select the business's legal structure",fe="Please enter the charity number",Ce="Please enter a business start date in the past",je="Please select if the company previously traded under different ownership",we="Please provide more information about the previous ownership",_e="Please enter the owner details",De="Please enter a business name",Se="Please enter a valid telephone number (must not include spaces or special characters)",ke="Please enter a valid website URL",Ae="Please enter a street address",Le="Please select a valid town/city from the list",Te="Please select a valid town/city to populate the county",Pe="Please enter a post code that is valid in the selected country",qe="Please enter a valid postcode format (e.g., SW1A 0AA)",Fe=/^\+?\d{7,15}$/,Ie=/^([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\s?[0-9][A-Za-z]{2})$/,Oe=e=>{if(!e)return!1;const s=new Date(e),t=new Date;return t.setHours(0,0,0,0),s<t},$e=e=>["England","Guernsey","Isle of Man","Jersey","Northern Ireland","Scotland","Wales"].includes(e),Be=pe.z.object({fullName:pe.z.string().min(5,he.required).regex(/^[a-zA-Z' -]+$/,he.invalid),email:pe.z.string().email(ve),contactNumber:pe.z.string().regex(Fe,ge),relationship:pe.z.string().min(1,ye)}),ze=pe.z.object({id:pe.z.number(),role:pe.z.string().min(1,"Please select a role for the owner."),salutation:pe.z.string(),fullName:pe.z.string().min(1,"Please enter the owner's full name."),startDate:pe.z.string().refine(Oe,{message:"Owner start date must be in the past."}).optional().or(pe.z.literal(""))}),Ee=pe.z.object({businessActivity:pe.z.object({label:pe.z.string(),value:pe.z.string().min(1,be)},{message:be}),employeeCount:pe.z.string().min(1,Ne).refine((e=>!isNaN(parseInt(e,10))&&parseInt(e,10)>=0),{message:Ne}),legalStructure:pe.z.string().min(1,xe),startDate:pe.z.string().min(1,Ce).refine(Oe,{message:Ce}),previousOwnership:pe.z.string().min(1,je),owners:pe.z.array(ze).min(1,_e),charityNumber:pe.z.string().optional(),previousOwnershipDetails:pe.z.string().optional()}).superRefine(((e,s)=>{"Charity"!==e.legalStructure||e.charityNumber&&""!==e.charityNumber.trim()||s.addIssue({code:pe.z.ZodIssueCode.custom,path:["charityNumber"],message:fe}),"YES"!==e.previousOwnership||e.previousOwnershipDetails&&""!==e.previousOwnershipDetails.trim()||s.addIssue({code:pe.z.ZodIssueCode.custom,path:["previousOwnershipDetails"],message:we})})),Me=pe.z.object({businessName:pe.z.string().min(1,De),businessPhone:pe.z.string().regex(Fe,Se),website:pe.z.string().url(ke).optional().or(pe.z.literal("")),streetAddress1:pe.z.string().min(5,Ae),addressCountry:pe.z.string().min(1,"Please select a country."),townCity:pe.z.string().min(1,Le),county:pe.z.string().min(1,Te),postcode:pe.z.string()}).superRefine(((e,s)=>{$e(e.addressCountry)&&(e.postcode?Ie.test(e.postcode)||s.addIssue({code:pe.z.ZodIssueCode.custom,path:["postcode"],message:qe}):s.addIssue({code:pe.z.ZodIssueCode.custom,path:["postcode"],message:Pe}))}
1)),Re=(e,s)=>{const t=Me.safeParse(e);if(!t.success)return t;if(!(0===s.length||s.some((s=>s.townCity===e.townCity&&s.county===e.county)))){const e=new pe.z.ZodError([]);return e.addIssue({code:pe.z.ZodIssueCode.custom,path:["townCity"],message:Le}),{success:!1,error:e}}return t};var We=t(70579);const Ue=["Director","President","Vice President","Chairman","Vice Chairman","Managing Director","Chief Executive Officer","Financial Director","Sales Director","Marketing Director","Commercial Director","Communication Director","Non Executive Chairperson","Council Member","Executive Director","Personnel Director","Group Managing Director","Deputy Managing Director","Non Executive Director","Operations Director","Administrative Receiver","Agent","Assistant Commissioner","Assistant Director","Assistant Financial Director","Assistant Minister","Associate","Board Member","Cabinet Member","Chancellor","Chief Superintendent","Clinical Director","Commander","Commissioner","Corporate Managing Director","Deputy Chief Officer","Deputy Commissioner","Deputy Director","Deputy General Secretary","Deputy Minister","Deputy Partner","Deputy Principal","Deputy Treasurer","Director of Library Services","Director of Security Operations","Financial Deputy Director","Governor","Head Teacher","Information Technology Director","Investment Direct","Junior-Vice President","Limited Partner","Liquidator","Managing Deputy Director","Mayor","Medical Director","Members Council","Minister","National Director","Nursing Director","Principal","Receiver","Regional Director","Research Director","Senior Executive","Senior Financial Director","Senior Manager","Social services Director","Strategic Director","Technical Director","Treasurer","Trustee","Vice-Principal","Vice-Chancellor"],Ye=["Proprietorship/Sole Trader","Partnership","Public Limited Liability Company","Limited Partnership","Private Unlimited Company","Foreign Company","Co-operative","Private Company Limited By Guarantee","Friendly Society","Charity","Membership Organization","School"],He="Owner",Ze="Partner",Ge=e=>{let{options:s,value:t,onChange:r,name:n,id:i,placeholder:o,required:l,disabled:d,hasError:u,onBlur:c,testId:m}=e;const[p,h]=(0,a.useState)(!1),v=(0,a.useRef)(null),g=e=>"string"===typeof e?e:e.value,y=e=>"string"===typeof e?e:e.label,b=e=>{r({target:{name:n,value:e}}),h(!1)};(0,a.useEffect)((()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[v]);const N=s.find((e=>g(e)===t)),x=N?y(N):o||t;return(0,We.jsxs)("div",{className:ne,ref:v,"data-cy":m,children:[(0,We.jsx)("div",{id:i,name:n,className:(0,w.A)(W,{[le]:d,[ue]:u}),onClick:()=>!d&&h(!p),onKeyDown:e=>{d||"Enter"!==e.key&&" "!==e.key||h(!p),"Escape"===e.key&&h(!1)},tabIndex:d?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":p,"aria-controls":`${i}-listbox`,"aria-required":l,"aria-disabled":d,onBlur:c,children:x}),p&&!d&&(0,We.jsx)("ul",{id:`${i}-listbox`,className:ie,role:"listbox",children:s.map((e=>(0,We.jsx)("li",{onClick:()=>b(g(e)),className:oe,role:"option","aria-selected":t===g(e),tabIndex:0,onKeyDown:s=>"Enter"===s.key&&b(g(e)),"data-cy":y(e),children:y(e)},g(e))))})]})},Je=(0,a.forwardRef)(((e,s)=>{let{stepLabels:t,stepTotal:r,stepCount:n}=e;return(0,We.jsx)("div",{className:D,ref:s,children:(0,We.jsx)("div",{className:S,children:(0,We.jsx)("div",{className:k,children:[...Array(r)].map(((e,s)=>(0,We.jsxs)(a.Fragment,{children:[(0,We.jsxs)("div",{className:A,children:[(0,We.jsx)("div",{className:(0,w.A)(P,{[q]:s+1===n,[F]:s+1<n}),"aria-label":`Step ${s+1}`,children:(0,We.jsx)("span",{children:s+1})}),(0,We.jsx)("div",{className:L,children:(0,We.jsx)("span",{className:T,children:t[s]})})]}),s<r-1&&(0,We.jsx)("div",{className:I})]},`step-visual-${s}`)))})})})})),Ke=e=>{let{value:s,onChange:t,name:r,id:n,required:i,suggestionsList:o,hasError:l,onSuggestionClick:d,onBlur:u,testId:c}=e;const[m,p]=(0,a.useState)([]),[h,v]=(0,a.useState)(!1),g=o||[];return(0,We.jsxs)("div",{className:ne,children:[(0,We.jsx)("input",{type:"text",id:n,name:r,value:s,onChange:e=>{const s=e.target.value;if(t(e),s.length>0){const e=g.filter((e=>e.toLowerCase().includes(s.toLowerCase())));p(e),v(!0)}else p([]),v(!1)},onBlur:e=>{setTimeout((()=>v(!1)),150),u&&u(e)},className:(0,w.A)(R,{[ue]:l}),required:i,autoComplete:"off","data-cy":c}),h&&m.length>0&&(0,We.jsx)("ul",{className:ie,children:m.map(((e,s)=>(0,We.jsx)("li",{onClick:()=>(e=>{p([]),v(!1),d?d(e):t({target:{name:r,value:e}})})(e),className:oe,onMouseDown:e=>e.preventDefault(),"data-cy":e,children:e},s)))})]})},Qe=e=>{let{data:s,handleChange:t,content:r,errors:a}=e;return(0,We.jsxs)("div",{className:(0,w.A)(O),children:[(0,We.jsxs)("div",{className:$,children:[(0,We.jsx)("h2",{className:z,children:(null===r||void 0===r?void 0:r.formStep1Title)||"About You"}),(null===r||void 0===r?void 0:r.formStep1Description)&&(0,We.jsx)("div",{className:E,dangerouslySetInnerHTML:{__html:r.formStep1Description}})]}),(0,We.jsxs)("div",{className:B,children:[(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"fullName",className:M,children:(null===r||void 0===r?void 0:r.s1FullNameLabel)||"Your full name*"}),(0,We.jsx)("input",{type:"text",id:"fullName",name:"fullName",value:s.fullName,onChange:t,className:(0,w.A)(R,{[ue]:a.fullName}),required:!0,"data-cy":"gad-full-name"}),a.fullName&&(0,We.jsx)("span",{className:de,children:a.fullName})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"email",className:M,children:(null===r||void 0===r?void 0:r.s1EmailLabel)||"Your email address*"}),(0,We.jsx)("input",{type:"email",id:"email",name:"email",value:s.email,onChange:t,className:(0,w.A)(R,{[ue]:a.email}),required:!0,"data-cy":"gad-email-address"}),a.email&&(0,We.jsx)("span",{className:de,children:a.email})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"contactNumber",className:M,children:(null===r||void 0===r?void 0:r.s1ContactNumLabel)||"Your contact number*"}),(0,We.jsx)("input",{type:"tel",id:"contactNumber",name:"contactNumber",value:s.contactNumber,onChange:t,className:(0,w.A)(R,{[ue]:a.contactNumber}),required:!0,"data-cy":"gad-contact-number"}),a.contactNumber&&(0,We.jsx)("span",{className:de,children:a.contactNumber})]}),(0,We.jsxs)("fieldset",{className:U,children:[(0,We.jsx)("legend",{className:M,children:(null===r||void 0===r?void 0:r.s1RelationshipLabel)||"Your relationship to the business*"}),(0,We.jsxs)("div",{className:Y,children:[(0,We.jsx)("input",{type:"radio",id:"worksForBusiness",name:"relationship",value:"WorkFor",checked:"WorkFor"===s.relationship,onChange:t,className:H,"data-cy":"gad-relationship-work-for"}),(0,We.jsx)("label",{htmlFor:"worksForBusiness",className:Z,children:(null===r||void 0===r?void 0:r.s1RelYesLabel)||"I do work for the business"})]}),(0,We.jsxs)("div",{className:Y,children:[(0,We.jsx)("input",{type:"radio",id:"doesNotWorkForBusiness",name:"relationship",value:"DoesNotWorkFor",checked:"DoesNotWorkFor"===s.relationship,onChange:t,className:H,"data-cy":"relationship-does-not-work-for"}),(0,We.jsx)("label",{htmlFor:"doesNotWorkForBusiness",className:Z,children:(null===r||void 0===r?void 0:r.s1RelNoLabel)||"I do not work for the business"})]})]}),"DoesNotWorkFor"===s.relationship&&(null===r||void 0===r?void 0:r.s1WarningMsg)&&(0,We.jsx)("div",{className:ae,dangerouslySetInnerHTML:{__html:r.s1WarningMsg}})]})]})},Ve=e=>{let{data:s,handleChange:t,handleBusinessActivitySelect:r,setFormData:a,content:n,errors:i,businessActivitiesSuggestions:o}=e;const l=e=>{a((s=>({...s,owners:s.owners.filter((s=>s.id!==e))})))},d=(e,s,t)=>{a((r=>({...r,owners:r.owners.map((r=>
1r.id===e?{...r,[s]:t}:r))})))};let u=Ue,c=!1;switch(s.legalStructure){case"Proprietorship/Sole Trader":u=[He],c=!0;break;case"Partnership":case"Limited Partnership":u=[Ze],c=!0;break;default:u=Ue,c=!1}return(0,We.jsxs)("div",{className:(0,w.A)(O),"data-cy":"gad-step-2",children:[(0,We.jsxs)("div",{className:$,children:[(0,We.jsx)("h2",{className:z,children:(null===n||void 0===n?void 0:n.formStep2Title)||"Business Details"}),(null===n||void 0===n?void 0:n.formStep2Description)&&(0,We.jsx)("div",{className:E,dangerouslySetInnerHTML:{__html:n.formStep2Description}})]}),(0,We.jsxs)("div",{className:B,children:[(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"businessActivity",className:M,children:(null===n||void 0===n?void 0:n.s2ActivityLabel)||"What does your business do?*"}),(null===n||void 0===n?void 0:n.s2ActivityHelperText)&&(0,We.jsx)("span",{className:G,children:n.s2ActivityHelperText}),(0,We.jsx)(Ke,{id:"businessActivity",name:"businessActivity",value:s.businessActivity.label,onChange:t,required:!0,suggestionsList:o,hasError:!!i.businessActivity,onSuggestionClick:r,testId:"gad-business-activity-dropdown"}),i.businessActivity&&(0,We.jsx)("span",{className:de,children:i.businessActivity})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"employeeCount",className:M,children:(null===n||void 0===n?void 0:n.s2EmployeesLabel)||"How many full time employees does your business have?*"}),(0,We.jsx)("input",{type:"number",id:"employeeCount",name:"employeeCount",value:s.employeeCount,onChange:t,className:(0,w.A)(R,{[ue]:i.employeeCount}),required:!0,"data-cy":"gad-number-of-employees"}),i.employeeCount&&(0,We.jsx)("span",{className:de,children:i.employeeCount})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"legalStructure",className:M,children:(null===n||void 0===n?void 0:n.s2LegalStructLabel)||"Legal structure*"}),(0,We.jsx)(Ge,{id:"legalStructure",name:"legalStructure",value:s.legalStructure,onChange:t,options:Ye,placeholder:(null===n||void 0===n?void 0:n.s2LegalStructPlaceholder)||"Please select the business's legal structure",required:!0,hasError:!!i.legalStructure,testId:"gad-legal-structure-dropdown"}),i.legalStructure&&(0,We.jsx)("span",{className:de,children:i.legalStructure})]}),"Charity"===s.legalStructure&&(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"charityNumber",className:M,children:(null===n||void 0===n?void 0:n.s2CharityNumLabel)||"Charity number*"}),(0,We.jsx)("input",{type:"text",id:"charityNumber",name:"charityNumber",value:s.charityNumber,onChange:t,className:(0,w.A)(R,{[ue]:i.charityNumber}),required:!0}),i.charityNumber&&(0,We.jsx)("span",{className:de,children:i.charityNumber})]}),s.legalStructure&&(0,We.jsxs)(We.Fragment,{children:[s.owners.map(((e,s)=>(0,We.jsx)(es,{owner:e,index:s,onOwnerChange:d,onRemoveOwner:l,isFirst:0===s,content:n,roles:u,isRoleDisabled:c,errors:i},e.id))),"Proprietorship/Sole Trader"!==s.legalStructure&&(0,We.jsx)("div",{className:se,children:(0,We.jsx)(_.$,{as:"button",type:"button",theme:"light",size:"medium",onClick:()=>{a((e=>({...e,owners:[...e.owners,{id:Date.now(),role:"",salutation:"",fullName:"",startDate:""}]})))},children:(null===n||void 0===n?void 0:n.addOwnerButtonLabel)||"Add another owner"})}),i.owners&&(0,We.jsx)("span",{className:de,children:i.owners})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"startDate",className:M,children:(null===n||void 0===n?void 0:n.s2StartDateLabel)||"When did your business start?*"}),(0,We.jsx)("input",{type:"date",id:"startDate",name:"startDate",value:s.startDate,onChange:t,className:(0,w.A)(R,{[ue]:i.startDate}),required:!0,"data-cy":"business-start-date"}),i.startDate&&(0,We.jsx)("span",{className:de,children:i.startDate})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"previousOwnership",className:M,children:(null===n||void 0===n?void 0:n.s2PrevOwnerLabel)||"Did the company previously trade under different ownership?*"}),(0,We.jsx)(Ge,{id:"previousOwnership",name:"previousOwnership",value:s.previousOwnership,onChange:t,options:[{label:"Yes",value:"YES"},{label:"No",value:"NO"}],placeholder:"Select answer",required:!0,hasError:!!i.previousOwnership,testId:"previous-ownership-dropdown"}),i.previousOwnership&&(0,We.jsx)("span",{className:de,children:i.previousOwnership})]}),"YES"===s.previousOwnership&&(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"previousOwnershipDetails",className:M,children:(null===n||void 0===n?void 0:n.s2PrevOwnerInfoLabel)||"Please provide more information: *"}),(0,We.jsx)("input",{type:"text",id:"previousOwnershipDetails",name:"previousOwnershipDetails",value:s.previousOwnershipDetails,onChange:t,className:(0,w.A)(R,{[ue]:i.previousOwnershipDetails}),required:!0}),i.previousOwnershipDetails&&(0,We.jsx)("span",{className:de,children:i.previousOwnershipDetails})]})]})]})},Xe=e=>{let{data:s,handleChange:t,setFormData:r,content:a,errors:n,townCityCountyArray:i,onBlur:o}=e;const l=i.map((e=>e.townCity));return(0,We.jsxs)("div",{className:(0,w.A)(O),"data-cy":"gad-step-3-content",children:[(0,We.jsxs)("div",{className:$,children:[(0,We.jsx)("h2",{className:z,children:(null===a||void 0===a?void 0:a.formStep3Title)||"Business Address"}),(null===a||void 0===a?void 0:a.formStep3Description)&&(0,We.jsx)("div",{className:E,dangerouslySetInnerHTML:{__html:a.formStep3Description}})]}),(0,We.jsxs)("div",{className:B,children:[(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"businessName",className:M,children:(null===a||void 0===a?void 0:a.s3BusinessNameLabel)||"Business name*"}),(0,We.jsx)("input",{type:"text",id:"businessName",name:"businessName",value:s.businessName,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.businessName}),required:!0,"data-cy":"gad-business-name"}),n.businessName&&(0,We.jsx)("span",{className:de,children:n.businessName})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{className:M,children:(null===a||void 0===a?void 0:a.s3TradingNameLabel)||"Does the company trade under any other name?"}),s.tradingNames.map(((e,t)=>(0,We.jsxs)("div",{className:te,children:[(0,We.jsx)("input",{type:"text",value:e,onCh
1ange:e=>((e,s)=>{r((t=>({...t,tradingNames:t.tradingNames.map(((t,r)=>r===e?s:t))})))})(t,e.target.value),className:R,placeholder:`${(null===a||void 0===a?void 0:a.s3TradingNamePlaceholder)||"Trading Name"} ${t+1}`,"data-cy":"gad-trading-name"}),s.tradingNames.length>1&&(0,We.jsx)(_.$,{as:"button",type:"button",theme:"light",size:"small",onClick:()=>(e=>{r((s=>({...s,tradingNames:s.tradingNames.filter(((s,t)=>t!==e))})))})(t),children:(null===a||void 0===a?void 0:a.removeButtonLabel)||"Remove"})]},t))),s.tradingNames.length<2&&(0,We.jsx)("div",{className:se,children:(0,We.jsx)(_.$,{as:"button",type:"button",theme:"light",size:"medium",onClick:()=>{r((e=>e.tradingNames.length<2?{...e,tradingNames:[...e.tradingNames,""]}:e))},children:(null===a||void 0===a?void 0:a.addTradingNameButtonLabel)||"Add trading name"})})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"addressCountry",className:M,children:(null===a||void 0===a?void 0:a.s3CountryLabel)||"Country*"}),(0,We.jsx)(Ge,{id:"addressCountry",name:"addressCountry",value:s.addressCountry,onChange:t,options:(null===a||void 0===a?void 0:a.addressCountries)||[],placeholder:"Select a country",required:!0,hasError:!!n.addressCountry,onBlur:o,testId:"gad-country-dropdown"}),n.addressCountry&&(0,We.jsx)("span",{className:de,children:n.addressCountry})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"businessPhone",className:M,children:(null===a||void 0===a?void 0:a.s3BusinessPhoneLabel)||"Business telephone number*"}),(0,We.jsx)("input",{type:"tel",id:"businessPhone",name:"businessPhone",value:s.businessPhone,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.businessPhone}),required:!0,"data-cy":"gad-business-phone-number"}),n.businessPhone&&(0,We.jsx)("span",{className:de,children:n.businessPhone})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"website",className:M,children:(null===a||void 0===a?void 0:a.s3WebsiteLabel)||"Website address"}),(0,We.jsx)("input",{type:"url",id:"website",name:"website",value:s.website,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.website}),"data-cy":"gad-website-address"}),n.website&&(0,We.jsx)("span",{className:de,children:n.website})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"streetAddress1",className:M,children:(null===a||void 0===a?void 0:a.s3StreetAddressLabel)||"Street address*"}),(0,We.jsx)("input",{type:"text",id:"streetAddress1",name:"streetAddress1",value:s.streetAddress1,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.streetAddress1}),required:!0,"data-cy":"gad-street-address"}),n.streetAddress1&&(0,We.jsx)("span",{className:de,children:n.streetAddress1}),(0,We.jsx)("input",{type:"text",id:"streetAddress2",name:"streetAddress2",value:s.streetAddress2,onChange:t,onBlur:o,className:R,placeholder:(null===a||void 0===a?void 0:a.s3StreetAddress2Placeholder)||"Line 2 (optional)"})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"townCity",className:M,children:(null===a||void 0===a?void 0:a.s3TownCityLabel)||"Town/City*"}),(0,We.jsx)(Ke,{id:"townCity",name:"townCity",value:s.townCity,onChange:t,onBlur:o,required:!0,suggestionsList:l,hasError:!!n.townCity,onSuggestionClick:e=>{const s=i.find((s=>s.townCity===e));s&&r((e=>({...e,townCity:s.townCity,county:s.county})))},testId:"gad-town-city"}),n.townCity&&(0,We.jsx)("span",{className:de,children:n.townCity})]}),(0,We.jsxs)("div",{children:[(0,We.jsx)("label",{htmlFor:"county",className:M,children:(null===a||void 0===a?void 0:a.s3CountyLabel)||"County"}),(0,We.jsx)("input",{type:"text",id:"county",name:"county",value:s.county,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.county}),disabled:i.length>0,"data-cy":"gad-county-input"}),n.county&&(0,We.jsx)("span",{className:de,children:n.county})]}),(0,We.jsxs)("div",{children:[(0,We.jsxs)("label",{htmlFor:"postcode",className:M,children:[(null===a||void 0===a?void 0:a.s3PostcodeLabel)||"Postcode",$e(s.addressCountry)&&"*"]}),(0,We.jsx)("input",{type:"text",id:"postcode",name:"postcode",value:s.postcode,onChange:t,onBlur:o,className:(0,w.A)(R,{[ue]:n.postcode}),required:$e(s.addressCountry),"data-cy":"gad-postcode"}),n.postcode&&(0,We.jsx)("span",{className:de,children:n.postcode})]}),(null===a||void 0===a?void 0:a.formStep3FinalInfo)&&(0,We.jsx)("div",{className:re,children:(0,We.jsx)("div",{className:E,dangerouslySetInnerHTML:{__html:a.formStep3FinalInfo}})})]})]})},es=e=>{let{owner:s,index:t,onOwnerChange:r,onRemoveOwner:a,isFirst:n,content:i,roles:o,isRoleDisabled:l,errors:d}=e;const u=e=>{const{name:t,value:a}=e.target;r(s.id,t,a)},c=e=>{const{name:t,value:a}=e.target;r(s.id,t,a)},m=`owners.${t}.fullName`;return(0,We.jsxs)("div",{className:V,children:[(0,We.jsxs)("div",{className:K,children:[(0,We.jsxs)("h4",{className:Q,children:[`${(null===i||void 0===i?void 0:i.s2OwnerTitle)||"Owner"} ${t+1}`,"*"]}),!n&&(0,We.jsx)(_.$,{as:"button",type:"button",theme:"light",size:"small",onClick:()=>
1a(s.id),children:(null===i||void 0===i?void 0:i.removeButtonLabel)||"Remove"})]}),(0,We.jsxs)("div",{className:X,children:[(0,We.jsxs)("div",{className:ee,children:[(0,We.jsx)("label",{htmlFor:`owner${s.id}Role`,className:M,children:"Role"}),(0,We.jsx)(Ge,{id:`owner${s.id}Role`,name:"role",value:s.role,onChange:c,options:o,placeholder:"-- Select Role --",disabled:l})]}),(0,We.jsxs)("div",{className:ee,children:[(0,We.jsx)("label",{htmlFor:`owner${s.id}Salutation`,className:M,children:"Salutation"}),(0,We.jsx)(Ge,{id:`owner${s.id}Salutation`,name:"salutation",value:s.salutation,onChange:c,options:(null===i||void 0===i?void 0:i.ownerSalutations)||[],placeholder:"-- Select Salutation --",testId:`owner-salutation-dropdown-${t+1}`})]})]}),(0,We.jsxs)("div",{className:ee,children:[(0,We.jsx)("label",{htmlFor:`owner${s.id}FullName`,className:M,children:"Full name*"}),(0,We.jsx)("input",{type:"text",id:`owner${s.id}FullName`,name:"fullName",value:s.fullName,onChange:u,className:(0,w.A)(R,{[ue]:d[m]}),required:!0,"data-cy":`owner-full-name-${t+1}`}),d[m]&&(0,We.jsx)("span",{className:de,children:d[m]})]}),(0,We.jsxs)("div",{className:ee,children:[(0,We.jsx)("label",{htmlFor:`owner${s.id}StartDate`,className:M,children:"Start date?"}),(0,We.jsx)("input",{type:"date",id:`owner${s.id}StartDate`,name:"startDate",value:s.startDate,onChange:u,className:R,"data-cy":`start-date-${t+1}`})]})]})},ss=e=>{var s;let{content:t}=e;const[r,n]=(0,a.useState)(1),[i,o]=(0,a.useState)({fullName:"",email:"",contactNumber:"",relationship:"WorkFor",businessActivity:{label:"",value:""},employeeCount:"",legalStructure:"",charityNumber:"",startDate:"",previousOwnership:"",previousOwnershipDetails:"",owners:[{id:Date.now(),role:"",salutation:"",fullName:"",startDate:""}],businessName:"",tradingNames:[""],addressCountry:(null===t||void 0===t||null===(s=t.addressCountries)||void 0===s?void 0:s[0])||"",businessPhone:"",website:"",streetAddress1:"",streetAddress2:"",townCity:"",county:"",postcode:""}),[l,d]=(0,a.useState)({}),[u,c]=(0,a.useState)([]),[m,p]=(0,a.useState)({}),[h,v]=(0,a.useState)([]),g=(null===t||void 0===t?void 0:t.stepLabels)||["About you","Business Details","Business Information"],y=a.useMemo((()=>new Map(h.map((e=>[e.label,e.value])))),[h]),b=a.useMemo((()=>h.map((e=>e.label))),[h]);(0,a.useEffect)((()=>{(0,me.s)().then((e=>{Array.isArray(e)&&v(e)})).catch((e=>console.error("Failed to load SIC codes:",e)))}),[]);const N=e=>{let s;const t={...i,owners:i.owners.filter((e=>e.fullName))};if(1===e)s=Be.safeParse(t);else if(2===e)s=Ee.safeParse(t);else{if(3!==e)return!0;s=Re(t,u)}if(!s.success){const e=s.error.flatten().fieldErrors,t={};for(const s in e)e[s]&&(t[s]=e[s][0]);return s.error.issues.forEach((e=>{e.path.length>1&&(t[e.path.join(".")]=e.message)})),d(t),p(Object.keys(t).reduce(((e,s)=>({...e,[s]:!0})),{})),!1}return d({}),!0},x=e=>{const{name:s,value:t}=e.target;r<3&&l[s]&&d((e=>{const t={...e};return delete t[s],t})),o("businessActivity"===s?e=>({...e,businessActivity:{label:t,value:""}}):e=>({...e,[s]:t}))};(0,a.useEffect)((()=>{if(3!==r||0===Object.keys(m).length)return;const e=Re(i,u),s={};if(!e.success){const t=e.error.flatten().fieldErrors;Object.keys(m).forEach((e=>{const r=e;t[r]&&(s[e]=t[r][0])}))}d(s)}),[i,m,r,u]),(0,a.useEffect)((()=>{o((e=>{const s=e.owners;let t=[...s];switch(e.legalStructure){case"Proprietorship/Sole Trader":t.length>1&&(t=[t[0]]),0===t.length?t.push({id:Date.now(),role:He,salutation:"",fullName:"",startDate:""}):t[0]={...t[0],role:He};break;case"Partnership":case"Limited Partnership":for(;t.length<2;)t.push({id:Date.now(),role:Ze,salutation:"",fullName:"",startDate:""});t=t.map((e=>({...e,role:Ze})));break;default:t=t.map((e=>e.role===He||e.role===Ze?{...e,role:""}:e))}return JSON.stringify(s)!==JSON.stringify(t)?{...e,owners:t}:e}))}),[i.legalStructure]),(0,a.useEffect)((()=>{if((i.townCity||i.county)&&o((e=>({...e,townCity:"",county:""}))),!i.addressCountry)return void c([]);const e={England:"england",Scotland:"scotland",Wales:"wales","Northern Ireland":"northern-ireland","Republic of Ireland":"ireland",Jersey:"jersey",Guernsey:"guernsey","Isle of Man":"isle-of-man"}[i.addressCountry];e?(0,me.p)(e).then((e=>{const s=Object.entries(e).map((e=>{let[s,t]=e;return{townCity:s,county:t}}));c(s)})).catch((e=>{console.error("Failed to load town/city data",e),c([])})):c([])}),[i.addressCountry]);const f=e=>{if(!e||!/^\d{4}-\d{2}-\d{2}$/.test(e))return"";const[s,t,r]=e.split("-");return`${r}/${t}/${s}`};return(0,We.jsx)("form",{onSubmit:e=>{if(e.preventDefault(),!N(r))return;const s=new FormData,a=(null===t||void 0===t?void 0:t.thankYouPageLink)||"https://www.dnb.co.uk/forms/thank-you-pages/duns-lookup-thank-you.html";s.append("external","1"),s.append("orgid","00D200000000NYv"),s.append("retURL",a),s.append("recordType","012200000000Vcm"),s.append("subject","New DUNS Request"),s.append("00ND0000004T0Ms","DUNS number"),s.append("00ND0000004T0Mx","New DUNS Number"),s.append("00ND0000005lTcs","BI&C - DUNS Creation"),s.append("00N20000001TXCU","New DUNS"),s.append("00ND0000004T0Mt","0"),s.append("00ND0000004T0Mw","99"),s.append("00ND0000004VRLO","Cust. Webform"),s.append("00N20000000rXrb",i.addressCountry),s.append("00ND0000004UXSa",i.fullName),s.append("email",i.email),s.append("00ND0000004T0Mn",i.contactNumber),s.append("WorkFor",i.relationship
1),s.append("CompanyDoes",i.businessActivity.label),s.append("CompanyIndustry",i.businessActivity.value),s.append("CompanyEmployees",i.employeeCount),s.append("LegalStructure",i.legalStructure),"Charity"===i.legalStructure&&i.charityNumber&&s.append("CharityNumber",i.charityNumber),s.append("StartDateMonth",i.startDate),s.append("TradeOwnership",i.previousOwnership),"YES"===i.previousOwnership&&i.previousOwnershipDetails&&s.append("TradeOwnershipInfo",i.previousOwnershipDetails),i.owners.slice(0,4).forEach(((e,t)=>{s.append(`Owner${t+1}`,e.role),s.append(`Owner${t+1}Title`,e.salutation),s.append(`Owner${t+1}Name`,e.fullName),s.append(`Owner${t+1}StartDate`,e.startDate)})),s.append("00ND0000004T0Mm",i.businessName),s.append("CompanyNameAlt",i.tradingNames[0]||""),s.append("CompanyNameAlt2",i.tradingNames[1]||""),s.append("CompanyCountry",i.addressCountry),s.append("CompanyPhone",i.businessPhone),s.append("CompanyWeb",i.website),s.append("CompanyStreet",i.streetAddress1),s.append("CompanyStreet2",i.streetAddress2),s.append("CompanyTown",i.townCity),s.append("CompanyCounty",i.county),s.append("CompanyPostCode",i.postcode),s.append("00ND0000004VJh5",i.postcode);const n=[`Contact Name: ${i.fullName}`,`Contact Email: ${i.email}`,`Contact Phone: ${i.contactNumber}`,`Relationship: ${i.relationship}`,"---",`Business Name: ${i.businessName}`,`Business Phone: ${i.businessPhone}`,`CompanyWeb: ${i.website}`,`Start Date: ${f(i.startDate)}`,`Previously different ownership: ${i.previousOwnership}`];n.push(`Business Activity: ${i.businessActivity.label} (SIC: ${i.businessActivity.value})`,`Employees: ${i.employeeCount}`,`Legal Structure: ${i.legalStructure}`),i.tradingNames.filter((e=>e)).forEach(((e,s)=>{n.push(`Trading Style ${s+1}: ${e}`)})),"Charity"===i.legalStructure&&n.push(`Charity Number: ${i.charityNumber}`),"YES"===i.previousOwnership&&n.push(`Previous Ownership Details: ${i.previousOwnershipDetails}`),n.push("---","Owners:"),i.owners.filter((e=>e.fullName)).forEach(((e,s)=>{const t=[` Owner ${s+1}:`,` Full Name: ${e.fullName}`,` Role: ${e.role||"N/A"}`,` Start Date: ${f(e.startDate)||"N/A"}`].join("\n");n.push(t)})),n.push("---","Address:",i.streetAddress1.toUpperCase(),i.streetAddress2.toUpperCase(),i.townCity.toUpperCase(),i.county.toUpperCase(),i.postcode.toUpperCase(),i.addressCountry.toUpperCase());const o=n.filter((e=>e)).join("\n");s.append("description",o);const l=document.createElement("form");l.method="POST",l.action="https://webto.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8",l.style.display="none";for(const[t,r]of s.entries()){const e=document.createElement("input");e.type="hidden",e.name=t,e.value=r,l.appendChild(e)}document.body.appendChild(l),l.submit(),document.body.removeChild(l)},className:"defaultLayoutOuter",children:(0,We.jsxs)("div",{className:"defaultLayoutInner defaultGrid",children:[(0,We.jsx)(Je,{stepLabels:g,stepTotal:g.length,stepCount:r}),1===r&&(0,We.jsx)(Qe,{data:i,handleChange:x,content:t,errors:l}),2===r&&(0,We.jsx)(Ve,{data:i,handleChange:x,handleBusinessActivitySelect:e=>{const s=y.get(e)||"";o((t=>({...t,businessActivity:{label:e,value:s}}))),l.businessActivity&&d((e=>{const s={...e};return delete s.businessActivity,s}))},setFormData:o,content:t,errors:l,businessActivitiesSuggestions:b}),3===r&&(0,We.jsx)(Xe,{data:i,handleChange:x,setFormData:o,content:t,errors:l,townCityCountyArray:u,onBlur:e=>{const s=e.currentTarget.name||e.currentTarget.id;s&&!m[s]&&p((e=>({...e,[s]:!0})))}}),(0,We.jsxs)("div",{className:J,style:{justifyContent:1===r?"flex-end":"space-between"},children:[r>1&&(0,We.jsx)(ce.N,{onClick:()=>{d({}),p({}),n((e=>Math.max(e-1,1)))},variant:"primary",size:"medium",children:(null===t||void 0===t?void 0:t.backButtonLabel)||"Back"}),r<g.length?(0,We.jsx)(_.$,{onClick:()=>{N(r)&&(n((e=>Math.min(e+1,g.length))),p({}))},as:"button",theme:"light",size:"medium",icon:"arrowRight",disabled:1===r&&"DoesNotWorkFor"===i.relationship,"data-cy":"gad-next-button",children:(null===t||void 0===t?void 0:t.continueButtonLabel)||"Continue"}):(0,We.jsx)(_.$,{type:"submit",as:"button",theme:"light",size:"medium",icon:"arrowRight","data-cy":"gad-submit-request-button",children:(null===t||void 0===t?void 0:t.submitButtonLabel)||"Submit"})]})]})})},ts=e=>{let{options:s,value:t,onChange:r,name:n,id:i,placeholder:o,testId:l}=e;const[d,c]=(0,a.useState)(!1),m=(0,a.useRef)(null),p=e=>{r({target:{name:n,value:e}}),c(!1)};return(0,a.useEffect)((()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[m]),(0,We.jsxs)("div",{className:x,ref:m,"data-cy":l,children:[(0,We.jsx)("div",{id:i,className:u,onClick:()=>c(!d),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||c(!d),"Escape"===e.key&&c(!1)},tabIndex:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":d,"aria-controls":`${i}-listbox`,children:t||o}),d&&(0,We.jsx)("ul",{id:`${i}-listbox`,className:f,role:"listbox",children:s.map((e=>(0,We.jsx)("li",{onClick:()=>p(e),className:C,role:"option","aria-selected":t===e,tabIndex:0,onKeyDown:s=>"Enter"===s.key&&p(e),"data-cy":e,children:e},e)))})]})},rs=e=>{let{title:s,description:t,buttonText:r,buttonLink:a}=e;return(0,We.jsxs)("div",{className:v,children:[s&&(0,We.jsx)("h3",{className:g,children:s}),t&&(0,We.jsx)("div",{className:b,dangerouslySetInnerHTML:{__html:t}}),r&&a&&(0,We.jsx)(_.$,{href:a,as:"link",theme:"light",icon:"arrowRight",size:"medium",children:r})]})},as=e=>{let{onStartRequest:s,title:t,description:r,checkboxText:n,buttonText:i}=e;const[o,l]=(0,a.useState)(!1);return(0,We.jsxs)("div",{className:v,children:[t&&(0,We.jsx)("h3",{className:g,children:t}),r&&(0,We.jsx)("div",{className:b,dangerouslySetInnerHTML:{__html:r}}
1),n&&(0,We.jsxs)("div",{className:N,children:[(0,We.jsx)("input",{type:"checkbox",id:"privacyConfirm",name:"privacyConfirm",checked:o,onChange:e=>l(e.target.checked),"data-cy":"gad-privacy-policy-checkbox"}),(0,We.jsx)("label",{htmlFor:"privacyConfirm",className:b,dangerouslySetInnerHTML:{__html:n}})]}),i&&(0,We.jsx)(_.$,{as:"button",theme:"light",size:"medium",disabled:!o&&!!n,onClick:s,icon:"arrowRight","data-cy":"gad-request-duns-button",children:i})]})},ns=e=>{let{data:s}=e;const{backgroundColor:t,reduceTopSpacing:r,reduceBottomSpacing:n,id:u,mainTitle:v,mainDescription:g,countrySelectLabel:N,countries:x,registeredQuestionLabel:f,registeredYesLabel:C,registeredNoLabel:_,registeredTitle:D,registeredDescription:S,registeredButtonText:k,registeredButtonLink:A,unregisteredTitle:L,unregisteredDescription:T,unregisteredCheckboxText:P,unregisteredButtonText:q,formContent:F}=s,I=(0,j.ws)(r,n),O=(0,j.af)(t),[$,B]=(0,a.useState)(""),[z,E]=(0,a.useState)(""),[M,R]=(0,a.useState)(!1),W=e=>{E(e.target.value)},U=()=>R(!1);return M?(0,We.jsx)("section",{id:null!==u&&void 0!==u?u:void 0,style:{...I,...O},className:(0,w.A)("defaultContainer"),"data-cy":"gad-duns-request-form",children:(0,We.jsx)(ss,{onBackToStart:U,content:F})}):(0,We.jsx)("section",{id:null!==u&&void 0!==u?u:void 0,style:{...I,...O},className:(0,w.A)("defaultContainer"),children:(0,We.jsx)("div",{className:"defaultLayoutOuter",children:(0,We.jsxs)("div",{className:i,children:[(0,We.jsxs)("div",{className:o,children:[v&&(0,We.jsx)("h1",{className:(0,w.A)(y),children:v}),g&&(0,We.jsx)("div",{className:(0,w.A)(b),dangerouslySetInnerHTML:{__html:g}})]}),(0,We.jsxs)("div",{className:l,children:[N&&(0,We.jsx)("label",{htmlFor:"yourCountry",className:d,children:N}),(0,We.jsx)(ts,{id:"yourCountry",name:"country",options:x||[],value:$,onChange:e=>{B(e.target.value),E("")},placeholder:"Please select a country",testId:"gad-country-dropdown"}),$&&(0,We.jsxs)("fieldset",{className:c,children:[f&&(0,We.jsx)("legend",{className:d,children:f}),(0,We.jsxs)("div",{className:m,children:[(0,We.jsx)("input",{type:"radio",id:"registeredYes",name:"isRegistered",value:"yes",checked:"yes"===z,onChange:W,className:p,"data-cy":"gad-registered-yes-radio"}),(0,We.jsx)("label",{htmlFor:"registeredYes",className:h,children:C||"Yes"})]}),(0,We.jsxs)("div",{className:m,children:[(0,We.jsx)("input",{type:"radio",id:"registeredNo",name:"isRegistered",value:"no",checked:"no"===z,onChange:W,className:p,"data-cy":"gad-registered-no-radio"}),(0,We.jsx)("label",{htmlFor:"registeredNo",className:h,children:_||"No"})]})]}),"yes"===z&&(0,We.jsx)(rs,{title:D,description:S,buttonText:k,buttonLink:A}),"no"===z&&(0,We.jsx)(as,{onStartRequest:()=>R(!0),title:L,description:T,checkboxText:P,buttonText:q})]})]})})})};var is=t(8895),os=t(25640);var ls=e=>{const{data:s}=e,t={id:null===s||void 0===s?void 0:s.id,backgroundColor:null===s||void 0===s?void 0:s.backgroundColor,theme:null===s||void 0===s?void 0:s.theme,reduceTopSpacing:null===s||void 0===s?void 0:s.reduceTopSpacing,reduceBottomSpacing:null===s||void 0===s?void 0:s.reduceBottomSpacing,mainTitle:null===s||void 0===s?void 0:s.mainTitle,mainDescription:null===s||void 0===s?void 0:s.mainDescription,countrySelectLabel:null===s||void 0===s?void 0:s.countrySelectLabel,countries:null===s||void 0===s?void 0:s.countries,registeredQuestionLabel:null===s||void 0===s?void 0:s.registeredQuestionLabel,registeredYesLabel:null===s||void 0===s?void 0:s.registeredYesLabel,registeredNoLabel:null===s||void 0===s?void 0:s.registeredNoLabel,registeredTitle:null===s||void 0===s?void 0:s.registeredTitle,registeredDescription:null===s||void 0===s?void 0:s.registeredDescription,registeredButtonText:null===s||void 0===s?void 0:s.registeredButtonText,registeredButtonLink:null===s||void 0===s?void 0:s.registeredButtonLink,unregisteredTitle:null===s||void 0===s?void 0:s.unregisteredTitle,unregisteredDescription:null===s||void 0===s?void 0:s.unregisteredDescription,unregisteredCheckboxText:null===s||void 0===s?void 0:s.unregisteredCheckboxText,unregisteredButtonText:null===s||void 0===s?void 0:s.unregisteredButtonText,formContent:null===s||void 0===s?void 0:s.formContent},i=(0,is.y$)();return(0,a.useEffect)((()=>{try{i.updateH1(t.mainTitle)}catch(e){const s="Schema Error: UK Get A Duns Component";console.error(s,e);const t=new Error(s);(0,os.h)((null===t||void 0===t?void 0:t.stack)||s)}}),[i,t.mainTitle]),(0,We.jsx)("div",{id:(0,n.A)(e.cqPath),children:(0,We.jsx)(r.A,{children:(0,We.jsx)(ns,{data:t})})})}},6733:function(e,s,t){async function r(e){try{let s;switch(e){case"england":s=await t.e(7862).then(t.t.bind(t,67862,19));break;case"scotland":s=await t.e(4454).then(t.t.bind(t,42073,19));break;case"wales":s=await t.e(9547).then(t.t.bind(t,79547,19));break;case"northern-ireland":s=await t.e(5201).then(t.t.bind(t,45201,19));break;case"ireland":s=await t.e(8028).then(t.t.bind(t,8028,19));break;case"jersey":s=await t.e(9945).then(t.t.bind(t,22326,19));break;case"guernsey":s=await t.e(4979).then(t.t.bind(t,64979,19));break;case"isle-of-man":s=await t.e(9037).then(t.t.bind(t,49037,19));break;default:throw new Error(`Invalid country: ${e}`)}return s.default}catch(s){throw console.error(`Failed to load town data for ${e}:`,s),new Error(`Failed to load town data for ${e}`)}}async function a(){try{return(await t.e(7223).then(t.t.bind(t,77223,19))).default}catch(e){throw console.error("Failed to load SIC industry codes:",e),new Error("Failed to load SIC industry codes")}}t.d(s,{p:function(){return r},s:function(){return a}})}}]);
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.