PageSourceSearch

https://obermeyer.com/cdn/shopifycloud/checkout-web/assets/c1/47b970b2.hK1atmf1.js

js obermeyer.com collected 2026-10-02 11:33:35 UTC 3,934 bytes, 1 lines download raw bytes

1import{q as e,m as n,u as t,v as r,x as o,l as a,s as c,S as s}from"./2c1ab0fe.GMbxnz74.js";import{_ as u}from"./app.CepNJbvh.js";import{S as i}from"./4c290a1e.C6TDJ9Fn.js";import{T as l,I as m,c as d}from"./164ad2e3.BbIvMjRY.js";import{u as f}from"./29034f35.BtTRppF-.js";import{u as v}from"./0727407f.CsUvC--9.js";var g={FlagIcon:"sgqviy0 _1fragem5u _1fragemve _1fragemvo",sizeVariant:{base:"sgqviy1",small:"sgqviy2"}};function p({accessibilityLabel:o,countryCode:a,size:c}){const s=e(void 0);n(()=>{let e=!1;return async function(){const{ALL_FLAG_ICON_BY_COUNTRY_CODE:n}=await u(async()=>{const{ALL_FLAG_ICON_BY_COUNTRY_CODE:e}=await(import("./13fd900f.BGrsw7az.js"));return{ALL_FLAG_ICON_BY_COUNTRY_CODE:e}},[]);e||(s.value={countryCode:a,src:n[a]})}().catch(()=>{e||(s.value={countryCode:a,src:void 0})}),()=>{e=!0}},[a,s]);const i=s.value?.countryCode===a?s.value.src:void 0;return t("img",{alt:o??"",className:r(g.FlagIcon,c&&g.sizeVariant[c]),src:i??"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20640%20480'/%3E",role:"img"})}function C(e){return e.replace(/[^+\d]/g,"")}const h=/[()\-._ ]+/g,_="text";function y({countryCode:e,value:s,onChange:u,onFocus:l,onInput:f,disableFormatting:g=!1,hideCountries:h=!1,prefillCountryCode:y,requireCountryCode:L=!1,onInputValueChange:I,onSelectedCountryChange:O,caretPosition:x,accessoryEnd:E,autocomplete:F="tel",onBlur:j,required:q,type:A,icon:B,...P}){const T=null==s?void 0:s,{i18n:U}=i(),[z,R]=o(!1),V=a(null),Y=a(!1),D=v(e,T,y||L),{formattedNumber:$,formattedNumberValueObject:G,regionCode:S,prefix:K,loading:M}=D,k=$.replace(/\D/g,"").length<4;n(()=>{if(Y.current){Y.current=!1;const e=C($);f?.(e),u?.(e)}},[$,u,f]);const H=r("Ls4zP",z&&"gqw6M"),W=!h&&S&&$&&$.length>1,Z=S??e;n(()=>{Z!==e&&O?.(Z.toUpperCase(),$)},[O,Z,e,$]);const J=c(e=>{u?.(C(e))},[u]),Q=!M&&(W||L)&&!k&&t("div",{className:H,children:[t("div",{className:"wTRvB",children:t(p,{countryCode:Z.toLowerCase(),accessibilityLabel:Z.toUpperCase()})}),t(m,{type:"chevron-down",size:"small-200",tone:z?"accent":void 0}),t("select",{"aria-label":U.translate("contact.phone_country_code_label"),className:"KHvfK",value:Z.toUpperCase(),onBlur:()=>R(!1),onFocus:()=>R(!0),name:"phone_country_select",onChange:e=>{Y.current=!0,D.selectCountry(e.target.value),V.current&&V.current.focus()},children:t(w,{})})]}),X=a(null),ee=(E||Q)&&t(d,{direction:"inline",gap:"base",alignItems:"center",children:[E,Q]});return{...P,icon:"mobile"===A?"mobile":B,onChange:u&&J,required:q||L,onInputCommit:e=>{const n=function(e){return L&&!e.includes("+")?`${K}${e}`:e}(e);V?.current&&V.current.value!==n&&(V.current.value=n);const t=C(n),r=V?.current?.selectionEnd||0,o=C(n.slice(0,r));null!=X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{const e=V.current?.type;"tel"!==e&&e!==_||V.current?.value&&N(function(e,n){let t=0,r=e;for(const o of n){if(!r&&!b(o))break;o===r[0]&&(r=r.substring(1)),t++}return t}(o,V.current.value),V.current)}),g?(I?.(n,r),f?.(n)):t!==C($)&&(I?.(t,r),f?.(t)),(/[a-zA-Z]/.test(n)||t!==C($))&&D.setPhoneNumber(t)},ref:V,autocomplete:F,value:T,controlledValue:g?void 0:G,onFocus:()=>{void 0!==x&&V.current&&void 0!==T&&x<T.length&&N(x,V.current),l?.()},accessoryEnd:ee||void 0,type:g?_:"tel",name:P.name??"phone",onBlur:j}}function b(e){return e.search(h)>-1}function N(e,n){document.activeElement===n&&(n.focus(),n.setSelectionRange(e,e))}function L(e){const n=y(e);return t(l,{...n})}function w(){const{fetchCountriesWithPhoneNumberPrefix:e}=f(),[r,a]=o([]),{observability:c,i18n:{locale:u}}=i();return n(()=>{e(u).then(e=>{a(e)}).catch(e=>{c.log("atlas_fetch_countries_error",`Unable to fetch countries with phone number prefix: ${e.name}: ${e.message}`,{errorName:e.name,errorMessage:e.message,locale:u})})},[e,u,c]),t(s,{children:r.map(({code:e,name:n,phoneNumberPrefix:r})=>t("option",{value:e,children:[n,"(+",r,")"]},e))})}export{p as F,L as P,C as s,y as u};

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.