!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}System.register(["./index-legacy.c77ea834.js","./index.module-legacy.4ecdc80d.js","./index-legacy.feef7381.js","./index-legacy.637d412c.js","./use-tab-status-legacy.da94fc74.js"],(function(e){"use strict";var n,i,o,a,c,s,u,l,d,p,f,g,h,v;return{setters:[function(e){n=e.d,i=e.ah,o=e.ag,a=e.r,c=e.$,s=e.c,u=e.aj,l=e.q,d=e.ak,p=e.m,f=e.g},function(e){g=e.s},function(e){h=e.O},function(e){v=e.L},function(){}],execute:function(){e("default",n({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup:function(e){var n=i(),m=o();console.log("🚀 ~ route",n);var y=a({loading:!1,finished:!1,pages:{page:1,rows:20},list:[]}),b=function(){var i,o=(i=regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!y.loading){r.next=2;break}return r.abrupt("return");case 2:return y.loading=!0,r.prev=3,r.next=6,p.post("".concat(f.platformApi,"/orchestraPhotoAlbum/page"),{data:t(t({},y.pages),{},{orchestraId:e.orchestraId||n.query.orchestraId,parentId:n.query.id})});case 6:o=r.sent,Array.isArray(null==o||null===(i=o.data)||void 0===i?void 0:i.rows)?(y.list=y.list.concat(o.data.rows),y.pages.page+=1,y.finished=!o.data.next):y.finished=!0,r.next=13;break;case 10:r.prev=10,r.t0=r.catch(3),y.finished=!0;case 13:y.loading=!1;case 14:case"end":return r.stop()}}),r,null,[[3,10]])})),function(){var e=this,t=arguments;return new Promise((function(n,o){var a=i.apply(e,t);function c(e){r(a,n,o,c,s,"next",e)}function s(e){r(a,n,o,c,s,"throw",e)}c(void 0)}))});return function(){return o.apply(this,arguments)}}();return c((function(){b(),document.title=n.query.name||""})),function(){return s("div",null,[s(h,null,{default:function(){return[s(u,{title:n.query.name||"相册"},null)]}}),s("div",{class:g.phoneDetail},[!y.loading&&!!y.list.length&&s(v,{loadingText:" ",finished:y.finished,finishedText:" ",onLoad:b,immediateCheck:!1},{default:function(){return[s("div",{class:g.photoWrap},[y.list.map((function(e,t){return s("div",{class:g.photoItem,onClick:function(){m.push({path:"/photo-list-detail",query:{photoId:e.id}})}},[s("div",{class:g.imgSection},[s("div",{class:g.gridImg,style:e.coverUrl?{backgroundImage:"url(".concat(e.coverUrl,")"),backgroundSize:"cover"}:""},null)]),s("div",{class:g.gridName},[e.name||""]),s("div",{class:g.gridDes},[e.photoCount||0,l("张")])])})),y.list.map((function(e,t){return s("div",{class:g.photoItem,onClick:function(){m.push({path:"/photo-list-detail",query:{photoId:e.id}})}},[s("div",{class:g.imgSection},[s("div",{class:g.gridImg,style:e.coverUrl?{backgroundImage:"url(".concat(e.coverUrl,")"),backgroundSize:"cover"}:""},null)]),s("div",{class:g.gridName},[e.name||""]),s("div",{class:g.gridDes},[e.photoCount||0,l("张")])])}))])]}}),!y.loading&&!y.list.length&&s(d,{btnStatus:!1,tips:"暂无相册"},null)])])}}}))}}}))}();
