PageSourceSearch

https://shop.angel.com/cdn/shopifycloud/checkout-web/assets/c1/Choice.Dywz6_Fr.js

js angel.com collected 2026-09-24 08:44:50 UTC 13,232 bytes, 1 lines download raw bytes

1import{u as e,g as S,T as z,X as ue,x as _e,F as Le,k as Y,A as K,q as Q,D as X,S as le}from"./esnext-vendor.D7ldIee_.js";import{A as Ie}from"./hooks-useUnauthenticatedErrorModal.CzvtLqeY.js";import{cY as M,cZ as Be,u as je,cq as Ne,c_ as xe,c$ as Re,d0 as De,F as Z,ad as ze,d1 as Oe,ae as J,d2 as d,d3 as Pe,d4 as Te,M as ee,k as Ae,n as $e,d5 as ae,d6 as ne,d7 as p,d8 as We,J as ge,d9 as we,da as Ee,K as Fe,db as w,dc as W,ac as fe,aB as He}from"./hydrate.ByRIsqvd.js";import{a as Me}from"./Checkbox.Cby2hWUV.js";import"./app.A60-IfPs.js";import{dd as q}from"./addresses-is-address-empty.-MuOhIyI.js";var n={ChoiceWrapper:{block:"_1u2aa6ma",inline:"_1u2aa6mb _1u2aa6m9 _1u2aa6m8 _1fragemk5 _1fragemjl _1fragemkp _1fragemj1 _1fragemyl _1fragemyn _1fragemws _1fragemyb _1fragem128 _1fragem64 _1fragem12u _1fragem12v",grid:"_1u2aa6mc _1u2aa6m9 _1u2aa6m8 _1fragemk5 _1fragemjl _1fragemkp _1fragemj1 _1fragemyl _1fragemyn _1fragemws _1fragemyb _1fragem128 _1fragem64 _1fragem12u _1fragem12v","grid-compact":"_1u2aa6md _1u2aa6m9 _1u2aa6m8 _1fragemk5 _1fragemjl _1fragemkp _1fragemj1 _1fragemyl _1fragemyn _1fragemws _1fragemyb _1fragem128 _1fragem64 _1fragem12u _1fragem12v",list:"_1u2aa6me",legacy:"_1u2aa6mf"},blockChoiceWrapperVariant:{segmented:"_1u2aa6mi",separated:"_1u2aa6mj"},segmentedChoice:"_1u2aa6mg",segmentedBlockFooter:"_1u2aa6mh",redesignedBlockWrapper:"_1u2aa6mp _1u2aa6mo _1fragemyl _1fragemws",redesignedSelectedBorder:"_1u2aa6mq",redesignedBrandedSelected:"_1u2aa6ms",kindVariant:{single:"_1u2aa6mk",multiple:"_1u2aa6ml"},stateVariant:{checked:"_1u2aa6mm",unchecked:"_1u2aa6mn"},SecondaryContent:"_1u2aa6mt",SecondaryContentVariant:{grid:"_1u2aa6mv _1u2aa6mu","grid-compact":"_1u2aa6mw _1u2aa6mu",inline:"_1u2aa6mx",list:"_1u2aa6my",legacy:"_1u2aa6mz",block:"_1u2aa6m10"},Icon:"_1u2aa6m11",TertiaryContent:{block:"_1u2aa6m12"},SelectedContent:{block:"_1u2aa6m13",list:"_1u2aa6m14",legacy:"_1u2aa6m15",inline:"_1u2aa6m16",grid:"_1u2aa6m17","grid-compact":"_1u2aa6m18"},blockSelectedContentBackgroundVariant:{base:"_1u2aa6m19",selected:"_1u2aa6m1a yyi4nyg yyi4nye _1fragemy8 _1fragem133"},ListSelectedContentWrapper:"_1u2aa6m1b",selectedContentPadding:"_1u2aa6m1c",ChoiceVariant:{block:"_1u2aa6m1l _1u2aa6m1j _1fragemws _1fragem6t _1fragema0 _1fragem12u",inline:"_1u2aa6m1m _1u2aa6m1k _1fragem87 _1fragema0 _1fragem64 _1fragem73 _1fragembj _1fragem19 _1fragemyn _1fragem124",grid:"_1u2aa6m1n _1u2aa6m1g _1u2aa6m1f _1fragem87 _1fragema0 _1fragempu _1fragemo1 _1fragemtg _1fragemrn _1fragem6t _1fragemyn _1u2aa6m1h","grid-compact":"_1u2aa6m1o _1u2aa6m1g _1u2aa6m1f _1fragem87 _1fragema0 _1fragempu _1fragemo1 _1fragemtg _1fragemrn _1fragem6t _1fragemyn _1u2aa6m1i",list:"_1u2aa6m1p _1u2aa6m1e _1u2aa6m1d _1fragem6t _1fragema0",legacy:"_1u2aa6m1q _1u2aa6m1e _1u2aa6m1d _1fragem6t _1fragema0"},controlRendered:"_1u2aa6m1r",blockChoiceSingleCheckedVariant:{base:"_1u2aa6m1s yyi4nyg yyi4nye _1fragemy8 _1fragem133",transparent:"_1u2aa6m1t"},Heading:"_1u2aa6m1u",labelDisabled:"_1u2aa6m1v _1fragem11v",labelCentered:"_1u2aa6m1x _1u2aa6m1w _1fragem2d _1fragem64 _1fragema0",maybeDisabled:"_1u2aa6m1y",interactive:"_1u2aa6m1z _1fragemyd",colorLayerVariant:{control:"yyi4nyf yyi4nyd _1fragemy6 _1fragem133",controlSelected:"yyi4nyg yyi4nye _1fragemy8 _1fragem133"},borderSelected:{none:"_1u2aa6m4 _1u2aa6m3",base:"_1u2aa6m5 _1u2aa6m3",large100:"_1u2aa6m6 _1u2aa6m3",large200:"_1u2aa6m7 _1u2aa6m3"}};function Ge({children:i}){const{spacing:r,border:a,background:t}=M();return e("div",{className:S(n.ChoiceWrapper.block,r!=="none"||a==="none"?n.blockChoiceWrapperVariant.separated:[n.blockChoiceWrapperVariant.segmented,n.segmentedBlockFooter],t==="base"&&n.colorLayerVariant.control),children:i})}const ye=ue(void 0),qe=()=>_e(ye),Ca=({background:i,backgroundSelected:r,border:a,borderSelected:t,spacing:o,padding:f,selectedContentBackground:m,selectedContentTransitionProperties:c,presentation:s,children:l})=>{const u=z(()=>({background:i,backgroundSelected:r,border:a,borderSelected:t,spacing:o,padding:f,selectedContentBackground:m,selectedContentTransitionProperties:c}),[i,r,a,t,o,f,m,c]),_=e(ye.Provider,{value:u,children:l});return s===void 0?_:e(Be.Provider,{value:s,children:_})};var Ue="var(--yyi4ny6)",Ye="var(--yyi4ny8)",Ke="var(--yyi4nya)",Qe={none:"yyi4nyq",full:"yyi4nyr"},$={GridQueryContainer:"yyi4nyc",ChoiceListInternalVariant:{block:"yyi4nym yyi4nyh",inline:"yyi4nyn yyi4nyh yyi4nyl _1fragem6t",grid:"yyi4nyo yyi4nyj yyi4nyh yyi4nyi _1fragem87 _1fragema0 _1fragem6t","grid-compact":"yyi4nyp yyi4nyk yyi4nyj yyi4nyh yyi4nyi _1fragem87 _1fragema0 _1fragem6t"},choiceListInternalBorderStyleVariant:{base:"yyi4nys"},Legend:"yyi4nyu _1fragemnh",visuallyHidden:"yyi4nyv _1fragem121",ErrorMessage:"yyi4nyw _1fragemxr _1fragempa"};const me="none",U="large100",Je=({hideRadioControl:i,redesigned:r,variant:a,children:t})=>{const{control:{border:o},choiceList:{group:{spacing:f}={}}}=je(),{border:m,borderSelected:c,spacing:s,background:l,backgroundSelected:u,padding:_=U,selectedContentBackgroun
1d:k="base",selectedContentTransitionProperties:b}=qe()??{},v=l||"base",C=m||o||"full",g=s||f||me,[V,h]=Array.isArray(_)?_:[_,_],{current:I,parent:y}=Ne(),L=z(()=>({current:v==="transparent"?void 0:I,parent:y}),[v,I,y]),N=S($.ChoiceListInternalVariant[a],Qe[C],$.choiceListInternalBorderStyleVariant.base),O=z(()=>({background:v,backgroundSelected:u,border:C,borderSelected:c,spacing:g,hideRadioControl:i,redesigned:r,selectedContentBackground:k,selectedContentTransitionProperties:b}),[C,c,v,u,g,i,r,k,b]);return e(Re.Provider,{value:O,children:e(xe.Provider,{value:L,children:e("div",{className:N,style:Le({...g!==me&&{[Ue]:q.spacing[g]},...V!==U&&{[Ye]:V==="none"?"0":q.spacing[V]},...V!==U&&{[Ke]:h==="none"?"0":q.spacing[h]}}),children:t})})})},Xe=ee("ChoiceList"),Ze=Symbol("always");function va({id:i,variant:r="auto",name:a,values:t,multiple:o,hideRadioControl:f,onChange:m,children:c,blockFooter:s,disabled:l,error:u,label:_,labelAccessibilityVisibility:k="visible"}){const[b,v]=Y([]),[C]=Y(t!==void 0),g=ea(r),V=De(g)==="redesigned",h=Z(i,Xe),I=ze({active:!!u}),y=Oe(I),L=K([]),N=z(()=>{const B=C?t||[]:b;return L.current=B,B},[C,t,b]),O=Q((B,T)=>{let R=[];o?T?R=L.current.includes(B)?L.current:[...L.current,B]:R=L.current.filter(j=>j!==B):R=T?[B]:[],C||v(R),typeof m=="function"&&m(R)},[o,C,m]),E=z(()=>({name:a,multiple:o,values:N,disabled:l,updateValue:O,variant:g}),[a,o,N,l,O,g]);let P;_&&k==="exclusive"?P=e("legend",{className:$.visuallyHidden,children:_}):_&&k==="visible"&&(P=e("legend",{className:$.Legend,children:e($e,{level:3,accessibilityRole:"presentation",children:_})}));function G(){return d(g,ae)?c:d(g,ne)?e(Ae,{gap:"base",children:c}):e(Je,{hideRadioControl:f,redesigned:V,variant:g,children:[c,d(g,p)&&s&&e(Ge,{children:s})]})}const F=_?"fieldset":"div";return e(Pe.Provider,{value:E,children:e(F,{..._?{disabled:l}:{role:"group"},"aria-describedby":u?J(h):void 0,"aria-invalid":u?"true":void 0,className:d(g,We)?$.GridQueryContainer:void 0,id:i,ref:y,tabIndex:u?-1:void 0,children:[P,G(),u&&e("p",{"aria-live":"polite",className:$.ErrorMessage,id:J(h),children:u})]})})}function ea(i){return Te(i)?i:"list"}var D={Input:"_6hzjvo6 _6hzjvo5 _1fragemyk _1fragem5u _1fragem133 _1fragem12j _1fragem12d _1fragem12q",Radio:"_6hzjvo4 _6hzjvo3 _1fragem4v _1fragem6t _1fragem19",colorLayerControl:"_6hzjvo7 _1fragemy6",inputStateVariant:{default:"_6hzjvoa _6hzjvo8 _1fragemyd",disabled:"_6hzjvob _6hzjvo9 _1fragem11v _1fragem11z _1fragemyb"},accessibilityVisibilityVariant:{visible:"_6hzjvod",exclusive:"_6hzjvoe _6hzjvoc _1fragem121"},inputError:"_6hzjvof",inert:"_6hzjvog _1fragemz0"};const aa=ee("Radio"),na=X(({id:i,name:r,value:a=!1,checked:t=a,disabled:o,accessibilityLabel:f,colorLayer:m,error:c,accessibilityVisibility:s,onChange:l,ariaDescribedBy:u},_)=>{const k=Z(i,aa),b=ge(),v=S(D.Input,c&&D.inputError,D.inputStateVariant[o||b?"disabled":"default"],m!=="inherit"&&D.colorLayerControl,b&&D.inert);return e("div",{className:S(D.Radio,s&&D.accessibilityVisibilityVariant[s]),children:e("input",{type:"radio",id:k,name:r,checked:t,disabled:o,onChange:({currentTarget:C})=>{l?.(C.checked)},className:v,tabIndex:b?-1:void 0,"aria-label":f||void 0,"aria-hidden":b?!0:void 0,"aria-describedby":[u,c&&J(k)].filter(Boolean).join(" ")||void 0,ref:_})})}),re=ue({});re.displayName="ChoiceContext";function x(){return _e(re)}const ra=ee("Choice"),ba=X(function(r,a){const t=r.id?` (id: ${r.id})`:"",o=we();return o?typeof r.value!="string"?(console.warn(`Choice should have a string value.${t}`),null):e(ia,{...r,choiceListContext:o,ref:a}):(console.warn(`Unable to render Choice${t}. Please verify it is a child of a ChoiceList.`),null)}),ia=X(function({id:r,value:a,error:t,disabled:o,accessibilityLabel:f,children:m,selectedContent:c,secondaryContent:s,tertiaryContent:l,icon:u,details:_,renderSelectedContentWhenCollapsed:k,selectedContentPadding:b,choiceListContext:v},C){const{name:g,values:V,multiple:h,disabled:I,variant:y,updateValue:L}=v,N=Q(A=>{L(a,A)},[L,a]),O=Z(g,ra),E=r??`${O}-${a}`,{background:P,backgroundSelected:G,hideRadioControl:F,redesigned:B=!1}=M(),T=B&&Ee(y),R=T&&d(y,p),j=z(()=>h?V.includes(a):V[0]===a,[a,V,h]),[Ce]=Y(j),H=K(null),ve=Fe(C,H),ie=K(null),te=!d(y,p)||h||!F||F!==Ze&&!Ce,oe=d(y,w)||W(y)||R&&!h,ce=!h&&j?G??P:P,be=ge(),se=I||o||be,pe=Q(({target:A})=>{(A instanceof HTMLElement||A instanceof SVGElement)&&!ie.current?.contains(A)&&!H.current?.contains(A)&&(h||!j)&&(H.current?H.current.click():N(!j))},[N,h,j]),ke=!!(d(y,p)&&fe(m)&&s&&!_&&!l),Ve=z(()=>({id:E,name:g,checked:j,disabled:se,multiple:!!h,variant:y,controlRendered:te,controlHidden:oe,redesigned:T,backgroundVariant:ce}),[E,g,j,se,h,y,te,oe,T,ce]),de=!!c&&e(ma,{selectedContentPadding:b,render
1SelectedContentWhenCollapsed:k,children:c}),Se=e(ca,{accessibilityLabel:f,labelRef:ie,inputRef:ve,shouldVerticallyCenterLabel:ke,details:_,secondaryContent:s,error:t,onChange:N,children:m});return e(re.Provider,{value:Ve,children:e(ta,{children:[e(oa,{onContainerClick:pe,children:[u&&W(y)&&e(la,{children:u}),Se,d(y,p)&&s&&e(he,{children:s}),l&&e(da,{children:l}),(d(y,ne)||d(y,ae))&&de]}),d(y,p)&&de]})})});function ta({children:i}){const{spacing:r,border:a,borderSelected:t}=M(),{variant:o,backgroundVariant:f,checked:m,multiple:c,redesigned:s}=x(),l=s&&d(o,p);return e("div",{className:S(n.ChoiceWrapper[o],n.kindVariant[c?"multiple":"single"],n.stateVariant[m?"checked":"unchecked"],l&&n.redesignedBlockWrapper,l&&!c&&n.redesignedSelectedBorder,s&&m&&!c&&n.redesignedBrandedSelected,d(o,p)&&[r!=="none"||a==="none"?n.blockChoiceWrapperVariant.separated:[n.blockChoiceWrapperVariant.segmented,n.segmentedChoice],f==="base"&&n.colorLayerVariant.control],(d(o,w)||W(o))&&[n.colorLayerVariant[`control${m?"Selected":""}`]],(d(o,w)||W(o)||d(o,p)&&!c)&&t!==void 0&&n.borderSelected[t]),children:i})}function oa({onContainerClick:i,children:r}){const{variant:a,disabled:t,multiple:o,checked:f,backgroundVariant:m,controlRendered:c,redesigned:s}=x(),l=d(a,p)||d(a,w)||W(a),u=s&&d(a,p);return e("div",{className:S(n.ChoiceVariant[a],c&&(!u||o)&&n.controlRendered,l&&c&&!t&&n.interactive,d(a,p)&&!o&&f&&!u&&n.blockChoiceSingleCheckedVariant[m||"base"]),onClick:l&&!t?i:void 0,children:r})}function ca({accessibilityLabel:i,details:r,secondaryContent:a,shouldVerticallyCenterLabel:t,labelRef:o,inputRef:f,error:m,onChange:c,children:s}){const{multiple:l,disabled:u,checked:_,name:k,controlHidden:b,id:v,controlRendered:C,variant:g}=x(),V=l?Me:na,h=[a&&!d(g,ae)&&`${v}-secondary`,r&&`${v}-details`].filter(Boolean).join(" "),I=C&&e(V,{id:v,accessibilityVisibility:b?"exclusive":"visible",name:k,disabled:u,checked:_,ref:f,accessibilityLabel:i,error:m,colorLayer:"inherit",ariaDescribedBy:h||void 0,onChange:c});return e(le,{children:[C&&!t&&I,fe(s)&&e("div",{className:S(t&&n.labelCentered),children:[C?e(le,{children:[t&&I,e("label",{className:u?n.labelDisabled:n.interactive,htmlFor:v,ref:o,"data-option-selected":_,children:s})]}):e(Ie,{className:n.Heading,children:s}),(d(g,ne)||d(g,w)||W(g))&&a&&e(he,{children:a}),r&&e(sa,{children:r})]})]})}function he({children:i}){const{variant:r,disabled:a,id:t}=x();return e("div",{id:`${t}-secondary`,className:S(n.SecondaryContent,n.SecondaryContentVariant[r],a&&n.maybeDisabled),children:i})}function sa({children:i}){const{disabled:r,id:a}=x();return e("div",{id:`${a}-details`,className:S(r&&n.maybeDisabled),children:i})}function da({children:i}){const{disabled:r}=x();return e("div",{className:S(r&&n.maybeDisabled,n.TertiaryContent.block),children:i})}function la({children:i}){const{disabled:r}=x();return e("div",{"aria-hidden":"true",className:S(n.Icon,r&&n.maybeDisabled),children:i})}function ma({selectedContentPadding:i,renderSelectedContentWhenCollapsed:r,children:a}){const{variant:t,checked:o,id:f,redesigned:m}=x(),{selectedContentBackground:c,selectedContentTransitionProperties:s}=M(),l=e(He,{open:o,id:`${f}-collapsible`,renderChildrenWhenCollapsed:r,properties:s,children:e("div",{className:S(n.SelectedContent[t],d(t,p)&&!m&&c&&n.blockSelectedContentBackgroundVariant[c],i!=="none"&&n.selectedContentPadding),children:a})});return d(t,p)?l:e("div",{className:n.ListSelectedContentWrapper,children:l})}export{ba as C,Ze as _,va as a,Ca as b};

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.