PageSourceSearch

https://thehipgiftshop.com/cdn/shopifycloud/checkout-web/assets/c1/Choice.BIzIW4rp.js

js thehipgiftshop.com collected 2026-09-30 22:02:15 UTC 13,413 bytes, 1 lines download raw bytes

1import{u as e,g as S,T as D,X as ue,x as _e,F as Le,k as Q,A as K,q as Y,D as X,S as le}from"./esnext-vendor.BDPAaZdq.js";import{dH as H,cP as Ie,a4 as Ne,cz as Be,dI as je,dJ as Re,dK as xe,K as Z,af as Pe,dA as De,ag as J,dL as s,dM as ze,dN as Oe,O as ee,c as Te,H as Ae,dO as ae,dP as ne,dQ as k,dR as We,M as ge,dS as $e,dT as Ee,N as we,dU as w,dV as E,ae as fe,aT as He,aJ as Me,cQ as Fe}from"./hydrate.B0xlt2dG.js";import{a as Ge}from"./Checkbox.CiixBh9Z.js";import"./app.D1P6yWfp.js";import{d7 as q}from"./hooks-useReplaceShopPayInHistory.C8UL-mAH.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",blockChoicePadding:"_1u2aa6m1j",ChoiceVariant:{block:"_1u2aa6m1m _1u2aa6m1k _1fragemws _1fragem6t _1fragema0 _1fragem12u",inline:"_1u2aa6m1n _1u2aa6m1l _1fragem87 _1fragema0 _1fragem64 _1fragem73 _1fragembj _1fragem19 _1fragemyn _1fragem124",grid:"_1u2aa6m1o _1u2aa6m1g _1u2aa6m1f _1fragem87 _1fragema0 _1fragempu _1fragemo1 _1fragemtg _1fragemrn _1fragem6t _1fragemyn _1u2aa6m1h","grid-compact":"_1u2aa6m1p _1u2aa6m1g _1u2aa6m1f _1fragem87 _1fragema0 _1fragempu _1fragemo1 _1fragemtg _1fragemrn _1fragem6t _1fragemyn _1u2aa6m1i",list:"_1u2aa6m1q _1u2aa6m1e _1u2aa6m1d _1fragem6t _1fragema0",legacy:"_1u2aa6m1r _1u2aa6m1e _1u2aa6m1d _1fragem6t _1fragema0"},controlRendered:"_1u2aa6m1s",blockChoiceSingleCheckedVariant:{base:"_1u2aa6m1t yyi4nyg yyi4nye _1fragemy8 _1fragem133",transparent:"_1u2aa6m1u"},Heading:"_1u2aa6m1v",labelDisabled:"_1u2aa6m1w _1fragem11v",labelCentered:"_1u2aa6m1y _1u2aa6m1x _1fragem2d _1fragem64 _1fragema0",maybeDisabled:"_1u2aa6m1z",interactive:"_1u2aa6m20 _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 qe({children:i}){const{spacing:r,border:a,background:t}=H();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),Ue=()=>_e(ye),Ca=({background:i,backgroundSelected:r,border:a,borderSelected:t,spacing:o,padding:y,itemPadding:m,selectedContentBackground:c,selectedContentTransitionProperties:d,presentation:l,children:_})=>{const u=D(()=>({background:i,backgroundSelected:r,border:a,borderSelected:t,spacing:o,padding:y,itemPadding:m,selectedContentBackground:c,selectedContentTransitionProperties:d}),[i,r,a,t,o,y,m,c,d]),C=e(ye.Provider,{value:u,children:_});
1return l===void 0?C:e(Ie.Provider,{value:l,children:C})};var Qe="var(--yyi4ny6)",Ke="var(--yyi4ny8)",Ye="var(--yyi4nya)",Je={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",Xe=({hideRadioControl:i,redesigned:r,variant:a,children:t})=>{const{control:{border:o},choiceList:{group:{spacing:y}={}}}=Ne(),{border:m,borderSelected:c,spacing:d,background:l,backgroundSelected:_,padding:u=U,itemPadding:C,selectedContentBackground:v="base",selectedContentTransitionProperties:p}=Ue()??{},b=l||"base",g=m||o||"full",V=d||y||me,[f,I]=Array.isArray(u)?u:[u,u],{current:h,parent:L}=Be(),j=D(()=>({current:b==="transparent"?void 0:h,parent:L}),[b,h,L]),z=S($.ChoiceListInternalVariant[a],Je[g],$.choiceListInternalBorderStyleVariant.base),O=D(()=>({background:b,backgroundSelected:_,border:g,borderSelected:c,spacing:V,hideRadioControl:i,redesigned:r,itemPadding:C,selectedContentBackground:v,selectedContentTransitionProperties:p}),[g,c,b,_,V,i,r,C,v,p]);return e(Re.Provider,{value:O,children:e(je.Provider,{value:j,children:e("div",{className:z,style:Le({...V!==me&&{[Qe]:q.spacing[V]},...f!==U&&{[Ke]:f==="none"?"0":q.spacing[f]},...f!==U&&{[Ye]:I==="none"?"0":q.spacing[I]}}),children:t})})})},Ze=ee("ChoiceList"),ea=Symbol("always");function va({id:i,variant:r="auto",name:a,values:t,multiple:o,hideRadioControl:y,onChange:m,children:c,blockFooter:d,disabled:l,error:_,label:u,labelAccessibilityVisibility:C="visible"}){const[v,p]=Q([]),[b]=Q(t!==void 0),g=aa(r),V=xe(g)==="redesigned",f=Z(i,Ze),I=Pe({active:!!_}),h=De(I),L=K([]),j=D(()=>{const N=b?t||[]:v;return L.current=N,N},[b,t,v]),z=Y((N,A)=>{let x=[];o?A?x=L.current.includes(N)?L.current:[...L.current,N]:x=L.current.filter(B=>B!==N):x=A?[N]:[],b||p(x),typeof m=="function"&&m(x)},[o,b,m]),O=D(()=>({name:a,multiple:o,values:j,disabled:l,updateValue:z,variant:g}),[a,o,j,l,z,g]);let T;u&&C==="exclusive"?T=e("legend",{className:$.visuallyHidden,children:u}):u&&C==="visible"&&(T=e("legend",{className:$.Legend,children:e(Ae,{level:3,accessibilityRole:"presentation",children:u})}));function G(){return s(g,ae)?c:s(g,ne)?e(Te,{gap:"base",children:c}):e(Xe,{hideRadioControl:y,redesigned:V,variant:g,children:[c,s(g,k)&&d&&e(qe,{children:d})]})}const M=u?"fieldset":"div";return e(ze.Provider,{value:O,children:e(M,{...u?{disabled:l}:{role:"group"},"aria-describedby":_?J(f):void 0,"aria-invalid":_?"true":void 0,className:s(g,We)?$.GridQueryContainer:void 0,id:i,ref:h,tabIndex:_?-1:void 0,children:[T,G(),_&&e("p",{"aria-live":"polite",className:$.ErrorMessage,id:J(f),children:_})]})})}function aa(i){return Oe(i)?i:"list"}var P={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 na=ee("Radio"),ra=X(({id:i,name:r,value:a=!1,checked:t=a,disabled:o,accessibilityLabel:y,colorLayer:m,error:c,accessibilityVisibility:d,onChange:l,ariaDescribedBy:_},u)=>{const C=Z(i,na),v=ge(),p=S(P.Input,c&&P.inputError,P.inputStateVariant[o||v?"disabled":"default"],m!=="inherit"&&P.colorLayerControl,v&&P.inert);return e("div",{className:S(P.Radio,d&&P.accessibilityVisibilityVariant[d]),children:e("input",{type:"radio",id:C,name:r,checked:t,disabled:o,onChange:({currentTarget:b})=>{l?.(b.checked)},className:p,tabIndex:v?-1:void 0,"aria-label":y||void 0,"aria-hidden":v?!0:void 0,"aria-describedby":[_,c&&J(C)].filter(
1Boolean).join(" ")||void 0,ref:u})})}),re=ue({});re.displayName="ChoiceContext";function R(){return _e(re)}const ia=ee("Choice"),ba=X(function(r,a){const t=r.id?` (id: ${r.id})`:"",o=$e();return o?typeof r.value!="string"?(console.warn(`Choice should have a string value.${t}`),null):e(ta,{...r,choiceListContext:o,ref:a}):(console.warn(`Unable to render Choice${t}. Please verify it is a child of a ChoiceList.`),null)}),ta=X(function({id:r,value:a,error:t,disabled:o,accessibilityLabel:y,children:m,selectedContent:c,secondaryContent:d,tertiaryContent:l,icon:_,details:u,renderSelectedContentWhenCollapsed:C,selectedContentPadding:v,choiceListContext:p},b){const{name:g,values:V,multiple:f,disabled:I,variant:h,updateValue:L}=p,j=Y(W=>{L(a,W)},[L,a]),z=Z(g,ia),O=r??`${z}-${a}`,{background:T,backgroundSelected:G,hideRadioControl:M,redesigned:N=!1}=H(),A=N&&Ee(h),x=A&&s(h,k),B=D(()=>f?V.includes(a):V[0]===a,[a,V,f]),[Ce]=Q(B),F=K(null),ve=we(b,F),ie=K(null),te=!s(h,k)||f||!M||M!==ea&&!Ce,oe=s(h,w)||E(h)||x&&!f,ce=!f&&B?G??T:T,be=ge(),se=I||o||be,pe=Y(({target:W})=>{(W instanceof HTMLElement||W instanceof SVGElement)&&!ie.current?.contains(W)&&!F.current?.contains(W)&&(f||!B)&&(F.current?F.current.click():j(!B))},[j,f,B]),ke=!!(s(h,k)&&fe(m)&&d&&!u&&!l),Ve=D(()=>({id:O,name:g,checked:B,disabled:se,multiple:!!f,variant:h,controlRendered:te,controlHidden:oe,redesigned:A,backgroundVariant:ce}),[O,g,B,se,f,h,te,oe,A,ce]),de=!!c&&e(ua,{selectedContentPadding:v,renderSelectedContentWhenCollapsed:C,children:c}),Se=e(sa,{accessibilityLabel:y,labelRef:ie,inputRef:ve,shouldVerticallyCenterLabel:ke,details:u,secondaryContent:d,error:t,onChange:j,children:m});return e(re.Provider,{value:Ve,children:e(oa,{children:[e(ca,{onContainerClick:pe,children:[_&&E(h)&&e(ma,{children:_}),Se,s(h,k)&&d&&e(he,{children:d}),l&&e(la,{children:l}),(s(h,ne)||s(h,ae))&&de]}),s(h,k)&&de]})})});function oa({children:i}){const{spacing:r,border:a,borderSelected:t}=H(),{variant:o,backgroundVariant:y,checked:m,multiple:c,redesigned:d}=R(),l=d&&s(o,k);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,d&&m&&!c&&n.redesignedBrandedSelected,s(o,k)&&[r!=="none"||a==="none"?n.blockChoiceWrapperVariant.separated:[n.blockChoiceWrapperVariant.segmented,n.segmentedChoice],y==="base"&&n.colorLayerVariant.control],(s(o,w)||E(o))&&[n.colorLayerVariant[`control${m?"Selected":""}`]],(s(o,w)||E(o)||s(o,k)&&!c)&&t!==void 0&&n.borderSelected[t]),children:i})}function ca({onContainerClick:i,children:r}){const{variant:a,disabled:t,multiple:o,checked:y,backgroundVariant:m,controlRendered:c,redesigned:d}=R(),{itemPadding:l}=H(),{className:_,style:u,styleElement:C}=He({padding:s(a,k)?l:void 0}),v=s(a,k)||s(a,w)||E(a),p=d&&s(a,k);return e("div",{className:S(n.ChoiceVariant[a],s(a,k)&&(l?_:n.blockChoicePadding),c&&(!p||o)&&n.controlRendered,v&&c&&!t&&n.interactive,s(a,k)&&!o&&y&&!p&&n.blockChoiceSingleCheckedVariant[m||"base"]),onClick:v&&!t?i:void 0,style:u,children:[C,r]})}function sa({accessibilityLabel:i,details:r,secondaryContent:a,shouldVerticallyCenterLabel:t,labelRef:o,inputRef:y,error:m,onChange:c,children:d}){const{multiple:l,disabled:_,checked:u,name:C,controlHidden:v,id:p,controlRendered:b,variant:g}=R(),V=l?Ge:ra,f=[a&&!s(g,ae)&&`${p}-secondary`,r&&`${p}-details`].filter(Boolean).join(" "),I=b&&e(V,{id:p,accessibilityVisibility:v?"exclusive":"visible",name:C,disabled:_,checked:u,ref:y,accessibilityLabel:i,error:m,colorLayer:"inherit",ariaDescribedBy:f||void 0,onChange:c});return e(le,{children:[b&&!t&&I,fe(d)&&e("div",{className:S(t&&n.labelCentered),children:[b?e(le,{children:[t&&I,e("label",{className:_?n.labelDisabled:n.interactive,htmlFor:p,ref:o,"data-option-selected":u,children:d})]}):e(Fe,{className:n.Heading,children:d}),(s(g,ne)||s(g,w)||E(g))&&a&&e(he,{children:a}),r&&e(da,{children:r})]})]})}function he({children:i}){const{variant:r,disabled:a,id:t}=R();return e("div",{id:`${t}-secondary`,className:S(n.SecondaryContent,n.SecondaryContentVariant[r],a&&n.maybeDisabled),children:i})}function da({children:i}){const{disabled:r,id:a}=R();return e("div",{id:`${a}-details`,className:S(r&&n.maybeDisabled),children:i})}function la({children:i}){const{disabled:r}=R();return e("div",{className:S(r&&n.maybeDisabled,n.TertiaryContent.block),children:i})}function ma({children:i}){const{disabled:r}=R();return e("div",{"aria-hidden":"true",className:S(n.Icon,r&&n.maybeDisabled),children:i})}function ua({selectedContentPadding:i,renderSelectedContentWhenCollapsed:r,children:a}){const{variant:t,checked:o,id:y,redesigned:m}
1=R(),{selectedContentBackground:c,selectedContentTransitionProperties:d}=H(),l=e(Me,{open:o,id:`${y}-collapsible`,renderChildrenWhenCollapsed:r,properties:d,children:e("div",{className:S(n.SelectedContent[t],s(t,k)&&!m&&c&&n.blockSelectedContentBackgroundVariant[c],i!=="none"&&n.selectedContentPadding),children:a})});return s(t,k)?l:e("div",{className:n.ListSelectedContentWrapper,children:l})}export{Ca as C,ea as _,va as a,ba 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.