PageSourceSearch

https://www.amcham.com.ar/assets/DetalleDeContenido.58361896.js

js amcham.com.ar collected 2026-10-03 22:11:04 UTC 19,092 bytes, 39 lines download raw bytes

1import{r as b,b as t,F as y,j as e,e as C,u as W,M as q,L as $,H,J as U,B as z,K as G,m as Y,h as J,A as X,p as Z,k as ee,S as oe}from"./index.88001239.js";import{R as ie}from"./Register.abb2c043.js";import{C as ae}from"./ContenidoRelacionado.360aaead.js";import{C as te}from"./CarouselSponsorsGlobal.e3123e91.js";import{k as se,Q as re}from"./react-toastify.esm.83358ec6.js";/* empty css                      */import{H as K}from"./HeaderSecondary.fb9a896e.js";import{u as le}from"./utilWindowSize.98576993.js";import{V as ne}from"./VideoPlayer.ad2a68d8.js";import{u as ce}from"./useHitosDeAvance.771075e1.js";import{B as de}from"./BloqueNota.006aec27.js";import{C as me}from"./CarruselRelacionadoVertical.09cefa05.js";import{u as pe}from"./useArticuloLeido.68b4bdd5.js";/* empty css                 */import"./index.ee750fbc.js";import"./index.f5d46d6e.js";/* empty css               *//* empty css                   *//* empty css                   */import"./formatoContenido.1c82af5b.js";import"./BtnSponsor.123a81c0.js";import"./enlaces.2682f4ab.js";import"./useBloqueVisto.b8d965e3.js";import"./analitica.1908b416.js";/* empty css                        */import"./utilText.d2378cb5.js";import"./index.b52729af.js";import"./ResizeObserver.es.c1733ce7.js";import"./Content.37bd55c9.js";const he=2e3,ue=({size:o=24})=>e("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"#25D366",children:e("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),ge=({size:o=18})=>t("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),e("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),be=({size:o=18})=>e("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("polyline",{points:"20 6 9 17 4 12"})}),P=({show:o,onClose:a,title:p,description:u,emoji:n="\u{1F4C4}",contentId:d})=>{const w=typeof window<"u"?d?`${window.location.origin}/c/${d}`:window.location.href:"",m=[`*Mir\xE1 este contenido en AmCham Connect:* ${p}`,u,w].filter(Boolean).join(`
2
3`),[g,f]=b.exports.useState(!1),_=()=>{const s=`https://wa.me/?text=${encodeURIComponent(m)}`;C("contenido_compartido",{contenido_id:d!=null?d:null,objeto:"contenido",metodo:"abrir_whatsapp",via:"whatsapp"}),window.open(s,"_blank"),a()},x=()=>{const s=document.createElement("textarea");s.value=m,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select();const r=document.execCommand("copy");return s.remove(),r},i=async()=>{var s;try{if((s=navigator.clipboard)!=null&&s.writeText)await navigator.clipboard.writeText(m);else if(!x())throw new Error("execCommand copy fall\xF3");C("contenido_compartido",{contenido_id:d!=null?d:null,objeto:"contenido",metodo:"copiar_link",via:"copiar"}),f(!0),setTimeout(()=>f(!1),he)}catch(r){console.error("No se pudo copiar el mensaje:",r)}};return o?t(y,{children:[e("div",{className:"modal-backdrop fade show",onClick:a}),e("div",{className:"modal fade show d-block",tabIndex:"-1",role:"dialog",onClick:a,children:e("div",{className:"modal-dialog modal-dialog-centered",role:"document",onClick:s=>s.stopPropagation(),children:t("div",{className:"modal-content ShareWhatsAppModal_content",children:[t("div",{className:"modal-header ShareWhatsAppModal_header",children:[t("h5",{className:"ShareWhatsAppModal_title",children:[e(ue,{size:22}),"Compartir en WhatsApp"]}),e("button",{type:"button",className:"btn-close",onClick:a,"aria-label":"Cerrar"})]}),e("div",{className:"modal-body",children:t("div",{className:"ShareWhatsAppModal_preview_container",children:[e("p",{className:"ShareWhatsAppModal_preview",children:m}),e("button",{type:"button",className:`ShareWhatsAppModal_btn_copiar ${g?"copiado":""}`,onClick:i,title:g?"\xA1Copiado!":"Copiar mensaje","aria-label":"Copiar mensaje",children:g?e(be,{}):e(ge,{})})]})}),t("div",{className:"modal-footer ShareWhatsAppModal_footer",children:[e("button",{type:"button",className:"btn ShareWhatsAppModal_btn_cancelar",onClick:a,children:"Cancelar"}),e("button",{type:"button",className:"btn ShareWhatsAppModal_btn_enviar",onClick:_,children:"Enviar"})]})]})})})]}):null},xe=({size:o=20,color:a="currentColor"})=>t("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"18",cy:"5",r:"3"}),e("circle",{cx:"6",cy:"12",r:"3"}),e("circle",{cx:"18",cy:"19",r:"3"}),e("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),e("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),fe=({content:o})=>{const{user:a}=W(),{handleModal:p}=b.exports.useContext(q.ModalContext),{image:u,title:n,description:d,categories:w,interests:m,source:g}=o,f=le(),[_,x]=b.exports.useState(!1),[i,s]=b.exports.useState(!1),r=window.location.toString(),v=!(a!=null&&a.isLogin)&&!o.private||(a==null?void 0:a.isLogin),E=v?"":"bgGris",k=()=>{var l,h;C("acceso_bloqueado",{contenido_id:(l=o==null?void 0:o.id)!=null?l:null,motivo:"exclusivo_sin_sesion",seccion:"biblioteca",tipo:"ebook"}),C("login_iniciado",{origen:"contenido_exclusivo",destino:window.location.pathname,return_url:r,contenido_id:(h=o==null?void 0:o.id)!=null?h:null,tipo:"ebook"}),p(e(G,{isExclusive:!0,link:`${r}`,textExclisive:t("span",{children:["Este contenido es ",e("b",{children:"exclusivo para socios de AmCham"})]}),textNotLogged:e("span",{children:"Para inscribirte al contenido destacado, deb\xE9s estar logueado."})}),{hasCloseButton:!0})};async function M(){var l;x(!0);try{const h=await fetch(g);
3if(!h.ok)throw new Error(`Error en la solicitud fetch: ${h.status} ${h.statusText}`);const S=await h.blob(),N=document.createElement("a");N.href=URL.createObjectURL(S),N.download=g.split("/").pop(),document.body.appendChild(N),N.click(),document.body.removeChild(N),x(!1),C("material_descargado",{contenido_id:(l=o==null?void 0:o.id)!=null?l:null,documento:"ebook",formato:"EBOOK",seccion:"biblioteca",exclusivo:Boolean(o==null?void 0:o.private),via:"descarga_directa"}),re.success("\xA1Descarga exitosa!",{position:"top-right",autoClose:4e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}catch(h){console.error("Error:",h.message)}}return t(y,{children:[e(se,{}),e(K,{image:"https://onboarding-imgs.s3.sa-east-1.amazonaws.com/banners/header-sec-contenidos.png",title:"eBooks",subtitle:"Contenidos"}),e("div",{className:`padding-layout DetalleDeContenido_multimedia_container ebook ${E}`,children:e("div",{className:"row container-1",children:t("div",{className:"col-12",children:[t("div",{className:"row justify-content-between",children:[t("div",{className:"col-lg-8 col-md-12 col-sm-12 mb-4 Ebook_text_container",children:[t("div",{className:"d-flex justify-content-between align-items-start",children:[e("h3",{className:"title-3 detalle ebook",children:n}),t("button",{onClick:()=>{var l;C("panel_abierto",{seccion:"compartir_contenido",accion:"abrir",contenido_id:(l=o==null?void 0:o.id)!=null?l:null}),s(!0)},className:"btn btn-outline-secondary d-flex align-items-center gap-2 ms-3",title:"Compartir en WhatsApp",style:{borderRadius:"20px",padding:"8px 16px",whiteSpace:"nowrap"},children:[e(xe,{size:18}),e("span",{className:"d-none d-sm-inline",children:"Compartir"})]})]}),e("p",{className:"description-1 detalle ebook",children:d}),!f&&e("div",{className:"col-12 DetalleDeContenido_tag_container",children:m.map(l=>e($,{className:"badge text-bg-transparent tag",to:`/contenido/?categoria=&intereses=${l.name}&formato=`,children:l.name},l.id))})]}),t("div",{className:"col-xl-4 col-lg-3 col-md-12 col-sm-12",children:[e(H,{img:null,alt:`Imagen de ${n}`,isPrivate:!v,onClick:v?null:()=>k(),textSuperPosition:"Exclusivo Socios",fontAwesomeIcon:U,className:"Ebook_superposition",children:e("img",{src:u,alt:`imagen de ${n}`,className:"img-fluid"})}),f&&e("div",{className:"col-12 DetalleDeContenido_tag_container mt-4",children:m.map(l=>e($,{className:"badge text-bg-transparent tag",to:`/contenido/?categoria=&intereses=${l.name}&formato=`,children:l.name},l.id))})]})]}),e("div",{className:"row",children:e("div",{className:"col-12 ebook-button-container",children:v?e(z,{type:"secondary",onClick:M,loading:_,children:"Descargar eBook"}):t(y,{children:[t("h5",{className:"title-5",children:["Este contenido es ",e("b",{children:"exclusivo para socios"})]}),e("h6",{className:"title-6",children:"Ingres\xE1 con tu usuario y contrase\xF1a para poder acceder"})]})})})]})})}),e(P,{show:i,onClose:()=>s(!1),title:n,description:d,emoji:"\u{1F4DA}",contentId:o.id})]})},ve=({size:o=20,color:a="currentColor"})=>t("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"18",cy:"5",r:"3"}),e("circle",{cx:"6",cy:"12",r:"3"}),e("circle",{cx:"18",cy:"19",r:"3"}),e("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),e("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),Ce=({content:o})=>{const{user:a}=W(),{title:p,source:u,description:n,categories:d,interests:w}=o,m=!(a!=null&&a.isLogin)&&!o.private||(a==null?void 0:a.isLogin),g=m?"Video_tag_white":"",f=m?"Video_title_white":"",[_,x]=b.exports.useState(!1);return t(y,{children:[e("div",{className:"container-1 pb-5 DetalleDeContenido_multimedia_container",children:e("div",{className:"row",children:t("div",{className:"col-12",children:[e("div",{className:"row",children:e("div",{className:"col-12",children:e(ne,{url:u,rounded:!0,isUnblocked:m,contentId:o.id,title:p,seccion:"biblioteca",formato:(o==null?void 0:o.format)==="VIDEOPODCAST"?"videopodcast":"video"})})}),t("div",{className:"row",children:[t("div",{className:"col-12",children:[t("div",{className:"d-flex justify-content-between align-items-start",children:[e("h3",{className:`title-3 Bloque_destacado_titulo detalle ${f}`,children:p}),t("button",{onClick:()=>{var i;C("panel_abierto",{seccion:"compartir_contenido",accion:"abrir",contenido_id:(i=o==null?void 0:o.id)!=null?i:null}),x(!0)},className:"btn btn-outline-secondary d-flex align-items-center gap-2",title:"Compartir en WhatsApp",style:{borderRadius:"20px",padding:"8px 16px",
3whiteSpace:"nowrap"},children:[e(ve,{size:18}),e("span",{className:"d-none d-sm-inline",children:"Compartir"})]})]}),e("p",{className:"description-1 detalle",children:n})]}),e("div",{className:"col-12 DetalleDeContenido_tag_container",children:w&&w.map(i=>e($,{className:`badge tag text-bg-transparent ${g}`,to:`/contenido/?categoria=&intereses=${i.name}&formato=`,children:i.name},i.id))})]})]})})}),e(P,{show:_,onClose:()=>x(!1),title:p,description:n,emoji:"\u{1F3AC}",contentId:o.id})]})},we=({size:o=20,color:a="currentColor"})=>t("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"18",cy:"5",r:"3"}),e("circle",{cx:"6",cy:"12",r:"3"}),e("circle",{cx:"18",cy:"19",r:"3"}),e("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),e("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),_e=({content:o})=>{const{user:a}=W(),{title:p,source:u,description:n,categories:d,interests:w}=o,m=!(a!=null&&a.isLogin)&&!o.private||(a==null?void 0:a.isLogin),{handleModal:g}=b.exports.useContext(q.ModalContext),[f,_]=b.exports.useState(!1),x=b.exports.useRef(!1),i=ce({contenidoId:o.id,formato:"podcast",proveedor:"spotify",titulo:p,seccion:"biblioteca"}),s=()=>{var r,v;C("acceso_bloqueado",{contenido_id:(r=o==null?void 0:o.id)!=null?r:null,motivo:"exclusivo_sin_sesion",seccion:"biblioteca",tipo:"podcast"}),C("login_iniciado",{origen:"contenido_exclusivo",destino:window.location.pathname,return_url:window.location.toString(),contenido_id:(v=o==null?void 0:o.id)!=null?v:null,tipo:"podcast"}),g(e(G,{isExclusive:!0,link:window.location.toString(),textExclisive:t("span",{children:["Este contenido es ",e("b",{children:"exclusivo para socios de AmCham"})]}),textNotLogged:e("span",{children:"Para inscribirte al contenido destacado, deb\xE9s estar logueado."})}),{hasCloseButton:!0})};return b.exports.useEffect(()=>{const r=document.createElement("div");r.innerHTML=u;const v=r.firstChild.getAttribute("src").replace("https://open.spotify.com/embed/","spotify:").replace("/",":");return window.onSpotifyIframeApiReady=E=>{let k=document.getElementById("embed-iframe"),M={width:"100%",height:"232",frameBorder:"0",allowfullscreen:!0,allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",uri:v},l=h=>{h.addListener("playback_update",S=>{var A;const{data:N}=S,{duration:D,isPaused:L,position:B}=N,j=D?B/D:0;L||(x.current||(x.current=!0,C("consumo_iniciado",{contenido_id:(A=o==null?void 0:o.id)!=null?A:null,formato:"podcast",proveedor:"spotify"})),i(j))})};E.createController(k,M,l)},()=>{}},[u,i]),t(y,{children:[e("div",{className:"padding-layout",children:e("div",{className:"container-1 DetalleDeContenido_multimedia_container podcast",children:e("div",{className:"row",children:t("div",{className:"col-12",children:[e("div",{className:"row rounded DetalleDeContenido_podcast_container",style:{backgroundColor:"transparent"},children:e("div",{className:"col-12 p-2",style:{position:"relative"},children:e(H,{img:"",alt:"",isPrivate:!m,onClick:m?null:()=>s(),textSuperPosition:t(y,{children:[t("p",{children:["Este contenido es ",e("strong",{children:"exclusivo para socios"})]}),e("p",{children:"Ingres\xE1 con tu usuario y contrase\xF1a para poder acceder"})]}),fontAwesomeIcon:U,className:"Podcast_superposition",children:e("div",{id:"embed-iframe"})})})}),t("div",{className:"row",children:[e("div",{className:"col-12",children:t("div",{className:"d-flex justify-content-between align-items-start mt-3",children:[e("p",{className:"description-1 detalle mb-0",children:n}),t("button",{onClick:()=>{var r;C("panel_abierto",{seccion:"compartir_contenido",accion:"abrir",contenido_id:(r=o==null?void 0:o.id)!=null?r:null}),_(!0)},className:"btn btn-outline-secondary d-flex align-items-center gap-2 ms-3",title:"Compartir en WhatsApp",style:{borderRadius:"20px",padding:"8px 16px",whiteSpace:"nowrap"},children:[e(we,{size:18}),e("span",{className:"d-none d-sm-inline",children:"Compartir"})]})]})}),e("div",{className:"col-12 DetalleDeContenido_tag_container",children:w.map(r=>e($,{className:"badge text-bg-transparent mt-3 tag",to:`/contenido/?categoria=&intereses=${r.name}&formato=`,children:r.name},r.id))})]})]})})})}),e(P,{show:f,onClose:()=>_(!1),title:p,description:n,emoji:"\u{1F3A7}",contentId:o.id})]})},Ne=({content:o})=>{const{title:a,description:p,categories:u,interests:n}=o,d=pe({slug:o==null?void 0:o.slug,seccion:"biblioteca",formato:o==null?void 0:o.format,listo:Boolean(o==null?void 0:o.slug)});return t(y,{children:[e(K,{image:"https://onboarding-imgs.s3.sa-east-1.amazonaws.com/banners/header-sec-visas.png",title:"Novedades",subtitle:"Socios"}),t("div",{className:"padding-layout row Note_bloque d-flex",children:[e("div",{ref:d,className:"col-xl-9 col-lg-9 col-md-12 col-sm-12 p-0",children:e(de,{title:a,description:p,categories:n,className:"col-12 Notas_texto"})}
3),e(me,{className:"col-xl-3 col-lg-3 col-md-12 col-sm-12",children:t("h5",{className:"title-5 CarruselRelacionadoVertical_title",children:[e("b",{children:"Contenido"})," relacionado"]})})]})]})};const ye=Y`
4  query Query($search: ContentSearch) {
5    content(object: $search) {
6      id
7      title
8      slug
9      tag
10      date
11      format
12      description
13      image
14      source
15      private
16      categories {
17        id
18        name
19      }
20      interests {
21        id
22        name
23      }
24    }
25    home {
26      join_in {
27        title
28        visible
29        description
30        button {
31          visible
32          text
33          link
34        }
35        image
36      }
37    }
38  }
39`,eo=()=>{var l,h,S,N,D,L,B,j,A,I,R;let{slug:o}=J();const{user:a,isLoadingAuth:p}=W(),{allNews:u}=X(),[n,d]=b.exports.useState(""),[w,m]=b.exports.useState([]),[g,f]=b.exports.useState(!1),[_,x]=Z({query:ye,variables:{search:{slug:o}},pause:n===o}),{data:i,error:s,fetching:r}=_,v=c=>(c==null?void 0:c.format)==="EBOOK"?e(fe,{content:c}):["VIDEO","VIDEOPODCAST"].includes(c==null?void 0:c.format)?e(Ce,{content:c}):(c==null?void 0:c.format)==="PODCAST"?e(_e,{content:c}):e(Ne,{content:c});b.exports.useEffect(()=>{var c,O,V,F;if(u.length>0&&(i==null?void 0:i.content)&&!s&&o!==n){const Q=v(i==null?void 0:i.content);f(Q),d(o),ee({contenido_id:(O=(c=i==null?void 0:i.content)==null?void 0:c.id)!=null?O:null,formato:(F=(V=i==null?void 0:i.content)==null?void 0:V.format)!=null?F:null}),m(u.filter(T=>T.id!==(i==null?void 0:i.content.id)&&T.title!==(i==null?void 0:i.content.title)))}else s&&x();return()=>{}},[i,a,p,s,u]);const E=["VIDEO","VIDEOPODCAST"].includes((l=i==null?void 0:i.content)==null?void 0:l.format)?"DetalleDeContenido_bg_blue":"",k=!(a!=null&&a.isLogin)&&!((h=i==null?void 0:i.content)!=null&&h.private)||(a==null?void 0:a.isLogin);return t("div",{children:[t("div",{className:k?E:k?"":"bgGris",children:[(r||n!==o)&&e("div",{className:"Bloque_contenido padding-layout text-center",style:{minHeight:"50vh"},children:e(oe,{})}),g&&!r&&n===o&&e(y,{children:g})]}),w.length>0&&((S=i==null?void 0:i.content)==null?void 0:S.format)!=="NOTE"?t(y,{children:[e("div",{className:"Bloque_contenido padding-layout",children:e(ae,{text:`${(N=a==null?void 0:a.profile)!=null&&N.firstname?(D=a==null?void 0:a.profile)==null?void 0:D.firstname:"Hola"}, esto tambi\xE9n `,textBold:"puede interesarte",images:w,tags:((L=i==null?void 0:i.content)==null?void 0:L.format)==="EBOOK"?!1:(B=i==null?void 0:i.content)!=null&&B.interests?i.content.interests.map(c=>c.name):[],format:(j=i==null?void 0:i.content)==null?void 0:j.format})}),((I=(A=i==null?void 0:i.home)==null?void 0:A.join_in)==null?void 0:I.visible)&&e(ie,{data:(R=i==null?void 0:i.home)==null?void 0:R.join_in}),e(te,{seccion:"detalle_contenido"})]}):null]})};export{eo 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.