PageSourceSearch

https://kiku.listen.org/1993.bfba09acbee003bc.bundle.js

js listen.org collected 2026-10-02 06:40:07 UTC 9,702 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[1993],{61993:function(e,i,l){l.r(i),l.d(i,{default:function(){return j}});var t=l(20641),o=l(90033);const n={class:"public-drive-folder"},s={key:0,class:"public-drive-folder__empty"},a={class:"icon is-large mb-3"},r={class:"is-size-5 mb-2"},d={class:"public-drive-folder__empty-sub"},c={key:1,class:"public-drive-folder__content"},u={class:"public-drive-folder__brand"},h={class:"public-drive-folder__header breadcrumbs"},m={class:"is-flex is-align-items-center drive-breadcrumb"},f={key:0,class:"icon is-small mx-1 has-text-grey-light"},p=["onClick"],b={key:0,class:"is-small mr-1"},g={class:"breadcrumb-text"},w={key:2,class:"button is-white is-rounded breadcrumb-button"},y={key:0,class:"is-small mr-1"},v={class:"breadcrumb-text"},k={key:0,class:"public-drive-folder__empty-folder"},C={class:"icon is-large mb-3"},x={class:"has-text-grey"},L={key:1,class:"o-gallery"},_={key:"table-view"},F={class:"icon-text pl-1"},T={class:"fileTitle ml-1"},I=["title"],$={class:"file-info-mobile"},E={key:0},X={class:"nowrap"},A={key:0,class:"nowrap"},G={class:"public-drive-folder__footer is-size-7"};function R(e,i,l,R,z,D){const U=(0,t.g2)("b-loading"),W=(0,t.g2)("font-awesome-icon"),O=(0,t.g2)("orgo-logo"),P=(0,t.g2)("view-toggle"),M=(0,t.g2)("DriveGalleryTile"),Q=(0,t.g2)("b-table-column"),S=(0,t.g2)("b-table"),K=(0,t.g2)("DriveLightbox");return(0,t.uX)(),(0,t.CE)("div",n,[(0,t.bF)(U,{"is-full-page":!0,"model-value":z.isLoading},null,8,["model-value"]),z.isLoading||null!==z.folder?null!==z.folder?((0,t.uX)(),(0,t.CE)("div",c,[(0,t.Lk)("div",u,[(0,t.bF)(O,{"no-link":!0})]),(0,t.Lk)("div",h,[(0,t.Lk)("div",m,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(z.breadcrumb,(e,i)=>((0,t.uX)(),(0,t.CE)(t.FK,{key:e.id},[i>0?((0,t.uX)(),(0,t.CE)("span",f,[(0,t.bF)(W,{icon:"fa-light fa-chevron-right"})])):(0,t.Q3)("",!0),i<z.breadcrumb.length-1?((0,t.uX)(),(0,t.CE)("button",{key:1,class:"button is-white is-rounded breadcrumb-button",onClick:l=>D.navigateToCrumb(e,i)},[0===i?((0,t.uX)(),(0,t.CE)("span",b,[(0,t.bF)(W,{icon:"fa-light fa-folder"})])):(0,t.Q3)("",!0),(0,t.Lk)("span",g,(0,o.v_)(e.title),1)],8,p)):((0,t.uX)(),(0,t.CE)("button",w,[0===i?((0,t.uX)(),(0,t.CE)("span",y,[(0,t.bF)(W,{icon:"fa-light fa-folder"})])):(0,t.Q3)("",!0),(0,t.Lk)("span",v,(0,o.v_)(e.title),1)]))],64))),128))]),(0,t.bF)(P,{"is-gallery":z.isGallery,onToggle:D.toggleIsGallery},null,8,["is-gallery","onToggle"])]),0===z.items.length?((0,t.uX)(),(0,t.CE)("div",k,[(0,t.Lk)("span",C,[(0,t.bF)(W,{icon:"fa-light fa-folder-open",size:"3x"})]),(0,t.Lk)("p",x,(0,o.v_)(e.$t("Empty folder")),1)])):z.isGallery?((0,t.uX)(),(0,t.CE)("div",L,[((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(z.items,e=>((0,t.uX)(),(0,t.CE)("div",{key:e.id,class:"gallery-cell",style:(0,o.Tr)(D.cellStyle(e))},[(0,t.bF)(M,{row:e,kind:D.tileKind(e),"media-src":e.url||null,"icon-config":D.iconConfig(e),"share-badge":null,readonly:!0,"open-menu-id":z.openTileMenuId,onOpen:i=>D.onTileOpen(e),onAspect:D.onTileAspect,onMenuOpen:i[0]||(i[0]=e=>z.openTileMenuId=e),onAction:D.onTileAction},null,8,["row","kind","media-src","icon-config","open-menu-id","onOpen","onAspect","onAction"])],4))),128)),i[2]||(i[2]=(0,t.Lk)("i",{class:"o-gallery-filler","aria-hidden":"true"},null,-1))])):((0,t.uX)(),(0,t.CE)("div",_,[(0,t.bF)(S,{data:z.items,hoverable:!0,"mobile-cards":!1,"icon-pack":"fa-light",class:"filesTable fs-14",onClick:D.onRowClick},{default:(0,t.k6)(()=>[(0,t.bF)(Q,{label:e.$t("name"),field:"title","cell-class":"is-full-width"},{default:(0,t.k6)(i=>[(0,t.Lk)("span",F,[(0,t.Lk)("span",{class:(0,o.C4)(["icon",e.$isMobile()?"":"is-small"])},[(0,t.bF)(W,{icon:"fa-light "+D.iconConfig(i.row).icon,class:"fileTitleIcon",style:(0,o.Tr)({color:D.iconConfig(i.row).color})},null,8,["icon","style"])],2),(0,t.Lk)("span",T,[(0,t.Lk)("a",{title:i.row.title},(0,o.v_)(i.row.title),9,I),(0,t.Lk)("span",$,[(0,t.eW)((0,o.v_)(e.$filters.formatDateCool(i.row.dateCreated))+" ",1),i.row.media?((0,t.uX)(),(0,t.CE)("span",E,"• "+(0,o.v_)(e.$filters.formatBytes(i.row.media.size)),1)):(0,t.Q3)("",!0)])])])]),_:1},8,["label"]),(0,t.bF)(Q,{width:"120px",label:e.$t("date"),field:"dateCreated",visible:D.showPriority3,"cell-class":"is-s
1hrink-to-fit"},{default:(0,t.k6)(i=>[(0,t.Lk)("span",X,(0,o.v_)(e.$filters.formatDateCool(i.row.dateCreated)),1)]),_:1},8,["label","visible"]),(0,t.bF)(Q,{width:"80px",label:e.$t("size"),field:"media.size",visible:D.showPriority2,"cell-class":"is-shrink-to-fit"},{default:(0,t.k6)(i=>[i.row.media?((0,t.uX)(),(0,t.CE)("span",A,(0,o.v_)(e.$filters.formatBytes(i.row.media.size)),1)):(0,t.Q3)("",!0)]),_:1},8,["label","visible"])]),_:1},8,["data","onClick"])])),(0,t.Lk)("footer",G,[(0,t.eW)((0,o.v_)(e.$t("Powered by"))+" ",1),i[3]||(i[3]=(0,t.Lk)("a",{href:"https://orgo.space",target:"_blank",rel:"noopener"}," Orgo.space ",-1))])])):(0,t.Q3)("",!0):((0,t.uX)(),(0,t.CE)("div",s,[(0,t.Lk)("span",a,[(0,t.bF)(W,{icon:"fa-light fa-triangle-exclamation",size:"3x"})]),(0,t.Lk)("h1",r,(0,o.v_)(e.$t("This shared folder is no longer available")),1),(0,t.Lk)("p",d,(0,o.v_)(e.$t("The folder may have been removed or the share revoked.")),1)])),null!==z.lightboxIndex?((0,t.uX)(),(0,t.Wv)(K,{key:2,active:!0,items:D.fileItems,index:z.lightboxIndex,"can-share":()=>!1,"can-edit":()=>!1,"src-resolver":D.srcResolver,onAction:D.onLightboxAction,"onUpdate:active":D.onLightboxClose,"onUpdate:index":i[1]||(i[1]=e=>z.lightboxIndex=e)},null,8,["items","index","src-resolver","onAction","onUpdate:active"])):(0,t.Q3)("",!0)])}l(44114),l(18111),l(22489),l(61701),l(14603),l(47566),l(98721);var z=l(80121),D=l(66288),U=l(71537),W=l(57320),O=l(56178),P=l(28782);const M="publicDriveViewMode";function Q(){try{const e=window.localStorage.getItem(M);return null===e||"gallery"===e}catch{return!0}}function S(e){return e&&e.includes("/media/")?P.ze+"/media/"+e.split("/media/").pop():e}var K={name:"PublicDriveFolder",components:{DriveGalleryTile:z.A,DriveLightbox:D.A,OrgoLogo:U.A,ViewToggle:W.A},data(){return{isLoading:!1,folder:null,breadcrumb:[],items:[],tenantName:null,isGallery:Q(),lightboxIndex:null,isDownloading:!1,openTileMenuId:null,aspectRatios:{},windowWidth:"undefined"!==typeof window?window.innerWidth:1280}},computed:{showPriority2(){return this.windowWidth>=576},showPriority3(){return this.windowWidth>=768},rowHeight(){return this.windowWidth<=768?120:this.windowWidth<=1024?150:200},fileItems(){return this.items.filter(e=>"file"===e.type).map(e=>({id:e.id,title:e.title,media:{mimeType:e.mimeType,contentUrl:e.url}}))}},watch:{"$route.params.folderId":"fetchFolder","$route.params.slugGo":"fetchFolder"},created(){this.fetchFolder()},mounted(){window.addEventListener("resize",this.onResize)},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.windowWidth=window.innerWidth},fetchFolder(){const e=this.$route.params.slugGo,i=this.$route.params.folderId;if(!e)return;this.isLoading=!0,this.folder=null,this.lightboxIndex=null,this.aspectRatios={};const l="/get_public_drive_folder_anonymous/"+e+(i?"/"+i:"");this.$http.plain.get(l).then(e=>{const i=e.data;this.folder=i.folder,this.breadcrumb=i.breadcrumb||[],this.items=(i.items||[]).map(e=>this.mapItem(e)),this.tenantName=i.tenantName||null,i.folder&&i.folder.title&&(document.title=i.folder.title)}).catch(e=>{console.log(e),this.folder=null}).finally(()=>{this.isLoading=!1})},mapItem(e){return"folder"===e.type?{id:e.id,title:e.title,type:"folder",dateCreated:e.dateCreated}:{id:e.id,title:e.title,type:"file",mimeType:e.mimeType,url:e.url,dateCreated:e.dateCreated,media:{mimeType:e.mimeType,contentUrl:e.url,size:e.size}}},toggleIsGallery(){this.isGallery=!this.isGallery;try{window.localStorage.setItem(M,this.isGallery?"gallery":"table")}catch(e){console.log(e)}},navigateToCrumb(e,i){const l=this.$route.params.slugGo;0===i?this.$router.push({name:"FolderSharePage",params:{slugGo:l}}):this.$router.push({name:"FolderSharePage",params:{slugGo:l,folderId:e.id}})},openFolder(e){const i=this.$route.params.slugGo;this.$router.push({name:"FolderSharePage",params:{slugGo:i,folderId:e.id}})},openFile(e){const i=this.fileItems.findIndex(i=>i.id===e.id);-1!==i&&(this.lightboxIndex=i)},onTileOpen(e){"folder"===e.type?this.openFolder(e):this.openFile(e)},onTileAction({type:e,row:i}){"download"===e&&this.downloadFile(i)},onRowClick(e){this.onTileOpen(e)},onLightboxClose(e){e||(this.lightboxIndex=null)},onLightboxAction({type:e,row:i}){"download"===e&&this.downloadFile(i)},downloadFile(e){const i=this.srcResolver(e);i&&!this.isDownloading&&(this.isDownloading=!0,fetch(S(i)).then(e=>e.blob()).then(i=>{const l=window.URL.createObjectURL(i),t=document.createElement("a");t.href=l,t.setAttribute("download",e.title||"file"),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(l)}).catch(e=>
1{console.log(e),this.$buefy.toast.open({message:this.$t("Could not download file"),type:"is-danger"})}).finally(()=>{this.isDownloading=!1}))},srcResolver(e){return e?.media?.contentUrl??null},tileKind(e){if("folder"===e.type)return"icon";const i=(0,O.xX)(e.media);return"image"===i?"image":"video"===i?"video":"icon"},iconConfig(e){return"folder"===e.type?(0,O.Yg)(null,"folder"):(0,O.Yg)(e.media)},defaultRatio(e){if("folder"===e.type)return 1.3;const i=(0,O.xX)(e.media);return"image"===i||"video"===i?1:1.3},cellStyle(e){const i=this.aspectRatios[e.id]||this.defaultRatio(e);return{flexGrow:i,flexBasis:i*this.rowHeight+"px"}},onTileAspect({id:e,ratio:i}){i&&isFinite(i)&&(this.aspectRatios[e]=Math.min(2,Math.max(1,i)))}}},B=l(66262);const N=(0,B.A)(K,[["render",R],["__scopeId","data-v-c28d6b50"]]);var j=N}}]);

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.