1import{r as a,A as t,_ as y}from"./index.271cdd0c.1790922222641.js";import{u as g,r as j}from"./agentation.32c3b336.1790922222641.js";import T from"./breadcrumbs.528a02ac.1790922222641.js";import{M}from"./modal-select.3bd76626.1790922222641.js";import{l as m}from"./index-layout-lite.8bfcdaaa.1790922222641.js";import"./no-records.1dfc8935.1790922222641.js";import"./user-slice.8be5ec65.1790922222641.js";import"./usePreloadTheme.a0147194.1790922222641.js";import"./staticContentModules.c9d6e779.1790922222641.js";import"./luckyWheelModules.c331aa7e.1790922222641.js";import"./ms-hook.99a4fc8d.1790922222641.js";const f="_instantRebateContainer_r3gro_1",v="_breadcrumbs_r3gro_12",k="_typeContainer_r3gro_15",E="_typeContainerLoading_r3gro_18",L="_typeBox_r3gro_21",N="_label_r3gro_24",S="_notMandatory_r3gro_33",B="_arrowIcon_r3gro_46",n={instantRebateContainer:f,breadcrumbs:v,typeContainer:k,typeContainerLoading:E,typeBox:L,label:N,notMandatory:S,arrowIcon:B},O=m(()=>y(()=>import("./rebate-tab.7b9a9a46.1790922222641.js"),["assets/10.10.2/rebate-tab.7b9a9a46.1790922222641.js","assets/10.10.2/index.271cdd0c.1790922222641.js","assets/10.10.2/user-slice.8be5ec65.1790922222641.js","assets/10.10.2/usePreloadTheme.a0147194.1790922222641.js","assets/10.10.2/agentation.32c3b336.1790922222641.js","assets/10.10.2/agentation.06ce37f5.1790922222641.css","assets/10.10.2/staticContentModules.c9d6e779.1790922222641.js","assets/10.10.2/rebate-details-modal.12a87c61.1790922222641.js","assets/10.10.2/index-layout-lite.8bfcdaaa.1790922222641.js","assets/10.10.2/luckyWheelModules.c331aa7e.1790922222641.js","assets/10.10.2/ms-hook.99a4fc8d.1790922222641.js","assets/10.10.2/index-layout-lite.62f46006.1790922222641.css","assets/10.10.2/rebate-details-modal.0ad82454.1790922222641.css","assets/10.10.2/rebate-tab.fa010784.1790922222641.css"])),w=m(()=>y(()=>import("./history-tab.77ad7538.1790922222641.js"),["assets/10.10.2/history-tab.77ad7538.1790922222641.js","assets/10.10.2/index.271cdd0c.1790922222641.js","assets/10.10.2/dateInput.3fd6b51b.1790922222641.js","assets/10.10.2/react-datepicker.min.49e8ca04.1790922222641.js","assets/10.10.2/index.c00ff59b.1790922222641.js","assets/10.10.2/warning.883c7a3c.1790922222641.js","assets/10.10.2/dateInput.ac5c39fd.1790922222641.css","assets/10.10.2/rebate-details-modal.12a87c61.1790922222641.js","assets/10.10.2/index-layout-lite.8bfcdaaa.1790922222641.js","assets/10.10.2/agentation.32c3b336.1790922222641.js","assets/10.10.2/agentation.06ce37f5.1790922222641.css","assets/10.10.2/user-slice.8be5ec65.1790922222641.js","assets/10.10.2/usePreloadTheme.a0147194.1790922222641.js","assets/10.10.2/staticContentModules.c9d6e779.1790922222641.js","assets/10.10.2/luckyWheelModules.c331aa7e.1790922222641.js","assets/10.10.2/ms-hook.99a4fc8d.1790922222641.js","assets/10.10.2/index-layout-lite.62f46006.1790922222641.css","assets/10.10.2/rebate-details-modal.0ad82454.1790922222641.css","assets/10.10.2/history-tab.0ebd2133.1790922222641.css"])),d=[{id:"rebate",text:"Rebate",translation:"liteInstantRebate:rebate"},{id:"history",text:"History",translation:"liteInstantRebate:history"}],A=d.reduce((e,s)=>(e[s.id]=s,e),{}),U=()=>{const{t:e}=g(["liteInstantRebate"]),s=j.useHistory(),[b,r]=a.useState(!1),[o,_]=a.useState("rebate"),[p,u]=a.useState({rebate:!0,history:!1}),i=A[o]||d[0],x=a.useCallback(()=>r(!0),[]),h=a.useCallback(()=>r(!1),[]),R=a.useCallback(()=>s.push("/myaccount/funds"),[s]),C=a.useCallback(l=>{_(l),u(c=>c[l]?c:{...c,[l]:!0}),r(!1)},[]),I=a.useMemo(()=>e(i.translation,i.text),[e,i]);return t.jsxs("div",{className:n.instantRebateContainer,children:[t.jsx("div",{className:n.breadcrumbs,children:t.jsx(T,{title:e("liteInstantRebate:instantRebate","Instant Rebate"),backAction:R})}),b&&t.jsx(M,{header:e("liteInstantRebate:instantRebate","Instant Rebate"),optionList:d,handleClose:h,handleSelect:C,currentSelection:o}),t.jsxs("div",{className:n.typeContainer,children:[t.jsx("div",{className:n.label,children:e("liteInstantRebate:instantRebate","Instant Rebate")}),t.jsxs("div",{type:"button",className:n.typeBox,onClick:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":"instant-rebate-type-modal",children:[t.jsx("p",{children:I}),t.jsx("div",{className:n.arrowIcon,children:t.jsx("img",{className:n.arrow,src:"/public/html/images/sp2lite/nav/arrow.png",alt:"","aria-hidden":"true",loading:"lazy"})})]})]}),p.rebate&&t.jsx("div",{style:{display:o==="rebate"?"block":"none"},children:t.jsx(O,{})}),p.history&&t.jsx("div",{style:{display:o==="history"?"block":"none"},children:t.jsx(w,{})})]})};export{U as default};
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.