harvester-ui-extension/extensions/harvester/1.8.0-rc2/plugin/harvester-1.8.0-rc2.umd.min.88.js

2 lines
4.9 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_rc2"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_rc2"]||[]).push([[88],{86088:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return N}});var n=o(9274),l=o(74536),c=o(43098),r=(0,n.defineComponent)({__name:"SubtleLink",props:{to:{}},setup(e){return(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(c.Wk),{class:"subtle-link",to:e.to},{default:(0,n.withCtx)((()=>[(0,n.renderSlot)(e.$slots,"default")])),_:3},8,["to"]))}}),a=(o(22243),o(47433));const s=(0,a.A)(r,[["__scopeId","data-v-f27fff82"]]);var u=s,d=o(35601),i=o(45250),f=o(95457),p=o(65359);const v={class:"resource-row"},k={class:"left"},m={key:1,class:"text-deemphasized"},w={class:"right"},h={key:0,class:"text-deemphasized"},x={key:1,class:"counts"},_={class:"count-value"},y={class:"count-label"};var B=(0,n.defineComponent)({__name:"ResourceRow",props:{label:{},to:{},color:{},counts:{}},setup(e){const t=(0,p.Pj)(),o=(0,f.s)(t),l=(0,n.computed)((()=>{if(!e.counts)return e.counts;if(e.counts.length<3)return e.counts;const[t,...n]=e.counts,l=(0,i.sumBy)(n,"count"),c={label:o.t("generic.other",{count:l}),count:l};return[t,c]}));return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",v,[(0,n.createElementVNode)("div",k,[e.to&&e.counts&&e.counts.length>0?((0,n.openBlock)(),(0,n.createBlock)(u,{key:0,to:e.to},{default:(0,n.withCtx)((()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)])),_:1},8,["to"])):((0,n.openBlock)(),(0,n.createElementBlock)("span",m,(0,n.toDisplayString)(e.label),1))]),(0,n.createElementVNode)("div",w,[e.counts&&0!=e.counts.length?((0,n.openBlock)(),(0,n.createElementBlock)("div",x,[e.color?((0,n.openBlock)(),(0,n.createBlock)(d.A,{key:0,color:e.color},null,8,["color"])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(l.value,(e=>((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:e.label,class:"count"},[(0,n.createElementVNode)("span",_,(0,n.toDisplayString)(e.count),1),t[0]||(t[0]=(0,n.createTextVNode)(" ",-1)),(0,n.createElementVNode)("span",y,(0,n.toDisplayString)(e.label),1),t[1]||(t[1]=(0,n.createElementVNode)("span",{class:"and"}," + ",-1))])))),128))])):((0,n.openBlock)(),(0,n.createElementBlock)("div",h," 0 "))])]))}});o(49029);const g=(0,a.A)(B,[["__scopeId","data-v-ff606e28"]]);var b=g;const E={class:"resource-rows"};var C=(0,n.defineComponent)({__name:"index",props:{title:{},rows:{}},setup(e){return(e,t)=>((0,n.openBlock)(),(0,n.createBlock)(l.A,{title:e.title},{default:(0,n.withCtx)((()=>[(0,n.createElementVNode)("div",E,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.rows,((e,t)=>((0,n.openBlock)(),(0,n.createBlock)(b,{key:t,label:e.label,color:e.color,to:e.to,counts:e.counts},null,8,["label","color","to","counts"])))),128))])])),_:1},8,["title"]))}});o(57136);const M=(0,a.A)(C,[["__scopeId","data-v-384b9850"]]);var N=M},27824:function(e,t,o){"use strict";o.r(t);var n=o(36758),l=o.n(n),c=o(40935),r=o.n(c),a=r()(l());a.push([e.id,".resource-rows[data-v-384b9850]{display:flex;flex-direction:column}.resource-rows[data-v-384b9850]>:not(:first-of-type){margin-top:4px}",""]),t["default"]=a},82597:function(e,t,o){"use strict";o.r(t);var n=o(36758),l=o.n(n),c=o(40935),r=o.n(c),a=r()(l());a.push([e.id,".resource-row[data-v-ff606e28]{display:flex;flex-direction:row;align-items:center}.resource-row .right[data-v-ff606e28]{flex-grow:1;text-align:right;overflow:hidden}.resource-row .counts[data-v-ff606e28]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;max-width:100%;overflow:hidden}.resource-row .counts .count[data-v-ff606e28]{display:flex;justify-content:flex-end;min-width:0}.resource-row .counts .count[data-v-ff606e28]:not(.count+.count){max-width:calc(100% - 90px)}.resource-row .counts .count:not(.count+.count) .count-label[data-v-ff606e28]{overflow:hidden;text-overflow:ellipsis}.resource-row .count:last-of-type .and[data-v-ff606e28]{display:none}.resource-row .state-dot[data-v-ff606e28]{margin-right:10px}",""]),t["default"]=a},53219:function(e,t,o){"use strict";o.r(t);var n=o(36758),l=o.n(n),c=o(40935),r=o.n(c),a=r()(l());a.push([e.id,".subtle-link[data-v-f27fff82]{text-decoration:underline;color:var(--body-text)}",""]),t["default"]=a},57136:function(e,t,o){var n=o(27824);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var l=o(74825).A;l("a3d08758",n,!0,{sourceMap:!1,shadowMode:!1})},49029:function(e,t,o){var n=o(82597);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var l=o(74825).A;l("de981df6",n,!0,{sourceMap:!1,shadowMode:!1})},22243:function(e,t,o){var n=o(53219);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var l=o(74825).A;l("629d461c",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
//# sourceMappingURL=harvester-1.8.0-rc2.umd.min.88.js.map