1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8820,8753],{66718:function(e,l,i){i.d(l,{B:function(){return s}});var d=i(27573),o=i(7653),n=i(10607),a=i(93636);let s=e=>{let{name:l,testid:i,suffixIcon:s,prefixIcon:t,label:r,subtitle:c,ariaLabel:u,onChange:m,isError:v,isButton:p=!1,buttonProps:h}=e,x=(0,o.useRef)(null),g=()=>{x.current&&(x.current.value="")},b=async e=>{var l,i;if(null==e?void 0:null===(i=e.target)||void 0===i?void 0:null===(l=i.files)||void 0===l?void 0:l[0]){let l=e.target.files[0];null==m||m(l),g()}},j=()=>{var e;g(),null===(e=x.current)||void 0===e||e.click()},f=()=>(0,d.jsx)("input",{ref:x,type:"file","data-testid":i,accept:"image/png, image/jpeg, image/jpg",name:l,"aria-label":u,id:i,onInput:b,className:"filePicker"});return p?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f,{}),(0,d.jsx)(a.z,{...h,onClick:j,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&j()}})]}):(0,d.jsxs)("div",{role:"button",tabIndex:0,className:(0,n.Z)("inputfilePicker",{error:v}),onClick:j,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&j()},children:[(0,d.jsx)(()=>t?(0,d.jsx)("div",{className:"edibleImg",children:t}):null,{}),(0,d.jsxs)("div",{className:"filePickerLabel",children:[r&&(0,d.jsx)("div",{className:"fbrLabel",children:r}),c&&(0,d.jsx)("div",{className:"fbrLabelText",children:c})]}),(0,d.jsx)(f,{}),(0,d.jsx)(()=>s?(0,d.jsx)("div",{className:"arrowImg",children:s}):null,{})]})}},58753:function(e,l,i){i.r(l),i.d(l,{PdpEdibleImage:function(){return g}});var d=i(27573),o=i(7653),n=i(98505),a=i(64070),s=i(15514),t=i(83125),r=i(56901),c=i(60329),u=i(66181),m=i(66718),v=i(47488),p=i(2829),h=i(28846);let x=(0,a.default)(async()=>(await i.e(6965).then(i.bind(i,16965))).PdpEdibleImageModal,{loadableGenerated:{webpack:()=>[16965]}}),g=e=>{var l,i;let a;let{modifier:g,onFileSelect:b,files:j,isError:f=!1,isModal:C=!1}=e,{pdpEdibleImageDisclaimer:N,fbrChevronArrow_RightIcon:w}=s.assets,{t:k}=(0,n.$G)(),y=(0,c.TL)(),M=(0,c.CG)(e=>e.pdpData),D=null==M?void 0:M.content,[I,S]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(null==j?void 0:j.url)&&I&&S(!1)},[j]);let A=e=>{C&&y((0,r.VG)()),y((0,r.Rm)({content:(0,d.jsx)(x,{selectedFile:e,files:j,onFileSelect:b}),customClass:"modalEdible",showClose:!0,onClose:()=>{(null==j?void 0:j.url)||S(!0)}}))},T=()=>(null==j?void 0:j.url)?k("pdp.select.image.title"):g.name,_=()=>(0,d.jsx)("span",{children:(0,d.jsx)(p.Z,{id:"imgDisclaimerInformationIcon",...N})}),E=null==D?void 0:null===(l=D.find(e=>e.key===t.V4p.edibleImageDisclaimer))||void 0===l?void 0:l.body;return C?(0,d.jsx)("div",{className:"pdp-edible-image-modal",children:(0,d.jsxs)("div",{className:"pdp-edible-image-modal-content",children:[(0,d.jsx)("h3",{className:"modalTitle mt-0","data-testid":"txt_modalTitle",children:k("pdp.select.image.title")}),(0,d.jsx)("p",{className:"modalContentDescription",children:k("pdp.select.image.modal.description")}),(0,d.jsx)("div",{className:"fbrLabelText",children:k("pdp.select.image.subtitle")}),(0,d.jsx)("div",{className:"modalBtns",children:(0,d.jsx)(m.B,{name:k("pdp.edible.image.button.text"),onChange:A,isButton:!0,buttonProps:{title:k("pdp.edible.image.button.text"),testid:"modal-select-image-button",type:"button",customClass:"signInButton buttonPrimary",label:k("pdp.edible.image.button.text")}})}),(0,d.jsxs)("div",{className:"imageUploadDisclaimer",children:[(0,d.jsx)(_,{}),(0,d.jsx)(h.K,{data:E})]})]})}):(f=f||I,(0,d.jsxs)("div",{className:"pdp-upload-image",children:[(0,d.jsx)(m.B,{isError:f,label:T(),subtitle:(a=null==j?void 0:j.fileName)&&""!==a?((null==j?void 0:j.fileSize)&&(a="".concat(a," (").concat(null==j?void 0:j.fileSize," KB)")),a):k("pdp.select.image.subtitle"),onChange:A,name:null!==(i=T())&&void 0!==i?i:"file-upload",ariaLabel:T(),testid:"file-upload",suffixIcon:(0,d.jsx)(v.Z,{...w,id:"chevron"}),prefixIcon:(null==j?void 0:j.url)&&(0,d.jsx)(u.ImageWrap,{className:"pdp-preview-image",src:j.url,width:40,height:40,alt:T(),id:"img_Edible"})}),f&&(0,d.jsxs)("div",{className:"imageUploadDisclaimer error",children:[(0,d.jsx)(_,{}),(0,d.jsx)("p",{className:"informationText",children:k("pdp.edible.image.preview.error.text")})]}),(0,d.jsxs)("div",{className:"imageUploadDisclaimer",children:[(0,d.jsx)(_,{}),(0,d.jsx)("p",{className:"informationText",children:(0,d.jsx)(h.K,{data:E})})]})]}))}},28820:function(e,l,i){i.r(l),i.d(l,{ProductAccordion:function(){return y}});var d=i(27573),o=i(7653),n=i(81695),a=i(98505),s=i(10607),t=i(48057),r=i(4148),c=i(83125),u=i(26450),m=i(66181),v=i(51699),p=i(60329),h=i(15514),x=i(47488);let g=e=>{let{modifierGroup:l,errors:i,customClass:o="",testId:n,onClicked:a,isExpandNeeded:t=!1,isExpand:r,isCombo:u=!1,isSupportQty:m=!1,count:g=0,maxQty:f=0,onClear:C,isTCollapsed:N}=e,{t:w}=(0,v.$G)(),{selectedStore:k}=(0,p.CG)(e=>e.storeSearch),{accordionExpandIcon:y}=h.assets,{id:M,name:D,nameOverride:I,mandatory:S=!1,maxSlt:A,minSlt:T,isCollapsed:_,hideAccordionHeader:E,isChildAccordion:G}=l,O=null!=I?I:D,P=()=>{t?null==a||a():_&&(null==a||a())};return E?null:(0,d.jsxs)("div",{className:(0,s.W)("favoritesDish border-y border-solid border-[var(--color-foreground-border-brighter)]",{[o]:o,accordionExpand:c.aeN,accordionExpandBorder:!r&&t,comboBg:c.aeN,locationSticky:!!(null==k?void 0:k.ngdpId),hideBgColor:G}),"data-testid":null!=n?n:"test_accordion_".concat(M),onClick:P,onKeyDown:e=>{"Enter"===e.key&&P()},role:"button",tabIndex:r?-1:0,"aria-label":O,children:[t&&(0,d.jsx)("div",{className:(0,s.W)("pdpChevronIcon",{"rotate-[90deg]":!r,"rotate-[270deg]":r}),"data-testid":"pdp_chevron_".concat(M),children:(0,d.jsx)(x.Z,{...y,id:"pdp_chevron_icon"})}),_&&(0,d.jsx)("div",{className:(0,s.W)({arrowUp:N,arrowDown:!N}),"data-testid":"txt_accUpArrow_".concat(M),children:(0,d.jsx)(x.Z,{...y})}),(!u||!m)&&(0,d.jsx)("p",{"data-testid":"txt_accordionTitle",className:"pdpTxtaccordionTitle",children:O}),u&&m?(0,d.jsx)(b,{id:M,name:O,count:g,minQty:f,t:w,onClear:C}):(0,d.jsx)(j,{mandatory:S,maxSlt:A,minSlt:T,t:w}),(null==i?void 0:i.some(e=>e===M))&&(0,d.jsx)("div",{className:"favoritesDishError",children:w("pdp.accordion.error.noSelection")})]})},b=e=>{let{id:l,name:i="",count:o=0,minQty:n=0,t:a,onClear:t}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex justify-between",children:[(0,d.jsx)("p",{"data-testid":"txt_accordionTitle",className:(0,s.W)("itgTitle",{lowercase:c.aeN}),children:null==i?void 0:i.split(":")[0]}),(0,d.jsx)("span",{className:(0,s.W)("clearAll",{disabled:0===o}),"data-testid":"clear-modifier",onClick:()=>null==t?void 0:t(l),children:a("pdp.accordion.clearAll")})]}),(0,d.jsx)("p",{className:"pdpAccordionDesc",children:a("pdp.accordion.maxSelect.combo",{count:o,minQty:n})})]})},j=e=>{let{mandatory:l,maxSlt:i,minSlt:o,t:n}=e;return l&&(!i||i&&"1"===i)?(0,d.jsx)("p",{className:"pdpAccordionDesc",children:"".concat(n("pdp.accordion.minselect.one.text")," ").concat(l?n("pdp.accordion.minselect.one.required"):"")}):c.hyX&&"0"===o?(0,d.jsx)("p",{className:"pdpAccordionDesc",children:n("pdp.accordion.maxselect.upto.not.required.text",{maxSelect:i})}):i&&(0,d.jsx)("p",{className:"pdpAccordionDesc",children:n("pdp.accordion.maxselect.upto.text",{maxSelect:i})})};var f=i(51387),C=i(52470),N=i(56384),w=i(58753),k=i(16117);let y=e=>{let{modifierGroup:l,onChecked:i,testId:a,getSelAccData:u,customClass:m="",errors:v=[],initialId:h="",combos:x,isCombo:b=!1,onClear:j,disabledMod:f,isShowChild:C,files:N,tSelItfList:w,customMessage:k,setCustomMessage:y,isProductAvailable:S}=e,A=(0,n.usePathname)(),T=(0,p.CG)(e=>e.pdpData),{id:_,isSizeOption:E,maxSlt:G,isCollapsed:O,maxItmQty:P=0,supportQty:Z=!1,isCardView:B=!1,isColor:L,itmMod:K,mandatory:U=!1}=l,[V,F]=(0,o.useState)(h),[Q,W]=(0,o.useState)(!O),z=null==A?void 0:A.includes("smoothies"),{isAtomicComponent:H}=(0,r.Vb)();(0,o.useEffect)(()=>{var e,l,i,d;(null==v?void 0:v.length)>0&&(null!==(l=null==K?void 0:null===(e=K[0])||void 0===e?void 0:e.itemModifierGroups)&&void 0!==l?l:[]).length>0&&W((null==K?void 0:null===(d=K[0])||void 0===d?void 0:null===(i=d.itemModifierGroups)||void 0===i?void 0:i.some(e=>(null==e?void 0:e.id)===(null==v?void 0:v[0])))||Q)},[v]);let $=null==x?void 0:x.filter(e=>e.itgId===_).reduce((e,l)=>e+l.quantity,0),q=e=>{F(l=>l===e?null:e)},R=e=>{var l,i,d,o;let n=u(e.id),a=n.length?null==n?void 0:n[0]:"",s=e.itmMod.find(e=>a?e.id===a:e.isDefault);return c.aeN?(null==e?void 0:null===(i=e.itmMod)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.id)===(null==n?void 0:n[0]):null!==(o=null!==(d=(null==s?void 0:s.toggleOn)&&s.isAvailable)&&void 0!==d?d:1===e.itmMod.length&&(null==s?void 0:s.id)===a)&&void 0!==o&&o},X=(e,l)=>{var d,o,n,a;let s;let{checked:t}=e.target;s=c.aeN?t?null==l?void 0:null===(o=l.itmMod)||void 0===o?void 0:o[0]:null==l?void 0:null===(n=l.itmMod)||void 0===n?void 0:n[1]:(null==l?void 0:null===(d=l.itmMod)||void 0===d?void 0:d.length)===1?null==l?void 0:l.itmMod[0]:null==l?void 0:null===(a=l.itmMod)||void 0===a?void 0:a.map(e=>{var l;return{...e,toggleOn:null!==(l=null==e?void 0:e.toggleOn)&&void 0!==l&&l}}).find(e=>e.toggleOn===t);let r=!!c.aeN||1!==l.itmMod.length||t;((null==s?void 0:s.isAvailable)||!(null==s?void 0:s.toggleOn))&&(null==i||i(s,l.mandatory,r,l.id,0))},J={modifierGroup:l,errors:l.isEdibleImage||l.isCustomMessage?[]:v,customClass:m,testId:a,onClicked:()=>{q(_),W(!Q)},isExpandNeeded:c.aeN&&z,isExpand:_===V,isCombo:b,isSupportQty:Z,count:$,maxQty:Number(P),onClear:j,isTCollapsed:Q},Y={modifierGroup:l,productData:T,isExpand:_===V,isSmoothies:z,isShowChild:C,isCardView:B,isColor:L,onChecked:i,getSelAccData:u,disabledMod:f,errors:v,files:N,tSelItfList:w,checkToggleOn:R,handleToggleChange:X,isCombo:b,combos:x,onClear:j,customMessage:k,setCustomMessage:y,isProductAvailable:S,isSizeOption:E,getByDisabled:(e,i,d)=>b?void 0!==P&&parseInt(P.toString())<=Number($)&&(null==x?void 0:x.map(e=>e.id===_)[0]):!U&&void 0!==G&&parseInt(G)<=e.length&&!i||d&&(null==l?void 0:l.isAdd),getItemCount:e=>null==x?void 0:x.find(l=>l.itgId===_&&l.id===e),count:$};if(!(null==l?void 0:l.isSkipped)){let e=null;if(l.isToggle)e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(D,{modifierGroup:l,checkToggleOn:R,handleToggleChange:X}),(0,d.jsx)(I,{modifierGroup:l,errors:v,disabledMod:f,getSelAccData:u,onChecked:i,checkToggleOn:R,files:N,isProductAvailable:S})]});else if(H)e=(0,d.jsx)(t.UQ,{className:"accordionContainer accordCollapsed
1stickyNeeded pdpAccordionAtomic",isModifierAccordion:!0,id:_,isExpanded:c.aeN&&z||Q,header:(0,d.jsx)(g,{...J}),testId:a,children:(0,d.jsx)("div",{id:"scroll_".concat(_),children:(0,d.jsx)(M,{...Y})})},_);else{var ee,el;e=(0,d.jsxs)("div",{className:(0,s.Z)("accordionContainer",{accordCollapsed:O,stickyNeeded:!(null==l?void 0:null===(el=l.itmMod)||void 0===el?void 0:null===(ee=el[0])||void 0===ee?void 0:ee.showChildrenOnly)}),children:[(0,d.jsx)(g,{...J}),(0,d.jsx)("div",{id:"scroll_".concat(_),className:(0,s.Z)("accordion-item",{collapsed:!Q,cardView:B}),children:(0,d.jsx)(M,{...Y})})]})}return e}return(0,d.jsx)(I,{modifierGroup:l,errors:v,disabledMod:f,getSelAccData:u,onChecked:i,checkToggleOn:R,combos:x,isCombo:b,onClear:j,files:N,isProductAvailable:S})},M=e=>{var l,i,o;let{modifierGroup:n,productData:a,isExpand:t,isSmoothies:r,isShowChild:m,onChecked:v,getSelAccData:p,disabledMod:h,errors:x,files:g,tSelItfList:b,checkToggleOn:j,handleToggleChange:f,isCombo:C,combos:k,onClear:M,customMessage:T,setCustomMessage:_,isProductAvailable:E,getByDisabled:G,getItemCount:O,count:P}=e,{id:Z,mandatory:B=!1,isSizeOption:L,maxSlt:K,maxItmQty:U=0,supportQty:V=!1,isCardView:F=!1,isColor:Q,isCustomMessage:W,inputPlaceholderText:z,disclaimer:H}=n;return(null==n?void 0:n.isDecoratedDrawer)?(0,d.jsx)(A,{modifierGroup:n,getSelAccData:p,productData:a}):(t||!r||!c.aeN)&&(0,d.jsxs)("div",{className:(0,s.Z)({"lg:px-5":c.aeN,"ml-[12px]":m,cardViewContainer:F,colorModContainer:Q}),id:"scroll_".concat(Z,"_child"),children:[n.isCarouselView&&(0,d.jsx)("div",{className:"carouselCard max-w-[526px]",children:(0,d.jsx)(u.l,{length:null==n?void 0:n.itmMod.length,isCarouselModItem:!0,children:(0,d.jsx)(S,{items:null==n?void 0:n.itmMod,onChecked:(e,l)=>null==v?void 0:v(e,n.mandatory,l,n.id,0),slList:null!==(o=p(null==n?void 0:n.id))&&void 0!==o?o:[],disabledMod:h})})}),null==n?void 0:null===(l=n.itmMod)||void 0===l?void 0:l.map(e=>{var l,i,o,a,t,r;let c=null!==(i=p(null==n?void 0:n.id))&&void 0!==i?i:[],u=null==c?void 0:c.some(l=>l===(null==e?void 0:e.id)),m=null==h?void 0:h.some(l=>l===(null==e?void 0:e.id));return n.isEdibleImage?(0,d.jsx)(w.PdpEdibleImage,{isError:null==x?void 0:x.some(e=>e===(null==n?void 0:n.id)),modifier:e,onFileSelect:l=>{null==v||v(e,n.mandatory,!0,null==n?void 0:n.id,0,l)},files:{...g,url:null!==(t=null!==(a=null==b?void 0:null===(o=b[n.id])||void 0===o?void 0:o.edibleImageURL)&&void 0!==a?a:null==g?void 0:g.url)&&void 0!==t?t:"",fileName:null!==(r=null==g?void 0:g.fileName)&&void 0!==r?r:""}},e.id):(null==e?void 0:e.showChildrenOnly)||n.isCarouselView?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(N.ZP,{inputName:null==e?void 0:e.name,modifier:e,isMandatory:B,isSizeOption:L,onChecked:v,isChecked:u,parentId:n.id,isDisabled:G(c,u,m),testId:"product_list_".concat(e.id),maxQty:Number(U),modCount:P,combos:k,isCombo:C,isSupportQty:V,itfCount:O(null==e?void 0:e.id),getSelAccData:p,files:g,isCardView:F,isColor:Q,isCustomMessage:W,inputPlaceholderText:z,disclaimer:H,customMessage:T,setCustomMessage:_,errors:x,slList:c,maxSlt:K,isProductAvailable:E},e.id),(null==e?void 0:e.isSubAccordion)&&u&&(null==e?void 0:e.itemModifierGroups)&&(null==e?void 0:null===(l=e.itemModifierGroups)||void 0===l?void 0:l.length)>0&&e.itemModifierGroups.map(l=>!l.isHidden&&((null==l?void 0:l.isSkipped)?(0,d.jsx)(I,{modifierGroup:l,errors:x,disabledMod:h,getSelAccData:p,onChecked:v,checkToggleOn:j,isSubAccordion:!0,files:g,isProductAvailable:E},l.id):(0,d.jsx)(y,{getSelAccData:p,disabledMod:h,modifierGroup:l,onChecked:v,customClass:(0,s.Z)("remove-top subAccordion"),errors:x,isShowChild:null==e?void 0:e.showChildrenOnly,tSelItfList:b,files:g,customMessage:T,setCustomMessage:_,isProductAvailable:E},l.id)))]})}),null==n?void 0:null===(i=n.itmMod)||void 0===i?void 0:i.map(e=>{var l;let{isSubAccordion:i=!1,itemModifierGroups:o=[]}=e;return!i&&o.length&&((null===(l=p(n.id))||void 0===l?void 0:l.some(l=>l===e.id))||(null==e?void 0:e.showChildrenOnly))&&!(null==e?void 0:e.isDrawer)?o.map(l=>l.isHidden?null:l.isToggle?(0,d.jsx)("div",{className:"toggleSwitch",children:(0,d.jsx)("div",{className:"favoritesDish",children:(0,d.jsx)(D,{modifierGroup:l,checkToggleOn:j,handleToggleChange:f},l.id)})}):(0,d.jsx)(y,{getSelAccData:p,disabledMod:h,modifierGroup:l,onChecked:v,customClass:(0,s.Z)("remove-top",{subAccordion:null==e?void 0:e.showChildrenOnly}),errors:x,isShowChild:null==e?void 0:e.showChildrenOnly,isCombo:C,combos:k,onClear:M,tSelItfList:b,files:g,customMessage:T,setCustomMessage:_,isProductAvailable:E},l.id)):null})]})},D=e=>{let{modifierGroup:l,checkToggleOn:i,handleToggleChange:o}=e;return(0,d.jsxs)("div",{className:"toggleCtrl",children:[(0,d.jsx)("p",{"data-testid":"tid_acc_name",className:"toggleCtrlHeading flex-grow",children:(null==l?void 0:l.nameOverride)?null==l?void 0:l.nameOverride:null==l?void 0:l.name}),(0,d.jsx)(C.S,{inputType:"checkbox",value:null==l?void 0:l.id,inputName:null==l?void 0:l.name,customClass:"checkBoxToggleContainer",isChecked:i(l),testId:"tid_toggle",onChecked:e=>{o(e,l)}})]},l.id)},I=e=>{var l;let{modifierGroup:i,disabledMod:o,errors:n,onChecked:a,checkToggleOn:t,getSelAccData:r,isSubAccordion:c=!1,combos:u,isCombo:m,onClear:v,files:p,tSelItfList:h,customMessage:x,setCustomMessage:g,isProductAvailable:b}=e;return null==i?void 0:null===(l=i.itmMod)||void 0===l?void 0:l.map(e=>{let{itemModifierGroups:l=[]}=e;return l.length&&((null==i?void 0:i.isToggle)&&t(i)||!(null==i?void 0:i.isToggle))?l.map(l=>(0,d.jsx)(y,{getSelAccData:r,disabledMod:o,modifierGroup:l,onChecked:a,customClass:(0,s.Z)("remove-top",{subAccordion:(null==e?void 0:e.showChildrenOnly)||c}),errors:n,isShowChild:null==e?void 0:e.showChildrenOnly,combos:u,isCombo:m,onClear:v,tSelItfList:h,files:p,customMessage:x,setCustomMessage:g,isProductAvailable:b},l.id)):null})},S=e=>{let{items:l,slList:i,disabledMod:o,onChecked:n}=e,{t}=(0,a.$G)();return l.map(e=>{var l,a,r,c,u,v;let p=null==i?void 0:i.some(l=>l===(null==e?void 0:e.id)),h=null==o?void 0:o.some(l=>l===(null==e?void 0:e.id)),x=!(null==e?void 0:e.isAvailable)||h;return(0,d.jsxs)("div",{"aria-checked":p,"data-testid":"product_list_".concat(e.id),role:"radio",className:(0,s.Z)("pdpCarouselCard",{unAvailable:x,selectedItem:p}),onClick:()=>{n(e,!p)},onKeyDown:l=>{"Enter"===l.key&&n(e,!p)},tabIndex:0,children:[p&&(0,d.jsx)("div",{className:"selectedProductIcon",children:(0,d.jsx)(f.Z,{width:24,height:24})}),x&&(0,d.jsx)("span",{className:"notAvailable",children:t("component.itemModifier.unavailable.text")}),(0,d.jsx)("div",{className:"thumbImage",children:(null==e?void 0:null===(a=e.images)||void 0===a?void 0:null===(l=a[
10])||void 0===l?void 0:l.url)!==""&&(0,d.jsx)(m.ImageWrap,{src:null!==(u=null==e?void 0:null===(c=e.images)||void 0===c?void 0:null===(r=c[0])||void 0===r?void 0:r.url)&&void 0!==u?u:"",alt:null!==(v=e.name)&&void 0!==v?v:"",className:"object-contain",width:64,height:64,ariaHidden:!0})}),(0,d.jsx)("div",{className:"shape-title",children:e.nameOverride||e.name},e.id)]},e.id)})},A=e=>{var l;let{modifierGroup:i,getSelAccData:o,productData:n}=e,a=(0,p.TL)(),s=e=>{let l={isSideDrawerOpen:!0,sideModifier:{},sideModifierGroup:[{...e,isDecoratedDrawer:!1}],selectedSideGroups:{}};a((0,k.f2)(l))},t=(e,l)=>{"Enter"===e.key&&s(l)},r=null!==(l=null==o?void 0:o(null==i?void 0:i.id).map(e=>{var l;let i=null==n?void 0:null===(l=n.itemModifiers)||void 0===l?void 0:l[e];return"".concat((null==i?void 0:i.nameOverride)||(null==i?void 0:i.name)).concat(Number(null==i?void 0:i.cost)>0?"($".concat(null==i?void 0:i.cost,")"):"")}).join(", "))&&void 0!==l&&l;return(0,d.jsx)("div",{className:"decorateDrawerItem",children:(0,d.jsxs)("div",{onClick:()=>s(i),className:"decorateDrawerItemContainer","data-testid":"decorateDrawer",role:"button",tabIndex:0,onKeyDown:e=>t(e,i),children:[(0,d.jsxs)("div",{className:"itemModifierUnavailableBadge drawerTitle",children:[(0,d.jsx)("span",{className:"flex",children:null==i?void 0:i.drawerName}),r&&(0,d.jsx)("p",{children:r})]}),(0,d.jsx)("div",{className:"drawerIcon",children:(0,d.jsx)(x.Z,{width:20,height:20})})]})})}}}]);
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.