(window.webpackJsonp=window.webpackJsonp||[]).push([["4ZnZ"],{vgQu:function(e,t,l){"use strict";l.r(t),l.d(t,"CompactCell",(function(){return v})),l.d(t,"DetailCell",(function(){return E}));var a=l("q1tI"),r=l("Vxy9"),i=l("mR6N"),n=l("Taw3"),c=l("JimW"),o=l("Pwnf"),d=l("JasB"),s=l("gE8/");function u(e,t){if(null==e)return{};var l,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)l=i[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},f.apply(this,arguments)}const g={cellMinHeight:s.default.xxLarge_48,cellPadding:{paddingVertical:s.default.small_12,paddingHorizontal:s.default.medium_16},detailCellPadding:{paddingVertical:s.default.medium_16,paddingHorizontal:s.default.medium_16},accessoryHorizontalSpacing:s.default.medium_16},b=i.StyleSheet.create({horizontalRule:{position:"relative",":after":{width:"100%",content:"''",position:"absolute",bottom:0,right:0,height:s.default.xxxxSmall_2,boxShadow:`inset 0px -1px 0px ${o.default.offBlack8}`}},horizontalRuleInset:{":after":{width:`calc(100% - ${g.cellPadding.paddingHorizontal}px)`}}}),p=({leftAccessory:e,leftAccessoryStyle:t,disabled:l})=>e?a.createElement(a.Fragment,null,a.createElement(c.View,{style:[h.accessory,l&&h.accessoryDisabled,f({},t)]},e),a.createElement(d.Strut,{size:g.accessoryHorizontalSpacing})):null,y=({rightAccessory:e,rightAccessoryStyle:t,active:l,disabled:r})=>e?a.createElement(a.Fragment,null,a.createElement(d.Strut,{size:g.accessoryHorizontalSpacing}),a.createElement(c.View,{style:[h.accessory,h.accessoryRight,r&&h.accessoryDisabled,f({},t),l&&h.accessoryActive]},e)):null,m=e=>{const{active:t,children:l,disabled:r,href:i,horizontalRule:o="inset",leftAccessory:d,leftAccessoryStyle:s,onClick:u,rightAccessory:f,rightAccessoryStyle:g,style:m,testId:x,"aria-label":v,innerStyle:S,target:w}=e,E=e=>{const i=(e=>{switch(e){case"inset":return[b.horizontalRule,b.horizontalRuleInset];case"full-width":return b.horizontalRule;case"none":return{}}})(o);return a.createElement(c.View,{style:[h.wrapper,(null==e?void 0:e.focused)&&h.focused],"aria-current":t?"true":void 0},a.createElement(c.View,{style:[h.innerWrapper,S,m,i,r&&h.disabled,t&&h.active,!r&&(null==e?void 0:e.hovered)&&h.hovered,t&&(null==e?void 0:e.hovered)&&h.activeHovered,!r&&(null==e?void 0:e.pressed)&&h.pressed,!r&&t&&(null==e?void 0:e.pressed)&&h.activePressed]},a.createElement(p,{leftAccessory:d,leftAccessoryStyle:s,disabled:r}),a.createElement(c.View,{style:h.content,testId:x},l),a.createElement(y,{rightAccessory:f,rightAccessoryStyle:g,active:t,disabled:r})))};return u||i?a.createElement(n.default,{disabled:r,onClick:u,href:i,hideDefaultFocusRing:!0,"aria-label":v||void 0,target:w},(e=>E(e))):E()},h=i.StyleSheet.create({wrapper:{background:o.default.white,color:o.default.offBlack,minHeight:g.cellMinHeight,textAlign:"left"},innerWrapper:{padding:`${g.cellPadding.paddingVertical}px ${g.cellPadding.paddingHorizontal}px`,flexDirection:"row",flex:1},content:{alignSelf:"center",flex:1,overflowWrap:"break-word"},accessory:{minWidth:"auto",alignItems:"center",alignSelf:"center"},accessoryRight:{color:o.default.offBlack64},hovered:{background:o.default.offBlack8},focused:{borderRadius:s.default.xxxSmall_4,outline:`solid ${s.default.xxxxSmall_2}px ${o.default.blue}`,outlineOffset:-s.default.xxxxSmall_2,overflow:"hidden"},pressed:{background:o.default.offBlack16},active:{background:Object(o.fade)(o.default.blue,.08),color:o.default.blue},activeHovered:{background:Object(o.fade)(o.default.blue,.16)},activePressed:{background:Object(o.fade)(o.default.blue,.24)},disabled:{color:o.default.offBlack32,":hover":{cursor:"not-allowed"}},accessoryActive:{color:o.default.blue},accessoryDisabled:{color:o.default.offBlack,opacity:.32}}),x=["title"],v=function(e){const{title:t}=e,l=u(e,x);return a.createElement(m,l,"string"==typeof t?a.createElement(r.LabelMedium,null,t):t)},S=["title","subtitle1","subtitle2"],w=({subtitle:e,disabled:t})=>e?"string"==typeof e?a.createElement(r.LabelSmall,{style:!t&&k.subtitle},e):e:null,E=function(e){const{title:t,subtitle1:l,subtitle2:i}=e,n=u(e,S);return a.createElement(m,f({},n,{innerStyle:k.innerWrapper}),a.createElement(w,{subtitle:l,disabled:n.disabled}),l&&a.createElement(d.Strut,{size:s.default.xxxxSmall_2}),"string"==typeof t?a.createElement(r.LabelMedium,null,t):t,i&&a.createElement(d.Strut,{size:s.default.xxxxSmall_2}),a.createElement(w,{subtitle:i,disabled:n.disabled}))},k=i.StyleSheet.create({subtitle:{color:o.default.offBlack64},innerWrapper:{padding:`${g.detailCellPadding.paddingVertical}px ${g.detailCellPadding.paddingHorizontal}px`}})}}]);
//# sourceMappingURL=../../sourcemaps/en/4ZnZ.d09a355e0b0ab62c9626.js.map