PageSourceSearch

https://ofw.ourfamilywizard.co.uk/app/assets/DynamicDropdown-DeixaXDR.js

js ourfamilywizard.co.uk collected 2026-09-26 08:26:09 UTC 4,454 bytes, 1 lines download raw bytes

1import{l as v,F as L}from"./SelectField-DfCgncna.js";import{aU as R,aV as W}from"./requests-Cy5Gkbzz.js";import{_ as S,j as o,m as F,t as e,aa as A,r as p,ag as z,ai as O,a0 as P,F as _,eA as K,eB as H,bE as T}from"./WarningIcon-Bebxa2Ar.js";const U=async t=>{const r=await v.getItem(t);return r===null?W:r},V=async(t,r)=>{v.setItem(t,r)},Z=(t,r,l,n)=>R(t,r,l,n,U,V),ee=S(o.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),re=S(o.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),X=F()(t=>({inputAdornedEnd:{color:t.neutral.scale700,width:14,height:16,display:"flex",zIndex:300}})),Y=(t,r)=>({textfieldRoot:{"& legend":{display:"none"},"& fieldset":{top:0},'& [type="time"]':{padding:"7px 7px 7px 14px !important"}},inputRoot:{"&:focus-visible":{outline:"unset"},"& fieldset":{borderColor:e.neutral.scale400},"&.Mui-error":{backgroundColor:e.neutral.scale000},"&.Mui-disabled":{backgroundColor:t&&!r?e.neutral.scale000:e.neutral.scale200,"&.Mui-error":{backgroundColor:e.neutral.scale000,"& fieldset ":{borderColor:t&&!r?e.error.errorBase:null}}},"& .MuiInputBase-input":{borderColor:e.neutral.scale400,"&:hover":{borderColor:"red"}}},input:{fontFamily:e.typography.labelBaseRegular.fontFamily,fontSize:e.typography.labelBaseRegular.fontSize,lineHeight:e.typography.labelBaseRegular.lineHeight,letterSpacing:e.typography.labelBaseRegular.letterSpacing,border:"none","&::placeholder":{color:e.elementNeutralOnLight.elementNeutralOnLightDisabled,textFillColor:e.elementNeutralOnLight.elementNeutralOnLightDisabled,opacity:1},"&.Mui-disabled":{backgroundColor:t&&!r?`${e.neutral.scale000} !important`:e.neutral.scale200,textFillColor:t&&!r?e.elementNeutral.neutralPrimaryOnLight:e.elementNeutral.neutralSecondaryOnLight}}}),q=F()((t,{disabled:r,readOnly:l,fieldOutlineColor:n,errorText:c})=>({customSelectField__base:{width:"100%","&:hover":{outline:"0px solid !important"}},customSelectField__icon:{marginLeft:-30,display:"flex",zIndex:300},customSelectField__popover:{width:"100%"},customSelectField__popoverInt:{padding:15,overflowY:"auto",overflowX:"auto"},inputWrapper:{"&:hover":{border:null},"&:active":{border:`2px ${e.brand.primary1Border} solid`},"& input":{cursor:!r&&!l?"pointer!important":"auto",border:n,"&:hover":{border:c?`2px ${e.error.errorBorder} solid`:`1px ${e.neutral.scale900} solid`},"&:focus":{border:`2px ${c?e.error.errorFocus:e.brand.primary1Border} solid`},"&:active":{border:`2px ${e.brand.primary1Border} solid`}}},dynamicSelectField__root:{backgroundColor:e.neutral.scale400},root:{backgroundColor:e.neutral.scale000},...Y(l,r)})),te=t=>{const{children:r,id:l,displayValue:n,fullWidth:c=!0,noErrorMessage:C=!1,label:I,placeholder:$,tooltip:j,descriptionText:B,disabled:m,errorId:M,errorText:s,readOnly:f}=t,[g,x]=A.useState(null),h=a=>{x(a.currentTarget)},N=()=>{x(null)}
1,d=!!g,w=`dynamic_selectField__${l}`,[E,D]=p.useState(0),u=p.useRef();p.useEffect(()=>{u.current&&D(u.current.offsetWidth)},[u]);const b=`${l}__inputWrapper`,k=p.useMemo(()=>s?`1px ${e.error.errorBorder} solid`:d?`2px ${e.brand.primary1Border} solid`:`1px ${e.neutral.scale400} solid`,[d,s]),{classes:i}=q({readOnly:f,disabled:m,fieldOutlineColor:k,errorText:s}),{classes:y}=X();return o.jsxs("div",{id:w,children:[o.jsx(z,{children:o.jsx(L,{descriptionText:B,disabled:m,errorId:M,errorText:s,id:l,label:I,noErrorMessage:C,tooltip:j,children:o.jsxs("div",{style:{display:"flex",alignItems:"center"},onClick:a=>h(a),className:i.inputWrapper,id:b,"aria-label":`${l}__wrapper`,children:[o.jsx(O,{className:`MuiSelect-root MuiSelect-select MuiSelect-selectMenu ${i.customSelectField__base}`,"data-testid":"roles",disabled:m,error:!!s,fullWidth:c,id:`${l}__form-control`,inputProps:{"aria-label":`selectField__${l}`},onKeyDown:a=>h(a),placeholder:$,readOnly:!0,ref:u,value:n}),o.jsx(P,{id:b,className:`MuiSvgIcon-root MuiSelect-icon ${i.customSelectField__icon}`,"aria-label":"selectIcon",onClick:a=>h(a),children:d?o.jsx(_,{className:y.inputAdornedEnd,icon:K}):o.jsx(_,{className:y.inputAdornedEnd,icon:H})})]})})}),o.jsx("div",{children:o.jsx(T,{id:`selectInputPopover__${l}`,open:f?!1:d,anchorEl:g,onClose:N,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:i.customSelectField__popover,children:o.jsx("div",{style:{minWidth:E},className:i.customSelectField__popoverInt,children:o.jsx("div",{children:r})})})})]})};export{te as D,re as K,ee as a,Z 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.