1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8223,35],{35:function(u,t,e){e.r(t),e.d(t,{dyte_image_viewer:function(){return s}});var n=e(5671),r=e(3144),i=e(2304),o=e(5855),a=e(7622),c=e(8415),D=e(9013),s=function(){function u(t){var e=this;(0,n.Z)(this,u),(0,i.r)(this,t),this.close=(0,i.c)(this,"close",7),this.keypressListener=function(u){"Escape"===u.key&&e.close.emit()},this.handleOutsideClick=function(){return e.close.emit()},this.image=void 0,this.size=void 0,this.t=(0,a.u)(),this.iconPack=o.d}return(0,r.Z)(u,[{key:"connectedCallback",value:function(){document.addEventListener("keydown",this.keypressListener),document.addEventListener("click",this.handleOutsideClick)}},{key:"disconnectedCallback",value:function(){document.removeEventListener("keydown",this.keypressListener),document.removeEventListener("click",this.handleOutsideClick)}},{key:"render",value:function(){var u=this;return(0,i.h)(i.H,{class:"scrollbar",onClick:function(u){return u.stopPropagation()}},(0,i.h)("div",{class:"header"},(0,i.h)("div",{class:"shared-by-user"},this.t("Shared by")," ",(0,i.h)("span",{class:"displayName"},(0,D.f)((0,D.s)(this.image.displayName)))),(0,i.h)("div",{class:"actions"},(0,i.h)("dyte-button",{kind:"icon",variant:"secondary",onClick:function(){return u.close.emit()},iconPack:this.iconPack,t:this.t},(0,i.h)("dyte-icon",{icon:this.iconPack.full_screen_minimize,iconPack:this.iconPack,t:this.t})),(0,i.h)("dyte-button",{onClick:function(){return(0,c.d)(u.image.link,{fallbackName:"image"})},iconPack:this.iconPack,t:this.t},(0,i.h)("dyte-icon",{icon:this.iconPack.download,slot:"start",iconPack:this.iconPack,t:this.t}),"Download"))),(0,i.h)("div",{class:"image-ctr"},(0,i.h)("img",{src:this.image.link})))}}]),u}();s.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)))\n var(--dyte-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--dyte-space-1\\.5, 6px);width:var(--dyte-space-1\\.5, 6px);border-radius:9999px;background-color:var(--dyte-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)))}:host{width:1140px;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:var(--dyte-space-6, 24px);padding-top:var(--dyte-space-5, 20px);overflow-y:auto;color:rgb(var(--dyte-colors-text-1000, 255 255 255));z-index:40;border-radius:var(--dyte-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.displayName{font-weight:700}.image-ctr{margin-top:var(--dyte-space-2, 8px);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--dyte-space-2, 8px)}img{box-sizing:border-box;display:block;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--dyte-space-4, 16px)}.shared-by-user{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}:host([size='sm']) .header{flex-direction:column}:host([size='sm']) .header .actions{margin-top:var(--dyte-space-4, 16px)}"},8415:function(u,t,e){e.d(t,{a:function(){return a},d:function(){return D},g:function(){return o}});var n=e(4165),r=e(5861),i=e(9013),o=function(u){return u.split(/[#?]/)[0].split(".").pop().trim()},a=function(u){if(!u)return"0 B";var t=Math.floor(Math.log(u)/Math.log(1024));return"".concat((u/Math.pow(1024,t)).toFixed(2)," ").concat(["B","kB","MB","GB","TB"][t])},c=function(u){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"file";try{var e=new URL(u).pathname.split("/").pop();return"/"!==e?e:t}catch(n){return t}},D=function(){var u=(0,r.Z)((0,n.Z)().mark((function u(t,e){var r,o,a,D;return(0,n.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return t=(0,i.a)(t),r=null===e||void 0===e?void 0:e.name,u.next=4,fetch(t);case 4:if((o=u.sent).ok){u.next=8;break}return window.open(t,"_blank"),u.abrupt("return");case 8:return u.t0=URL,u.next=11,o.blob();case 11:u.t1=u.sent,a=u.t0.createObjectURL.call(u.t0,u.t1),(D=document.createElement("a")).href=a,D.download=null!==r&&void 0!==r?r:c(t,null===e||void 0===e?void 0:e.fallbackName),D.click();case 17:case"end":return u.stop()}}),u)})));return function(t,e){return u.apply(this,arguments)}}()},9013:function(u,t,e){e.d(t,{a:function(){return i},f:function(){return o},g:function(){return a},h:function(){return r},s:function(){return n}});var n=function(u){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;return null==u?"":u.length>t?"".concat(u.substring(0,t),"..."):u},r=function(u){return/^(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])+$/.test(u)&&!/^\d+$/.test(u)},i=function(u){return(null===u||void 0===u?void 0:u.trim().toLowerCase().startsWith("javascript:"))?"https://dyte.io":u},o=function(u){return""===(u=null===u||void 0===u?void 0:u.trim())?"Participant":u};function a(u){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;
1return u.replace(/[^\u00BF-\u1FFF\u2C00-\uD7FF\w\s]/g,"").trim().split(/\s+/).slice(0,t).map((function(u){return u.charAt(0)})).join("").toUpperCase()}}}]); 2//# sourceMappingURL=8223.d6e77c90.chunk.js.map
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.