PageSourceSearch

https://my.dnb.com/src_components_pages_DunsLookup_TypeSelection_index_tsx.d405de49be88d02d2e7f.js

js dnb.com collected 2026-09-24 09:08:25 UTC 14,689 bytes, 2 lines download raw bytes

1/*! For license information please see src_components_pages_DunsLookup_TypeSelection_index_tsx.d405de49be88d02d2e7f.js.LICENSE.txt */
2"use strict";(self.webpackChunkmarketplace_portal_ui=self.webpackChunkmarketplace_portal_ui||[]).push([["src_components_pages_DunsLookup_TypeSelection_index_tsx"],{18031(e,t,r){r.r(t),r.d(t,{default:()=>b});var n=r(96540),s=r(60961),a=r(35077),o=r(43329),i=r(90087),c=r(3905),l=r(23262),u=r(67934),d=r(68577),m=r(74848);const p=function(e){var t=e.subtitleText,r=e.selectedIntent,n=e.setSelectedIntent,o=e.handleContinue;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h2",{className:"text-dnb-cpl-box-shadow font-avenirProLight text-[2rem] font-[400] not-italic leading-[110%] mb-6",children:t}),(0,m.jsx)("div",{className:"flex flex-col gap-5 w-full mb-8",children:[{value:a.kc.SELF,label:s.I18n.t("duns-lookup:type-selection:option-self")},{value:a.kc.OTHERS,label:s.I18n.t("duns-lookup:type-selection:option-others")}].map(function(e){return(0,m.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer","data-tracking-id":e.value===a.kc.SELF?u.Nh.LOOKUP_SELECT_MYBUSINESS:u.Nh.LOOKUP_SELECT_EVALUATING,children:[(0,m.jsx)("input",{type:"radio",name:"intent",value:e.value,checked:r===e.value,onChange:function(){return n(e.value)},className:"hidden","data-tracking-id":e.value===a.kc.SELF?u.Nh.LOOKUP_SELECT_MYBUSINESS:u.Nh.LOOKUP_SELECT_EVALUATING}),(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"shrink-0",children:[(0,m.jsx)("path",{d:"M17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5C14.1421 2.5 17.5 5.85786 17.5 10Z",stroke:"#005172",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),r===e.value&&(0,m.jsx)("circle",{cx:"10",cy:"10",r:"5",fill:"#005172"})]}),(0,m.jsx)("span",{className:"text-dnb-cpl-box-shadow font-avenirProLight text-[1rem] font-[400] not-italic leading-[1.5rem] tracking-[0.00625rem] [font-feature-settings:'liga'_off,'clig'_off]",children:e.label})]},e.value)})}),(0,m.jsxs)(d.A,{onClick:o,disabled:!r,variant:"primary",className:"mt-4",gtmTrackingId:r===a.kc.SELF?u.Nh.LOOKUP_CONTINUE_MYBUSINESS:u.Nh.LOOKUP_CONTINUE_EVALUATING,children:[s.I18n.t("duns-lookup:type-selection:continue"),(0,m.jsx)(l.A,{})]})]})};var f=r(49381),w=r(56347),h=r(22104);function g(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}const y=function(){var e=(0,w.zy)(),t=(0,w.W6)(),r=(0,h.C)().flow;""==r&&(r=a.o9);var s,o,i=(s=(0,n.useState)(a.kc.SELF),o=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,a,o,i=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw s}}return i}}(s,o)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}(s,o)||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=i[0],l=i[1];return(0,n.useEffect)(function(){var t=new URLSearchParams(e.search).get("type");t!==a.kc.SELF&&t!==a.kc.OTHERS||l(t)},[e.search,l]),{selectedIntent:c,setSelectedIntent:l,handleContinue:function(){t.push("".concat(a.ws.businessSearch,"?flow=").concat(r,"&type=").concat(c))}}},b=function(){var e=y(),t=e.selectedIntent,r=e.setSelectedIntent,n=e.handleContinue,l=(0,c.A)(s.I18n.t("duns-lookup:type-selection:title")),u=(0,c.A)(s.I18n.t("duns-lookup:type-selection:desc")),d=(0,c.A)(s.I18n.t("duns-lookup:type-selection:subtitle")),w=(0,m.jsx)(i.A,{titleText:l,descText:u});console.log("Lookup Page Deployment Testing ");var h=(0,m.jsx)(p,{subtitleText:d,selectedIntent:t,setSelectedIntent:r,handleContinue:n});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(f.d,{isShowDesktopLogo:!0,source:a.o9}),(0,m.jsx)(o.A,{leftContent:w,rightContent:h})]})}},43329(e,t,r){r.d(t,{A:()=>m}),r(96540);var n=r(56347),s=r(59635),a=r(60747),o=r(35077),i=r(52013),c=r(74848);const l=function(e){var t=e.color,r=void 0===t?"black":t;return(0,c.jsx)("svg",{width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 4.5C9.5 4.91421 9.16421 5.25 8.75 5.25L2.56066 5.25L5.03033 7.71967C5.32322 8.01256 5.32322 8.48744 5.03033 8.78033C4.73744 9.07322 4.26256 9.07322 3.96967 8.78033L0.219669 5.
203033C-0.0732231 4.73744 -0.0732231 4.26256 0.219669 3.96967L3.96967 0.21967C4.26256 -0.0732233 4.73744 -0.0732233 5.03033 0.21967C5.32322 0.512563 5.32322 0.987437 5.03033 1.28033L2.56066 3.75L8.75 3.75C9.16421 3.75 9.5 4.08579 9.5 4.5Z",fill:r})})};var u=r(26724);const d=function(e){var t=e.text,r=void 0===t?"Back":t,n=e.onClick,s=e.className,a=void 0===s?"":s;return(0,c.jsx)("div",{className:"flex flex-col items-center gap-6 self-stretch ".concat(a),children:(0,c.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||null==n||n()},children:[(0,c.jsx)(l,{color:u.A.DARK_BLUE}),(0,c.jsx)("span",{className:"text-hover-color text-center font-avenirProLight font-550 leading-[110%] border-b border-hover-color",children:r})]})})},m=function(e){var t=e.leftContent,r=e.rightContent,l=e.children,u=e.showBackButton,m=void 0!==u&&u,p=e.errorContent,f=void 0===p?null:p,w=e.isLoading,h=void 0!==w&&w,g=e.backUrl,y=(0,n.W6)();(0,i.B)("en-us");var b=(0,c.jsxs)("div",{className:"flex flex-col gap-[1.5rem] items-center lg:items-start max-w-[31.25rem] md:max-w-[31.25rem] lg:max-w-[64.25rem] w-full mx-auto",children:[(0,c.jsxs)("div",{className:"flex flex-col lg:flex-row gap-[1.5rem] lg:gap-[1.875rem] self-stretch w-full items-center lg:items-stretch lg:justify-between",children:[(0,c.jsx)("div",{className:"flex flex-col flex-1 min-w-0 gap-4 md:gap-6 w-full lg:max-w-[31.25rem]",children:t}),(0,c.jsxs)("div",{className:"flex flex-col flex-1 min-w-0 gap-[1.875rem] w-full lg:max-w-[31.25rem]",children:[f&&f,(0,c.jsx)("div",{className:"flex flex-col p-8 md:p-[4rem] items-end gap-[0.625rem] rounded-[2rem] border border-country-border-color bg-white shadow-lookup-box-shadow w-full",children:(0,c.jsx)("div",{className:"w-full text-left",children:r})})]})]}),l&&(0,c.jsx)("div",{className:"w-full flex flex-col gap-[1.5rem] items-center justify-center",children:l}),m&&(0,c.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,c.jsx)(d,{onClick:function(){g?(g.includes("".concat(o.ws.lookup,"?"))&&(0,a.MF)("Business Search Back button"),y.push(g)):y.goBack()}})})]});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.A,{isLoading:h}),(0,c.jsx)("div",{className:"flex flex-col items-center font-avenirProLight bg-lookup-bg min-h-[calc(100vh-4rem)] pt-[3.75rem] md:pt-[7.25rem] pb-8 px-4 md:px-8",children:b})]})}},90087(e,t,r){r.d(t,{A:()=>s}),r(96540);var n=r(74848);const s=function(e){var t=e.titleText,r=e.descText,s=e.children;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"self-stretch text-dnb-cpl-box-shadow font-avenirProLight text-[3.125rem] md:text-[3.125rem] font-[300] leading-[110%]",children:t}),(0,n.jsxs)("div",{className:"self-stretch text-chip-default-text font-avenirProLight text-[1rem] md:text-[1.25rem] font-normal leading-[150%]",children:[r,s]})]})}},22104(e,t,r){r.d(t,{C:()=>m});var n=r(92516),s=r(15941),a=r(20008),o=r(35077),i=r(16876);function c(e){return c="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},c(e)}function l(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 u(e,t,r){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){return(0,s.Ik)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({email:(0,s.Yj)().required("A valid email address is required").email("Please enter valid email address"),firstName:(0,s.Yj)().required("First name is required").matches(/^[A-Za-z ]*$/,"Please enter valid first name"),lastName:(0,s.Yj)().required("Last name is required").matches(/^[A-Za-z ]*$/,"Please enter valid last name"),acceptTerms:(0,s.zM)().oneOf([!0],"Accept Terms & Conditions is required")},e))};function m(){var e=(0,a.A)("flow").getSpecificValue;"CreditInsights"===e?e="CI":e&&!["CI","CIUKIFree",i.bM,i.le,"AAD",o.o9,i.MD].includes(e)&&(e=i.CS);var t=(0,a.A)("product").getSpecificValue,r=[i.CS,"CI",o.o9,i.MD].includes(e)||"Hoovers"===t,c=(0,a.A)("countryId").getSpecificValue,l=(0,a.A)("dunsNumber").getSpecificValue,u=(0,a.A)("type").getSpecificValue;return{flowParams:[{type:i.CS,stepperParams:{show:!1,steps:[""]},optionalFields:{countryCode:!1},validationSchema:d({password:(0,s.Yj)().min(10,"Password must be 10 characters long").matches(/[0-9]/,"Password requires a number").matches(/[a-z]/,"Password requires a lowercase letter").matches(/[A-Z]/,"Password requires an uppercase letter").matches(/[^\w]/,"Password requires a special character").required("Password is required and must meet the below criteria")}),signinLink:"/signin?flow=".concat(i.CS),verifyEmail:"/verify-email?flow=".concat(i.CS),backButtonLink:"".concat((0,n.jC)()),appId:14707,privacyLink:"https://www.dnb.com/utility-pages/privacy-policy.html",termsLink:"https://www.dnb.com/utility-pages/terms-of-use.html",signupLink:"/signup?flow=".concat(i.CS),cancelUrl:(0,n.jC)(),forgotPasswordLink:"/forgot-password?flow=".concat(i.CS),trustCentre:"https://www.dnb.com/about-us/data-transparency.html"},{type:i.MD,stepperParams:{show:!1,steps:[""]},validationSchema:d({password:(0,s.Yj)().min(10,"Password must be 10 characters long").matches(/[0-9]/,"Password requires a number").matches(/[a-z]/,"Password requires a lowercase letter").matches(/[A-Z]/,"Password requires an uppercase letter").matches(/[^\w]/,"Password requires a special character").required("Password is required and must meet the below criteria"),country:(0,s.Yj)().required("Country is required")}),signinLink:"/signin",verifyEmail:"/verify-email",backButtonLink:(0,n.V4)(),appId:14707,privacyLink:"https://www.dnb.com/utility-pages/privacy-policy.html",termsLink:"https://www.dnb.com/utility-pages/terms-of-use.html",signupLink:"/signup",cancelUrl:(0,n.jC)(),forgotPasswordLink:"/forgot-password",trustCentre:"https://www.dnb.com/about-us/data-transparency.html"},{type:"CI",stepperParams:{show:!1,steps:[""]},optionalFields:{countryCode:!1},validationSchema:d({password:(0,s.Yj)().min(10,"Password must be 10 characters long").matches(/[0-9]/,"Password requires a number").matches(/[a-z]/,"Password requires a lowercase letter").matches(/[A-Z]/,"Password requires an uppercase letter").matches(/[^\w]/,"Password requires a special character").required("Password is required and must meet the below criteria")}),signinLink:"/signin?flow=CI",verifyEmail:"/verify-email?flow=CI",backButtonLink:"".concat((0,n.JW)()),appId:14706,privacyLink:"https://www.dnb.com/utility-pages/privacy-policy.html",termsLink:"https://www.dnb.com/utility-pages/terms-of-use.html",signupLink:"/signup?flow=CI",cancelUrl:(0,n.jC)(),forgotPasswordLink:"/forgot-password?flow=CI",trustCentre:"https://www.dnb.com/about-us/data-transparency.html"},{type:"CIUKIFree",stepperParams:{show:!1,steps:[""]},validationSchema:d({phoneNumber:(0,s.Yj)().matches(/^[+0-9() -]+$/,"Please enter valid phone number").required("Please enter phone number")}),optionalFields:{phoneNumber:!0},signinLink:"/signin?flow=CIUKIFree&dunsNumber=".concat(l,"&countryId=").concat(c),verifyEmail:"/verify-email?flow=CIUKIFree&dunsNumber=".concat(l,"&countryId=").concat(c),backButtonLink:(0,n.Z8)(c),appId:294,privacyLink:"GB"===c?"https://www.dnb.co.uk/utility-pages/privacy-policy.html":"https://www.dnb.com/ie/utility-pages/privacy-policy.html",termsLink:"GB"===c?"https://www.dnb.co.uk/utility-pages/terms-of-use.html":"https://www.dnb.com/ie/utility-p
2ages/terms-of-use.html",produtTermsLink:(0,n.Z8)(c),signupLink:"/signup?flow=CIUKIFree&dunsNumber=".concat(l,"&countryId=").concat(c),cancelUrl:(0,n.Z8)(c),forgotPasswordLink:"/forgot-password?flow=CIUKIFree&dunsNumber=".concat(l,"&countryId=").concat(c),trustCentre:"https://www.dnb.com/about-us/data-transparency.html"},{type:i.bM,forgotPasswordLink:"/forgot-password".concat(window.location.search),signinLink:"/signin".concat(window.location.search)},{type:i.le,forgotPasswordLink:"/forgot-password".concat(window.location.search),signinLink:"/signin".concat(window.location.search)},{type:o.o9,forgotPasswordLink:"/forgot-password?flow=".concat(o.o9,"&type=").concat(u),signinLink:"/signin?flow=".concat(o.o9,"&type=").concat(u),verifyEmail:"/verify-email?flow=".concat(o.o9,"&type=").concat(u),signupLink:"/signup?flow=".concat(o.o9,"&type=").concat(u),backButtonLink:"".concat(o.ws.dunsFound,"?flow=").concat(o.o9,"&type=").concat(u),privacyLink:"https://www.dnb.com/utility-pages/privacy-policy.html",validationSchema:d({password:(0,s.Yj)().min(10,"Password must be 10 characters long").matches(/[0-9]/,"Password requires a number").matches(/[a-z]/,"Password requires a lowercase letter").matches(/[A-Z]/,"Password requires an uppercase letter").matches(/[^\w]/,"Password requires a special character").required("Password is required and must meet the below criteria")})}].find(function(t){return t.type===e})||{signinLink:"/login",forgotPasswordLink:"/forgot-password"},flow:e,isSpecialFlow:r}}}}]);

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.