1"use strict";(globalThis.webpackChunkreactsaluta=globalThis.webpackChunkreactsaluta||[]).push([[721],{8110(e,t,o){o.d(t,{A:()=>l});var n=o(9950),r=o(44414);const l=e=>{let{type:t,customKey:o,value:l,tailwind:a,onClick:i,bgColor:d,hoverColor:c,textBtn:s,textBtnHover:_,children:b,disabled:u}=e;const[x,g]=(0,n.useState)(!1),h={backgroundColor:x?c||"#ffffff":d||"#3f84f3",padding:"8px 16px",border:"none",color:x?_:s,cursor:"pointer",transition:"background-color 0.3s ease",outline:"none"};return(0,r.jsx)("button",{type:null!==t&&void 0!==t?t:"submit",onClick:i,style:h,onMouseEnter:()=>{g(!0)},onMouseLeave:()=>{g(!1)},className:a,disabled:null!==u&&void 0!==u&&u,value:l,children:b},null!==o&&void 0!==o?o:"btnDefault")}},13435(e,t,o){o.d(t,{A:()=>_});var n=o(9950),r=o(35254),l=o.n(r),a=(o(17687),o(39664)),i=o.n(a),d=o(8110),c=o(63468),s=o(44414);r.Quill.register("modules/imageResize",i());const _=e=>{let{initialValue:t,handleSave:o,onChangeValue:a}=e;const[i,_]=(0,n.useState)(t||""),{colorsUI:{btnSave:b}}=(0,c.p)(),u={toolbar:[[{header:[]},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image","video"],["clean"]],clipboard:{matchVisual:!1},imageResize:{parchment:r.Quill.import("parchment"),displaySize:!0,modules:["Resize","DisplaySize","Toolbar"]}};return(0,n.useEffect)(()=>{_(t)},[t]),(0,n.useEffect)(()=>{a&&a(i)},[i]),(0,s.jsxs)("div",{children:[(0,s.jsx)(l(),{theme:"snow",value:i,onChange:_,modules:u,formats:["header","font","size","bold","italic","underline","strike","blockquote","color","background","align","list","bullet","indent","link","image","video"],preserveWhitespace:!0}),o&&(0,s.jsx)(d.A,{type:"button",tailwind:`${b.tailwind} mt-4`,onClick:()=>o(i),bgColor:b.bgBtn,textBtn:b.textBtn,hoverColor:b.hover,textBtnHover:b.textHover,children:"GUARDAR"})]})}},70721(e,t,o){o.r(t),o.d(t,{default:()=>x});var n=o(9950),r=o(73878),l=o(760),a=o.n(l);const i=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 000 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}))});var d=o(13435),c=o(8110),s=o(63468),_=o(81011),b=o(7316),u=o(44414);const x=()=>{const{db:e,firebase:t}=(0,r.d4)(e=>e.company.companyInstance,(e,t)=>e===t),{bg_screen:o,screen_text_color:l,text_color_titles:x}=(0,r.d4)(e=>e.config.colors),{colorsUI:{btnSave:g}}
1=(0,s.p)(),[h,m]=(0,n.useState)([{id:1,elements:""}]),[v,f]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{const t=e.collection("config").doc("Footer").onSnapshot(e=>{e.exists&&m(e.data().footer),f(!1)},e=>{console.error("Error fetching content: ",e),f(!1)});return()=>{t()}},[]),v?(0,u.jsx)(b.A,{text:"Cargando",classText:"text-white font-bold z-100",opacity:50,isLoading:v}):(0,u.jsx)("div",{className:"flex flex-col justify-center min-h-screen text-center md:items-center bg-gradient-to-r from-saluta-s to-saluta-c",children:(0,u.jsxs)("div",{style:{background:`${o}`,color:`${l}`},className:"flex flex-col w-auto h-auto col-span-2 p-4 m-2 rounded-3xl lg:w-11/12 lg:p-10 lg:m-6 md:h-3/4 gap-2",children:[(0,u.jsx)("h1",{style:{color:x},className:"m-5 font-bold text-center text-2xl",children:"Configuraci\xf3n Footer"}),(0,u.jsx)("div",{className:"flex items-start",children:(0,u.jsx)(c.A,{type:"button",tailwind:`${g.tailwind} mt-4`,onClick:()=>{const e={id:h.length+1,elements:""};m([...h,e])},bgColor:g.bgBtn,textBtn:g.textBtn,hoverColor:g.hover,textBtnHover:g.textHover,children:"Agregar Columna"})}),h.map(e=>(0,u.jsxs)("div",{className:"border rounded-md p-4 space-y-2",children:[(0,u.jsxs)("div",{className:"flex justify-between items-center",children:[(0,u.jsxs)("h3",{className:"text-lg font-semibold",children:["Columna ",e.id]}),(0,u.jsx)("button",{className:"text-red-500 hover:text-red-600",onClick:()=>(e=>{const t=h.filter(t=>t.id!==e);m(t)})(e.id),children:(0,u.jsx)(i,{className:"w-6 h-6"})})]}),(0,u.jsx)(d.A,{initialValue:e.elements,handleSave:t=>((e,t)=>{const o=h.map(o=>o.id===t?{...o,elements:e}:o);m(o)})(t,e.id)})]},e.id)),h.length>0&&(0,u.jsx)("div",{className:"flex items-start",children:(0,u.jsx)(c.A,{type:"button",tailwind:`${g.tailwind} mt-4`,onClick:()=>(async()=>{try{(0,_.fN)("\xbfSeguro que desea Guardar el Footer?",async function(){const o=h.map(e=>({...e,elements:a().sanitize(e.elements)}));await e.collection("config").doc("Footer").set({footer:o,timestamp:t.firestore.FieldValue.serverTimestamp()}),(0,_.Sv)("Footer Guardado con \xc9xito")})}catch(o){console.error("Error saving content: ",o),(0,_.n7)("Error al guardar el Footer, contactar con el Administrador")}})(),bgColor:g.bgBtn,textBtn:g.textBtn,hoverColor:g.hover,textBtnHover:g.textHover,children:"GUARDAR FOOTER"})})]})})}},63468(e,t,o){o.d(t,{p:()=>r});var n=o(73878);const r=()=>{const{colors:{bg_btn_cancel:e,bg_btn_guardar:t,bg_btn_icon_delete_on_table:o,bg_btn_icon_edit_on_table:r,bg_btn_primary:l,bg_btn_secondary:a,bg_footer:i,bg_gradient:d,bg_gradient_end:c,bg_hover_btn_cancel:s,bg_hover_btn_guardar:_,bg_hover_btn_icon_delete_on_table:b,bg_hover_btn_icon_edit_on_table:u,bg_hover_btn_primary:x,bg_hover_btn_secondary:g,bg_pagination:h,bg_pagination_hover:m,bg_pagination_selected:v,bg_tables:f,bg_tables_header:p,bg_tabs:w,bg_tabs_selected:y,bg_icon:B,navbar_color:C,navbar_text_color:S,screen_text_color:j,text_color_btn_cancel:k,text_color_btn_guardar:H,text_color_btn_icon_delete:E,text_color_btn_icon_edit:A,text_color_btn_primary:N,text_color_btn_secondary:T,text_color_footer:z,text_color_icon:R,text_color_hover_btn_cancel:I,text_color_hover_btn_guardar:U,text_color_hover_btn_icon_delete:$,text_color_hover_btn_icon_edit:F,text_color_hover_btn_primary:D,text_color_hover_btn_secundary:V,text_color_pagination:G,text_color_pagination_hover:M,text_color_pagination_selected:q,text_color_subtitle_footer:O,text_color_subtitles:L,text_color_tables_body:Q,text_color_tables_header:K,text_color_tabs:P,text_color_tabs_selected:W,text_color_titles:J},rounded:{rounded_btn_cancel:X,rounded_btn_guardar:Y,rounded_btn_primary:Z,rounded_btn_secondary:ee,rounded_table:te,rounded_tables_footer_end:oe,rounded_tables_footer_start:ne,rounded_tables_head_end:re,rounded_tables_head_start:le}}=(0,n.d4)(e=>e.config);return{colorsUI:{btnPrimary:{tailwind:`w-auto px-4 py-2 font-semibold ${Z} shadow-md`,bgBtn:l,textBtn:N,hover:x,textHover:D},btnSecondary:{tailwind:`w-auto px-4 py-2 font-semibold ${ee} shadow-md`,bgBtn:a,textBtn:T,hover:g,textHover:V},btnSave:{tailwind:`w-auto px-4 py-2 font-semibold ${Y} shadow-md`,bgBtn:t,textBtn:H,hover:_,textHover:U},btnCancel:{tailwind:`w-auto px-4 py-2 font-semibold ${X} rounded-md shadow-md`,bgBtn:e,textBtn:k,hover:s,textHover:I},btnIconEdit:{tailwind:"w-auto font-semibold",bgBtn:r,textBtn:A,hover:u,textHover:F},btnIconDelete:{tailwind:"w-auto font-semibold",bgBtn:o,textBtn:E,hover:b,textHover:$},tableUI:{bgTable:f,textTable:Q,headTable:{bg:p,color:K,roundedStart:le,roundedEnd:re},footerTable:{bg:p,roundedStart:ne,roundedEnd:oe}},paginationUI:{bg:h,textUnSelected:G,bgSelected:v,textSelected:q,bgHover:m,textHover:M},tabUI:{bg:w,textTab:P,bgSelected:y,textTabSelected:W},gradient:{bgStart:d,bgEnd:c}}}}}}]);
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.