-
Notifications
You must be signed in to change notification settings - Fork 0
/
986-4cc338d559a6b15d7652.js
1 lines (1 loc) · 5.06 KB
/
986-4cc338d559a6b15d7652.js
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[986],{986:function(e,t,n){n.d(t,{O:function(){return C}});var r=n(25773),o=n(18808),i=n(55175),c=n(27378),a=n(37305),s=n(98238),l=n(64649),m=n(41500),u=n(23741),p=n(67234),d=n(85327),f=n(80464),b=n(76777);function g(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={borderColor:n(40251).G.grey300,borders:["top"],columns:{0:1,768:2,1280:3},componentClassName:"modified-item-grid",gutterSize:{0:4,768:2}};function y(e){function t(e){return"".concat((0,m.U)(100/e),"%")}if((0,u.h)(e))return t(e);if((0,p.K)(e)){for(var n=(0,d.A)(e),r={},o=0;o<n.length;o+=1){var i=n[o],c=e[n[o]];r[i]=t(c)}return r}return{0:"100%"}}function O(e,t,n,r){for(var o="",i={},c=0;c<e.length;c+=1){i[e[c]]=!0}function a(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;function c(t){var o=e?"-n+".concat(t):"n+".concat(r+1-t);return"\n .grid-item:nth-child(".concat(o,") {\n .list-item { \n border-").concat(e?"top":"bottom",": ").concat(i,"px solid ").concat(n,";\n }\n }\n ")}if((0,u.h)(t)&&(o+=c(t)),(0,p.K)(t))for(var a=(0,d.A)(t),s=0;s<a.length;s+=1){var l=a[s],m=t[a[s]];o+="@media (min-width: ".concat(l,"px){ ").concat(c(m)," }\n ")}}return i.top&&a(!0,1),i.bottom&&a(!1,1),i.between&&(o+="\n .list-item {\n border-top: 1px solid ".concat(n,";\n }\n "),i.top||a(!0,0)),o}var P=function(e){var t=e.borderColor,n=e.borders,s=e.className,l=e.columns,m=e.componentClassName,u=e.css,p=void 0===u?"":u,d=e.gutterSize,g=e.items,v=(e.itemWidth,(0,o.Z)(e,["borderColor","borders","className","columns","componentClassName","css","gutterSize","items","itemWidth"]));if(!g)return null;return c.createElement(b.h,(0,r.Z)({className:(0,i.A)(m,s),cpy:(0,f.t)(d,.5),items:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=0;n<e.length;n+=1){var i=e[n],s=i.children,l=void 0===s?null:s,m=i.listItemProps,u=(0,o.Z)(i,["children","listItemProps"]),p=h({},u);p.children=c.createElement(a.W,(0,r.Z)({className:"list-item",cpy:d},m),l),t.push(p)}return t}(g),gutterSize:d,itemWidth:l?y(l):void 0,gridWrapperProps:{element:"ul",css:"\n list-style-type: none;\n padding: 0;\n "},itemProps:{element:"li"},css:"\n ".concat(O(n,l,t,g.length),"\n\n .grid-item-spacer {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n ").concat(p,"\n ")},v))};P.displayName="ModifiedItemGrid",P.defaultProps=v,P.displayName="ModifiedItemGrid";var N=n(72750);function w(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){var t=e.componentClassName,n=e.gutterSize,a=e.items,s=(0,o.Z)(e,["componentClassName","gutterSize","items"]),l=function(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var o=e[r],i=r+1;((0,N.r)(i)?t:n).push(j(j({},o),{},{number:i}))}return{columnList1:t,columnList2:n}}(a),m=l.columnList1,u=l.columnList2;return c.createElement("div",{className:(0,i.A)(t,"")},c.createElement(b.h,{gutterSize:n,items:[{children:c.createElement(P,(0,r.Z)({items:m},s,{columns:1})),itemProps:{w:"50%"}},{children:c.createElement(P,(0,r.Z)({items:u},s,{columns:1})),itemProps:{w:"50%"}}]}))};E.displayName="TwoColumnFloat",E.defaultProps={componentClassName:"two-column-float"},E.displayName="TwoColumnFloat";var C=function(e){var t=e.className,n=e.componentClassName,l=e.items,m=e.layout,u=(e.wrapperProps,(0,o.Z)(e,["className","componentClassName","items","layout","wrapperProps"]));if(!l)return null;var p="2-column-float"===m;return c.createElement(a.W,{className:(0,i.A)(n,t)},p?c.createElement(s.z,{media:"(min-width: 768px)",predictedMatch:!0},(function(e){return e?c.createElement(E,(0,r.Z)({items:l},u)):c.createElement(P,(0,r.Z)({items:l},u,{columns:1}))})):c.createElement(P,(0,r.Z)({items:l},u)))};C.displayName="ListLexington",C.defaultProps={componentClassName:"list-lexington",layout:"flex"},C.displayName="ListLexington"},72750:function(e,t,n){n.d(t,{r:function(){return r}});var r=function(e){return e%2}}}]);