PageSourceSearch

https://jobs.alliedglobal.com/js/PublicApp/web/PhoneNumberInput-bundle-271c5916.js

js alliedglobal.com collected 2026-10-08 21:00:14 UTC 5,258 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["79"],{43156:function(e,t,l){l.r(t),l.d(t,{default:()=>_,PhoneNumberInput:()=>$});var n=l("74093"),a=l("59496"),i=l("18923"),r=l("57384"),u=l("4476"),s=l("38155"),o=l("51505"),c=l("34001"),d=l("29468"),f=l("36107"),m=l("36038"),p=l("6599"),h=l("17989"),v=l("63839"),y=l("88007"),g=l("46508");let b=(0,p.ZP)(y.Vi).withConfig({componentId:"sc-a06ikt-0"})(["border-color:",";color:",";"],e=>(0,g.zy)(e.theme),e=>(0,g.hn)(e.theme)),x=e=>e?e.label:"",E=({value:e,onChange:t,options:l,iconComponent:n,id:i})=>{var r,u;let p=(0,a.useRef)(null),g=(0,a.useRef)(null),E=(0,a.useRef)(null),{country:C}=(0,s.W)(),{isOpen:I,onClose:S,onOpen:w}=(0,h.x)(),{phoneCallingCodeLabel:D}=(0,s.W)(),$=(0,m.o)({size:l.length,parentRef:p,estimateSize:a.useCallback(()=>58,[]),paddingStart:8}),{styles:_,attributes:L,update:O,state:Z}=(0,f.D)(E.current,g.current,{modifiers:[{name:"offset",options:{offset:[0,10]}}],placement:"bottom-start"}),{getToggleButtonProps:z,getMenuProps:P,highlightedIndex:A,getItemProps:H,selectedItem:K}=(0,d.L7)({scrollIntoView:()=>{},selectedItem:l.find(t=>t.value===e)||l[0],items:l,itemToString:x,stateReducer:(e,t)=>{var l;switch(t.type){case d.L7.stateChangeTypes.MenuKeyDownEscape:return null===(l=E.current)||void 0===l||l.focus(),t.changes;case d.L7.stateChangeTypes.ToggleButtonKeyDownCharacter:return{...t.changes,selectedItem:void 0,isOpen:!0};case d.L7.stateChangeTypes.MenuMouseLeave:return e;default:return t.changes}},onSelectedItemChange:async({selectedItem:e})=>{e&&t&&t(e.value)},onHighlightedIndexChange:({highlightedIndex:e})=>{$.scrollToIndex(e||0)},onIsOpenChange:async e=>{if(!O){e.isOpen?w():S();return}await O(),e.isOpen?w():S(),await O()}}),{"aria-labelledby":N,...W}=z({style:{minWidth:"240px"},ref:E,id:i,"aria-label":`${D}${K?": "+K.label:""}`}),R=P({style:{..._.popper,minWidth:Math.max(240,null!==(r=null==Z?void 0:null===(u=Z.elements.reference)||void 0===u?void 0:u.offsetWidth)&&void 0!==r?r:0),zIndex:v.eG},"aria-labelledby":W.id,...L.popper,ref:g});return a.createElement("div",null,a.createElement(b,(0,c.Z)({variant:"custom",$visuallyActive:!!K},W),a.createElement(y.e1,null,a.createElement(y.w,null,K?a.createElement(y.wx,null,K.value&&a.createElement(o.g1,null,a.createElement(n,{country:K.value,style:{lineHeight:1},label:K.label,"aria-hidden":!0})),K.label):C),a.createElement(y.wx,{"aria-hidden":!0},a.createElement(y.SV,{height:6,direction:I?"left":"right"})))),a.createElement("div",(0,c.Z)({"aria-multiselectable":!1,"aria-expanded":I},R),a.createElement(o.Bk,{ref:p,isOpen:I},a.createElement(o.Ip,{style:{height:`${$.totalSize}px`,width:"100%",position:"relative",justifyContent:"center"}},$.virtualItems.map(e=>a.createElement(o.zH,{key:`${l[e.index].value}-${e.index}`,style:{height:e.size,transform:`translateY(${e.start}px)`,position:"absolute",top:0,left:"8px",width:"calc(100% - 16px)"}},a.createElement(o.Z$,(0,c.Z)({$isHighlighted:A===e.index,$isSelected:(null==K?void 0:K.value)===l[e.index].value,as:"div"},H({index:e.index,item:l[e.index],style:{height:`calc(${e.size} - 8px)`}}),{"aria-selected":(null==K?void 0:K.value)===l[e.index].value,"aria-label":l[e.index].label}),l[e.index].value&&a.createElement(o.g1,null,a.createElement(n,{country:l[e.index].value,style:{lineHeight:1},label:l[e.index].label})),a.createElement(o.s6,null,a.createElement(o.C0,null,l[e.index].label)))))))))};var C=l("41270");let I=(0,a.forwardRef)(({inputRef:e,onKeyDown:t,clearOutValue:l,onChange:n,ariaInvalid:i,ariaLabelledBy:r,ariaDescribedBy:u,...s},d)=>a.createElement(o.vc,(0,c.Z)({ref:(0,C.default)(d,e),"aria-invalid":i,"aria-labelledby":r,"aria-describedby":u},s,{onKeyDown:e=>{"z"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),e.stopPropagation(),l()),t&&t(e)},onChange:e=>{if(!(e.target.value.replace(/\D/g,"").length>15))n(e)}})));I.displayName="PhoneNumberInputTextInput";var S=l("13296");let w="undefined"==typeof Intl||void 0===Intl||"function"!=typeof Intl.DisplayNames,D=()=>{let{current:e}=(0,S.P)(),{international:t}=(0,s.W)();return(0,a.useMemo)(()=>
1{if(w)return;let l=new Intl.DisplayNames([e],{type:"region"});return(0,r.ox)().reduce((e,t)=>({...e,[t]:l.of(t)}),{ZZ:t})},[e,t])},$=({defaultCountry:e,name:t,required:l,id:c,ariaLabelledBy:d,placeholder:f,ariaDescribedBy:m})=>{let[p,h]=(0,a.useState)(e),[v,y]=(0,a.useState)(""),{control:g,formState:b,reset:x}=(0,i.Gc)(),C=D(),{insertValidPhoneNumber:S}=(0,s.W)(),{field:{value:w,onChange:$,ref:_},fieldState:{invalid:L}}=(0,i.bc)({name:t,control:g,defaultValue:"",rules:{required:l,validate:e=>{if(e&&!(0,n.t)(e))return S}}});return(0,a.useEffect)(()=>{if(v){if(v&&p&&v===`+${(0,r.Gg)(p)}`){$("");return}$(v||"")}},[p,$,v]),(0,a.useEffect)(()=>{b.isSubmitSuccessful&&(y(""),h(e),x({[t]:""}))},[e,b.isSubmitSuccessful,t,x]),a.createElement(r.ZP,{id:c,flags:u.ZP,defaultCountry:p,labels:C,international:!0,onCountryChange:h,onChange:y,value:w,name:t,containerComponent:o.sB,numberInputProps:{required:l,ariaLabelledBy:d,ariaDescribedBy:m,ariaInvalid:L,name:t,inputRef:_,placeholder:f,clearOutValue:()=>{y(""),$("")}},countrySelectProps:{id:`country-select-${c}`},countrySelectComponent:E,inputComponent:I,focusInputOnCountrySelection:!1})},_=$}}]);

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.