Created
October 11, 2021 13:47
-
-
Save mdgriffith/5b90f0b26dd7c552de107792e971228e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $author$project$Internal$Model2$element = F3( | |
| function (layout, attrs, children) { | |
| return function (parentEncoded) { | |
| return $author$project$Internal$Model2$renderAttrs(parentEncoded)(layout)($author$project$Internal$Model2$emptyDetails)(children)($author$project$Internal$Flag2$none)(_List_Nil)( | |
| $author$project$Internal$Model2$contextClasses(layout))($author$project$Internal$Model2$NoNearbyChildren)('')( | |
| $elm$core$List$reverse(attrs)); | |
| }; | |
| }); | |
| var $author$project$Internal$Model2$renderAttrs = function (parentEncoded) { | |
| return function (layout) { | |
| return function (details) { | |
| return function (children) { | |
| return function (has) { | |
| return function (htmlAttrs) { | |
| return function (classes) { | |
| return function (nearby) { | |
| return function (vars) { | |
| return function (attrs) { | |
| renderAttrs: | |
| while (true) { | |
| if (attrs.b) { | |
| switch (attrs.a.$) { | |
| case 0: | |
| var _v1 = attrs.a; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 8: | |
| var size = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = {by: details.by, bA: details.bA, bF: details.bF, bP: details.bP, bQ: details.bQ, bR: details.bR, bS: size, bV: details.bV, bX: details.bX, b4: details.b4, b5: details.b5, cc: details.cc, cw: details.cw, bt: details.bt, cA: details.cA, cH: details.cH}, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 7: | |
| var font = attrs.a.a; | |
| var remain = attrs.b; | |
| var withSmallcaps = font.eY ? A2( | |
| $elm$core$List$cons, | |
| A2($elm$html$Html$Attributes$style, 'font-variant-caps', 'small-caps'), | |
| htmlAttrs) : htmlAttrs; | |
| var withFeatures = (font.cE === '') ? withSmallcaps : A2( | |
| $elm$core$List$cons, | |
| A2($elm$html$Html$Attributes$style, 'font-feature-settings', font.cE), | |
| withSmallcaps); | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = { | |
| by: details.by, | |
| bA: details.bA, | |
| bF: details.bF, | |
| bP: details.bP, | |
| bQ: function () { | |
| var _v2 = font.a7; | |
| if (_v2.$ === 1) { | |
| return details.bQ; | |
| } else { | |
| var adj = _v2.a; | |
| return adj.N; | |
| } | |
| }(), | |
| bR: function () { | |
| var _v3 = font.a7; | |
| if (_v3.$ === 1) { | |
| return details.bR; | |
| } else { | |
| var adj = _v3.a; | |
| return adj.b7; | |
| } | |
| }(), | |
| bS: details.bS, | |
| bV: details.bV, | |
| bX: details.bX, | |
| b4: details.b4, | |
| b5: details.b5, | |
| cc: details.cc, | |
| cw: details.cw, | |
| bt: details.bt, | |
| cA: details.cA, | |
| cH: details.cH | |
| }, | |
| $temp$children = children, | |
| $temp$has = function () { | |
| var _v4 = font.a7; | |
| if (_v4.$ === 1) { | |
| return has; | |
| } else { | |
| return A2($author$project$Internal$Flag2$add, $author$project$Internal$Flag2$fontAdjustment, has); | |
| } | |
| }(), | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| A2($elm$html$Html$Attributes$style, 'font-family', font.dC), | |
| withFeatures), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 13: | |
| var _v5 = attrs.a; | |
| var slot = _v5.a; | |
| var val = _v5.b; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| { | |
| cA: $elm$core$Maybe$Just( | |
| A3($author$project$Internal$Model2$upsertTransform, slot, val, details.cA)) | |
| }), | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, $author$project$Internal$Flag2$transform, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 2: | |
| var attr = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = A2($elm$core$List$cons, attr, htmlAttrs), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 1: | |
| var press = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| A2($elm$html$Html$Attributes$style, 'tabindex', '0'), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Events$onClick(press), | |
| A2( | |
| $elm$core$List$cons, | |
| A2($author$project$Internal$Model2$onKey, 'Enter', press), | |
| htmlAttrs))), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 3: | |
| var _v6 = attrs.a; | |
| var targetBlank = _v6.a; | |
| var url = _v6.b; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {b5: 1}), | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$href(url), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$rel('noopener noreferrer'), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$target( | |
| targetBlank ? '_blank' : '_self'), | |
| htmlAttrs))), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 4: | |
| var _v7 = attrs.a; | |
| var url = _v7.a; | |
| var downloadName = _v7.b; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {b5: 1}), | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$href(url), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$download(downloadName), | |
| htmlAttrs)), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 9: | |
| var nodeName = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {b4: nodeName, b5: 4}), | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 14: | |
| var _v8 = attrs.a; | |
| var flag = _v8.a; | |
| var str = _v8.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = str + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 15: | |
| var _v9 = attrs.a; | |
| var flag = _v9.a; | |
| var cls = _v9.b; | |
| var styleName = _v9.c; | |
| var styleVal = _v9.d; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| A2($elm$html$Html$Attributes$style, styleName, styleVal), | |
| htmlAttrs), | |
| $temp$classes = cls + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 16: | |
| var _v10 = attrs.a; | |
| var flag = _v10.a; | |
| var cls = _v10.b; | |
| var varName = _v10.c; | |
| var varVal = _v10.d; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = cls + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars + ('--' + (varName + (':' + (varVal + ';')))), | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 17: | |
| var _v11 = attrs.a; | |
| var location = _v11.a; | |
| var elem = _v11.b; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = A3($author$project$Internal$Model2$addNearbyElement, location, elem, nearby), | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 10: | |
| var _v12 = attrs.a; | |
| var flag = _v12.a; | |
| var x = _v12.b; | |
| var y = _v12.c; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has) || (layout === 3)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {cw: x, bt: y}), | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = $author$project$Internal$Style2$classes.e0 + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 11: | |
| var _v13 = attrs.a; | |
| var flag = _v13.a; | |
| var padding = _v13.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = {by: details.by, bA: details.bA, bF: details.bF, bP: details.bP, bQ: details.bQ, bR: details.bR, bS: details.bS, bV: details.bV, bX: details.bX, b4: details.b4, b5: details.b5, cc: padding, cw: details.cw, bt: details.bt, cA: details.cA, cH: details.cH}, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = (_Utils_eq(padding.D, padding.aG) && (_Utils_eq(padding.D, padding.ax) && _Utils_eq(padding.D, padding.ar))) ? A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'padding', | |
| $elm$core$String$fromInt(padding.D) + 'px'), | |
| htmlAttrs) : A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'padding', | |
| ($elm$core$String$fromInt(padding.D) + 'px ') + (($elm$core$String$fromInt(padding.aG) + 'px ') + (($elm$core$String$fromInt(padding.ar) + 'px ') + ($elm$core$String$fromInt(padding.ax) + 'px')))), | |
| htmlAttrs), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 12: | |
| var _v14 = attrs.a; | |
| var flag = _v14.a; | |
| var borders = _v14.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = {by: details.by, bA: details.bA, bF: borders, bP: details.bP, bQ: details.bQ, bR: details.bR, bS: details.bS, bV: details.bV, bX: details.bX, b4: details.b4, b5: details.b5, cc: details.cc, cw: details.cw, bt: details.bt, cA: details.cA, cH: details.cH}, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$htmlAttrs = (_Utils_eq(borders.D, borders.aG) && (_Utils_eq(borders.D, borders.ax) && _Utils_eq(borders.D, borders.ar))) ? A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'border-width', | |
| $elm$core$String$fromInt(borders.D) + 'px'), | |
| htmlAttrs) : A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'border-width', | |
| ($elm$core$String$fromInt(borders.D) + 'px ') + (($elm$core$String$fromInt(borders.aG) + 'px ') + (($elm$core$String$fromInt(borders.ar) + 'px ') + ($elm$core$String$fromInt(borders.ax) + 'px')))), | |
| htmlAttrs), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 6: | |
| var i = attrs.a.a; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$height, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = {by: details.by, bA: details.bA, bF: details.bF, bP: details.bP, bQ: details.bQ, bR: details.bR, bS: details.bS, bV: i, bX: details.bX, b4: details.b4, b5: details.b5, cc: details.cc, cw: details.cw, bt: details.bt, cA: details.cA, cH: details.cH}, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, $author$project$Internal$Flag2$height, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 5: | |
| var i = attrs.a.a; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$width, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = {by: details.by, bA: details.bA, bF: details.bF, bP: details.bP, bQ: details.bQ, bR: details.bR, bS: details.bS, bV: details.bV, bX: details.bX, b4: details.b4, b5: details.b5, cc: details.cc, cw: details.cw, bt: details.bt, cA: details.cA, cH: i}, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, $author$project$Internal$Flag2$width, has), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| case 18: | |
| var _v15 = attrs.a; | |
| var toMsg = _v15.a; | |
| var when = _v15.b; | |
| var remain = attrs.b; | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = { | |
| by: function () { | |
| var _v16 = when.aB; | |
| if (_v16 === 2) { | |
| var _v17 = details.by; | |
| if (_v17.$ === 1) { | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l, | |
| Q: toMsg, | |
| E: _List_fromArray( | |
| [when]) | |
| }); | |
| } else { | |
| var transition = _v17.a; | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l + ('-' + transition.l), | |
| Q: toMsg, | |
| E: A2($elm$core$List$cons, when, transition.E) | |
| }); | |
| } | |
| } else { | |
| return details.by; | |
| } | |
| }(), | |
| bA: details.bA, | |
| bF: details.bF, | |
| bP: function () { | |
| var _v18 = when.aB; | |
| if (_v18 === 1) { | |
| var _v19 = details.bP; | |
| if (_v19.$ === 1) { | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l, | |
| Q: toMsg, | |
| E: _List_fromArray( | |
| [when]) | |
| }); | |
| } else { | |
| var transition = _v19.a; | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l + ('-' + transition.l), | |
| Q: toMsg, | |
| E: A2($elm$core$List$cons, when, transition.E) | |
| }); | |
| } | |
| } else { | |
| return details.bP; | |
| } | |
| }(), | |
| bQ: details.bQ, | |
| bR: details.bR, | |
| bS: details.bS, | |
| bV: details.bV, | |
| bX: function () { | |
| var _v20 = when.aB; | |
| if (!_v20) { | |
| var _v21 = details.bX; | |
| if (_v21.$ === 1) { | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l, | |
| Q: toMsg, | |
| E: _List_fromArray( | |
| [when]) | |
| }); | |
| } else { | |
| var transition = _v21.a; | |
| return $elm$core$Maybe$Just( | |
| { | |
| l: when.l + ('-' + transition.l), | |
| Q: toMsg, | |
| E: A2($elm$core$List$cons, when, transition.E) | |
| }); | |
| } | |
| } else { | |
| return details.bX; | |
| } | |
| }(), | |
| b4: details.b4, | |
| b5: details.b5, | |
| cc: details.cc, | |
| cw: details.cw, | |
| bt: details.bt, | |
| cA: details.cA, | |
| cH: details.cH | |
| }, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| case 19: | |
| var _v22 = attrs.a; | |
| var toMsg = _v22.a; | |
| var trigger = _v22.b; | |
| var classStr = _v22.c; | |
| var props = _v22.d; | |
| var remain = attrs.b; | |
| var triggerClass = $author$project$Internal$Model2$triggerName(trigger); | |
| var event = A2( | |
| $elm$json$Json$Decode$andThen, | |
| function (name) { | |
| return _Utils_eq(name, triggerClass) ? $elm$json$Json$Decode$succeed( | |
| toMsg( | |
| A4($author$project$Internal$Model2$Animate, $elm$core$Maybe$Nothing, trigger, classStr, props))) : $elm$json$Json$Decode$fail('Nonmatching animation'); | |
| }, | |
| A2($elm$json$Json$Decode$field, 'animationName', $elm$json$Json$Decode$string)); | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = { | |
| by: details.by, | |
| bA: A2($elm$core$List$cons, event, details.bA), | |
| bF: details.bF, | |
| bP: details.bP, | |
| bQ: details.bQ, | |
| bR: details.bR, | |
| bS: details.bS, | |
| bV: details.bV, | |
| bX: details.bP, | |
| b4: details.b4, | |
| b5: details.b5, | |
| cc: details.cc, | |
| cw: details.cw, | |
| bt: details.bt, | |
| cA: details.cA, | |
| cH: details.cH | |
| }, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classStr + (' ' + (triggerClass + (' ' + classes))), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| default: | |
| var _v23 = attrs.a; | |
| var toMsg = _v23.a; | |
| var id = _v23.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$id, has)) { | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } else { | |
| var event = A3( | |
| $elm$json$Json$Decode$map2, | |
| F2( | |
| function (_v24, box) { | |
| return toMsg( | |
| A2($author$project$Internal$Model2$BoxNew, id, box)); | |
| }), | |
| A2( | |
| $elm$json$Json$Decode$andThen, | |
| function (name) { | |
| return (name === 'on-rendered') ? $elm$json$Json$Decode$succeed(0) : $elm$json$Json$Decode$fail('Nonmatching animation'); | |
| }, | |
| A2($elm$json$Json$Decode$field, 'animationName', $elm$json$Json$Decode$string)), | |
| $author$project$Internal$Model2$decodeBoundingBox); | |
| var $temp$parentEncoded = parentEncoded, | |
| $temp$layout = layout, | |
| $temp$details = { | |
| by: details.by, | |
| bA: A2($elm$core$List$cons, event, details.bA), | |
| bF: details.bF, | |
| bP: details.bP, | |
| bQ: details.bQ, | |
| bR: details.bR, | |
| bS: details.bS, | |
| bV: details.bV, | |
| bX: details.bX, | |
| b4: details.b4, | |
| b5: details.b5, | |
| cc: details.cc, | |
| cw: details.cw, | |
| bt: details.bt, | |
| cA: details.cA, | |
| cH: details.cH | |
| }, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, $author$project$Internal$Flag2$id, has), | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$id( | |
| $author$project$Internal$Model2$toCssId(id)), | |
| htmlAttrs), | |
| $temp$classes = 'on-rendered ' + ($author$project$Internal$Model2$toCssClass(id) + (' ' + classes)), | |
| $temp$nearby = nearby, | |
| $temp$vars = vars, | |
| $temp$attrs = remain; | |
| parentEncoded = $temp$parentEncoded; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| vars = $temp$vars; | |
| attrs = $temp$attrs; | |
| continue renderAttrs; | |
| } | |
| } | |
| } else { | |
| var encoded = function () { | |
| if ((!details.cw) && ((!details.bt) && ((!details.bR) && (details.bQ === 63)))) { | |
| if (!layout) { | |
| return $author$project$Internal$Model2$rowBits | ($author$project$Internal$Model2$bitsFontAdjustments & parentEncoded); | |
| } else { | |
| return $author$project$Internal$Model2$nonRowBits | ($author$project$Internal$Model2$bitsFontAdjustments & parentEncoded); | |
| } | |
| } else { | |
| if (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$fontAdjustment, has)) { | |
| return function () { | |
| if (!layout) { | |
| return $author$project$Internal$Model2$rowBits; | |
| } else { | |
| return $author$project$Internal$Model2$nonRowBits; | |
| } | |
| }() | ((($author$project$Internal$Model2$top5 & details.bR) << 26) | ((($author$project$Internal$Model2$top6 & details.bQ) << 20) | ((($author$project$Internal$Model2$top10 & details.bt) << 10) | ($author$project$Internal$Model2$top10 & details.cw)))); | |
| } else { | |
| return function () { | |
| if (!layout) { | |
| return $author$project$Internal$Model2$rowBits; | |
| } else { | |
| return $author$project$Internal$Model2$nonRowBits; | |
| } | |
| }() | ((($author$project$Internal$Model2$top10 & details.bt) << 10) | (($author$project$Internal$Model2$top10 & details.cw) | ($author$project$Internal$Model2$bitsFontAdjustments & parentEncoded))); | |
| } | |
| } | |
| }(); | |
| var renderedChildren = function () { | |
| switch (nearby.$) { | |
| case 0: | |
| return A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(encoded), | |
| children); | |
| case 1: | |
| var behind = nearby.a; | |
| return _Utils_ap( | |
| behind, | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(encoded), | |
| children)); | |
| case 2: | |
| var inFront = nearby.a; | |
| return _Utils_ap( | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(encoded), | |
| children), | |
| inFront); | |
| default: | |
| var behind = nearby.a; | |
| var inFront = nearby.b; | |
| return _Utils_ap( | |
| behind, | |
| _Utils_ap( | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(encoded), | |
| children), | |
| inFront)); | |
| } | |
| }(); | |
| var attrsWithParentSpacing = (!parentEncoded) ? htmlAttrs : A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'margin', | |
| $elm$core$String$fromInt($author$project$Internal$Model2$bitsSpacingY & (parentEncoded >>> 10)) + ('px ' + ($elm$core$String$fromInt(parentEncoded & ($author$project$Internal$Model2$ones >>> 22)) + 'px'))), | |
| htmlAttrs); | |
| var attrsWithSpacing = (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$spacing, has) && (layout === 5)) ? A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'line-height', | |
| 'calc(1em + ' + ($elm$core$String$fromInt(details.bt) + 'px')), | |
| attrsWithParentSpacing) : attrsWithParentSpacing; | |
| var attrsWithTransform = function () { | |
| if (A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$transform, has)) { | |
| var _v32 = details.cA; | |
| if (_v32.$ === 1) { | |
| return attrsWithSpacing; | |
| } else { | |
| var trans = _v32.a; | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'transform', | |
| $author$project$Internal$Model2$transformToString(trans)), | |
| attrsWithSpacing); | |
| } | |
| } else { | |
| return attrsWithSpacing; | |
| } | |
| }(); | |
| var adjustmentNotSet = (!details.bR) && (details.bQ === 63); | |
| var attrsWithFontSize = function () { | |
| if (_Utils_eq(details.bS, -1) && adjustmentNotSet) { | |
| return attrsWithTransform; | |
| } else { | |
| if (adjustmentNotSet) { | |
| var height = $author$project$Internal$Model2$bitsFontHeight & (parentEncoded >>> 20); | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'font-size', | |
| $elm$core$String$fromFloat(details.bS * (1 / (height / 63))) + 'px'), | |
| attrsWithTransform); | |
| } else { | |
| if (!_Utils_eq(details.bS, -1)) { | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'font-size', | |
| $elm$core$String$fromFloat(details.bS * (1 / (details.bQ / 63))) + 'px'), | |
| attrsWithTransform); | |
| } else { | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'font-size', | |
| $elm$core$String$fromFloat(1 / (details.bQ / 63)) + 'em'), | |
| attrsWithTransform); | |
| } | |
| } | |
| } | |
| }(); | |
| var attrsWithWidth = (!details.cH) ? attrsWithFontSize : ((!(!($author$project$Internal$Model2$rowBits & parentEncoded))) ? A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class($author$project$Internal$Style2$classes.cH), | |
| A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'flex-grow', | |
| $elm$core$String$fromInt(details.cH * 100000)), | |
| attrsWithFontSize)) : A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class($author$project$Internal$Style2$classes.cH), | |
| attrsWithFontSize)); | |
| var attrsWithHeight = (!details.bV) ? attrsWithWidth : ((details.bV === 1) ? A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class($author$project$Internal$Style2$classes.bV), | |
| attrsWithWidth) : ((!($author$project$Internal$Model2$rowBits & parentEncoded)) ? A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class($author$project$Internal$Style2$classes.bV), | |
| A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$style, | |
| 'flex-grow', | |
| $elm$core$String$fromInt(details.bV * 100000)), | |
| attrsWithFontSize)) : A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class($author$project$Internal$Style2$classes.bV), | |
| attrsWithWidth))); | |
| var attrsWithHover = function () { | |
| var _v31 = details.bX; | |
| if (_v31.$ === 1) { | |
| return attrsWithHeight; | |
| } else { | |
| var transition = _v31.a; | |
| return A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Events$onMouseEnter( | |
| transition.Q( | |
| A3($author$project$Internal$Model2$Trans, 0, transition.l, transition.E))), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(transition.l), | |
| attrsWithHeight)); | |
| } | |
| }(); | |
| var attrsWithFocus = function () { | |
| var _v30 = details.bP; | |
| if (_v30.$ === 1) { | |
| return attrsWithHover; | |
| } else { | |
| var transition = _v30.a; | |
| return A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Events$onFocus( | |
| transition.Q( | |
| A3($author$project$Internal$Model2$Trans, 1, transition.l, transition.E))), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(transition.l), | |
| attrsWithHover)); | |
| } | |
| }(); | |
| var attrsWithActive = function () { | |
| var _v29 = details.by; | |
| if (_v29.$ === 1) { | |
| return attrsWithFocus; | |
| } else { | |
| var transition = _v29.a; | |
| return A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Events$onMouseDown( | |
| transition.Q( | |
| A3($author$project$Internal$Model2$Trans, 2, transition.l, transition.E))), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(transition.l), | |
| attrsWithFocus)); | |
| } | |
| }(); | |
| var attrsWithAnimations = function () { | |
| var _v28 = details.bA; | |
| if (!_v28.b) { | |
| return attrsWithActive; | |
| } else { | |
| var animEvents = _v28; | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Events$on, | |
| 'animationstart', | |
| $elm$json$Json$Decode$oneOf(details.bA)), | |
| attrsWithActive); | |
| } | |
| }(); | |
| var attributes = function () { | |
| if (vars === '') { | |
| return A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(classes), | |
| attrsWithAnimations); | |
| } else { | |
| return A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$property, | |
| 'style', | |
| $elm$json$Json$Encode$string(vars)), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(classes), | |
| attrsWithAnimations)); | |
| } | |
| }(); | |
| var finalAttributes = A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$id, has) ? A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class('ui-placeholder'), | |
| attributes) : attributes; | |
| var finalChildren = function () { | |
| if (layout === 5) { | |
| return A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$id, has) ? A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$div, | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class('ui-movable'), | |
| attributes), | |
| renderedChildren), | |
| A2( | |
| $elm$core$List$cons, | |
| $author$project$Internal$Model2$spacerTop(details.bt / (-2)), | |
| _Utils_ap( | |
| renderedChildren, | |
| _List_fromArray( | |
| [ | |
| $author$project$Internal$Model2$spacerBottom(details.bt / (-2)) | |
| ])))) : A2( | |
| $elm$core$List$cons, | |
| $author$project$Internal$Model2$spacerTop(details.bt / (-2)), | |
| _Utils_ap( | |
| renderedChildren, | |
| _List_fromArray( | |
| [ | |
| $author$project$Internal$Model2$spacerBottom(details.bt / (-2)) | |
| ]))); | |
| } else { | |
| return A2($author$project$Internal$Flag2$present, $author$project$Internal$Flag2$id, has) ? A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$div, | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class('ui-movable'), | |
| attributes), | |
| renderedChildren), | |
| renderedChildren) : renderedChildren; | |
| } | |
| }(); | |
| var _v25 = details.b5; | |
| switch (_v25) { | |
| case 0: | |
| return A2($elm$html$Html$div, finalAttributes, finalChildren); | |
| case 1: | |
| return A2($elm$html$Html$a, finalAttributes, finalChildren); | |
| case 2: | |
| return A2($elm$html$Html$input, finalAttributes, finalChildren); | |
| default: | |
| return A3($elm$html$Html$node, details.b4, finalAttributes, finalChildren); | |
| } | |
| } | |
| } | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $author$project$Internal$Model2$render = F9( | |
| function (layout, details, children, has, styles, htmlAttrs, classes, nearby, attrs) { | |
| render: | |
| while (true) { | |
| if (!attrs.b) { | |
| return function (parentSpacing) { | |
| var finalStyles = ((!parentSpacing) && ((!details.an) && ((!details.am) && ((!details.ab) && (!details.aa))))) ? styles : ('' + (styles + (((!(!parentSpacing)) ? ('margin:' + ($elm$core$String$fromFloat(parentSpacing) + 'px;')) : '') + ((((!(!details.an)) || (!(!details.am))) ? ('padding:' + ($elm$core$String$fromInt(details.am) + ('px ' + ($elm$core$String$fromInt(details.an) + 'px;')))) : '') + ((((!(!details.ab)) || (!(!details.aa))) ? ('border:' + ($elm$core$String$fromInt(details.aa) + ('px ' + ($elm$core$String$fromInt(details.ab) + 'px;')))) : '') + (((!(!details.P)) && (layout === 5)) ? ('line-height:calc(1em + ' + ($elm$core$String$fromInt(details.P) + 'px);')) : '')))))); | |
| var finalSpacing = function () { | |
| if (layout === 1) { | |
| return details.P; | |
| } else { | |
| return details.P; | |
| } | |
| }(); | |
| var renderedChildren = function () { | |
| switch (nearby.$) { | |
| case 0: | |
| return A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(finalSpacing), | |
| children); | |
| case 1: | |
| var behind = nearby.a; | |
| return _Utils_ap( | |
| behind, | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(finalSpacing), | |
| children)); | |
| case 2: | |
| var inFront = nearby.a; | |
| return _Utils_ap( | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(finalSpacing), | |
| children), | |
| inFront); | |
| default: | |
| var behind = nearby.a; | |
| var inFront = nearby.b; | |
| return _Utils_ap( | |
| behind, | |
| _Utils_ap( | |
| A2( | |
| $elm$core$List$map, | |
| $author$project$Internal$Model2$unwrap(finalSpacing), | |
| children), | |
| inFront)); | |
| } | |
| }(); | |
| return A2( | |
| (details.dl === 'div') ? $elm$html$Html$div : $elm$html$Html$node(details.dl), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$class(classes), | |
| A2( | |
| $elm$core$List$cons, | |
| A2( | |
| $elm$html$Html$Attributes$property, | |
| 'style', | |
| $elm$json$Json$Encode$string(finalStyles)), | |
| htmlAttrs)), | |
| renderedChildren); | |
| }; | |
| } else { | |
| switch (attrs.a.$) { | |
| case 0: | |
| var _v3 = attrs.a; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 1: | |
| var attr = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = A2($elm$core$List$cons, attr, htmlAttrs), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 2: | |
| var _v4 = attrs.a; | |
| var targetBlank = _v4.a; | |
| var url = _v4.b; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {dl: 'a'}), | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$href(url), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$rel('noopener noreferrer'), | |
| A2( | |
| $elm$core$List$cons, | |
| targetBlank ? $elm$html$Html$Attributes$target('_blank') : $elm$html$Html$Attributes$target('_self'), | |
| htmlAttrs))), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 3: | |
| var _v5 = attrs.a; | |
| var url = _v5.a; | |
| var downloadName = _v5.b; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {dl: 'a'}), | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$href(url), | |
| A2( | |
| $elm$core$List$cons, | |
| $elm$html$Html$Attributes$download(downloadName), | |
| htmlAttrs)), | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 4: | |
| var nodeName = attrs.a.a; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 8: | |
| var _v6 = attrs.a; | |
| var flag = _v6.a; | |
| var str = _v6.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = str + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| case 9: | |
| var _v7 = attrs.a; | |
| var flag = _v7.a; | |
| var str = _v7.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = _Utils_ap(str, styles), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| case 10: | |
| var _v8 = attrs.a; | |
| var flag = _v8.a; | |
| var cls = _v8.b; | |
| var sty = _v8.c; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = _Utils_ap(sty, styles), | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = cls + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| case 11: | |
| var _v9 = attrs.a; | |
| var location = _v9.a; | |
| var elem = _v9.b; | |
| var remain = attrs.b; | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = A3($author$project$Internal$Model2$addNearbyElement, location, elem, nearby), | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| case 5: | |
| var _v10 = attrs.a; | |
| var flag = _v10.a; | |
| var s = _v10.b; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has) || (layout === 3)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {P: s}), | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = $author$project$Internal$Style2$classes.P + (' ' + classes), | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| case 6: | |
| var _v11 = attrs.a; | |
| var flag = _v11.a; | |
| var x = _v11.b; | |
| var y = _v11.c; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {am: x, an: y}), | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| default: | |
| var _v12 = attrs.a; | |
| var flag = _v12.a; | |
| var x = _v12.b; | |
| var y = _v12.c; | |
| var remain = attrs.b; | |
| if (A2($author$project$Internal$Flag2$present, flag, has)) { | |
| var $temp$layout = layout, | |
| $temp$details = details, | |
| $temp$children = children, | |
| $temp$has = has, | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } else { | |
| var $temp$layout = layout, | |
| $temp$details = _Utils_update( | |
| details, | |
| {aa: x, ab: y}), | |
| $temp$children = children, | |
| $temp$has = A2($author$project$Internal$Flag2$add, flag, has), | |
| $temp$styles = styles, | |
| $temp$htmlAttrs = htmlAttrs, | |
| $temp$classes = classes, | |
| $temp$nearby = nearby, | |
| $temp$attrs = remain; | |
| layout = $temp$layout; | |
| details = $temp$details; | |
| children = $temp$children; | |
| has = $temp$has; | |
| styles = $temp$styles; | |
| htmlAttrs = $temp$htmlAttrs; | |
| classes = $temp$classes; | |
| nearby = $temp$nearby; | |
| attrs = $temp$attrs; | |
| continue render; | |
| } | |
| } | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment