Comparing version 2.1.3 to 2.1.6
@@ -1,2 +0,1 @@ | ||
// {"framework" : "Rax"} | ||
define("nuke-text",["rax"],function(e,t,r){r.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/build/",r(r.s=2)}([function(t,r){t.exports=e("rax")},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];return e.border&&("none"===e.border&&(e.borderWidth=0),delete e.border),t.map(function(t){if(e.hasOwnProperty("border"+t)){var r,o=(n(r={},"borderTop"+t,e["border"+t]),n(r,"borderLeft"+t,e["border"+t]),n(r,"borderRight"+t,e["border"+t]),n(r,"borderBottom"+t,e["border"+t]),r),i=!1;["Top","Left","Right","Bottom"].map(function(r){e.hasOwnProperty("border"+r+t)&&(i=!0,o["border"+r+t]=e["border"+r+t])}),i&&(delete e["border"+t],e=Object.assign({},o,e))}}),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),f=r(3),a=function(e){return e&&e.__esModule?e:{default:e}}(r(12));var u="function"!=typeof callNative,l=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.fixedFont=r.commonConfigs&&r.commonConfigs.fixedFont,n.optimizeLineHeight=r.commonConfigs&&r.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(n.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(n.optimizeLineHeight=e.optimizeLineHeight),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+(u?"px":"wx"):e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,r=e.onClick,o=e.style,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete u.optimizeLineHeight,l=this.fixedFont?(0,f.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(a.default,n({},u,{style:l,onClick:t||r}))}}]),t}();l.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},l.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},l.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(e,2)+1.492*e+2.174)}},t.default=l,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(4)),o=s(r(5)),i=s(r(6)),f=s(r(7)),a=s(r(8)),u=s(r(1)),l=s(r(9)),c=s(r(10)),p=s(r(11));function s(e){return e&&e.__esModule?e:{default:e}}t.default={calcTextSize:n.default,hairLine:o.default,textKeys:i.default,borderSeperate:u.default,bubbleKeys:f.default,fixSmallUnit:a.default,hex:l.default,layout:c.default,rem:p.default},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="function"!=typeof callNative,i=void 0;if(o)i=navigator.userAgent.indexOf("iPad")>-1;else{var f="string"!=typeof WXEnvironment?WXEnvironment:{};i="ios"===f.platform.toLowerCase()&&f.deviceModel.toLowerCase().indexOf("ipad")>-1}function a(e){var t=n({},e),r=e.fontSize;return("string"==typeof r&&r.indexOf("rem")>0||"number"==typeof r)&&(r=parseInt(r,10)),"string"==typeof r&&r.indexOf("px")>0&&(r=2*parseInt(r,10)),t.fontSize=r,t}t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.fontSize||!t)return e;if(i&&r)return a(e);var f=n({},e),u=e.fontSize;return("string"==typeof u&&u.indexOf("rem")>0||"number"==typeof u)&&(u=Math.floor(parseInt(u,10)/2)),"string"==typeof u&&u.indexOf("px")>0&&(u=parseInt(u,10)),f.fontSize=u+(o?"px":"wx"),f},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1));var o="function"!=typeof callNative,i={detect:function(){var e=void 0;if(!o)return!0;if(window.OffsetHeightForRxBorder)e=window.OffsetHeightForRxBorder;else if(window&&window.devicePixelRatio&&window.devicePixelRatio>=2){var t=document.createElement("div");t.style.border=".5px solid transparent",t.style.height=0,t.style.boxSizing="content-box",document.body.appendChild(t),e=1===t.offsetHeight,window.OffsetHeightForRxBorder=e,document.body.removeChild(t)}return e},fixBorder:function(e){if(!o)return e;var t=i.detect()?"0.5px":"1px";return e=(0,n.default)(e,["Width"]),["Top","Left","Right","Bottom"].map(function(r){e["border"+r+"Width"]&&1===parseFloat(e["border"+r+"Width"],10)&&(e["border"+r+"Width"]=t)}),e.borderWidth&&1===parseFloat(e.borderWidth,10)&&(e.borderWidth=t),e}};t.default=i,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["display","justifyContent","alignItems","flexDirection","overflow","backgroundColor","visibility","outline","transition","zoom","flexWrap","position","zIndex","flex","width","height"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"!=typeof callNative;t.default=function(e){var t=parseInt(e,10);return t>6?e:Math.floor(t/2).toString()+(n?"px":"wx")},e.exports=t.default},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.valueToObj=function(e){return Object.keys(e).map(function(t){"object"===n(e[t])&&(e[t]={name:t,raw:e[t]})}),e},t.hexToRgb=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},t.rgba=function(e,r){"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),"object"===(void 0===r?"undefined":n(r))&&"raw"in r&&(r=r.raw);var o=t.hexToRgb(e);return o?"rgba("+o.r+","+o.g+","+o.b+","+r+")":null}},function(e,t,r){"use strict";t.alignCenter=function(){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="function"==typeof callNative;t.caculateRemToPx=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:750;if("object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),o)return e;e=t.removeRemUnit(e);var i=document.documentElement.clientWidth/r,f=Math.round(parseFloat(e)*i);return f%2==0?f+"px":f-1+"px"},t.removeRemUnit=function(e){return(e=String(e)).replace("rem","")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(0);function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c="function"==typeof callNative,p=(o=n=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.renderText=function(){var e=n.props,t=f({},e,{style:e.style||{}}),r="";if(null!=e.children&&(r=Array.isArray(e.children)?e.children.join(""):e.children.toString()),n.context.isInAParentText)return(0,u.createElement)("span",t,r);if(e.onPress&&(t.onClick=e.onPress),c)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=r,(0,u.createElement)("text",t);var o=f({},y.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=String(i)),o.overflow="hidden"),(0,u.createElement)("span",f({},t,{style:o}),r)},n.renderRichText=function(){var e=n.props,t=e.children,r=f({},e,{style:e.style||{}}),o=f({},y.richtext,r.style);return c&&(t=d(t,n)),(0,u.createElement)("p",f({},r,{style:o}),t)},l(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),a(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(n&&"object"===(void 0===n?"undefined":i(n))){t=!0;break}}return t?this.renderRichText():this.renderText()}}]),t}(),n.propTypes={},n.contextTypes={isInAParentText:u.PropTypes.bool},n.childContextTypes={isInAParentText:u.PropTypes.bool},o);function s(e,t){var r=e.type,n=e.props,o=n.children;if("function"==typeof r){var i=new r;return i.props=n,o&&(i.props.children=d(o,t)),i.context=t.getChildContext(),i.render()}return e}function d(e,t){var r=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];"string"==typeof o?r.push(o):"object"===(void 0===o?"undefined":i(o))&&r.push(s(o,t))}return r}var y={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}])}); | ||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(e,t){e.exports=require("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c="function"!=typeof callNative,a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+(c?"px":"wx"):e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),a=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,a=this.fixedFont?(0,l.calcTextSize)(a):a,a=this.optimizeLineHeight?this.calcLineHeight(a):a,(0,i.createElement)(u.default,r({},c,{style:a,onClick:t||n}))}}]),t}();a.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},a.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},a.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=a,e.exports=t.default},function(e,t){e.exports=require("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f="function"==typeof callNative,p=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);if(e.onPress&&(t.onClick=e.onPress),f)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t);var o=l({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},b.richtext,n.style);return f&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),u(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}]); |
// {"framework" : "Rax"} | ||
define("nuke-text",["React"],function(e,t,r){r.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/build/",r(r.s=3)}([function(e,t){e.exports=React},function(e,t,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=r(4)()},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];return e.border&&("none"===e.border&&(e.borderWidth=0),delete e.border),t.map(function(t){if(e.hasOwnProperty("border"+t)){var r,o=(n(r={},"borderTop"+t,e["border"+t]),n(r,"borderLeft"+t,e["border"+t]),n(r,"borderRight"+t,e["border"+t]),n(r,"borderBottom"+t,e["border"+t]),r),i=!1;["Top","Left","Right","Bottom"].map(function(r){e.hasOwnProperty("border"+r+t)&&(i=!0,o["border"+r+t]=e["border"+r+t])}),i&&(delete e["border"+t],e=Object.assign({},o,e))}}),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),a=l(r(1)),f=r(6),u=l(r(15));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.fixedFont=r.commonConfigs&&r.commonConfigs.fixedFont,n.optimizeLineHeight=r.commonConfigs&&r.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(n.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(n.optimizeLineHeight=e.optimizeLineHeight),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,r=e.onClick,o=e.style,a=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete a.optimizeLineHeight,l=this.fixedFont?(0,f.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(u.default,n({},a,{style:function(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],r={};if(Array.isArray(e))for(var n=0;n<e.length;n++)Object.assign(r,e[n]);else r=e;for(var o in r)t.indexOf(o)>-1&&("fontSize"===o&&console.log("-------\x3e",r[o],"=====>",7.5),/^\d+$/.test(r[o])?r[o]=(r[o]/7.5).toFixed(6)+"vw":"string"==typeof r[o]&&r[o].indexOf("rem")>-1&&(r[o]=(r[o].replace("rem","")/7.5).toFixed(6)+"vw"));return r}(l),onClick:t||r}))}}]),t}();d.contextTypes={androidConfigs:a.default.any,commonConfigs:a.default.any},d.propTypes={optimizeLineHeight:a.default.boolean,fixedFont:a.default.boolean,style:a.default.any,onPress:a.default.func,onClick:a.default.func,lineHeightOptimizer:a.default.func},d.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(e,2)+1.492*e+2.174)}},t.default=d,e.exports=t.default},function(e,t,r){"use strict";var n=r(5);function o(){}e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=o,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(7)),o=s(r(8)),i=s(r(9)),a=s(r(10)),f=s(r(11)),u=s(r(2)),l=s(r(12)),d=s(r(13)),c=s(r(14));function s(e){return e&&e.__esModule?e:{default:e}}t.default={calcTextSize:n.default,hairLine:o.default,textKeys:i.default,borderSeperate:u.default,bubbleKeys:a.default,fixSmallUnit:f.default,hex:l.default,layout:d.default,rem:c.default},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=void 0;function i(e){var t=n({},e),r=e.fontSize;return("string"==typeof r&&r.indexOf("rem")>0||"number"==typeof r)&&(r=parseInt(r,10)),"string"==typeof r&&r.indexOf("px")>0&&(r=2*parseInt(r,10)),t.fontSize=r,t}o=navigator.userAgent.indexOf("iPad")>-1,t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.fontSize||!t)return e;if(o&&r)return i(e);var a=n({},e),f=e.fontSize;return("string"==typeof f&&f.indexOf("rem")>0||"number"==typeof f)&&(f=Math.floor(parseInt(f,10)/2)),"string"==typeof f&&f.indexOf("px")>0&&(f=parseInt(f,10)),a.fontSize=f+"px",a},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(2));var o={detect:function(){var e=void 0;if(window.OffsetHeightForRxBorder)e=window.OffsetHeightForRxBorder;else if(window&&window.devicePixelRatio&&window.devicePixelRatio>=2){var t=document.createElement("div");t.style.border=".5px solid transparent",t.style.height=0,t.style.boxSizing="content-box",document.body.appendChild(t),e=1===t.offsetHeight,window.OffsetHeightForRxBorder=e,document.body.removeChild(t)}return e},fixBorder:function(e){var t=o.detect()?"0.5px":"1px";return e=(0,n.default)(e,["Width"]),["Top","Left","Right","Bottom"].map(function(r){e["border"+r+"Width"]&&1===parseFloat(e["border"+r+"Width"],10)&&(e["border"+r+"Width"]=t)}),e.borderWidth&&1===parseFloat(e.borderWidth,10)&&(e.borderWidth=t),e}};t.default=o,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["display","justifyContent","alignItems","flexDirection","overflow","backgroundColor","visibility","outline","transition","zoom","flexWrap","position","zIndex","flex","width","height"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=parseInt(e,10);return t>6?e:Math.floor(t/2).toString()+"px"},e.exports=t.default},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.valueToObj=function(e){return Object.keys(e).map(function(t){"object"===n(e[t])&&(e[t]={name:t,raw:e[t]})}),e},t.hexToRgb=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},t.rgba=function(e,r){"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),"object"===(void 0===r?"undefined":n(r))&&"raw"in r&&(r=r.raw);var o=t.hexToRgb(e);return o?"rgba("+o.r+","+o.g+","+o.b+","+r+")":null}},function(e,t,r){"use strict";t.alignCenter=function(){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.caculateRemToPx=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:750;"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),e=t.removeRemUnit(e);var o=document.documentElement.clientWidth/r,i=Math.round(parseFloat(e)*o);return i%2==0?i+"px":i-1+"px"},t.removeRemUnit=function(e){return(e=String(e)).replace("rem","")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(0),l=function(e){return e&&e.__esModule?e:{default:e}}(r(1));function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],r={};if(Array.isArray(e))for(var n=0;n<e.length;n++)Object.assign(r,e[n]);else r=e;for(var o in r)t.indexOf(o)>-1&&("fontSize"===o&&console.log("-------\x3e",r[o],"=====>",7.5),/^\d+$/.test(r[o])?r[o]=(r[o]/7.5).toFixed(6)+"vw":"string"==typeof r[o]&&r[o].indexOf("rem")>-1&&(r[o]=(r[o].replace("rem","")/7.5).toFixed(6)+"vw"));return r}var s=!1,p=(o=n=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),f=0;f<o;f++)i[f]=arguments[f];return r=n=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.renderText=function(){var e=n.props,t=a({},e,{style:e.style||{}}),r="";if(null!=e.children&&(r=Array.isArray(e.children)?e.children.join(""):e.children.toString()),n.context.isInAParentText)return(0,u.createElement)("span",t,r);if(e.onPress&&(t.onClick=e.onPress),s)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=r,(0,u.createElement)("text",t);var o=a({},h.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=String(i)),o.overflow="hidden"),(0,u.createElement)("span",a({},t,{style:c(o)}),r)},n.renderRichText=function(){var e=n.props,t=e.children,r=a({},e,{style:e.style||{}}),o=a({},h.richtext,r.style);return s&&(t=y(t,n)),(0,u.createElement)("p",a({},r,{style:c(o)}),t)},d(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),f(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(n&&"object"===(void 0===n?"undefined":i(n))){t=!0;break}}return t?this.renderRichText():this.renderText()}}]),t}(),n.propTypes={},n.contextTypes={isInAParentText:l.default.bool},n.childContextTypes={isInAParentText:l.default.bool},o);function b(e,t){var r=e.type,n=e.props,o=n.children;if("function"==typeof r){var i=new r;return i.props=n,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var r=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];"string"==typeof o?r.push(o):"object"===(void 0===o?"undefined":i(o))&&r.push(b(o,t))}return r}var h={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=p,e.exports=t.default}])}); | ||
define("nuke-text",["React","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=2)}([function(e,t){e.exports=React},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(3)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=l(n(1)),f=n(5),u=l(n(6));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,a=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete a.optimizeLineHeight,l=this.fixedFont?(0,f.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(u.default,r({},a,{style:function(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}(l),onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:a.default.any,commonConfigs:a.default.any},c.propTypes={optimizeLineHeight:a.default.boolean,fixedFont:a.default.boolean,style:a.default.any,onPress:a.default.func,onClick:a.default.func,lineHeightOptimizer:a.default.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(e,t,n){"use strict";var r=n(4);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},f=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e){var t=["fontSize","width","height","minWidth","minHeight","maxWidth","maxHeight","margin","padding","marginLeft","marginRight","marginTop","marginBottom","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","top","bottom","left","right"],n={};if(Array.isArray(e))for(var r=0;r<e.length;r++)Object.assign(n,e[r]);else n=e;for(var o in n)-1<t.indexOf(o)&&("fontSize"===o&&console.log("-------\x3e",n[o],"=====>",7.5),/^\d+$/.test(n[o])?n[o]=(n[o]/7.5).toFixed(6)+"vw":"string"==typeof n[o]&&-1<n[o].indexOf("rem")&&(n[o]=(n[o].replace("rem","")/7.5).toFixed(6)+"vw"));return n}var s=!1,d=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),f=0;f<o;f++)i[f]=arguments[f];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=a({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,u.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=a({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,u.createElement)("span",a({},t,{style:p(o)}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=a({},e,{style:e.style||{}}),o=a({},b.richtext,n.style);return s&&(t=y(t,r)),(0,u.createElement)("p",a({},n,{style:p(o)}),t)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Component),f(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:l.default.bool},r.childContextTypes={isInAParentText:l.default.bool},o);function h(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(h(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=d,e.exports=t.default}])}); |
// {"framework" : "Rax"} | ||
define("nuke-text",["rax"],function(e,t,r){r.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/build/",r(r.s=2)}([function(t,r){t.exports=e("rax")},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];return e.border&&("none"===e.border&&(e.borderWidth=0),delete e.border),t.map(function(t){if(e.hasOwnProperty("border"+t)){var r,o=(n(r={},"borderTop"+t,e["border"+t]),n(r,"borderLeft"+t,e["border"+t]),n(r,"borderRight"+t,e["border"+t]),n(r,"borderBottom"+t,e["border"+t]),r),i=!1;["Top","Left","Right","Bottom"].map(function(r){e.hasOwnProperty("border"+r+t)&&(i=!0,o["border"+r+t]=e["border"+r+t])}),i&&(delete e["border"+t],e=Object.assign({},o,e))}}),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),u=r(3),a=function(e){return e&&e.__esModule?e:{default:e}}(r(12));var f=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.fixedFont=r.commonConfigs&&r.commonConfigs.fixedFont,n.optimizeLineHeight=r.commonConfigs&&r.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(n.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(n.optimizeLineHeight=e.optimizeLineHeight),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,r=e.onClick,o=e.style,f=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete f.optimizeLineHeight,l=this.fixedFont?(0,u.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(a.default,n({},f,{style:l,onClick:t||r}))}}]),t}();f.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},f.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},f.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(e,2)+1.492*e+2.174)}},t.default=f,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(4)),o=p(r(5)),i=p(r(6)),u=p(r(7)),a=p(r(8)),f=p(r(1)),l=p(r(9)),c=p(r(10)),s=p(r(11));function p(e){return e&&e.__esModule?e:{default:e}}t.default={calcTextSize:n.default,hairLine:o.default,textKeys:i.default,borderSeperate:f.default,bubbleKeys:u.default,fixSmallUnit:a.default,hex:l.default,layout:c.default,rem:s.default},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=void 0;function i(e){var t=n({},e),r=e.fontSize;return("string"==typeof r&&r.indexOf("rem")>0||"number"==typeof r)&&(r=parseInt(r,10)),"string"==typeof r&&r.indexOf("px")>0&&(r=2*parseInt(r,10)),t.fontSize=r,t}o=navigator.userAgent.indexOf("iPad")>-1,t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.fontSize||!t)return e;if(o&&r)return i(e);var u=n({},e),a=e.fontSize;return("string"==typeof a&&a.indexOf("rem")>0||"number"==typeof a)&&(a=Math.floor(parseInt(a,10)/2)),"string"==typeof a&&a.indexOf("px")>0&&(a=parseInt(a,10)),u.fontSize=a+"px",u},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1));var o={detect:function(){var e=void 0;if(window.OffsetHeightForRxBorder)e=window.OffsetHeightForRxBorder;else if(window&&window.devicePixelRatio&&window.devicePixelRatio>=2){var t=document.createElement("div");t.style.border=".5px solid transparent",t.style.height=0,t.style.boxSizing="content-box",document.body.appendChild(t),e=1===t.offsetHeight,window.OffsetHeightForRxBorder=e,document.body.removeChild(t)}return e},fixBorder:function(e){var t=o.detect()?"0.5px":"1px";return e=(0,n.default)(e,["Width"]),["Top","Left","Right","Bottom"].map(function(r){e["border"+r+"Width"]&&1===parseFloat(e["border"+r+"Width"],10)&&(e["border"+r+"Width"]=t)}),e.borderWidth&&1===parseFloat(e.borderWidth,10)&&(e.borderWidth=t),e}};t.default=o,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["display","justifyContent","alignItems","flexDirection","overflow","backgroundColor","visibility","outline","transition","zoom","flexWrap","position","zIndex","flex","width","height"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=parseInt(e,10);return t>6?e:Math.floor(t/2).toString()+"px"},e.exports=t.default},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.valueToObj=function(e){return Object.keys(e).map(function(t){"object"===n(e[t])&&(e[t]={name:t,raw:e[t]})}),e},t.hexToRgb=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},t.rgba=function(e,r){"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),"object"===(void 0===r?"undefined":n(r))&&"raw"in r&&(r=r.raw);var o=t.hexToRgb(e);return o?"rgba("+o.r+","+o.g+","+o.b+","+r+")":null}},function(e,t,r){"use strict";t.alignCenter=function(){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.caculateRemToPx=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:750;"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),e=t.removeRemUnit(e);var o=document.documentElement.clientWidth/r,i=Math.round(parseFloat(e)*o);return i%2==0?i+"px":i-1+"px"},t.removeRemUnit=function(e){return(e=String(e)).replace("rem","")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),f=r(0);function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=!1,s=(o=n=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.renderText=function(){var e=n.props,t=u({},e,{style:e.style||{}}),r="";if(null!=e.children&&(r=Array.isArray(e.children)?e.children.join(""):e.children.toString()),n.context.isInAParentText)return(0,f.createElement)("span",t,r);if(e.onPress&&(t.onClick=e.onPress),c)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=r,(0,f.createElement)("text",t);var o=u({},y.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=String(i)),o.overflow="hidden"),(0,f.createElement)("span",u({},t,{style:o}),r)},n.renderRichText=function(){var e=n.props,t=e.children,r=u({},e,{style:e.style||{}}),o=u({},y.richtext,r.style);return c&&(t=d(t,n)),(0,f.createElement)("p",u({},r,{style:o}),t)},l(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,f.Component),a(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(n&&"object"===(void 0===n?"undefined":i(n))){t=!0;break}}return t?this.renderRichText():this.renderText()}}]),t}(),n.propTypes={},n.contextTypes={isInAParentText:f.PropTypes.bool},n.childContextTypes={isInAParentText:f.PropTypes.bool},o);function p(e,t){var r=e.type,n=e.props,o=n.children;if("function"==typeof r){var i=new r;return i.props=n,o&&(i.props.children=d(o,t)),i.context=t.getChildContext(),i.render()}return e}function d(e,t){var r=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];"string"==typeof o?r.push(o):"object"===(void 0===o?"undefined":i(o))&&r.push(p(o,t))}return r}var y={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=s,e.exports=t.default}])}); | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"px":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),p=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,p=this.fixedFont?(0,l.calcTextSize)(p):p,p=this.optimizeLineHeight?this.calcLineHeight(p):p,(0,i.createElement)(u.default,r({},c,{style:p,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=!1,f=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=l({},e,{style:e.style||{}}),n="";if(null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText)return(0,c.createElement)("span",t,n);e.onPress&&(t.onClick=e.onPress);var o=l({},b.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=i+""),o.overflow="hidden"),(0,c.createElement)("span",l({},t,{style:o}),n)},r.renderRichText=function(){var e=r.props,t=e.children,n=l({},e,{style:e.style||{}}),o=l({},b.richtext,n.style);return a&&(t=y(t,r)),(0,c.createElement)("p",l({},n,{style:o}),t)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),u(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=f,e.exports=t.default}])}); |
// {"framework" : "Rax"} | ||
define("nuke-text",["rax"],function(e,t,r){r.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/build/",r(r.s=2)}([function(t,r){t.exports=e("rax")},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["Color","Style","Width"];return e.border&&("none"===e.border&&(e.borderWidth=0),delete e.border),t.map(function(t){if(e.hasOwnProperty("border"+t)){var r,o=(n(r={},"borderTop"+t,e["border"+t]),n(r,"borderLeft"+t,e["border"+t]),n(r,"borderRight"+t,e["border"+t]),n(r,"borderBottom"+t,e["border"+t]),r),i=!1;["Top","Left","Right","Bottom"].map(function(r){e.hasOwnProperty("border"+r+t)&&(i=!0,o["border"+r+t]=e["border"+r+t])}),i&&(delete e["border"+t],e=Object.assign({},o,e))}}),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),u=r(3),f=function(e){return e&&e.__esModule?e:{default:e}}(r(12));var a=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.fixedFont=r.commonConfigs&&r.commonConfigs.fixedFont,n.optimizeLineHeight=r.commonConfigs&&r.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(n.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(n.optimizeLineHeight=e.optimizeLineHeight),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"wx":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,r=e.onClick,o=e.style,a=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["onPress","onClick","style"]),l=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete a.optimizeLineHeight,l=this.fixedFont?(0,u.calcTextSize)(l):l,l=this.optimizeLineHeight?this.calcLineHeight(l):l,(0,i.createElement)(f.default,n({},a,{style:l,onClick:t||r}))}}]),t}();a.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},a.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},a.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(9.24*Math.pow(10,-5)*Math.pow(e,2)+1.492*e+2.174)}},t.default=a,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(4)),o=p(r(5)),i=p(r(6)),u=p(r(7)),f=p(r(8)),a=p(r(1)),l=p(r(9)),c=p(r(10)),s=p(r(11));function p(e){return e&&e.__esModule?e:{default:e}}t.default={calcTextSize:n.default,hairLine:o.default,textKeys:i.default,borderSeperate:a.default,bubbleKeys:u.default,fixSmallUnit:f.default,hex:l.default,layout:c.default,rem:s.default},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=void 0,i=WXEnvironment;function u(e){var t=n({},e),r=e.fontSize;return("string"==typeof r&&r.indexOf("rem")>0||"number"==typeof r)&&(r=parseInt(r,10)),"string"==typeof r&&r.indexOf("px")>0&&(r=2*parseInt(r,10)),t.fontSize=r,t}o="ios"===i.platform.toLowerCase()&&i.deviceModel.toLowerCase().indexOf("ipad")>-1,t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.fontSize||!t)return e;if(o&&r)return u(e);var i=n({},e),f=e.fontSize;return("string"==typeof f&&f.indexOf("rem")>0||"number"==typeof f)&&(f=Math.floor(parseInt(f,10)/2)),"string"==typeof f&&f.indexOf("px")>0&&(f=parseInt(f,10)),i.fontSize=f+"wx",i},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e&&e.__esModule}(r(1));var n={detect:function(){return!0},fixBorder:function(e){return e}};t.default=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["color","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["display","justifyContent","alignItems","flexDirection","overflow","backgroundColor","visibility","outline","transition","zoom","flexWrap","position","zIndex","flex","width","height"],e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=parseInt(e,10);return t>6?e:Math.floor(t/2).toString()+"wx"},e.exports=t.default},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.valueToObj=function(e){return Object.keys(e).map(function(t){"object"===n(e[t])&&(e[t]={name:t,raw:e[t]})}),e},t.hexToRgb=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,r,n){return t+t+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},t.rgba=function(e,r){"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),"object"===(void 0===r?"undefined":n(r))&&"raw"in r&&(r=r.raw);var o=t.hexToRgb(e);return o?"rgba("+o.r+","+o.g+","+o.b+","+r+")":null}},function(e,t,r){"use strict";t.alignCenter=function(){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.caculateRemToPx=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"object"===(void 0===e?"undefined":n(e))&&"raw"in e&&(e=e.raw),e},t.removeRemUnit=function(e){return(e=String(e)).replace("rem","")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(0);function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=!0,s=(o=n=function(e){function t(){var e,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),f=0;f<o;f++)i[f]=arguments[f];return r=n=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.renderText=function(){var e=n.props,t=u({},e,{style:e.style||{}}),r="";if(null!=e.children&&(r=Array.isArray(e.children)?e.children.join(""):e.children.toString()),n.context.isInAParentText)return(0,a.createElement)("span",t,r);if(e.onPress&&(t.onClick=e.onPress),c)return e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=r,(0,a.createElement)("text",t);var o=u({},y.text,t.style),i=e.numberOfLines;return i&&(1===parseInt(i)?o.whiteSpace="nowrap":(o.display="-webkit-box",o.webkitBoxOrient="vertical",o.webkitLineClamp=String(i)),o.overflow="hidden"),(0,a.createElement)("span",u({},t,{style:o}),r)},n.renderRichText=function(){var e=n.props,t=e.children,r=u({},e,{style:e.style||{}}),o=u({},y.richtext,r.style);return c&&(t=d(t,n)),(0,a.createElement)("p",u({},r,{style:o}),t)},l(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),f(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(n&&"object"===(void 0===n?"undefined":i(n))){t=!0;break}}return t?this.renderRichText():this.renderText()}}]),t}(),n.propTypes={},n.contextTypes={isInAParentText:a.PropTypes.bool},n.childContextTypes={isInAParentText:a.PropTypes.bool},o);function p(e,t){var r=e.type,n=e.props,o=n.children;if("function"==typeof r){var i=new r;return i.props=n,o&&(i.props.children=d(o,t)),i.context=t.getChildContext(),i.render()}return e}function d(e,t){var r=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var o=e[n];"string"==typeof o?r.push(o):"object"===(void 0===o?"undefined":i(o))&&r.push(p(o,t))}return r}var y={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=s,e.exports=t.default}])}); | ||
define("nuke-text",["rax","nuke-helper"],function(e,t,n){n.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=1)}([function(t,n){t.exports=e("rax")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=n(2),l=function(e){return e&&e.__esModule?e:{default:e}}(n(3));var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.fixedFont=n.commonConfigs&&n.commonConfigs.fixedFont,r.optimizeLineHeight=n.commonConfigs&&n.commonConfigs.optimizeLineHeight,"fixedFont"in e&&(r.fixedFont=e.fixedFont),"optimizeLineHeight"in e&&(r.optimizeLineHeight=e.optimizeLineHeight),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"calcLineHeight",value:function(e){var t=(0,this.props.lineHeightOptimizer)(parseInt(e.fontSize,10));return t&&!e.lineHeight&&(this.fixedFont&&"number"==typeof t?e.lineHeight=t+"wx":e.lineHeight=t),e}},{key:"render",value:function(){var e=this.props,t=e.onPress,n=e.onClick,o=e.style,c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onPress","onClick","style"]),f=Object.assign({fontSize:"32rem",wordWrap:"break-word"},o);return delete c.optimizeLineHeight,f=this.fixedFont?(0,u.calcTextSize)(f):f,f=this.optimizeLineHeight?this.calcLineHeight(f):f,(0,i.createElement)(l.default,r({},c,{style:f,onClick:t||n}))}}]),t}();c.contextTypes={androidConfigs:i.PropTypes.any,commonConfigs:i.PropTypes.any},c.propTypes={optimizeLineHeight:i.PropTypes.boolean,fixedFont:i.PropTypes.boolean,style:i.PropTypes.any,onPress:i.PropTypes.func,onClick:i.PropTypes.func,lineHeightOptimizer:i.PropTypes.func},c.defaultProps={style:{},lineHeightOptimizer:function(e){return Math.ceil(1e-5*9.24*Math.pow(e,2)+1.492*e+2.174)}},t.default=c,e.exports=t.default},function(t,n){t.exports=e("nuke-helper")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=function(){function e(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0);function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=!0,a=(o=r=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.renderText=function(){var e=r.props,t=u({},e,{style:e.style||{}}),n="";return null!=e.children&&(n=Array.isArray(e.children)?e.children.join(""):e.children.toString()),r.context.isInAParentText?(0,c.createElement)("span",t,n):(e.onPress&&(t.onClick=e.onPress),e.numberOfLines&&(t.style.lines=e.numberOfLines),t.value=n,(0,c.createElement)("text",t))},r.renderRichText=function(){var e=r.props,t=e.children,n=u({},e,{style:e.style||{}}),o=u({},b.richtext,n.style);return p&&(t=y(t,r)),(0,c.createElement)("p",u({},n,{style:o}),t)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),l(t,[{key:"getChildContext",value:function(){return{isInAParentText:!0}}},{key:"render",value:function(){var e=this.props.children;Array.isArray(e)||(e=[e]);for(var t,n=!1,r=0;r<e.length;r++)if((t=e[r])&&"object"===(void 0===t?"undefined":i(t))){n=!0;break}return n?this.renderRichText():this.renderText()}}]),t}(),r.propTypes={},r.contextTypes={isInAParentText:c.PropTypes.bool},r.childContextTypes={isInAParentText:c.PropTypes.bool},o);function s(e,t){var n=e.type,r=e.props,o=r.children;if("function"==typeof n){var i=new n;return i.props=r,o&&(i.props.children=y(o,t)),i.context=t.getChildContext(),i.render()}return e}function y(e,t){var n=[];Array.isArray(e)||(e=[e]);for(var r,o=0;o<e.length;o++)"string"==typeof(r=e[o])?n.push(r):"object"===(void 0===r?"undefined":i(r))&&n.push(s(r,t));return n}var b={text:{border:"0 solid black",position:"relative",boxSizing:"border-box",display:"block",flexDirection:"column",alignContent:"flex-start",flexShrink:0,fontSize:32},richtext:{marginTop:0,marginBottom:0}};t.default=a,e.exports=t.default}])}); |
@@ -6,2 +6,11 @@ # Change Log | ||
<a name="2.1.6"></a> | ||
## [2.1.6](https://gitlab.alibaba-inc.com/nuke/text/compare/v2.1.4...v2.1.6) (2018-08-15) | ||
**Note:** Version bump only for package nuke-text | ||
<a name="2.1.3"></a> | ||
@@ -8,0 +17,0 @@ ## [2.1.3](https://gitlab.alibaba-inc.com/nuke/text/compare/v2.1.2...v2.1.3) (2018-08-15) |
{ | ||
"name": "nuke-text", | ||
"version": "2.1.3", | ||
"version": "2.1.6", | ||
"description": "文本", | ||
@@ -45,8 +45,8 @@ "main": "lib/index", | ||
"dependencies": { | ||
"nuke-helper": "^2.1.3" | ||
"nuke-helper": "^2.1.6" | ||
}, | ||
"devDependencies": { | ||
"nuke-env": "^2.1.3", | ||
"nuke-page": "^2.1.3", | ||
"nuke-view": "^2.1.3" | ||
"nuke-env": "^2.1.6", | ||
"nuke-page": "^2.1.6", | ||
"nuke-view": "^2.1.6" | ||
}, | ||
@@ -57,3 +57,3 @@ "publishConfig": { | ||
"license": "Apache", | ||
"gitHead": "c5505fdafa2a561e741007ab32582394b5f028aa" | ||
"gitHead": "9b72a52f7ba75032458a88b2e3beaeb29059b939" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66227
350
4
1
Updatednuke-helper@^2.1.6