1import{r as i,j as e,b as h,p as j,a as m}from"./main-NFUceKCT.js";import{C as v}from"./clientMenu-hqw8O3K3.js";import{V as M}from"./voucherSelector-DszDrC6I.js";import{M as f}from"./modal-CZFt-Ugd.js";import"./vendor-B8yqMBYu.js";import"./checkBox-De0Bc03d.js";import"./image-Br-QfdGt.js";import"./modalRaw-C0QfJiQN.js";import"./customHooks-BF6osNvw.js";const u=i.createContext(null),b=({initialState:o,children:t})=>{const[n]=i.useState(o?.vouchers??[]),[l]=i.useState(o?.customerId??0),c=i.useCallback(async(d,x)=>{const p=h.graVoucher(d,x,j.mesActivites(!0));typeof window<"u"&&(window.location.href=p)},[]),a={vouchers:n,customerId:l,onSubmit:c};return e.jsx(u.Provider,{value:a,children:t})};function w(){const o=i.useContext(u);if(!o)throw new Error("useSouscriptionGRA must be used within a SouscriptionGRAProvider");return o}const r=m("souscriptionGRAForm"),k=o=>e.jsx(f,{isOpenHook:o.isOpenHook,title:r("knowMoreModalTitle"),children:e.jsxs("div",{className:"know-more-gra-content",children:[e.jsx("p",{children:e.jsx("b",{children:r("knowMoreModalSubtitle")})}),e.jsx("p",{children:r("knowMoreModalListTitle")}),e.jsxs("ul",{children:[e.jsx("li",{children:r("knowMoreModalListItem1")}),e.jsx("li",{children:r("knowMoreModalListItem2")}),e.jsx("li",{children:r("knowMoreModalListItem3")}),e.jsx("li",{children:r("knowMoreModalListItem4")})]})]})}),s=m("souscriptionGRAForm"),N=()=>{const{vouchers:o,customerId:t,onSubmit:n}=w(),[l,c]=i.useState(!1),a=[l,c],d=()=>{c(!0)};return e.jsxs(i.Fragment,{children:[e.jsxs("div",{className:"garantie-alert",children:[e.jsx("div",{className:"garantie-alert-ico",children:"â "}),e.jsxs("div",{className:"garantie-alert-txt",children:[e.jsx("strong",{children:s("alertTitle")}),` ${s("alertText")}`]})]}),e.jsxs("div",{className:"description",children:[e.jsxs("p",{children:[`${s("descriptionPageText1")} `,e.jsx("a",{href:"#",onClick:d,children:s("knowMoreLinkText")})]}),e.jsx("p",{children:s("descriptionPageText2")})]}),e.jsxs("div",{className:"gra-benefits",children:[e.jsx("span",{className:"g-benefit-chip",children:s("benefitReport")}),e.jsx("span",{className:"g-benefit-chip",children:s("benefitCancel")}),e.jsx("span",{className:"g-benefit-chip",children:s("benefitTransfer")})]}),e.jsx(M,{modalErrortext:s("modalErrorText"),selectAllText:s("selectAllText"),submitButtonText:s("subscribeButtonText"),bonNumberText:s("bonNumberText"),vouchers:o,onSubmit:n,customerId:t}),e.jsx(k,{isOpenHook:a})]})},O=({store:o={}})=>{const t=o.souscriptionGRAForm,n=t?{vouchers:t.vouchers,customerId:t.customerId}:void 0;return e.jsx(b,{initialState:n,children:e.jsx("div",{className:"mon-compte-content",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"grid",children:[e.jsx("div",{className:"col-3 col-sm-12 col-md-12",children:e.jsx(v,{active:"Activities"})}),e.jsxs("div",{className:"col-9 col-sm-12 col-md-12",children:[e.jsx("h1",{className:"h2",children:"Garantie Report Annulation"}),e.jsx(N,{})]})]})})})})};export{O 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.