1import{j as e,S as s,b as r,f8 as O,eV as C,a8 as d,H as m,N as _}from"./index-D2pVWNo8.js";import{C as c}from"./CollapsiblePaper-D3KzEJPt.js";import{I as R}from"./ImageInput-CyaUxweU.js";import{s as t,r as a}from"./render.helpers-CqRg2XRn.js";import{C as T}from"./CustomForm-B_DQ6hcu.js";import{N as P}from"./NavigationBlocker-BpNVr0Pc.js";import{u as E}from"./useUpsertGenericContentForm-3WVCAKH_.js";import"./Collapse-D1vSAaOt.js";import"./MediaInput-DYRkpufb.js";import"./FormRichTextEditor-BaM2I0Vw.js";import"./constants-Cq48t_O8.js";import"./RichTextRenderer-C_MCMQXG.js";import"./media-access-DGHLQjrd.js";import"./ColorSwatch-Bb0gL5h8.js";import"./get-step-mark-value-D3XXqq51.js";import"./Popover-B3DPWNCb.js";import"./use-disclosure-Cpk6v7Jm.js";import"./SimpleGrid-DQBIvcjX.js";import"./CheckIcon-STbNQK7O.js";import"./createLucideIcon-BJmNqLzy.js";import"./external-video-DN2CqO3-.js";import"./ConfirmModal-CHqWwgw1.js";import"./hooks-D9YDiGHe.js";import"./media-upload.validators-GLCyi12p.js";import"./utils-D4H-MND-.js";import"./use-form-08wcBWcU.js";function N({form:n}){const{getMediaItemFromCategory:l}=n,i=l("WORKSHOP_COURSE_CERTIFICATE_BACKGROUND");return e.jsxs(s,{className:t.formContainer,children:[e.jsx(c,{title:e.jsx(r,{order:2,className:t.paperSectionTitle,children:"Contenu Pédagogique"}),className:t.paperSection,stackProps:{className:t.paperSectionContent},children:e.jsxs(s,{className:t.paperSectionContent,children:[e.jsxs(s,{className:t.nestedPaperSection,children:[e.jsx(r,{order:3,className:t.nestedPaperSectionTitle,children:"Première page"}),a(n,"Titre","WORKSHOP_COURSE_FIRST_PAGE_TITLE"),a(n,"Contenu","WORKSHOP_COURSE_FIRST_PAGE_CONTENT")]}),e.jsxs(s,{className:t.nestedPaperSection,children:[e.jsx(r,{order:3,className:t.nestedPaperSectionTitle,children:"Dernière page"}),a(n,"Titre","WORKSHOP_COURSE_LAST_PAGE_TITLE"),a(n,"Contenu","WORKSHOP_COURSE_LAST_PAGE_CONTENT")]})]})}),e.jsx(c,{title:e.jsx(r,{order:2,className:t.paperSectionTitle,children:"Page de vente"}),className:t.paperSection,stackProps:{className:t.paperSectionContent},children:e.jsxs(s,{className:t.paperSectionContent,children:[a(n,"Formule Participant actif (phrase courte)","WORKSHOP_COURSE_ACTIVE_PARTICIPANT_PACK_SUMMARY"),a(n,"Formule Auditeur libre (phrase courte)","WORKSHOP_COURSE_AUDITOR_PACK_SUMMARY"),a(n,"Durée","WORKSHOP_COURSE_DURATION"),a(n,"Modalités d'organisation","WORKSHOP_COURSE_ORGANIZATION"),a(n,"Méthodes mobilisées","WORKSHOP_COURSE_METHODOLOGY"),a(n,"Modalités de suivi et d'évaluation","WORKSHOP_COURSE_ASSESSMENT"),a(n,"Délai d'accès","WORKSHOP_COURSE_ACCESS_DELAY")]})}),e.jsx(c,{title:e.jsx(r,{order:2,className:t.paperSectionTitle,children:"Forum"}),className:t.paperSection,stackProps:{className:t.paperSectionContent},children:e.jsxs(s,{className:t.paperSectionContent,children:[a(n,"Bullet points - général","WORKSHOP_COURSE_FORUM_GENERAL"),a(n,"Bullet points - Participants actifs","WORKSHOP_COURSE_FORUM_ACTIVE_PARTICIPANTS"),e.jsxs(s,{className:t.nestedPaperSection,children:[e.jsx(r,{order:3,className:t.nestedPaperSectionTitle,children:"Post Général - à lire avant de commencer"}),a(n,"Titre","WORKSHOP_COURSE_FORUM_POST_GENERAL_TITLE"),a(n,"Contenu","WORKSHOP_COURSE_FORUM_POST_GENERAL_CONTENT")]}),e.jsxs(s,{className:t.nestedPaperSection,children:[e.jsx(r,{order:3,className:t.nestedPaperSectionTitle,children:"Post Participants Actifs - à lire avant de commencer"}),a(n,"Titre","WORKSHOP_COURSE_FORUM_POST_ACTIVE_PARTICIPANTS_TITLE"),a(n,"Contenu","WORKSHOP_COURSE_FORUM_POST_ACTIVE_PARTICIPANTS_CONTENT")]})]})}),e.jsx(c,{title:e.jsx(r,{order:2,className:t.paperSectionTitle,children:"Certificat"}),className:t.paperSection,stackProps:{className:t.paperSectionContent},children:e.jsxs(s,{className:t.paperSectionContent,children:[e.jsx(R,{label:"Image de fond",value:i.newMediaFile,onChange:i.onChange,defaultSrc:i.mediaUrl,size:"100%",alt:"Certificat",clearable:!0,cleared:i.mediaCleared,onClear:i.onClear}),a(n,"Titre","WORKSHOP_COURSE_CERTIFICATE_TITLE")]})})]})}function z(){const{genericContent:n}=O({from:C.id}),{upsertManyGenericContent:l}=d(),i=m(l(()=>{_.show({title:"Contenu enregistré",message:"Les modifications ont été enregistrées avec succès",color:"green"})})),p=E({variant:"workshops",genericContent:n,onSubmit:S=>{i.mutate(S.items.map(o=>({contentCategory:o.contentCategory,contentType:o.contentType,contentHtml:o.contentHtml,file:o.newMediaFile??void 0,mediaCleared:o.mediaCleared})))},isPending:i.isPending});return e.jsxs(e.Fragment,{children:[e.jsx(P,{form:p}),e.jsx(T,{form:p,children:e.jsx(N,{form:p})})]})}export{z as component};
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.