PageSourceSearch

https://www.gapcanada.ca/static_content/onesitecategory/components/mfe/_next/static/chunks/1m1mxomz3com_.js

js gapcanada.ca collected 2026-10-02 03:57:55 UTC 34,354 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,979203,e=>{"use strict";var t=e.i(857727),o=e.i(33750),n=e.i(271645);let r=(0,n.forwardRef)(({highlightedIndex:e,menuIsOpen:o,onKeyDown:n,ariaLabelledBy:r,children:i,maxHeight:a,onMouseLeaveMenu:l},s)=>(0,t.jsx)("ul",{ref:s,"aria-activedescendant":o?`dropdown-option${e}`:void 0,onKeyDown:n,role:"listbox",tabIndex:-1,onMouseLeave:l,className:"fds_button-dropdown__options-container","aria-labelledby":r,style:a?{maxHeight:a}:void 0,children:i}));r.displayName="Menu";var i=e.i(343794);let a=({"aria-label":e,"aria-selected":o,id:r,index:a,onClick:l,onMouseMove:s,option:d,disabled:u,children:p,highlighted:c=!1,selected:b=!1})=>{let f=(0,n.useRef)(null);(0,n.useEffect)(()=>{c&&f.current?.focus({preventScroll:!0})},[c]);let g=a>=0?a:-1,h=(0,i.default)("fds_button-dropdown__option-item fds-content__component-button-dropdown-items",{"fds_button-dropdown__option-item--disabled":u,"fds_button-dropdown__option-item--highlighted":c,"fds_button-dropdown__option-item--selected":b}),x=d&&"object"==typeof d?d.href??d.url:void 0,m=x&&"#"!==x?x:void 0,w=d&&"object"==typeof d?d.target:void 0;return(0,t.jsx)("li",{ref:f,"aria-label":e,"aria-disabled":u||void 0,"aria-selected":o,className:m?"":h,id:r,tabIndex:u?-1:c?0:-1,onClick:e=>{if(u){e.preventDefault(),e.stopPropagation();return}l(d,g,e)},onMouseMove:s,role:"option",children:m?(0,t.jsx)("a",{href:m,target:w,tabIndex:-1,className:m?h:"",children:p}):p})},l=()=>{},s=({children:e,...o})=>(0,t.jsx)(a,{...o,disabled:!0,id:"dropdown-no-options-message",index:-1,onClick:l,onMouseMove:l,children:e});var d=e.i(884364),u=e.i(946217);let p=(e,{highlightedIndex:t,options:o,onOptionHighlighted:n,menuRef:r})=>{let i=Math.min(Math.max(e+t,0),Math.max(o.length-1,0));i!==t&&n(i);let a=r.current?.querySelectorAll(".fds_button-dropdown__option-item")[i];a?.scrollIntoView({block:"nearest",behavior:"smooth"})},c=e=>{e.preventDefault(),e.stopPropagation()},b=(e,t)=>e===t||null!=e&&null!=t&&"object"!=typeof e&&"object"!=typeof t&&`${e}`==`${t}`,f=e=>"string"==typeof e||"number"==typeof e,g=e=>!!e&&"object"==typeof e,h=(e,t)=>t.map(t=>e[t]).find(e=>void 0!==e),x=e=>f(e)||void 0===e?e:g(e)?h(e,["label","value","ariaLabel"])??e:e,m=e=>f(e)||void 0===e?e:g(e)?h(e,["value","label","ariaLabel"])??e:e,w=e=>f(e)?e:g(e)?e.ariaLabel:void 0,v=(e,t)=>`${e}__${t}`;e.i(719431);var S=e.i(896100);e.i(486891);var C=e.i(285942);e.i(922402);var y=e.i(247616);let _=({ariaDescribedByText:e,ariaLabel:o,components:r,onFocus:a,controlRef:l,disabled:s,hasError:f,focus:g,menuIsOpen:h=!1,onMenuOpen:_,onMouseLeaveMenu:k,onMenuClose:j,label:A,value:L,menuContainerRef:I,menuRef:z,highlightedIndex:B=0,selectName:N,options:O=[],onBlur:T,onChange:R,onOptionHighlighted:D,noOptionsMessage:E,reset:M,c
1ontrolId:W,noLabel:$,maxHeight:F,buttonType:V="solid",buttonVariant:U="dark",buttonLabel:P,fullWidth:G=!1,menuPlacement:J="auto",menuAlign:H="start",closeOnHoverOut:K=!0,className:q,dropdownMenuStyles:X,getOptionLabel:Y,getOptionAriaLabel:Q})=>{let{Menu:Z,NoOptionsMessage:ee,Option:et}=r,eo="text"===V?C.CTAButtonText:S.CTAButtonSolid,[en,er]=(0,n.useState)("bottom"),ei=n.default.useRef("bottom"),ea=(0,i.default)(`fds_button_dropdown__menu ${V}--menu`,{"fds_button_dropdown__menu--open":h,"fds_button_dropdown__menu--top":h&&"top"===en,"fds_button_dropdown__menu--bottom":h&&"bottom"===en}),el=(0,i.default)("fds_button-dropdown",{"fds_button-dropdown--full-width":G},q),es=(0,i.default)("fds_button_dropdown-icon-chevron__icon align-middle",{"text-content-svg-light-fill":"dark"===U,"text-content-svg-dark-fill":"light"===U}),ed={disabled:s,focus:g,hasError:f,highlightedIndex:B,menuIsOpen:h,options:O,noLabel:$,maxHeight:F},eu=Y??x,ep=Q??w,ec=null!=L?m(L):void 0,eb=(0,n.useCallback)(()=>{s||(h?j():_())},[h,j,_]),ef=eu(L)??P??A??"Select",eg=(0,n.useCallback)((e,t)=>{if("object"==typeof e&&e?.disabled)return;let o="object"==typeof e?e.href??e.url:void 0;o&&"#"!==o?j():R(e,t)},[R,j]);(0,n.useEffect)(()=>{let e=I.current;if(!e)return;if(!h)return void e.hidePopover?.();let t=l.current?.getBoundingClientRect(),o=G?l.current?.parentElement?.getBoundingClientRect():void 0;t&&(e.style.position="fixed",e.style.minWidth=`${o?.width??t.width}px`,e.style.width=G?`${o?.width??t.width}px`:"",e.style.left=`${o?.left??t.left}px`,e.style.top=`${t.bottom}px`,e.style.bottom=""),e.showPopover?.();let n="bottom";if("top"===J)n="top";else if("bottom"!==J&&t){let e=z.current?.offsetHeight??0,o=window.innerHeight-t.bottom,r=t.top;o<e&&r>=o&&(n="top")}if("top"===n&&t){let o=z.current?.offsetHeight??0;e.style.top=`${t.top-o}px`,e.style.bottom=""}if(ei.current=n,er(n),L){let e=z.current?.querySelector(".fds_button-dropdown__option-item--highlighted");e?.focus()}else z.current?.focus();let r=setTimeout(()=>{let e=z.current?.querySelector(".fds_button-dropdown__option-item--highlighted");e?.scrollIntoView({block:"nearest",behavior:"smooth"})},200);return()=>clearTimeout(r)},[h,J,O.length,V,G,l,z,I,L]),(0,n.useEffect)(()=>{if(!h)return;let e=I.current,t=l.current;if(!e||!t)return;let o=0,n=()=>{let e=I.current,t=l.current;if(!e||!t)return;let o=window.scrollX??window.pageXOffset??document.documentElement.scrollLeft??document.body.scrollLeft??0,n=window.scrollY??window.pageYOffset??document.documentElement.scrollTop??document.body.scrollTop??0,r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight,d=r.top,u=s-r.bottom,p="top"===ei.current&&(d>=i.height||d>u),c=(({align:e,gutter:t,menuWidth:o,scrollX:n,triggerLeft:r,triggerRight:i,viewportWidth:a})=>Math.max(n+t,Math.min(("end"===e?i-o:r)+n,n+a-o-t)))({align:H,gutter:8,menuWidth:i.width,scrollX:o,triggerLeft:r.left,triggerRight:r.right,viewportWidth:a}),b=p?r.top+n-i.height:r.bottom+n;e.style.position="absolute",e.style.left=`${Math.round(c)}px`,e.style.top=`${Math.round(b)}px`,e.style.bottom="auto",e.style.zIndex="9999"},r=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(n)};r(),window.addEventListener("resize",r);let i="u">typeof ResizeObserver?new ResizeObserver(r):null;return i&&i.observe(t),()=>{cancelAnimationFrame(o),window.removeEventListener("resize",r),i?.disconnect()}},[h,H]);let eh=n.default.useRef(null),ex=(0,n.useCallback)(()=>{null!==eh.current&&(clearTimeout(eh.current),eh.current=null)},[]),em=(0,n.useCallback)(()=>{h&&K&&(ex(),eh.current=setTimeout(()=>M(),0))},[h,K,M,ex]);(0,n.useEffect)(()=>()=>{null!==eh.current&&clearTimeout(eh.current)},[]);let ew=(0,n.useCallback)(e=>{let t;return(t={onBlur:T,reset:M},e=>{e.currentTarget.contains(e.relatedTarget||document.activeElement)||(t.reset(),t.onBlur(e))})(e)},[T,M]),ev=(0,n.useCallback)(e=>(({menuIsOpen:e,onMenuOpen:t})=>o=>{!e&&["Enter"," ","ArrowUp","ArrowDown"].includes(o.key)&&(c(o),t())})({menuIsOpen:h,onMenuOpen:_})(e),[h,_]),eS=(0,n.useCallback)(e=>{s||(["Enter"," "].includes(e.key)?(e.preventDefault(),e.stopPropagation(),eb()):ev(e))},[ev,eb]),eC=(0,n.useCallback)(e=>{let t;return(t={menuIsOpen:h,onChange:R,highlightedIndex:B,options:O,onOptionHighlighted:D,reset:M,menuRef:z},e=>{if(t.menuIsOpen){if("ArrowUp"===e.key)c(e),p(-1,t);else if("ArrowDown"===e.key)c(e),p(1,t);
1else if(["Enter"," "].includes(e.key)){c(e);let o=t.menuRef.current?.querySelectorAll(".fds_button-dropdown__option-item")[t.highlightedIndex];if(o?.getAttribute("aria-disabled")==="true")return;let n=o?.querySelector("a");n?n.click():t.onChange(t.options[t.highlightedIndex],t.highlightedIndex)}else if("Escape"===e.key)c(e),t.reset();else if(/^[a-z0-9]$/i.test(e.key)){let o=t.options.map((e,t)=>"string"==typeof e||"number"==typeof e?{index:t,text:e.toString().toLowerCase()}:null).filter(e=>null!==e);if(!o.length)return;c(e);let n=e.key.toLowerCase(),r=o.filter(e=>e.text.startsWith(n));if(r.length){let e=(r.findIndex(e=>e.index===t.highlightedIndex)+1)%r.length;p(r[e].index-t.highlightedIndex,t)}}}})(e)},[h,R,B,O,D,M,z]);return(0,t.jsxs)("div",{className:el,onBlur:ew,onFocus:a,children:[(0,t.jsx)(eo,{type:"button",ref:l,onClick:e=>{e.preventDefault(),eb()},onMouseEnter:ex,onMouseLeave:em,onKeyDown:eS,role:"button","aria-haspopup":"listbox","aria-expanded":h,"aria-describedby":e,"aria-labelledby":W,"aria-label":o,"aria-disabled":s,id:W,tabIndex:s?-1:void 0,variant:U,className:(0,i.default)("fds_button-dropdown__button",{"fds-content__component-button-button-text-dropdown":"text"===V}),children:(0,t.jsxs)("span",{className:"fds_button-dropdown__text",children:[ef,(0,t.jsx)("span",{className:"fds_button_dropdown-icon-chevron__icon-wrapper",children:h?(0,t.jsx)(y.IconWrapper,{icon:"chevron-up",className:es,size:"small"}):(0,t.jsx)(y.IconWrapper,{icon:"chevron-down",className:es,size:"small"})})]})}),(0,t.jsx)("div",{className:ea,ref:I,style:X,popover:"manual",id:`${W}-popover`,onMouseEnter:ex,onMouseLeave:em,children:(0,t.jsx)(Z,{ref:z,onKeyDown:eC,...ed,ariaLabelledBy:W,onMouseLeaveMenu:k,children:h&&((0,u.default)(O)?(0,t.jsx)(ee,{...ed,children:E}):O.map((e,t)=>{let o=m(e),n="object"==typeof e&&!!e?.disabled,r=!n&&b(o,ec);return(0,d.createElement)(et,{...ed,key:v(e,t),"aria-label":ep(e),"aria-selected":r,disabled:n,highlighted:B===t,id:`dropdown-option${t}`,index:t,onClick:()=>{eg(e,t)},onMouseMove:()=>!n&&t!==B&&D(t),option:e,selected:r},eu(e))}))})}),(0,t.jsx)("select",{"aria-hidden":!0,hidden:!0,name:N,onChange:()=>{},value:ec,children:($||!(0,u.default)(L?.toString()))&&!(0,u.default)(O)&&O.map((e,o)=>(0,t.jsx)("option",{value:m(e),children:eu(e)},v(`${e}-hidden-select`,o)))})]})},k=({disabled:e,hasError:o,value:r,noOptionsMessage:a,onChange:l,options:s=[],optionProps:d,selectProps:u,ariaLabel:p,getOptionLabel:c,getOptionAriaLabel:b})=>{let f=s.length>0,g=null!=r?{value:m(r)}:{},h=c??x,S=b??w,C=(0,n.useCallback)(e=>{let t;return l((t=e.target.value,s.find(e=>{let o=m(e);return null!=o&&(o===t||"object"!=typeof o&&`${o}`==`${t}`)})),e.target.selectedIndex)},[l,s]),y=(0,i.default)("fds_button-dropdown__native fds-content__component-button-dropdown-items",{"fds_button-dropdown__native--error":o});return(0,t.jsx)("select",{onChange:C,"aria-label":p,disabled:e,...g,...u,"data-testid":"select-field",className:y,children:f?s.map((e,o)=>{let n=h(e);return(0,t.jsx)("option",{"data-testid":"select-option","aria-label":S(e),value:m(e),disabled:e?.disabled,selected:e?.selected,...d,children:n},v(e,o))}):(0,t.jsx)("option",{disabled:!0,children:a})})},j=(e,t)=>{if(null==t)return -1;let o=m(t);return e.findIndex(e=>b(m(e),o))};e.s(["ButtonDropdown",0,function(e){let i=(e=>{let t,o=(({defaultMenuIsOpen:e,defaultValue:t,defaultHighlightedIndex:o,menuIsOpen:n=e||!1,value:r=t,highlightedIndex:i=o||-1})=>({menuIsOpen:n,value:r,highlightedIndex:i,focus:!1}
1))(e),[r,i]=(0,n.useState)(o.value),[a,l]=(0,n.useState)(o.menuIsOpen),[s,d]=(0,n.useState)(o.focus),{options:u=[]}=e,p=null!=r?j(u,r):o.highlightedIndex,[c,b]=(0,n.useState)(p),f=(0,n.useRef)(null),g=(0,n.useRef)(null),h=(0,n.useRef)(null),x=()=>{l(!1),f?.current?.focus()};return{...(t={value:r,menuIsOpen:a,focus:s,highlightedIndex:c},{menuIsOpen:e.menuIsOpen??t.menuIsOpen,value:e.value??t.value,highlightedIndex:e.highlightedIndex??t.highlightedIndex,focus:t.focus}),controlRef:f,menuRef:g,menuContainerRef:h,onBlur:t=>{d(!1),e.onBlur?.(t)},onFocus:t=>{d(!0),e.onFocus?.(t)},onMenuOpen:()=>{l(!0)},onMenuClose:x,onMouseLeaveMenu:()=>{b(-1)},onChange:(t,o)=>{i(t),x(),e.onChange?.(t,o)},onOptionHighlighted:t=>{b(t),e.onOptionHighlighted?.(t)},reset:()=>{e.reset?.();let t=e.value??r??o.value;b(null!=t?j(u,t):o.highlightedIndex),l(o.menuIsOpen),d(o.focus)}}})(e),{disabled:l=!1,hasError:d=!1,focus:u,noOptionsMessage:p="No options found",label:c="Select",menuIsOpen:b,components:f,onFocus:g,value:h,noLabel:x=!1,useNativeOnMobile:m=!1,dropdownMenuStyles:w={},...v}={...e,...i},S=!!m&&o.isMobile,C={Menu:r,NoOptionsMessage:s,Option:a,...f};return(0,t.jsx)(S?k:_,{selectName:"",disabled:l,focus:u,hasError:d,menuIsOpen:b,noOptionsMessage:p,label:c,onFocus:g,value:h,noLabel:x,dropdownMenuStyles:w,...v,components:C})}],979203)},500742,548155,171170,e=>{"use strict";var t=e.i(857727);e.i(314090);var o=e.i(163122),n=e.i(577701),r=e.i(979203),i=e.i(429251),a=e.i(559553);e.i(295012);var l=e.i(381408),s=e.i(326179),d=e.i(343794),u=e.i(271645),p=e.i(62140),c=e.i(340808);e.i(801972);var b=e.i(342948),f=e.i(661244);e.i(151316);var g=e.i(788703),h=e.i(660746),x=e.i(701146),m=e.i(403655),w=e.i(858789),v=e.i(840648),S=e.i(620918),C=e.i(760821);let y="mui_cta-dropdown__legacy-submenu-list",_="mui_cta-dropdown__legacy-submenu-wrapper";e.s(["LEGACY_CTA_DROPDOWN_SUBMENU_LIST_CLASS_NAME",0,y,"LEGACY_CTA_DROPDOWN_SUBMENU_WRAPPER_CLASS_NAME",0,_],548155);let k=c.Variant.border,j="10px",A=new Set([c.Size.medium,c.Size.large]),L=new Set([c.Variant.chevron,c.Variant.underline]),I=new Set([c.Variant.chevron]),z=e=>{let t={};return Object.entries(e??{}).forEach(([e,o])=>{(null==o||"object"!=typeof o)&&(t[e]=o)}),t};function B({heading:e,isOpen:o}){let n,r=o?i.MinusIcon:a.PlusIcon;return(0,t.jsxs)("span",{className:"gap:normal-case gapfs:normal-case at:block at:py-px on:block on:py-px relative inline-block w-full [text-decoration:inherit]","data-id":"cta-dropdown-label",children:[e,(0,t.jsx)(r,{className:(n=(0,d.default)("at:static at:ml-[0.65rem] at:[transform:none]",o?"at:inline-flex":"at:inline-block"),(0,d.default)("absolute right-0 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2",n,"gap:!inline-flex gap:ml-2 gapfs:!inline-flex gapfs:ml-2","on:relative on:right-auto on:top-auto on:inline-flex on:[transform:translateX(5px)]")),fillColor:"currentColor",size:{height:j,width:j}})]})}let N=u.default.forwardRef(({children:e,className:o,"data-testid":n,isLargeViewport:r,style:i},a)=>(0,t.jsx)("div",{ref:a,className:(0,d.default)("relative",r&&"on:grow on:max-w-[264px]",o),"data-testid":n,style:i,children:e}));function O({buttonColor:e,buttonStyle:o,isLargeViewport:n,isOpen:r,itemStyle:i,items:a,naturalWidth:s,onItemClick:u,size:p,style:f}){let g=(0,d.default)("z-[390] box-border min-w-full list-none overflow-hidden border-0 border-solid bg-wh text-left tracking-0 shadow-[0_1px_2px_0_rgba(0,0,0,0.3)] transition-[max-height,visibility] duration-500 ease-in-out pointer-events-auto",n?"absolute br:p-0 brfs:p-0 on:px-4 on:py-0":"relative br:p-[inherit] brfs:p-[inherit] on:p-[inherit]",r?"visible max-h-[800px]":"invisible max-h-0",s&&"gap:!w-fit gapfs:!w-fit","gap:p-0 gapfs:p-0 at:p-0 br:text-center brfs:text-center",(o===c.Variant.flat||o===c.Variant.underline)&&"gap:mt-3 gapfs:mt-3",(e=>{switch(e){case"dark":return"gap:bg-wh gap:text-bk gap:hover:bg-bk gap:hover:text-wh gapfs:bg-wh gapfs:text-bk gapfs:hover:bg-bk gapfs:hover:text-wh";case"light":return"gap:bg-bk gap:text-wh gap:hover:bg-wh gap:hover:text-bk gapfs:bg-bk gapfs:text-wh gapfs:hover:bg-wh gapfs:hover:text-bk";default:return""}})(e),y),h=(0,d.default)("box-border w-auto border-b border-b-bk last:border-0",n&&"w-full at:h-[60px]",!n&&"at:h-[50px]","gap:ml-0 gap:border-0 gap:p-3 gap:normal-case gap:tracking-[1px] gapfs:ml-0 gapfs:border-0 gapfs:p-3 gapfs:normal-case gapfs:tracking-[1px]","at:border-x at:border-b1 at:last:border-b at:last:border-b1"),x=(0,d.default)("block cursor-pointer whitespace-nowrap text-left text-[length:inherit] text-bk no-underline transition-colors duration-300",n?"py-2":"py-3","gap:flex gap:justify-start gap:bg-[inherit] gap:p-0 gap:text-center gap:font-normal gap:[line-height:normal] gap:tracking-[1px] gap:text-[color:inherit] gap:font-brand","gapfs:flex gapfs:justify-start gapfs:bg-[inherit] gapfs:p-0 gapfs:text-center gapfs:font-normal gapfs:[line-height:normal] gapfs:tracking-[1px] gapfs:text-[color:inherit] gapfs:font-brand","br:p-4 br:text-center br:uppercase br:transition-none br:hover:bg-bk br:hover:text-wh br:focus:bg-bk br:focus:text-wh br:font-alt","brfs:p-4 brfs:text-center brfs:uppercase brfs:transition-none brfs:hover:bg-bk brfs:hover:text-wh brfs:focus:bg-bk brfs:focus:text-wh brfs:font-alt","on:text-center on:font-bold on:[line-height:normal] on:font-alt",n?"at:py-[22px] at:text-center at:text-base at:[line-height:normal] at:hover:underline at:focus:underline at:font-brand":"at:py-[18px] at:text-center at:text-sm at:[line-height:normal] at:hover:underline at:focus:underline at:font-brand",(e=>{switch(e??c.Size.xl){case c.Size.large:return"gap:text-base gapfs:text-base";case c.Size.medium:return"gap:text-sm gapfs:text-sm";case c.Size.small:return"gap:text-xs gapfs:text-xs";case c.Size.xs:return"gap:text-[10px] gapfs:text-[10px]";case c.Size.xl:default:return"gap:text-lg gapfs:text-lg"}})(p));return(0,t.jsx)("div",{className:_,children:(0,t.jsx)("ul",{"aria-hidden":!r,className:g,style:f,children:a.map(({href:e,target:o,text:n},r)=>(0,t.jsx)("li",{className:h,children:(0,t.jsx)(l.Link,{className:x,onClick:()=>u(r),style:i,target:o,to:(0,b.formatUrl)(e),children:n})},`${n}_${e}`))})})}N.displayName="CTADropdownWrapper";let T=({buttonStyling:e,ctaButtonStyling:n,heading:i,interactiveStyles:a=!0,itemContainerStyles:l,itemStyle:y,items:_=[],naturalWi
1dth:j=!1,selected:T,size:R,width:D})=>{let[E,M]=u.default.useState(!1),W=(0,m.useViewportIsLarge)(),$=(0,w.useViewportIsMobile)(),F=(0,g.useBrand)(),V=(0,o.useEnabledFeatures)(),U=(0,u.useRef)(null),P=(0,u.useRef)(null),G=(0,u.useId)(),J=()=>{E&&P.current?.focus(),M(!1)};(0,h.useClickOutside)(U.current,J),(0,x.useKeyPressed)("Escape",J);let H=(({brand:e,buttonStyle:t})=>{let o=t??k;return(e===s.Brands.Gap||e===s.Brands.GapFactoryStore?I:L).has(o)?k:o})({brand:F,buttonStyle:n?.buttonStyle}),{buttonColor:K="dark",primaryHex:q,secondaryHex:X}=n??{},Y=(e=>{switch(e){case"black":return c.Color.black;case"white":return c.Color.white;case"custom":return c.Color.custom;case"light":return c.Color.light;case"dark":return c.Color.dark;case"primary":return c.Color.primary;default:return}})(K),Q=(({brand:e,isLargeViewport:t,size:o})=>{switch(e){case s.Brands.Gap:case s.Brands.GapFactoryStore:return o??c.Size.xl;case s.Brands.Athleta:return t?c.Size.large:c.Size.small;default:return o}})({brand:F,isLargeViewport:W,size:R}),Z=_.map(({label:e,value:t=""})=>({href:t,isAJumplink:t.startsWith("#"),jumplinkCSSSelector:v.PRODUCT_GRID_CLASSNAME,target:"_self",text:e})),ee=(({buttonStyle:e,className:t,isLargeViewport:o,size:n})=>{let r=(0,d.default)("gap:text-left gapfs:text-left gap:[&>span]:p-0 gapfs:[&>span]:p-0",e===c.Variant.flat||e===c.Variant.underline?(0,d.default)("gap:border-0 gap:pb-[3px] gap:px-0 gap:pt-0 gap:[text-underline-offset:5px] gapfs:border-0 gapfs:pb-[3px] gapfs:px-0 gapfs:pt-0 gapfs:[text-underline-offset:5px]",e===c.Variant.underline&&"gap:!border-t-0 gapfs:!border-t-0"):"gap:p-3 gap:[text-underline-offset:0px] gapfs:p-3 gapfs:[text-underline-offset:0px]"),i=(0,d.default)("on:!inline-flex on:px-[15px] on:[--mui-composable-button-override-font-family:var(--font-on-sans-text),sans-serif]",{"on:[--mui-composable-button-override-line-height:12px]":n===c.Size.xs,"on:[--mui-composable-button-override-line-height:14px]":n===c.Size.small,"on:[--mui-composable-button-override-line-height:18px]":n===c.Size.large,"on:[--mui-composable-button-override-line-height:20px]":n===c.Size.xl,"on:[--mui-composable-button-override-line-height:16px]":n===c.Size.medium||void 0===n},o?"on:h-[50px]":"on:h-[45px]");return(0,d.default)("mui_cta_dropdown__button relative z-[2] pointer-events-auto [&>*]:w-[inherit] [&>*]:[text-decoration:inherit]","at:!inline-flex at:bg-bk at:text-wh at:hover:underline",r,i,t)})({buttonStyle:H,isLargeViewport:W,size:Q}),et=z(e),eo=z(l),en=z(y),er=void 0===D?void 0:{width:D};if((({brand:e,buttonColor:t,buttonStyle:o,enabledFeatures:n,itemsLength:r,primaryHex:i,secondaryHex:a,size:l})=>{let d=e===s.Brands.Gap||e===s.Brands.GapFactoryStore,u=t!==c.Color.custom||!!(i&&a),p=[c.Color.dark,c.Color.black,c.Color.primary,c.Color.light,c.Color.white,c.Color.custom].includes(t);return d&&n?.["mui-gap-redesign-2026"]===!0&&o===c.Variant.solid&&!!(l&&A.has(l))&&r>1&&u&&p})({brand:F,buttonColor:K,buttonStyle:H,enabledFeatures:V,itemsLength:Z.length,primaryHex:q,secondaryHex:X,size:Q})){let e=_.map(({label:e,value:t=""})=>t.startsWith("#")?{isAJumplink:!0,jumplinkCSSSelector:v.PRODUCT_GRID_CLASSNAME,label:e,value:t}:{href:(0,b.formatUrl)(t),label:e,target:"_self",value:(0,b.formatUrl)(t)}),o={...et,..."custom"===K&&q&&X?{"--mui-cta-dropdown-primary":q,"--mui-cta-dropdown-secondary":X}:{}};return(0,t.jsx)(N,{className:(0,d.default)("mui_cta_dropdown__fabric","custom"===K&&"mui_cta_dropdown__fabric--custom"),"data-testid":"ctaDropdownWrapper",isLargeViewport:W,style:{...er,...o},children:(0,t.jsx)(r.ButtonDropdown,{buttonLabel:String(i),buttonType:"solid",buttonVariant:(e=>{switch(e){case"dark":case"black":case"primary":return"light";default:return"dark"}})(K),className:"pointer-events-auto relative z-[2]",controlId:G,fullWidth:!j,label:String(i),onChange:e=>{"object"==typeof e&&e&&"isAJumplink"in e&&e.isAJumplink&&(0,f.jumpToSection)(!0,v.PRODUCT_GRID_CLASSNAME)},options:e})})}if(1===Z.length){let[{href:e,isAJumplink:o,jumplinkCSSSelector:r,target:i,text:l}]=Z,u=(0,C.shouldUseFabricGapCTA)({brand:F,buttonColor:K,buttonStyle:H,ctaSize:Q,enabledFeatures:V,primaryHex:q,secondaryHex:X});return(0,t.jsx)(N,{className:"","data-testid":void 0,isLargeViewport:W,style:er,children:(0,t.jsx)(S.CtaButton,{alignment:"center",className:(0,d.default)("cta-label",ee,!u&&"w-full"),ctaButton:{label:l,value:e},ctaButtonStyling:{...n,buttonStyle:H},ctaSize:Q,customCtaStyles:{...et,zIndex:2},interactiveStyles:F!==s.Brands.Athleta&&!$&&a,isAJumplink:o,jumplinkCSSSelector:r,selected:T,target:i})})}return(0,t.jsxs)(N,{ref:U,className:"","data-testid":"ctaDropdownWrapper",isLargeViewport:W,style:er,children:[(0,t.jsx)(p.ComposableButton,{ref:P,"aria-expanded":E,className:ee,color:Y,customColors:q&&X&&"custom"===K?(0,S.getCustomColors)(H,q,X):void 0,fullWidth:!0,implementation:"tailwind",interactiveStyles:F!==s.Brands.Athleta&&!$&&a,onClick:()=>{E&&P.current?.blur(),M(!E)},selected:T,size:Q,style:et,variant:H,children:(0,t.jsx)(B,{heading:String(i),isOpen:E})}),(0,t.jsx)(O,{buttonColor:K,buttonStyle:H,isLargeViewport:W,isOpen:E,itemStyle:en,items:Z,naturalWi
1dth:j,onItemClick:e=>{let{isAJumplink:t,jumplinkCSSSelector:o}=Z[e];(0,f.jumpToSection)(t,o),J()},size:R,style:{...eo,..."custom"===K&&q?{color:q}:{}}})]})};var R=e.i(884364),D=e.i(17975),E=e.i(981982),M=e.i(492650),W=e.i(744996),$=e.i(989232),F=e.i(131973),V=e.i(856984);let U="10px",P=E.styled.span(({isOnCtaRedesign2024Enabled:e,theme:t,buttonStyle:o})=>{let n={position:"relative",width:"100%",textDecoration:"inherit"};if(t.brand===s.Brands.Gap||t.brand===s.Brands.GapFactoryStore)return{display:"inline-block",textTransform:"none",...n};if(t.brand===s.Brands.OldNavy&&e){let e="underline"===o;return{display:"flex",alignItems:"center",justifyContent:e?"left":"center",marginRight:e?"22px":"18px",boxShadow:e?"0 2px 0":"","&:hover":{boxShadow:e?"none":""}}}return{display:"inline-block",...n}}),G=({buttonStyle:e,className:n,heading:r,isOpen:l})=>{let s=(0,o.useEnabledFeatures)(),d=(0,u.useContext)(V.OnCtaRedesign2024Context).enable,p=!!s?.["on-cta-redesign-2024"]&&d,c=l?i.MinusIcon:a.PlusIcon,b=(0,M.useTheme)(),f={display:"inline-flex",position:"absolute",right:0,top:"50%",transform:"translate(-50%, -50%)"},g=p?{alignContent:"center",position:"absolute",right:"6px"}:{...f},h=(0,D.forBrands)(b,{at:()=>({display:"inline-block",marginLeft:"0.65rem",...l&&{display:"inline-flex"}}),gap:()=>({...f,marginLeft:"8px"}),gapfs:()=>({...f,marginLeft:"8px"}),br:()=>({...f}),brfs:()=>({...f}),on:()=>({...g})});return(0,t.jsxs)(P,{"data-id":"cta-dropdown-label",buttonStyle:e,className:n,isOnCtaRedesign2024Enabled:p,theme:b,children:[r,(0,t.jsx)(c,{css:h,fillColor:"currentColor",size:{width:U,height:U}})]})},J=new Set([c.Size.medium,c.Size.large]),H=({brand:e,buttonColor:t,buttonStyle:o,enabledFeatures:n,itemsLength:r,primaryHex:i,secondaryHex:a,size:l})=>{let s=t!==c.Color.custom||!!(i&&a),d=[c.Color.dark,c.Color.black,c.Color.primary,c.Color.light,c.Color.white,c.Color.custom].includes(t);return("gap"===e||"gapfs"===e)&&n?.["mui-gap-redesign-2026"]===!0&&o===c.Variant.solid&&!!(l&&J.has(l))&&r>1&&s&&d};e.s(["shouldUseFabricGapCTADropdown",0,H],171170);let K=c.Variant.border,q=({heading:e,items:n=[],ctaButtonStyling:i,buttonStyling:a,itemContainerStyles:l,itemStyle:s,width:d,size:g,selected:k,interactiveStyles:j=!0,naturalWidth:A=!1})=>{let[L,I]=u.default.useState(!1),z=(0,m.useViewportIsLarge)(),B=(0,u.useRef)(null),N=(0,u.useRef)(null),O=z?"desktop":"mobile",T=()=>{L&&N.current?.focus(),I(!1)},U=(0,m.useViewportIsLarge)(),P=(0,w.useViewportIsMobile)(),J=(0,M.useTheme)(),q="gap"===J.brand||"gapfs"===J.brand,X="on"===J.brand,Y="at"===J.brand,Q=(0,o.useEnabledFeatures)(),Z=(0,u.useContext)(V.OnCtaRedesign2024Context).enable,ee=!!Q?.["on-cta-redesign-2024"]&&Z,et={...i},eo=et?.buttonStyle==="flat",en=et?.buttonStyle==="underline",er=X&&ee&&en,ei=!!er||A,ea=X&&ee&&ei&&!z,el=q||X&&ee?[c.Variant.chevron]:[c.Variant.chevron,c.Variant.underline],es=()=>({textAlign:"left",...eo||en?{padding:"0 0 3px",border:0,textUnderlineOffset:"5px"}:{padding:"12px",textUnderlineOffset:"0px"},"& > span":{padding:"0"}}),ed=er?{color:J.color.bk,"& > span > span":{boxShadow:"none"}}:{backgroundColor:J.color.bk,borderColor:J.color.bk,color:J.color.wh,textDecoration:"underline"},eu=ee?{height:en&&ei?"auto":"44px",border:en?"none":"",padding:en?"8px":"",textDecoration:"none",'&&[aria-expanded="true"]':ed,width:ei?"fit-content":"","&:focus":{"& > span > span":{boxShadow:en?"none":""}},...en&&ei&&{"& > span > span":{textAlign:"center"}}}:{height:U?"50px":"45px",paddingInline:"15px","& > span > span":{position:"relative",transform:"translateX(5px)"}},ep=(0,D.forBrands)(J,{at:e=>({backgroundColor:e.color.bk,color:e.color.wh,"&:hover":{textDecoration:"underline"}}),gap:es(),gapfs:es(),on:eu}),ec=(q?g||c.Size.xl:void 0)||(()=>{if(Y)return U?c.Size.large:c.Size.small})()||g;(0,h.useClickOutside)(B.current,T),(0,x.useKeyPressed)("Escape",T),et&&el.includes(et?.buttonStyle)&&(et.buttonStyle=K);let{buttonStyle:eb=K,buttonColor:ef=c.Color.dark,primaryHex:eg,secondaryHex:eh}=et||{},ex=()=>{if(q){if(ef===c.Color.dark)return{color:J.color.bk,backgroundColor:J.color.wh,"& :hover":{color:J.color.wh,backgroundColor:J.color.bk}};if(ef===c.Color.light)return{color:J.color.wh,backgroundColor:J.color.bk,"& :hover":{color:J.color.bk,backgroundColor:J.color.wh}}}if(ef===c.Color.custom)return{color:eg}},em=n.map(({value:e="",label:t,...o}
1)=>({...o,text:t,href:e,isAJumplink:e.startsWith("#"),jumplinkCSSSelector:v.PRODUCT_GRID_CLASSNAME,target:"_self"})),ew=(0,u.useId)(),ev=H({brand:J.brand,buttonColor:ef,buttonStyle:eb,enabledFeatures:Q,itemsLength:em.length,primaryHex:eg,secondaryHex:eh,size:ec}),eS={position:"relative",zIndex:2,"> *":{width:"inherit",textDecoration:"inherit"},pointerEvents:"auto",...a,...ep},eC={position:"relative",width:d,...X&&ee?z?{minWidth:en?120:136,maxWidth:ei?400:255,width:ei?"fit-content":void 0}:{minWidth:en?120:136,maxWidth:en?300:359,width:ei?"fit-content":d}:X&&z?{flexGrow:1,maxWidth:264}:{}};if(ev){let o=n.map(({label:e,value:t})=>t.startsWith("#")?{isAJumplink:!0,jumplinkCSSSelector:v.PRODUCT_GRID_CLASSNAME,label:e,value:t}:{href:(0,b.formatUrl)(t),label:e,target:"_self",value:(0,b.formatUrl)(t)}),i=(e=>{switch(e){case c.Color.dark:case c.Color.black:case c.Color.primary:return"light";case c.Color.light:case c.Color.white:default:return"dark"}})(ef),l=ef===c.Color.custom&&eg&&eh?{"& .fds_button-dropdown__button.fds-content__component-button-button-solid":{backgroundColor:eg,borderColor:eh,color:eh,"& .text-content-svg-light-fill, & .text-content-svg-dark-fill":{fill:eh}},"& .fds_button-dropdown__option-item, & .fds_button-dropdown__option-item a":{color:eh}}:{};return(0,t.jsx)(R.ClassNames,{children:({css:n,cx:s})=>{let d=s(n({position:"relative",zIndex:2,pointerEvents:"auto",...a,...l}));return(0,t.jsx)("div",{css:eC,"data-testid":"ctaDropdownWrapper",children:(0,t.jsx)(r.ButtonDropdown,{buttonLabel:String(e),buttonType:"solid",buttonVariant:i,className:d,controlId:ew,fullWidth:!ei,label:String(e),onChange:e=>{"object"==typeof e&&e&&"isAJumplink"in e&&e.isAJumplink&&(0,f.jumpToSection)(!0,v.PRODUCT_GRID_CLASSNAME)},options:o})})}})}if(1===em.length){let[{text:e,href:o,isAJumplink:n,jumplinkCSSSelector:r,target:i}]=em;return(0,t.jsx)("div",{css:eC,children:(0,t.jsx)(S.CtaButton,{alignment:"center",className:"cta-label",ctaButton:{label:e,value:o},ctaButtonStyling:{...et,buttonStyle:eb},ctaSize:ec,customCtaStyles:{...(0,C.shouldUseFabricGapCTA)({brand:J.brand,buttonColor:ef,buttonStyle:eb,ctaSize:ec,enabledFeatures:Q,primaryHex:eg,secondaryHex:eh})?{}:{width:"100%"},zIndex:2,...eS,...er?{"& > span":{boxShadow:"0 2px 0"},"&:hover, &:focus":{"& > span":{boxShadow:"none"}}}:{}},interactiveStyles:j,isAJumplink:n,jumplinkCSSSelector:r,selected:k,target:i})})}let ey={position:z?"absolute":void 0,maxHeight:800*!!L,width:er?"":"100%",transition:"max-height .5s ease-in-out, visibility .5s",visibility:L?"visible":"hidden",...er?{boxShadow:"none",maxWidth:U?400:300,"> li":{borderBottom:"none",a:{justifyContent:"left",textAlign:"left",color:J.color.bk,textDecoration:"underline",height:ei?"auto":"26px",padding:"8px",lineHeight:"26px",letterSpacing:"0.9px",whiteSpace:ei?"normal":"nowrap",...ei&&{minWidth:120,maxWidth:U?400:300,width:"max-content"},"&:hover, &:focus":{backgroundColor:"#FFFFFF",textDecoration:"none",color:J.color.bk}}}}:{},...l,...q&&(eo||en)?{marginTop:"12px"}:{}},e_=E.styled.div(ea?{position:en?void 0:"absolute",width:en?void 0:"100%"}:{});return(0,t.jsxs)("div",{ref:B,css:eC,"data-testid":"ctaDropdownWrapper",children:[(0,t.jsx)(p.ComposableButton,{ref:N,"aria-expanded":L,color:ef,css:eS,customColors:eg&&eh&&ef&&"custom"===ef?(0,S.getCustomColors)(eb,eg,eh):void 0,fullWidth:!0,interactiveStyles:!Y&&!P&&j,onClick:()=>{L?(N.current?.blur(),I(!1)):I(!0)},selected:k,size:ec,variant:eb,children:(0,t.jsx)(G,{buttonStyle:et?.buttonStyle,heading:String(e),isOpen:L})}),(0,t.jsx)(e_,{className:_,children:(0,t.jsx)(W.SubmenuList,{"aria-hidden":!L,breakpoint:O,className:y,css:{...ey,...ex()},variant:eb,naturalWidth:ei,children:em.map(({href:e,target:o,text:n},r)=>(0,t.jsx)($.SubmenuListItem,{breakpoint:O,css:{borderColor:ex()?.color},variant:eb,children:(0,t.jsx)(F.SubmenuListLink,{breakpoint:O,css:s,onClick:()=>(e=>{let{isAJumplink:t=!1,jumplinkCSSSelector:o}=em[e];(0,f.jumpToSection)(t,o),T()})(r),target:o,to:(0,b.formatUrl)(e),size:g,children:n})},`${n}_${e}`))})})]})};e.s(["default",0,e=>{let r=(0,o.useEnabledFeatures)();return r?.[n.COMPOSABLE_BUTTON_TAILWIND_FLAG]?(0,t.jsx)(T,{...e}):(0,t.jsx)(q,{...e})}],500742)}
1,744996,989232,131973,e=>{"use strict";var t=e.i(271645);e.i(314090);var o=e.i(17975),n=e.i(981982),r=e.i(163122),i=e.i(856984);let a=n.styled.ul(({theme:e,breakpoint:n,variant:a,naturalWidth:l=!1})=>{let s=(0,r.useEnabledFeatures)(),d=(0,t.useContext)(i.OnCtaRedesign2024Context).enable,u="desktop"===n,p={padding:"0px",...l?{width:"fit-content !important"}:{}},c=(0,o.forBrands)(e,{gap:p,gapfs:p,br:()=>({textAlign:"center",padding:u?"0":"inherit"}),brfs:()=>({textAlign:"center",padding:u?"0":"inherit"}),at:()=>({padding:"0"}),on:s?.["on-cta-redesign-2024"]&&d?"border"!==a?{}:{borderTop:`1px solid ${e.color.b1}`,borderBottom:`1px solid ${e.color.b1}`}:{padding:u?"0 1rem":"inherit"}});return{boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.3)",background:e.color.wh,boxSizing:"border-box",listStyleType:"none",minWidth:"100%",overflow:"hidden",position:"relative",zIndex:e.layers.buttonDropdown,borderWidth:"0",borderStyle:"solid",textAlign:"left",letterSpacing:"0",pointerEvents:"auto",...c}});e.s(["SubmenuList",0,a],744996);let l=n.styled.li(({theme:e,breakpoint:n,variant:a})=>{let l="desktop"===n,s=(0,r.useEnabledFeatures)(),d=(0,t.useContext)(i.OnCtaRedesign2024Context).enable,u=e=>({letterSpacing:"1px",marginLeft:"0",textTransform:"none",padding:"12px",borderBottom:"none"}),p=(0,o.forBrands)(e,{gap:u(e),gapfs:u(e),at:()=>({":last-child":{borderBottom:`1px solid ${e.color.b1}`},borderLeft:`1px solid ${e.color.b1}`,borderRight:`1px solid ${e.color.b1}`,height:l?"60px":"50px"}),on:s?.["on-cta-redesign-2024"]&&d?"border"===a?{height:"44px",borderTop:`1px solid ${e.color.b1}`,borderBottom:`1px solid ${e.color.b1}`,borderLeft:`2px solid ${e.color.b1}`,borderRight:`2px solid ${e.color.b1}`,":last-child":{borderTop:`1px solid ${e.color.b1}`,borderBottom:`1px solid ${e.color.b1}`,borderLeft:`2px solid ${e.color.b1}`,borderRight:`2px solid ${e.color.b1}`}}:"solid"===a?{height:"44px",border:"none"}:{}:{}});return{boxSizing:"border-box",width:l?"100%":"auto",borderBottom:`1px solid ${e.color.bk}`,":last-child":{border:"none"},...p}});e.s(["SubmenuListItem",0,l],989232),e.i(295012);var s=e.i(381408),d=e.i(340808);let u=(0,n.styled)(s.Link)(({theme:e,breakpoint:n,size:a})=>{let l=(0,r.useEnabledFeatures)(),s=(0,t.useContext)(i.OnCtaRedesign2024Context).enable,u="desktop"===n,p=()=>({...{display:"flex",justifyContent:"start",padding:"0px",backgroundColor:"inherit",color:"inherit",fontSize:{xl:"18px",large:"16px",medium:"14px",small:"12px",xs:"10px"}[a||d.Size.xl]},fontWeight:700,textAlign:"center",letterSpacing:"1px",...e.font.primary}),c=(0,o.forBrands)(e,{gap:p(),gapfs:p(),on:{...l?.["on-cta-redesign-2024"]&&s?{display:"flex",justifyContent:"center",alignContent:"center",flexWrap:"wrap",height:"100%",color:e.color.b1,whiteSpace:"normal",fontSize:"12px",lineHeight:14/12,letterSpacing:"1.44px",padding:"6px","&:hover":{backgroundColor:e.color.b1,color:e.color.wh}}:{},textAlign:"center",...e.font.secondary},br:e=>({padding:"1rem",textAlign:"center",textTransform:"uppercase",transition:"none","&:hover, &:focus":{background:e.color.bk,color:e.color.wh},...e.font.secondary}),brfs:e=>({padding:"1rem",textAlign:"center",textTransform:"uppercase",transition:"none","&:hover, &:focus":{background:e.color.bk,color:e.color.wh},...e.font.secondary}),at:e=>({textAlign:"center",fontSize:u?"16px":"14px","&:hover, &:focus":{textDecoration:"underline"},padding:u?"1.375rem 0":"1.125rem 0",...e?.brandFont})});return{cursor:"pointer",display:"block",padding:u?"0.5rem 0":"0.75rem 0",textDecoration:"none",transition:"color 0.3s ease",whiteSpace:"nowrap",fontSize:"inherit",textAlign:"left",color:e.color.bk,...c}});e.s(["SubmenuListLink",0,u],131973)}]);

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.