!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-646c47fa.js"],(function(t,n){"use strict";var o,i,a,u,l,c,s,f,d,b,p,v,g,m,y,S,h,x,j;return{setters:[function(t){o=t.c,i=t.t,a=t.n,u=t.b,l=t.d,c=t.a7,s=t.a,f=t.o,d=t.as,b=t.k,p=t.a9,v=t.at,g=t.aa,m=t.au,y=t.e,S=t.av,h=t.h,x=t.aw,j=t.I}],execute:function(){var n=e(o("grid"),2),P=n[0],w=n[1],k={square:Boolean,center:i,border:i,gutter:a,reverse:Boolean,iconSize:a,direction:String,clickable:Boolean,columnNum:u(4)},q=Symbol(P),A=l({name:P,props:k,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)])}}}),O=(t("G",b(A)),e(o("grid-item"),2)),B=O[0],C=O[1],I=p({},v,{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=g(q),i=o.parent,a=o.index,u=m();if(i){var l=y((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=y((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,v=e.clickable,g=[C("content",[p,{center:o,square:f,reverse:b,clickable:v,surround:a&&d}]),r({},S,a)];return s("div",{class:[C({square:f})],style:l.value},[s("div",{role:v?"button":void 0,class:g,style:c.value,tabindex:v?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]])])}}console.error("[Vant] <GridItem> must be a child component of <Grid>.")}});t("a",b(T))}}}))}();
