1import{r as $,j as e}from"./vendor-react-Caf6nGZS.js";import{f as z,m as U,e as te,c as V,q as O}from"./message-utils-BQ_up39G.js";import{u as me,t as pe}from"./index-CEbyZKln.js";import{u as xe}from"./use-load-manager-schools-list-i2qvTk02.js";import{F as f,B as ie,aI as X,S as be,ac as se,aJ as je,a3 as fe,aK as ve,z as Le}from"./vendor-icons-CPDSsqVu.js";import{T as N}from"./toast-Ci2RJ7Uh.js";import{T as r}from"./translator-SQ4T_ypS.js";import{c as Q,h as J,g as we,a as A,e as ke,u as ye,o as Re}from"./vendor-forms-CJIvkx3-.js";import"./index-LkN4aDLv.js";import{u as Me}from"./index-Dxl3OzKf.js";import{e as G,E as Se,J as Ee,K as Te,ak as Ae,a as B,W as _e,V as L,f as k,g as y,H as M,T as R,I as q,p as S,aa as W,F as C,a0 as re,t as Ce,O as E,P as _,am as Ie,z as ne,M as Ne,h as ze,j as Ue,l as H,B as qe,v as $e,w as Y,x as Z,i as ee,S as Oe,D as Be}from"./vendor-chakra-vTj1AOQN.js";import"./vendor-live-BnuEDD1a.js";import"./vendor-i18n-DjMpJ670.js";import"./preload-helper-I4rgV-VL.js";class Fe{constructor(t,i){this.url=t,this.httpClient=i}url;httpClient;async load(t){const i=await this.httpClient.request({url:`${this.url}/api/v1/system`,method:"GET",params:{school:t.schoolId||""}}),n=i.body||{};switch(i.status){case 200:return n;case 401:throw new Error("Unauthorized");case 404:throw new Error("Not found");default:throw new Error("Unhandled error")}}}class He{constructor(t,i){this.url=t,this.httpClient=i}url;httpClient;async add(t){const i=()=>t.mode==="CREATE"?`${this.url}/api/v1/system/${t.type.toLocaleLowerCase()}`:`${this.url}/api/v1/system/${t.type.toLocaleLowerCase()}/update/${t.id}`,n=await this.httpClient.request({url:i(),method:"POST",headers:{"Content-Type":t.type==="PARTNERS"?"multipart/form-data":"application/json"},body:{titulo:t.title,link:t.url,visible_to:t.visibility,has_child:t.children&&t.children.length>0,children:t.children,escola_id:t.schoolId,imagem:t.image}}),c=n.body||{};switch(n.status){case 200:return c;case 201:return c;case 401:throw new Error("Unauthorized");case 404:throw new Error("Not found");case 422:throw new Error("Unprocessable Entity");default:throw new Error("Unhandled error")}}}class Pe{constructor(t,i){this.url=t,this.httpClient=i}url;httpClient;async remove(t){switch((await this.httpClient.request({url:`${this.url}/api/v1/system/${t.type.toLocaleLowerCase()}/${t.id}`,method:"DELETE"})).status){case 204:return;case 401:throw new Error("Unauthorized");case 404:throw new Error("Not found");case 422:throw new Error("Unprocessable Entity");default:throw new Error("Unhandled error")}}}class De{constructor(t,i){this.url=t,this.httpClient=i}url;httpClient;async show({id:t,type:i}){const n=await this.httpClient.request({url:`${this.url}/api/v1/system/${i.toLocaleLowerCase()}/show/${t}`,method:"GET"}),c=n.body||{};switch(n.status){case 200:return c;case 401:throw new Error("Unauthorized");case 404:throw new Error("Not found");default:throw new Error("Unhandled error")}}}class We{constructor(t,i){this.url=t,this.httpClient=i}url;httpClient;async toggle({schoolId:t,replication:i}){switch((await this.httpClient.request({url:`${this.url}/api/v1/system/enable-mirror/${t}`,method:"PATCH",body:{mirror_institution_links:i}})).status){case 200:return!0;case 401:throw new Error("Unauthorized");case 404:throw new Error("Not found");default:throw new Error("Unhandled error")}}}const Ve=()=>new Fe(z(),U()),Ge=()=>new He(z(),U()),Ke=()=>new Pe(z(),U()),Xe=()=>new De(z(),U()),Qe=()=>new We(z(),U());function Je({schoolId:s}){return Ve().load({schoolId:s})}function Ye({schoolId:s}){return te({queryKey:["loadManagerLinks",s],queryFn:()=>Je({schoolId:s}),refetchOnWindowFocus:!1,refetchOnMount:!1})}function Ze({mode:s,id:t,schoolId:i,type:n,title:c,url:u,visibility:h,hasChildren:j,children:g,image:p}){return Ge().add({mode:s,id:t,schoolId:i,type:n,title:c,url:u,visibility:h,hasChildren:j,children:g,image:p})}function et(){return V({mutationFn:Ze,onSuccess:()=>{O.invalidateQueries({queryKey:["loadManagerLinks"]})}})}function tt({id:s,type:t}){return Ke().remove({id:s,type:t})}function it(){return V({mutationFn:tt,onSuccess:()=>{O.invalidateQueries({queryKey:["loadManagerLinks"]})}})}function ae({id:s,type:t}){return Xe().show({id:s,type:t})}async function st({id:s,type:t}){await O.prefetchQuery({queryKey:["showManagerLink",s],queryFn:()=>ae({id:s,type:t})})}function rt({id:s,type:t}){return te({queryKey:["showManagerLink",s],queryFn:()=>ae({id:s,type:t}),enabled:!!s})}function nt({schoolId:s,replication:t}){return Qe().toggle({schoolId:s,replication:t})}function at(){return V({mutationFn:nt,onSuccess:()=>{O.invalidateQueries({queryKey:["loadManagerSchoolsList"]})}})}
1const P={LINKS:{TITLE_MAX_LENGTH:170,CHILDREN:{TITLE_MAX_LENGTH:40},URL_MAX_LENGTH:255}};function ot(){const s={required:r({path:"commons.validations.required"})};return{validations:Q().shape({type:J().oneOf(["NAVBAR","MENU","PARTNERS"]).required(),hasChildren:ke().required(),access_group:A().required(),title:A().max(P.LINKS.TITLE_MAX_LENGTH).required(s.required),url:A().when("children",(i,n)=>{const c=i;return!c||c.length===0?n.required(s.required):n}),visibility:A().matches(/all|admin|students|visitors/).required(s.required),children:we().of(Q().shape({title:A().max(P.LINKS.CHILDREN.TITLE_MAX_LENGTH).required(s.required),url:A().max(P.LINKS.URL_MAX_LENGTH).required(s.required).url(s.required)})),image:J().when(["type","image_preview"],(i,n)=>{const[c,u]=i;return c==="PARTNERS"&&!u?n.required(s.required):n})})}}const lt=91,ct=101;function oe({isOpen:s,onClose:t,id:i,type:n,schoolId:c,mode:u="CREATE",getUsedCharacters:h,getTypeLimit:j}){const g=G(),{mutateAsync:p,isPending:b}=et(),{data:m}=rt({id:i,type:n}),{register:l,setValue:o,handleSubmit:v,reset:F,watch:w,formState:{errors:d}}=ye({defaultValues:{type:n,id:m?.id||void 0,title:m?.title||"",url:m?.url||"",visibility:m?.visible_to||"all",hasChildren:!!m?.children?.length,access_group:"all",children:m?.children||[],image:void 0,image_preview:m?.imagem||void 0},resolver:Re(ot().validations)}),K=w("image_preview"),le=$.useCallback(T=>{o("image",T[0]),o("image_preview",URL.createObjectURL(T[0]))},[o]),{getRootProps:ce,getInputProps:de}=Me({accept:{"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"]},maxFiles:1,onDrop:le}),I=w("children"),a={title:r({path:"pages.Links_Manager.title"}),actions:{create:r({path:"commons.actions.create"}),edit:r({path:"commons.actions.edit"}),remove:r({path:"commons.actions.remove"}),cancel:r({path:"commons.actions.cancel"}),save:r({path:"commons.actions.save"})},label:{title:r({path:"pages.Links_Manager.label.title"}),url:r({path:"pages.Links_Manager.label.url"}),"show-to":r({path:"pages.Links_Manager.label.show-to"}),children:r({path:"pages.Links_Manager.label.children"}),"access-group":r({path:"pages.Links_Manager.label.access-group"})},commons:{messages:{success:{update:r({path:"commons.messages.success.update"}),create:r({path:"commons.messages.success.create"}),delete:r({path:"commons.messages.success.delete"})},error:{update:r({path:"commons.messages.error.update"}),create:r({path:"commons.messages.error.create"}),delete:r({path:"commons.messages.error.delete"})}}},upload:{drop:r({path:"components.upload.dropFile"}),"recommended-ratio":r({path:"components.upload.recommended-ratio"}),image:r({path:"components.upload.image"})},visibility:{students:r({path:"pages.Links_Manager.item-visibility.students"}),visitors:r({path:"pages.Links_Manager.item-visibility.visitors"}),admin:r({path:"pages.Links_Manager.item-visibility.admin"}),all:r({path:"pages.Links_Manager.item-visibility.all"})}},he=v(async T=>{try{const x={...T,hasChildren:!!T.children?.length,mode:u,schoolId:c,type:n};await p(x),F(),t(),g({position:"bottom-right",render:()=>e.jsx(N,{type:"SUCCESS",title:a.title,message:u==="UPDATE"?a.commons.messages.success.update:a.commons.messages.success.create})})}catch{g({position:"bottom-right",render:()=>e.jsx(N,{type:"ERROR",title:a.title,message:u==="UPDATE"?a.commons.messages.error.update:a.commons.messages.error.create})})}});return e.jsxs(Se,{scrollBehavior:"inside",isCentered:!0,isOpen:s,onClose:t,children:[e.jsx(Ee,{}),e.jsxs(Te,{as:"form",onSubmit:he,children:[e.jsx(Ae,{children:e.jsx(B,{size:"sm",children:u==="UPDATE"?a.actions.edit:a.actions.create})}),e.jsx(_e,{css:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{width:"6px"},"&::-webkit-scrollbar-thumb":{background:"var(--primary-color)",borderRadius:"999px"}},children:e.jsxs(L,{align:"left",spacing:4,children:[e.jsxs(k,{isInvalid:!!d.title,children:[e.jsx(y,{fontSize:"sm",children:e.jsxs(M,{alignItems:"flex-start",children:[e.jsx(R,{fontWeight:700,children:a.label.title}),e.jsx(R,{as:"span",color:"gray.400",fontSize:"sm",children:`(${w("title").length}/${(m?.title?.length||0)+(j()-h())})`})]})}),e.jsx(q,{...l("title"),size:"sm",maxLength:u==="CREATE"?j()-h():j()-h()+(m?.title?.length||0)}),d.title&&e.jsx(S,{fontSize:"xs",children:d.title.message})]}),e.jsxs(k,{isInvalid:!!d.url,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:a.label.url}),e.jsx(q,{...l("url"),size:"sm"}),d.url&&e.jsx(S,{fontSize:"xs",children:d.url.message})]}),n==="NAVBAR"&&e.jsxs(k,{isInvalid:!!d.visibility,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:a.label["show-to"]}),e.jsxs(W,{...l("visibility"),background:"white",size:"sm",children:[e.jsx("option",{value:"all",children:a.visibility.all}),e.jsx("option",{value:"students",children:a.visibility.students}),e.jsx("option",{value:"visitors",children:a.visibility.visitors})]}),d.visibility&&e.jsx(S,{fontSize:"xs",children:d.visibility.message})]}),n==="MENU"&&e.jsxs(k,{isInvalid:!!d.visibility,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:a.label["access-group"]}),e.jsxs(W,{...l("visibility"),background:"white",size:"sm",children:[e.jsx("option",{value:"students",children:a.visibility.students}),e.jsx("option",{value:"admin",children:a.visibility.admin})]}),d.visibility&&e.jsx(S,{fontSize:"xs",children:d.visibility.message})]}),n==="PARTNERS"&&e.jsxs(k,{isInvalid:!!d.image,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:a.upload.image}),e.jsxs(L,{align:"left",children:[e.jsxs(C,{flexDirection:"column",align:"center",justify:"center",gap:2,width:"100%",minHeight:"100px",borderWidth:"2px",borderStyle:"dashed",borderColor:d.image?"red.500":"blackAlpha.200",borderRadius:"lg",color:d.image?"red.500":"blackAlpha.400",cursor:"pointer",...ce(),children:[e.jsx("input",{...de()}),e.jsx(f,{icon:ie,fontSize:"1.5rem"}),e.jsx(R,{as:"span",fontSize:"xs",color:"blackAlpha.600",children:a.upload.drop}),e.jsx(R,{as:"span",fontSize:"xs",color:"blackAlpha.600",children:`${a.upload["recommended-ratio"]}: ${lt}px ${ct}px`})]}),w("image_preview")&&e.jsxs(C,{align:"center",children:[e.jsx(re,{isLoaded:!!K,children:e.jsx(Ce,{src:K,alt:w("title"),boxSize:"65px",objectFit:"cover",borderRadius:"lg"})}),e.jsx(E,{hasArrow:!0,label:a.actions.remove,children:e.jsx(_,{"aria-label":a.actions.remove,icon:e.jsx(f,{icon:X}),size:"sm",variant:"unstyled",colorScheme:"red",onClick:()=>{o("image",void 0),o("image_preview",void 0)}})})]})]}),d.image&&e.jsx(S,{fontSize:"xs",children:d.image.message})]}),n==="NAVBAR"&&e.jsx(R,{as:"span",fontWeight:700,fontSize:"sm",children:a.label.children}),n==="NAVBAR"&&I?.map((T,x)=>e.jsxs(L,{border:"1px dotted rgba(0, 0, 0, 0.2)",borderRadius:"lg",align:"left",padding:4,spacing:4,position:"relative",children:[e.jsx(E,{hasArrow:!0,label:`${a.actions.remove} ${a.label.children.toLocaleLowerCase()}`,children:e.jsx(_,{position:"absolute",size:"xs",top:"-1px",right:"-1px",colorScheme:"red","aria-label":a.actions.remove,icon:e.jsx(f,{icon:be}),onClick:()=>{const ue=I.filter((ht,ge)=>ge!==x);o("children",ue)},borderRadius:"0",borderBottomLeftRadius:"lg",borderTopRightRadius:"lg"})}),e.jsxs(k,{isInvalid:!!d.children?.[x]?.title,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:`${a.label.title} ${x+1}`}),e.jsx(q,{size:"sm",...l(`children.${x}.title`)}),d.children?.[x]?.title&&e.jsx(S,{fontSize:"xs",children:d.children?.[x]?.title.message})]}),e.jsxs(k,{isInvalid:!!d.children?.[x]?.url,children:[e.jsx(y,{fontWeight:700,fontSize:"sm",children:`${a.label.url} ${x+1}`}),e.jsx(q,{size:"sm",...l(`children.${x}.url`)}),d.children?.[x]?.url&&e.jsx(S,{fontSize:"xs",children:d.children?.[x]?.url.message})]})]},x)),I&&I.length<10&&n==="NAVBAR"&&e.jsx(C,{width:"100%",align:"center",justify:"center",children:e.jsx(E,{hasArrow:!0,label:`${a.actions.create} ${a.label.children.toLocaleLowerCase()}`,children:e.jsx(_,{"aria-label":a.actions.create,size:"sm",icon:e.jsx(f,{icon:se}),borderRadius:"full",color:"white",backgroundColor:"green.500",_hover:{backgroundColor:"green.600"},onClick:()=>o("children",[...I,{title:"",url:""}])})})})]})}),e.jsx(Ie,{children:e.jsxs(M,{spacing:2,align:"center",justify:"flex-end",children:[e.jsx(E,{hasArrow:!0,label:a.actions.cancel,children:e.jsx(_,{"aria-label":a.actions.cancel,icon:e.jsx(f,{icon:X}),borderRadius:"full",colorScheme:"gray",_active:{backgroundColor:"gray.300"},onClick:t,textTransform:"uppercase",size:"md",disabled:b})}),e.jsx(E,{hasArrow:!0,label:a.actions.save,children:e.jsx(_,{"aria-label":a.actions.save,borderRadius:"full",icon:e.jsx(f,{icon:je}),type:"submit",variant:"brand-solid",textTransform:"uppercase",size:"md",isLoading:b})})]})})]})]})}function dt({type:s,id:t,schoolId:i=void 0,title:n,url:c,visibility:u,image:h,getUsedCharacters:j,getTypeLimit:g}){const p=G(),{mutateAsync:b}=it(),{onOpen:m,onClose:l,isOpen:o}=ne(),v=w=>{window.open(w,"_blank")},F=async()=>{try{await b({id:t,type:s}),p({position:"bottom-right",render:()=>e.jsx(N,{type:"SUCCESS",title:"Gerenciador",message:"Item deletado"})})}catch(w){console.error(w),p({position:"bottom-right",render:()=>e.jsx(N,{type:"ERROR",title:"Gerenciador",message:"Erro ao processar"})})}};return e.jsxs(e.Fragment,{children:[o&&e.jsx(oe,{isOpen:o,onClose:l,id:t,type:s,mode:"UPDATE",schoolId:i,getUsedCharacters:j,getTypeLimit:g}),e.jsxs(L,{width:"250px",height:"150px",align:"left",padding:4,borderRadius:"lg",backgroundColor:"white",children:[e.jsxs(C,{justify:"space-between",align:"center",children:[e.jsx(E,{label:n,hasArrow:!0,children:e.jsx(B,{cursor:"default",noOfLines:1,size:"sm",children:n})}),e.jsxs(Ne,{children:[e.jsx(ze,{as:_,"aria-label":"Opções",icon:e.jsx(f,{icon:fe}),variant:"unstyled",_hover:{backgroundColor:"transparent"},onMouseEnter:()=>st({id:t,type:s})}),e.jsxs(Ue,{minWidth:0,children:[e.jsx(H,{fontSize:"xs",textTransform:"uppercase",fontWeight:700,_hover:{outline:"none",background:"blackAlpha.100"},_focus:{outline:"none",background:"none"},onClick:()=>v(c),children:"Abrir URL"}),e.jsx(H,{fontSize:"xs",textTransform:"uppercase",fontWeight:700,_hover:{outline:"none",background:"blackAlpha.100"},_focus:{outline:"none",background:"none"},onClick:m,children:"Editar"}),e.jsx(H,{fontSize:"xs",textTransform:"uppercase",fontWeight:700,_hover:{outline:"none",background:"blackAlpha.100"},_focus:{outline:"none",background:"none"},onClick:F,children:"Excluir"})]})]})]}),c&&e.jsxs(M,{children:[e.jsx(f,{icon:ve}),e.jsx(E,{hasArrow:!0,label:c,"aria-label":"URL",children:e.jsx(R,{cursor:"pointer",noOfLines:1,fontSize:"xs",onClick:()=>v(c),children:c})})]}),e.jsxs(M,{cursor:"default",children:[e.jsx(f,{icon:Le}),e.jsx(R,{fontSize:"xs",children:u})]}),h&&e.jsxs(M,{cursor:"pointer",onClick:()=>v(h),children:[e.jsx(f,{icon:ie}),e.jsx(R,{fontSize:"xs",children:"Ver imagem"})]})]})]})}function D({type:s,data:t,schoolId:i}){const{onOpen:n,isOpen:c,onClose:u}=ne(),h={NAVBAR:r({path:"pages.Links_Manager.item-title.navbar"}),MENU:r({path:"pages.Links_Manager.item-title.menu"}),PARTNERS:r({path:"pages.Links_Manager.item-title.partners"}),visibility:{students:r({path:"pages.Links_Manager.item-visibility.students"}),visitors:r({path:"pages.Links_Manager.item-visibility.visitors"}),admin:r({path:"pages.Links_Manager.item-visibility.admin"}),all:r({path:"pages.Links_Manager.item-visibility.all"})}},j=()=>{switch(s){case"NAVBAR":return h.NAVBAR;case"MENU":return h.MENU;case"PARTNERS":return h.PARTNERS;default:return""}},g=l=>{switch(l){case"students":return h.visibility.students;case"visitors":return h.visibility.visitors;case"admin":return h.visibility.admin;default:return h.visibility.all}},p=()=>170-3*(t?.length||0),b=()=>t?.reduce((l,o)=>l+o.title.length,0)||0,m=()=>e.jsx(M,{spacing:6,children:new Array(3).fill(0).map((l,o)=>e.jsx(re,{width:"250px",height:"150px",borderRadius:"lg"},o))});return e.jsxs(e.Fragment,{children:[c&&e.jsx(oe,{isOpen:c,onClose:u,type:s,schoolId:i,getUsedCharacters:b,getTypeLimit:p}),e.jsxs(L,{align:"left",spacing:4,children:[e.jsxs(M,{children:[e.jsx(B,{size:"md",children:j()}),t&&t.length>0&&e.jsxs(R,{as:"span",fontSize:"sm",color:"gray.400",children:["(",`${b()}/${p()-b()}`,")"]})]}),e.jsxs(M,{spacing:6,flexWrap:"wrap",children:[t?t.map(l=>e.jsx(dt,{type:s,id:l.id,title:l.title,url:l.url,visibility:g(l.visible_to),image:l.imagem,getUsedCharacters:b,getTypeLimit:p},l.id)):m(),t&&b()<p()&&e.jsx(C,{align:"center",background:"white",width:"250px",height:"150px",borderRadius:"lg",justify:"center",border:"2px dotted rgba(0, 0, 0, 0.2)",cursor:"pointer",onClick:n,children:e.jsx(L,{color:"blackAlpha.600",children:e.jsx(f,{icon:se})})})]})]})]})}function Mt(){const s=G(),{getLabelByWord:t}=me(),[i,n]=$.useState(void 0),{data:c}=Ye({schoolId:i?.id}),{data:u,isLoading:h}=xe(),{mutateAsync:j}=at(),[g,p]=$.useState("INSTITUTITON");$.useEffect(()=>{g==="INSTITUTITON"&&n(void 0)},[g]);const b=async o=>
1{if(i)try{await j({schoolId:i.id,replication:o}),n({...i,replication:o})}catch(v){console.error("Error toggling replication",v),s({position:"bottom-right",render:()=>e.jsx(N,{type:"ERROR",title:"Gerenciador",message:"Não foi possÃvel alterar a replicação da instituição."})})}},m=({schoolId:o})=>{if(g==="SCHOOL"&&o){n({id:o,replication:pe(u?.find(v=>v.id===o)?.config.mirror_institution_links)});return}n(void 0)},l={title:r({path:"pages.Links_Manager.title"}),select:r({path:"commons.actions.select"}),breadcrumb:[r({path:"pages.Links_Manager.breadcrumb.0"}),r({path:"pages.Links_Manager.breadcrumb.1"})],institution:r({path:"commons.domain.institution"}),label:{"unity-select":`${r({path:"pages.Links_Manager.label.unity-select"})} 2 ${t({word:"Unidade escolar",mode:"singular"}).toLowerCase()}`}};return e.jsxs(qe,{children:[e.jsxs(L,{align:"left",backgroundColor:"white",borderBottom:"1px solid rgba(0,0,0,0.2)",paddingX:24,children:[e.jsxs($e,{children:[e.jsx(Y,{children:e.jsx(Z,{cursor:"default",children:l.breadcrumb[0]})}),e.jsx(Y,{children:e.jsx(Z,{cursor:"default",children:l.breadcrumb[1]})})]}),e.jsx(B,{size:"lg",children:l.title}),e.jsxs(C,{width:"100%",gap:4,align:"center",justify:"flex-end",children:[e.jsx(ee,{variant:"unstyled",paddingX:6,borderRadius:0,isActive:g==="INSTITUTITON",onClick:()=>p("INSTITUTITON"),_active:{borderBottom:"2px solid black"},children:l.institution}),e.jsx(ee,{variant:"unstyled",paddingX:6,borderRadius:0,isActive:g==="SCHOOL",onClick:()=>p("SCHOOL"),_active:{borderBottom:"2px solid black"},children:t({word:"Unidade escolar",mode:"plural"})})]})]}),e.jsxs(L,{spacing:12,paddingX:24,paddingY:8,align:"left",children:[e.jsx(L,{spacing:6,align:"left",divider:e.jsx(Be,{}),children:!h&&u&&g==="SCHOOL"&&e.jsxs(L,{spacing:6,maxWidth:"440px",align:"left",children:[e.jsxs(k,{children:[e.jsx(y,{children:l.label["unity-select"]}),e.jsxs(W,{background:"white",onChange:o=>m({schoolId:Number(o.target.value)}),children:[e.jsx("option",{value:void 0,children:l.select}),u.map(o=>e.jsx("option",{value:o.id,children:o.titulo},o.id))]})]}),i&&e.jsxs(k,{children:[e.jsx(y,{children:"Replicar da instituição"}),e.jsx(Oe,{onChange:o=>b(o.target.checked),isChecked:i?.replication})]})]})}),g==="INSTITUTITON"||i&&!i.replication?e.jsxs(e.Fragment,{children:[e.jsx(D,{type:"NAVBAR",data:c?.navbar,schoolId:i?.id}),e.jsx(D,{type:"MENU",data:c?.menu,schoolId:i?.id}),e.jsx(D,{type:"PARTNERS",data:c?.partners,schoolId:i?.id})]}):null]})]})}export{Mt as LinksManager};
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.