8737-8737.js 13 KB

12
  1. "use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[8737,3303],{77796:(e,a,t)=>{t.d(a,{K:()=>r});const s=["post","showcase","carousel"],r={type:{type:String,required:!0,validator:e=>"string"==typeof e&&s.includes(e)},id:{type:String,required:!0},date:{type:Number,required:!1,default:void 0},expiryDate:{type:Number,required:!1,default:void 0},headline:{type:Object,required:!1,default:()=>null},link:{type:String,required:!1,default:()=>null}}},74640:(e,a,t)=>{t.d(a,{O:()=>A});var s=t(53334),r=t(85471);const A=e=>{const a=(0,s.Z0)();return(0,r.EW)((()=>e?.value?((e,a)=>e[a]??e[a.split("_")[0]]??e.en??null)(e.value,a):null))}},83418:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(71354),r=t.n(s),A=t(76314),i=t.n(A)()(r());i.push([e.id,".app-discover-app[data-v-61ce59e2]{width:100% !important}.app-discover-app[data-v-61ce59e2]:hover{background:var(--color-background-hover);border-radius:var(--border-radius-rounded)}.app-discover-app__skeleton[data-v-61ce59e2]{display:flex;flex-direction:column;gap:8px;padding:30px}.app-discover-app__skeleton[data-v-61ce59e2]>:first-child{height:50%;min-height:130px}.app-discover-app__skeleton[data-v-61ce59e2]>:nth-child(2){width:50px}.app-discover-app__skeleton[data-v-61ce59e2]>:nth-child(5){height:20px;width:100px}.app-discover-app__skeleton[data-v-61ce59e2]>:not(:first-child){border-radius:4px}.skeleton-element[data-v-61ce59e2]{min-height:var(--default-font-size, 15px);background:linear-gradient(90deg, var(--color-background-dark), var(--color-background-darker), var(--color-background-dark));background-size:400% 400%;animation:gradient-61ce59e2 6s ease infinite}@keyframes gradient-61ce59e2{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreDiscover/AppType.vue"],names:[],mappings:"AACA,mCACC,qBAAA,CAEA,yCACC,wCAAA,CACA,0CAAA,CAGD,6CACC,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,YAAA,CAEA,0DACC,UAAA,CACA,gBAAA,CAGD,2DACC,UAAA,CAGD,2DACC,WAAA,CACA,WAAA,CAGD,gEACC,iBAAA,CAKH,mCACC,yCAAA,CAEA,6HAAA,CACA,yBAAA,CACA,4CAAA,CAGD,6BACC,GACC,0BAAA,CAED,IACC,4BAAA,CAED,KACC,0BAAA,CAAA",sourceRoot:""}]);const o=i},83186:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(71354),r=t.n(s),A=t(76314),i=t.n(A)()(r());i.push([e.id,".app-discover-post[data-v-9162c958]{max-height:300px;width:100%;background-color:var(--color-primary-element-light);border-radius:var(--border-radius-rounded);display:flex;flex-direction:row;justify-content:start}.app-discover-post--reverse[data-v-9162c958]{flex-direction:row-reverse}.app-discover-post h3[data-v-9162c958],.app-discover-post h4[data-v-9162c958]{font-size:24px;font-weight:600;margin-block:0 1em}.app-discover-post__text[data-v-9162c958]{display:block;width:100%;padding:var(--border-radius-rounded);overflow-y:scroll}.app-discover-post:has(.app-discover-post__media) .app-discover-post__text[data-v-9162c958]{padding-block-end:0}.app-discover-post__media[data-v-9162c958]{display:block;overflow:hidden;max-width:450px;border-radius:var(--border-radius-rounded)}.app-discover-post__media--fullwidth[data-v-9162c958]{max-width:unset;max-height:unset}.app-discover-post__media--end[data-v-9162c958]{border-end-start-radius:0;border-start-start-radius:0}.app-discover-post__media--start[data-v-9162c958]{border-end-end-radius:0;border-start-end-radius:0}.app-discover-post__media img[data-v-9162c958],.app-discover-post__media-element[data-v-9162c958]{height:100%;width:100%;object-fit:cover;object-position:center}.app-discover-post__play-icon[data-v-9162c958]{position:absolute;top:-46px;inset-inline-end:-46px}.app-discover-post__play-icon-wrapper[data-v-9162c958]{position:relative;top:-50%;inset-inline-start:-50%}.app-discover-post--small.app-discover-post[data-v-9162c958]{flex-direction:column;max-height:500px}.app-discover-post--small.app-discover-post--reverse[data-v-9162c958]{flex-direction:column-reverse}.app-discover-post--small .app-discover-post__text[data-v-9162c958]{flex:1 1 50%}.app-discover-post--small .app-discover-post__media[data-v-9162c958]{min-width:100%}.app-discover-post--small .app-discover-post__media--end[data-v-9162c958]{border-radius:var(--border-radius-rounded);border-start-end-radius:0;border-start-start-radius:0}.app-discover-post--small .app-discover-post__media--start[data-v-9162c958]{border-radius:var(--border-radius-rounded);border-end-end-radius:0;border-end-start-radius:0}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreDiscover/PostType.vue"],names:[],mappings:"AACA,oCACC,gBAAA,CACA,UAAA,CACA,mDAAA,CACA,0CAAA,CAEA,YAAA,CACA,kBAAA,CACA,qBAAA,CAEA,6CACC,0BAAA,CAGD,8EACC,cAAA,CACA,eAAA,CACA,kBAAA,CAGD,0CACC,aAAA,CACA,UAAA,CACA,oCAAA,CACA,iBAAA,CAID,4FACC,mBAAA,CAGD,2CACC,aAAA,CACA,eAAA,CAEA,eAAA,CACA,0CAAA,CAEA,sDACC,eAAA,CACA,gBAAA,CAGD,gDACC,yBAAA,CACA,2BAAA,CAGD,kDACC,uBAAA,CACA,yBAAA,CAGD,kGACC,WAAA,CACA,UAAA,CACA,gBAAA,CACA,sBAAA,CAIF,+CACC,iBAAA,CACA,SAAA,CACA,sBAAA,CAEA,uDACC,iBAAA,CACA,QAAA,CACA,uBAAA,CAMF,6DACC,qBAAA,CACA,gBAAA,CAEA,sEACC,6BAAA,CAKD,oEACC,YAAA,CAGD,qEACC,cAAA,CAEA,0EACC,0CAAA,CACA,yBAAA,CACA,2BAAA,CAGD,4EACC,0CAAA,CACA,uBAAA,CACA,yBAAA",sourceRoot:""}]);const o=i},81189:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(71354),r=t.n(s),A=t(76314),i=t.n(A)()(r());i.push([e.id,"h3[data-v-4fd06dba]{font-size:24px;font-weight:600;margin-block:0 1em}.app-discover-showcase__list[data-v-4fd06dba]{list-style:none;display:flex;flex-wrap:wrap;gap:calc(var(--default-clickable-area, 44px)/2)}.app-discover-showcase__item[data-v-4fd06dba]{display:flex;align-items:stretch;position:relative;width:calc(33% - var(--default-clickable-area, 44px)/2)}.app-discover-showcase--small .app-discover-showcase__item[data-v-4fd06dba]{width:calc(50% - var(--default-clickable-area, 44px)/2)}.app-discover-showcase--extra-small .app-discover-showcase__item[data-v-4fd06dba]{width:100%}","",{version:3,sources:["webpack://./apps/settings/src/components/AppStoreDiscover/ShowcaseType.vue"],names:[],mappings:"AAGA,oBACC,cAAA,CACA,eAAA,CACA,kBAAA,CAIA,8CACC,eAAA,CAEA,YAAA,CACA,cAAA,CACA,+CAdS,CAiBV,8CACC,YAAA,CACA,mBAAA,CAEA,iBAAA,CACA,uDAAA,CAKD,4EACC,uDAAA,CAKD,kFACC,UAAA",sourceRoot:""}]);const o=i},63303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>I});var s=t(9165),r=t(63814),A=t(13073),i=t(85471),o=t(77796),p=t(74640),d=t(6695),n=t(32981),l=t(40173);const c=(0,n.C)("core","apps"),C=Object.fromEntries(c.map((e=>[e.app??e.id,e.href]))),u=(0,i.pM)({name:"AppLink",components:{RouterLink:l.Wk},props:{href:{type:String,required:!0}},data:()=>({routerProps:void 0,linkProps:void 0}),watch:{href:{immediate:!0,handler(){const e=this.href.match(/^app:\/\/([^/]+)(\/.+)?$/);if(this.routerProps=void 0,this.linkProps=void 0,null===e)return void(this.linkProps={href:this.href,target:"_blank",rel:"noreferrer noopener"});const a=e[1];e[2]?this.linkProps={href:(0,r.Jv)(`/apps/${a}${e[2]}`)}:a in C?this.linkProps={href:C[a]}:this.routerProps={to:{name:"apps-details",params:{category:this.$route.params?.category??"discover",id:a}}}}}}});var v=t(14486);const m=(0,v.A)(u,(function(){var e=this,a=e._self._c;return e._self._setupProxy,e.linkProps?a("a",e._b({},"a",e.linkProps,!1),[e._t("default")],2):e.routerProps?a("RouterLink",e._b({},"RouterLink",e.routerProps,!1),[e._t("default")],2):e._e()}),[],!1,null,null,null).exports,h=(0,i.pM)({components:{AppLink:m,NcIconSvgWrapper:d.A},props:{...o.K,text:{type:Object,required:!1,default:()=>null},media:{type:Object,required:!1,default:()=>null},inline:{type:Boolean,required:!1,default:!1},domId:{type:String,required:!1,default:null}},setup(e){const a=(0,p.O)((0,i.EW)((()=>e.headline))),t=(0,p.O)((0,i.EW)((()=>e.text))),o=(0,p.O)((0,i.EW)((()=>e.media?.content))),d=(0,i.EW)((()=>null!==o.value?[o.value.src].flat():void 0)),n=(0,i.EW)((()=>o.value?.alt??"")),l=(0,i.EW)((()=>!0===d?.value?.[0].mime.startsWith("image/"))),c=(0,i.EW)((()=>!a.value&&!t.value)),C=(0,i.EW)((()=>o.value?.link??e.link)),u=(0,i.KR)(!1),v=(0,i.EW)((()=>o.value?.link&&u.value)),m=(0,i.KR)(),{width:h}=(0,A.Lhy)(m),_=(0,i.EW)((()=>h.value<600)),f=(0,i.KR)(),g=(0,A.ITo)(f,{threshold:.3});return(0,i.nT)((()=>{if(!l.value&&f.value){const e=f.value;g.value?(e.muted=!0,e.play()):(e.pause(),e.ended&&(e.currentTime=0,u.value=!1))}})),{mdiPlayCircleOutline:s.Nwy,container:m,translatedText:t,translatedHeadline:a,mediaElement:f,mediaSources:d,mediaAlt:n,mediaLink:C,hasPlaybackEnded:u,showPlayVideo:v,isFullWidth:c,isSmallWidth:_,isImage:l,generatePrivacyUrl:e=>e.startsWith("/")?e:(0,r.Jv)("/settings/api/apps/media?fileName={fileName}",{fileName:e})}}});var _=t(85072),f=t.n(_),g=t(97825),y=t.n(g),k=t(77659),b=t.n(k),x=t(55056),w=t.n(x),E=t(10540),B=t.n(E),D=t(41113),P=t.n(D),W=t(83186),S={};S.styleTagTransform=P(),S.setAttributes=w(),S.insert=b().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=B(),f()(W.A,S),W.A&&W.A.locals&&W.A.locals;const I=(0,v.A)(h,(function(){var e=this,a=e._self._c;return e._self._setupProxy,a("article",{ref:"container",staticClass:"app-discover-post",class:{"app-discover-post--reverse":e.media&&"start"===e.media.alignment,"app-discover-post--small":e.isSmallWidth},attrs:{id:e.domId}},[e.headline||e.text?a(e.link?"AppLink":"div",{tag:"component",staticClass:"app-discover-post__text",attrs:{href:e.link}},[a(e.inline?"h4":"h3",{tag:"component"},[e._v("\n\t\t\t"+e._s(e.translatedHeadline)+"\n\t\t")]),e._v(" "),a("p",[e._v(e._s(e.translatedText))])],1):e._e(),e._v(" "),e.mediaSources?a(e.mediaLink?"AppLink":"div",{tag:"component",staticClass:"app-discover-post__media",class:{"app-discover-post__media--fullwidth":e.isFullWidth,"app-discover-post__media--start":"start"===e.media?.alignment,"app-discover-post__media--end":"end"===e.media?.alignment},attrs:{href:e.mediaLink}},[a(e.isImage?"picture":"video",{ref:"mediaElement",tag:"component",staticClass:"app-discover-post__media-element",attrs:{muted:!e.isImage,playsinline:!e.isImage,preload:!e.isImage&&"auto"},on:{ended:function(a){e.hasPlaybackEnded=!0}}},[e._l(e.mediaSources,(function(t){return a("source",{key:t.src,attrs:{src:e.isImage?void 0:e.generatePrivacyUrl(t.src),srcset:e.isImage?e.generatePrivacyUrl(t.src):void 0,type:t.mime}})})),e._v(" "),e.isImage?a("img",{attrs:{src:e.generatePrivacyUrl(e.mediaSources[0].src),alt:e.mediaAlt}}):e._e()],2),e._v(" "),a("div",{staticClass:"app-discover-post__play-icon-wrapper"},[!e.isImage&&e.showPlayVideo?a("NcIconSvgWrapper",{staticClass:"app-discover-post__play-icon",attrs:{path:e.mdiPlayCircleOutline,size:92}}):e._e()],1)],1):e._e()],1)}),[],!1,null,"9162c958",null).exports},98737:(e,a,t)=>{t.r(a),t.d(a,{default:()=>S});var s=t(53334),r=t(13073),A=t(85471),i=t(77796),o=t(74640),p=t(846),d=t(89046);const n=(0,A.pM)({__name:"AppType",props:{modelValue:null},setup(e){const a=e,t=(0,p.T)(),s=(0,A.EW)((()=>t.getAppById(a.modelValue.appId))),r=(0,A.EW)((()=>a.modelValue.appId?`https://apps.nextcloud.com/apps/${a.modelValue.appId}`:"#"));return{__sfc:!0,props:a,store:t,app:s,appStoreLink:r,AppItem:d.A}}});var l=t(85072),c=t.n(l),C=t(97825),u=t.n(C),v=t(77659),m=t.n(v),h=t(55056),_=t.n(h),f=t(10540),g=t.n(f),y=t(41113),k=t.n(y),b=t(83418),x={};x.styleTagTransform=k(),x.setAttributes=_(),x.insert=m().bind(null,"head"),x.domAPI=u(),x.insertStyleElement=g(),c()(b.A,x),b.A&&b.A.locals&&b.A.locals;var w=t(14486);const E=(0,w.A)(n,(function(){var e=this,a=e._self._c,t=e._self._setupProxy;return t.app?a(t.AppItem,{staticClass:"app-discover-app",attrs:{app:t.app,category:"discover",inline:"","list-view":!1}}):a("a",{staticClass:"app-discover-app app-discover-app__skeleton",attrs:{href:t.appStoreLink,target:"_blank",title:e.modelValue.appId,rel:"noopener noreferrer"}},[a("span",{staticClass:"skeleton-element"}),e._v(" "),a("span",{staticClass:"skeleton-element"}),e._v(" "),a("span",{staticClass:"skeleton-element"}),e._v(" "),a("span",{staticClass:"skeleton-element"}),e._v(" "),a("span",{staticClass:"skeleton-element"})])}),[],!1,null,"61ce59e2",null).exports;var B=t(63303);const D=(0,A.pM)({name:"ShowcaseType",components:{AppType:E,PostType:B.default},props:{...i.K,content:{type:Array,required:!0}},setup(e){const a=(0,o.O)((0,A.EW)((()=>e.headline))),t=(0,A.KR)(),{width:i}=(0,r.Lhy)(t),p=(0,A.EW)((()=>i.value<768)),d=(0,A.EW)((()=>i.value<512));return{t:s.Tl,container:t,isSmallWidth:p,isExtraSmallWidth:d,translatedHeadline:a}}});var P=t(81189),W={};W.styleTagTransform=k(),W.setAttributes=_(),W.insert=m().bind(null,"head"),W.domAPI=u(),W.insertStyleElement=g(),c()(P.A,W),P.A&&P.A.locals&&P.A.locals;const S=(0,w.A)(D,(function(){var e=this,a=e._self._c;return e._self._setupProxy,a("section",{ref:"container",staticClass:"app-discover-showcase",class:{"app-discover-showcase--small":e.isSmallWidth,"app-discover-showcase--extra-small":e.isExtraSmallWidth}},[e.translatedHeadline?a("h3",[e._v("\n\t\t"+e._s(e.translatedHeadline)+"\n\t")]):e._e(),e._v(" "),a("ul",{staticClass:"app-discover-showcase__list"},e._l(e.content,(function(t,s){return a("li",{key:t.id??s,staticClass:"app-discover-showcase__item"},["post"===t.type?a("PostType",e._b({attrs:{inline:""}},"PostType",t,!1)):"app"===t.type?a("AppType",{attrs:{"model-value":t}}):e._e()],1)})),0)])}),[],!1,null,"4fd06dba",null).exports}}]);
  2. //# sourceMappingURL=8737-8737.js.map?v=50204d201c48303c2761