1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4067],{42096:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product-report",function(){return c(24225)}])},24225:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return i}});var d=c(52322),e=c(69816),f=c(97729),g=c(2784);function h(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=new Array(b);c<b;c++)d[c]=a[c];return d}var i=!0;b.default=function(a){var b=a.publicUrl,c=a.cmsBaseUrl,i=a.productsInfo,j=function(a){return"".concat(c,"/admin/content-manager/collectionType/api::product.product/").concat(a.id,"?plugins[i18n][locale]=").concat(a.locale)},k={};e.B.forEach(function(a){return k[a.code]=[]}),i.forEach(function(a){k.all.push(a),k[a.locale].push(a)});var l=(0,g.useState)(e.B[1].code),m=l[0],n=l[1],o=(0,g.useState)(!0),p=o[0],q=o[1],r=["id","publishedAt","title","modalities","certifications","education_level","knowledgeArea","subjects","documents","whereCouldWorkItems","whatWillLearnItems","programs","complements","relatedProducts","inscriptionRequirements",],s=[];r.forEach(function(a){s.push((0,d.jsx)("th",{style:{backgroundColor:"#e5e7eb"},children:a}))});var t=[];return k[m].forEach(function(a){var c=[];r.forEach(function(e){var f,g,i="",l="#374151";if(!isNaN(a[e])){var n,o,q,r=k[m].map(function(a){return a[e]}),s=(o=a[e],q=(f=Math).max.apply(f,function(a){if(Array.isArray(a))return h(a)}(n=r)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(n)||function(a,b){if(a){if("string"==typeof a)return h(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(c);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return h(a,b)}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Math.trunc(o/q*200));i="rgb(".concat(255-s,",").concat(255-s,",255)"),s>100&&(l="white")}"title"===e?c.push((0,d.jsx)("td",{style:{color:"#0369a1"},children:(0,d.jsx)("a",{href:"".concat(b,"/").concat(a.locale,"/").concat(a.slug),target:"_blank",rel:"noreferrer",children:a[e]})})):"id"===e?c.push((0,d.jsx)("td",{style:{color:"#0369a1"},children:(0,d.jsx)("a",{href:j(a),target:"_blank",rel:"noreferrer",children:a[e]})})):"publishedAt"===e?c.push((0,d.jsx)("td",{style:{backgroundColor:a[e]?"":"#fefce8"},children:a[e]?"âï¸":"â"})):"education_level"===e||"modalities"===e||"certifications"===e||"education_level"===e||"knowledgeArea"===e||"subjects"===e||"documents"===e||"whereCouldWorkItems"===e||"whatWillLearnItems"===e||"programs"===e?c.push((0,d.jsx)("td",{style:{color:p&&l,backgroundColor:a[e]?p&&i:"#ffe4e6"},children:(0,d.jsx)("a",{href:j(a),target:"_blank",rel:"noreferrer",children:a[e]})})):"inscriptionRequirements"===e?c.push((0,d.jsx)("td",{children:null==a?void 0:null===(g=a[e])|| void 0===g?void 0:g.replace("Documentos a entregar","").replace(/#/g,"").replace(/_/g,"").replace(/\*/g,"").trimStart().slice(0,20).concat("...")})):c.push((0,d.jsx)("td",{children:a[e]}))}),t.push((0,d.jsx)("tr",{children:c}))}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.default,{children:(0,d.jsx)("title",{children:"Reporte de PRODUCTOS"})}),(0,d.jsxs)("div",{style:{backgroundColor:"#f3f4f6",color:"#374151",minHeight:"100vh",height:"100vh",overflow:"scroll",display:"grid",gridTemplateColumns:"15% 1fr"},children:[(0,d.jsxs)("div",{style:{backgroundColor:"#e5e7eb",padding:"3rem"},children:[(0,d.jsx)("button",{onClick:function(){return q(!p)},className:"siderbar-item",style:{backgroundColor:p?"#7dd3fc":""},children:p?"Con COLORES":"Sin COLORES"}),(0,d.jsx)("h3",{style:{marginTop:"3rem"},children:"Locales"}),(0,d.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"start"},children:e.B.map(function(a){return(0,d.jsxs)("button",{onClick:function(){return n(a.code)},className:"siderbar-item",style:{backgroundColor:a.code===m?"#7dd3fc":""},children:[a.flag," ",a.code]},a.code)})})]}),(0,d.jsx)("div",{style:{padding:"3rem"},children:(0,d.jsxs)("table",{style:{width:"100%",whiteSpace:"nowrap"},children:[(0,d.jsx)("tr",{children:s}),t]})})]}),(0,d.jsx)("style",{children:"\n .siderbar-item{\n margin-top:.5rem;\n background-color: #f4f4f5;\n border-radius: .5rem;\n padding: .25rem 1rem;\n width: 100%;\n }\n .siderbar-item:not(:first-child){\n margin-top:.5rem;\n }\n td, th{\n padding: .5rem 1rem;\n border: 1px solid #d1d5db;\n }\n tr:hover{\n box-shadow: inset 0 -.5px 1px 2px #0369a1;\n }\n "})]})}},69816:function(a,b,c){"use strict";c.d(b,{q:function(){return d},B:function(){return e}});var d=["certifications","complements","documents","duration-options","education-levels","footers","knowledge-areas","menus","modalities","modality-extras","navbars","pages","products","requirements","sort-by-options","subjects","tabs","testimonies","what-you-will-learn-items",],e=[{name:"Todos",code:"all",flag:"ð«"},{name:"Global (en)",code:"en",flag:"ð"},{name:"Internacional (es)",code:"es",flag:"ð³ï¸"},{name:"Mexico (es-MX)",code:"es-MX",flag:"ð²ð½"},{name:"Argentina (es-AR)",code:"es-AR",flag:"ð¦ð·"},{name:"Uruguay (es-UY)",code:"es-UY",flag:"ðºð¾"},{name:"Peru (es-PE)",code:"es-PE",flag:"ðµðª"},{name:"Bolivia (es-BO)",code:"es-BO",flag:"ð§ð´"},{name:"Colombia (es-CO)",code:"es-CO",flag:"ð¨ð´"},{name:"Paraguay (es-PY)",code:"es-PY",flag:"ðµð¾"},{name:"Ecuador (es-EC)",code:"es-EC",flag:"ðªð¨"},{name:"Chile (es-CL)",code:"es-CL",flag:"ð¨ð±"},{name:"El Salvador (es-SV)",code:"es-SV",flag:"ð¸ð»"},{name:"Rep\xfablica Dominicana (es-DO)",code:"es-DO",flag:"ð©ð´"},{name:"Guatemala (es-GT)",code:"es-GT",flag:"ð¬ð¹"},{name:"Panama (es-PA)",code:"es-PA",flag:"ðµð¦"},{name:"United States (es-US)",code:"es-US",flag:"ðºð¸"},{name:"Espa\xf1a (es-ES)",code:"es-ES",flag:"ðªð¸"},]}},function(a){a.O(0,[9774,2888,179],function(){return a(a.s=42096)}),_N_E=a.O()}])
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.