index-legacy-07eb4825.js 3.6 KB

1
  1. !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r,e,n){return(e=function(r){var e=function(r,e){if("object"!==t(r)||null===r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,e||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(r)}(r,"string");return"symbol"===t(e)?e:String(e)}(e))in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function e(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(s){c=!0,o=s}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return n(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy-64376843.js"],(function(t,n){"use strict";var o,i,a,u,l,c,s,f,d,b,p,g,v,y,m,S,h,x,j;return{setters:[function(t){o=t.j,i=t.v,a=t.t,u=t.ao,l=t.d,c=t.ac,s=t.g,f=t.G,d=t.aJ,b=t.D,p=t.A,g=t.aK,v=t.ae,y=t.aL,m=t.E,S=t.aM,h=t.m,x=t.K,j=t.I}],execute:function(){var n=e(o("grid"),2),P=n[0],w=n[1],A={square:Boolean,center:i,border:i,gutter:a,reverse:Boolean,iconSize:a,direction:String,clickable:Boolean,columnNum:u(4)},q=Symbol(P),O=l({name:P,props:A,setup:function(t,e){var n=e.slots;return(0,c(q).linkChildren)({props:t}),function(){var e;return s("div",{style:{paddingLeft:f(t.gutter)},class:[w(),r({},d,t.border&&!t.gutter)]},[null==(e=n.default)?void 0:e.call(n)])}}}),k=(t("G",b(O)),e(o("grid-item"),2)),B=k[0],C=k[1],I=p({},g,{dot:Boolean,text:String,icon:String,badge:a,iconColor:String,iconPrefix:String,badgeProps:Object}),T=l({name:B,props:I,setup:function(t,e){var n=e.slots,o=v(q),i=o.parent,a=o.index,u=y();if(i){var l=m((function(){var t=i.props,r=t.square,e=t.gutter,n=t.columnNum,o="".concat(100/+n,"%"),u={flexBasis:o};if(r)u.paddingTop=o;else if(e){var l=f(e);u.paddingRight=l,a.value>=+n&&(u.marginTop=l)}return u})),c=m((function(){var t=i.props,r=t.square,e=t.gutter;if(r&&e){var n=f(e);return{right:n,bottom:n,height:"auto"}}}));return function(){var e=i.props,o=e.center,a=e.border,f=e.square,d=e.gutter,b=e.reverse,p=e.direction,g=e.clickable,v=[C("content",[p,{center:o,square:f,reverse:b,clickable:g,surround:a&&d}]),r({},S,a)];return s("div",{class:[C({square:f})],style:l.value},[s("div",{role:g?"button":void 0,class:v,style:c.value,tabindex:g?0:void 0,onClick:u},[n.default?n.default():[n.icon?s(x,h({dot:t.dot,content:t.badge},t.badgeProps),{default:n.icon}):t.icon?s(j,{dot:t.dot,name:t.icon,size:i.props.iconSize,badge:t.badge,class:C("icon"),color:t.iconColor,badgeProps:t.badgeProps,classPrefix:t.iconPrefix},null):void 0,n.text?n.text():t.text?s("span",{class:C("text")},[t.text]):void 0]])])}}}});t("a",b(T))}}}))}();