!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,a,o){try{var c=e[a](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,i)}System.register(["./index-legacy.9e093f2b.js","./index.module-legacy.0b8c3129.js","./index-legacy.b79ab58e.js","./index-legacy.6bb8a2d2.js","./use-tab-status-legacy.390fa0d0.js"],(function(e){"use strict";var n,i,a,o,c,u,s,l,d,f,p,g,h,v;return{setters:[function(e){n=e.d,i=e.ah,a=e.ag,o=e.r,c=e.$,u=e.c,s=e.aj,l=e.q,d=e.ak,f=e.m,p=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(),b=a();console.log("🚀 ~ route",n);var y=o({loading:!1,finished:!1,pages:{page:1,rows:20},list:[]}),m=function(){var i,a=(i=regeneratorRuntime.mark((function r(){var i,a;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,f.post("".concat(p.platformApi,"/orchestraPhotoAlbum/page"),{data:t(t({},y.pages),{},{orchestraId:e.orchestraId||n.query.orchestraId,parentId:n.query.id})});case 6:a=r.sent,Array.isArray(null==a||null===(i=a.data)||void 0===i?void 0:i.rows)?(y.list=y.list.concat(a.data.rows),y.pages.page+=1,y.finished=!a.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,a){var o=i.apply(e,t);function c(e){r(o,n,a,c,u,"next",e)}function u(e){r(o,n,a,c,u,"throw",e)}c(void 0)}))});return function(){return a.apply(this,arguments)}}();return c((function(){m(),document.title=n.query.name||""})),function(){return u("div",null,[u(h,null,{default:function(){return[u(s,{title:n.query.name||"相册"},null)]}}),u("div",{class:g.phoneDetail},[!y.loading&&!!y.list.length&&u(v,{loadingText:" ",finished:y.finished,finishedText:" ",onLoad:m,immediateCheck:!1},{default:function(){return[u("div",{class:g.photoWrap},[y.list.map((function(e,t){return u("div",{class:g.photoItem,onClick:function(){b.push({path:"/photo-list-detail",query:{photoId:e.id}})}},[u("div",{class:g.imgSection},[u("div",{class:g.gridImg,style:e.coverUrl?{backgroundImage:"url(".concat(e.coverUrl,")"),backgroundSize:"cover"}:""},null)]),u("div",{class:g.gridName},[e.name||""]),u("div",{class:g.gridDes},[e.photoCount||0,l("张")])])}))])]}}),!y.loading&&!y.list.length&&u(d,{btnStatus:!1,tips:"暂无相册"},null)])])}}}))}}}))}();
