PageSourceSearch

https://www.smarty.com/_next/static/chunks/pages/global-address-formatting-042e2f0b57994237.js

js smarty.com collected 2026-09-24 09:56:07 UTC 11,674 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41846],{272:(e,t,r)=>{"use strict";r.d(t,{Wv:()=>d,uD:()=>o});let a=/^[a-z][a-z0-9+.-]*:/i,i=/^[^/?#\s]+\.[a-z]{2,}$/i,n=/\.(?:html?|png|jpe?g|gif|svg|webp|pdf|mp4|zip|csv|docx?|xlsx?)$/i,s=/(<a\b[^>]*?\shref=)(["'])(.*?)\2/gi,l=e=>{let t=e.trim();if(!t||a.test(t)||/^[/#?]/.test(t))return e;let r=t.split(/[/?#]/)[0]??"";return!i.test(r)||n.test(r)?e:`https://${t}`},o=e=>e?e.replace(s,(e,t,r,a)=>{let i=l(a);return i===a?e:`${t}${r}${i}${r}`}):e,d=e=>{let t=e?.attribs?.href;t&&(e.attribs.href=l(t)),(e?.attribs?.href?.startsWith("//")||e?.attribs?.href?.startsWith("http"))&&(e.attribs.target="_blank",e.attribs.rel="noopener")}},45353:e=>{e.exports={lightBlueBackground:"indexPage_lightBlueBackground__4GHBe",testimonialImage:"indexPage_testimonialImage__57buk",menuWrapper:"indexPage_menuWrapper__e4jK6",alphabetList:"indexPage_alphabetList__P_8I_",alphabetCharacter:"indexPage_alphabetCharacter__hJx8X",letterTitle:"indexPage_letterTitle__oZ_qn",continentList:"indexPage_continentList__u9CMP",continent:"indexPage_continent__x9A_b"}},55045:(e,t,r)=>{"use strict";r.d(t,{AY:()=>n,Tt:()=>s,cX:()=>a,u3:()=>i});let a=e=>({createdDateTime:new Date(e.createdDateTime),publishedDateTime:e.publishedDateTime?new Date(e.publishedDateTime):null,updatedDateTime:new Date(e.updatedDateTime??e.createdDateTime),overridePublishedDateTime:e.overridePublishedDateTime?new Date(e.overridePublishedDateTime):null,overrideUpdatedDateTime:e.overrideUpdatedDateTime?new Date(e.overrideUpdatedDateTime):null}),i=(e,t,r,a)=>{let i={url:e?.url??"",width:e?.width??0,height:e?.height??0,alt:e?.alternativeText??a??"",caption:e?.caption??""},n=Object.keys(e?.formats??{}).find(a=>e?.formats?.[a]?.width!==void 0&&void 0!==t&&void 0!==r&&e.formats[a].width>=t&&e.formats[a].width<=r),s=(n?e?.formats?.[n]:void 0)??{url:"",width:0,height:0};return s.url&&s.width&&s.height?{url:s.url,width:s.width,height:s.height,alt:i.alt,caption:i.caption}:i},n=e=>{if(!Array.isArray(e))return;let t=e.find(e=>"components.ck-editor"===e.__component&&"string"==typeof e.content);if(!t)return;let r=t.content?.match(/<img[^>]+src="([^">]+)"/);return r?r[1]:void 0},s=(e,t)=>e&&t?Object.values(e).filter(e=>e.width&&e.url&&e.width<=t).sort((e,t)=>t.width-e.width)[0]??null:null},66299:(e,t,r)=>{"use strict";r.d(t,{A:()=>k,Y:()=>C});var a=r(37876),i=r(14232),n=r(12227),s=r(91422),l=r(82295),o=r(65694),d=r(86411),c=r(75061),u=r(45862),m=r(10035),g=r(2659),p=r(46848),h=r(95215),b=r(59253),w=r(74935),f=r(88248),A=r(29898),x=r(55045),y=r(272),_=r(87241);let j=/https?:\/\/(?:www\.)?youtube\.com\/embed\//gi;var v=r(57777);r(87334);var D=r(82890),L=r.n(D);s.A.registerLanguage("bash",l.A),s.A.registerLanguage("csharp",o.A),s.A.registerLanguage("go",d.A),s.A.registerLanguage("java",c.A),s.A.registerLanguage("javascript",u.A),s.A.registerLanguage("json",m.A),s.A.registerLanguage("php",g.A),s.A.registerLanguage("plaintext",p.A),s.A.registerLanguage("python",h.A),s.A.registerLanguage("ruby",b.A),s.A.registerLanguage("rust",w.A),s.A.registerLanguage("swift",f.A),s.A.registerLanguage("xml",A.A);let T=new Set,C=()=>{T=new Set},S=(...e)=>e.find(e=>null!=e&&""!==e)??"",k=({className:e,html:t,imageMetadataMap:r={},addHeadingIds:l=!1,onFragmentLinkClick:o,blueBullets:d=!1})=>{let c=(0,i.useRef)(null),u=(0,i.useRef)(null),m=(0,i.useMemo)(()=>{var e;return(e=(0,y.uD)(t))?e.replace(j,"https://www.youtube-nocookie.com/embed/"):e},[t]),g=(0,i.useMemo)(()=>({__html:m}),[m]);(0,i.useLayoutEffect)(()=>{let e=c.current;if(!e||u.current===m)return;e.innerHTML=n.default.sanitize(m,{USE_PROFILES:{html:!0},ADD_TAGS:["iframe"],ADD_ATTR:["target","loading"]}),u.current=m,e.querySelectorAll("pre code").forEach(e=>{s.A.highlightElement(e);let t=e.parentElement;if(!t||t.classList.contains(L().codeBlockWrapper))return;t.classList.add(L().codeBlockWrapper);let r=document.createElement("button");r.className=L().copyButton,r.setAttribute("aria-label","Copy code"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7006 1.00391C5.65132 1.00391 4.80068 1.85448 4.8006 2.90376L4.80044 4.99648H2.79609C1.80198 4.99648 0.996094 5.80237 0.996094 6.79649V13.1965C0.996094 14.1906 1.80198 14.9965 2.79609 14.9965H9.19609C10.1902 14.9965 10.9961 14.1906 10.9961 13.1965V11.0145H13.1002C14.1495 11.0145 15.0001 10.1638 15.0002 9.11451L15.0004 2.90397C15.0004 1.8546 14.1497 1.00391 13.1004 1.00391H6.7006ZM10.9961 9.21445H13.1002C13.1554 9.21445 13.2002 9.16968 13.2002 9.11446L13.2004 2.90391C13.2004 2.84868 13.1556 2.80391 13.1004 2.80391H6.7006C6.64538 2.80391 6.6006 2.84867 6.6006 2.9039L6.60044 4.99648H9.19609C10.1902 4.99648 10.9961 5.80237 10.9961 6.79649V9.21445ZM2.59609 6.79649C2.59609 6.68603 2.68564 6.59649 2.79609 6.59649H9.19609C9.30655 6.59649 9.39609 6.68603 9.39609 6.79649V13.1965C9.39609 13.3069 9.30655 13.3965 9.19609 13.3965H2.79609C2.68564 13.3965 2.59609 13.3069 2.59609 13.1965V6.79649Z"/></svg>',r.addEventListener("click",()=>{navigator.clipboard.writeText(e.textContent??"").then(()=>{(0,v.tP)("Code snippet copied!")})}),t.appendChild(r)}
1),e.querySelectorAll("img").forEach(e=>{let t=e.getAttribute("src");if(!t)return;let a=e.getAttribute("style"),i=null;if(a){let e=/max-width\s*:\s*([0-9.]+)\s*;?/i.exec(a),t=e?.[1];void 0!==t&&(i=parseInt(t,10))}if(!i)return;e.style.maxWidth=`${i}px`,e.style.width="100%";let n=r[t];if(!n)return;let s=(0,x.Tt)(n,i);s&&s.url!==t&&e.setAttribute("src",s.url)});let t=/(?:youtube(?:-nocookie)?\.com\/embed\/|youtu\.be\/|youtube\.com\/watch\?v=)([^?&/]+)/,a=(e,t)=>{let r=document.createElement("iframe");r.setAttribute("src",e),t&&r.setAttribute("loading",t),r.setAttribute("frameborder","0"),r.setAttribute("allow","autoplay; encrypted-media"),r.setAttribute("allowfullscreen",""),Object.assign(r.style,{position:"absolute",width:"100%",height:"100%",top:"0",left:"0"});let a=document.createElement("div");return Object.assign(a.style,{position:"relative",paddingBottom:"56.25%",height:"0"}),a.appendChild(r),a};for(let r of e.querySelectorAll("video")){let e=S(r.getAttribute("src"),r.querySelector("source")?.getAttribute("src")),i=S(r.closest("[data-oembed-url]")?.getAttribute("data-oembed-url"),e),n=t.exec(i)?.[1];if(void 0===n)continue;let s=a(`https://www.youtube-nocookie.com/embed/${n}`,r.getAttribute("loading")),l=r.parentElement,o=S(l?.getAttribute("style"));l&&/padding-bottom/.test(o)?l.replaceWith(s):r.replaceWith(s)}e.querySelectorAll('.todo-list input[type="checkbox"]').forEach(e=>{e.disabled=!1}),d&&e.querySelectorAll("ul").forEach(e=>{e.classList.add("blue-bullets")}),l&&e.querySelectorAll("h2").forEach((e,t)=>{let r=e.getAttribute("id");if(r)return void T.add(r);let a=e.textContent??"",i=(0,_.d)(a,T,t);e.setAttribute("id",i)})},[m,r,l,d]);let p=o?e=>{let t=e.target;if(!(t instanceof Element))return;let r=t.closest("a[href]");if(!r)return;let a=r.getAttribute("href");a?.startsWith("#")&&o(a,r.textContent??"")}:void 0;return(0,a.jsx)("div",{ref:c,className:e,onClick:p,dangerouslySetInnerHTML:g})}},66709:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-address-formatting",function(){return r(71081)}])},71081:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>y,default:()=>_});
1var a=r(37876),i=r(64762),n=r(82659),s=r(68479),l=r(2983),o=r(93893),d=r(65006),c=r(43675),u=r(82630),m=r(66299),g=r(55520),p=r(70250),h=r(20622),b=r(70881),w=r(13919),f=r(45353),A=r.n(f);let x=({h1:e,title:t,metaDescription:r,subtitle:f,updatedAt:x,createdAt:y,overridePublishedAt:_,countries:j,promoBanner:v})=>{let D="https://www.smarty.com/global-address-formatting",L=_?new Date(_).toISOString():new Date(y).toISOString(),T={id:D,headline:t,description:r,datePublished:L,dateModified:new Date(x).toISOString(),authorType:"Person",authorName:"Jeffrey Duncan",authorUrl:"https://www.smarty.com/company/team/jeffrey-duncan",imageArray:["https://www.smarty.com/img/global-address-formatting/schema/country-address-schema-1200-1200.webp","https://www.smarty.com/img/global-address-formatting/schema/country-address-schema-1200-900.webp","https://www.smarty.com/img/global-address-formatting/schema/country-address-schema-1200-675.webp"]},C=(0,h.y)(),{freeTrialPlan:S}=(0,b.v0)(C.plans,b.b2.internationalAddressVerification),k=new Set(j.map(e=>e.countryName[0]??"").sort());return(0,a.jsxs)(i.A,{promoBanner:v,children:[(0,a.jsxs)(n.A,{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("link",{rel:"canonical",href:D}),(0,a.jsx)("meta",{name:"title",content:t}),(0,a.jsx)("meta",{property:"og:title",content:t}),(0,a.jsx)("meta",{name:"description",content:r}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:description",content:r}),(0,a.jsx)("meta",{property:"og:published_time",content:L}),(0,a.jsx)("meta",{property:"og:modified_time",content:new Date(x).toISOString()}),(0,a.jsx)("meta",{property:"og:updated_time",content:new Date(x).toISOString()}),(0,a.jsx)("meta",{property:"og:image",content:"https://www.smarty.com/img/global-address-formatting/meta/country-address-share-1200-675.jpg"},"image"),(0,a.jsx)("meta",{property:"og:image:alt",content:"https://www.smarty.com/img/global-address-formatting/meta/country-address-share-1200-675.jpg"}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:"https://www.smarty.com/img/global-address-formatting/meta/country-address-share-1200-675.jpg"}),(0,a.jsx)("meta",{property:"og:url",content:D}),(0,a.jsx)("meta",{property:"og:site_name",content:"Smarty"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),(0,a.jsx)("meta",{name:"bingbot",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,d.lK)({...T}))}})]}),(0,a.jsxs)("div",{onClick:w.c,children:[(0,a.jsx)(s.A,{title:e,subtitle:(0,a.jsx)(m.A,{html:f})}),(0,a.jsx)(o.A,{className:A().menuWrapper,children:(0,a.jsx)("ul",{className:A().alph
1abetList,children:Array.from(k).map(e=>e?(0,a.jsx)("li",{children:(0,a.jsx)("h2",{className:A().alphabetCharacter,children:(0,a.jsx)(c.A,{href:`#section-${e}`,className:A().continent,children:e})})},e):"")})}),(0,a.jsx)(o.A,{className:A().menuWrapper,children:(0,a.jsx)("ul",{className:A().continentList,children:Object.entries(u.k).map(([e,t])=>(0,a.jsx)("li",{children:(0,a.jsx)("h2",{className:A().continent,children:(0,a.jsx)(c.A,{href:`/global-address-formatting/${t}`,className:A().continent,children:e})})},e))})}),(0,a.jsx)(l.A,{countries:j,useAlphabetHeadings:!0}),(0,a.jsx)(p.A,{freeTrialPlan:S,interest:g.qj.ADDRESS_VERIFICATION})]})]})};var y=!0;let _=({cmsContent:e,promoBanner:t,countryLandingPage:r})=>{let i={h1:r.h1,title:r.metaTitle,metaDescription:r.metaDescription,subtitle:r.subTitle,updatedAt:r.updatedAt,createdAt:r.createdAt,overridePublishedAt:r.overridePublishedAt,countries:e.countryPages};return(0,a.jsx)(x,{...i,promoBanner:t})}},82890:e=>{e.exports={codeBlockWrapper:"sanitizedHtmlRenderer_codeBlockWrapper__6g2dC",copyButton:"sanitizedHtmlRenderer_copyButton__33rZ2"}},87241:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});let a=(e,t,r=0)=>{let a=e.trim();if(!a)return`heading-${r+1}`;let i=a.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"");i||(i=`heading-${r+1}`);let n=i,s=2;for(;t.has(n);)n=`${i}-${s}`,s++;return t.add(n),n}}},e=>{e.O(0,[12227,59e3,98178,70250,32555,90636,46593,38792],()=>e(e.s=66709)),_N_E=e.O()}]);

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.