UNPKG

rn-web-cli

Version:

React Native for Web

1 lines 1.98 kB
{"version":3,"sources":["node_modules\\babel-polyfill\\node_modules\\core-js\\modules\\_string-html.js"],"names":["$export","require","fails","defined","quot","createHTML","string","tag","attribute","value","S","String","p1","replace","module","exports","NAME","exec","O","P","F","test","toLowerCase","split","length"],"mappings":"AAAA,GAAIA,SAAUC,QAAQ,WAAR,CAAd;AACIC,MAAUD,QAAQ,UAAR,CADd;AAEIE,QAAUF,QAAQ,YAAR,CAFd;AAGIG,KAAU,IAHd;;AAKA,GAAIC,YAAa,QAAbA,WAAa,CAASC,MAAT,CAAiBC,GAAjB,CAAsBC,SAAtB,CAAiCC,KAAjC,CAAwC;AACvD,GAAIC,GAAKC,OAAOR,QAAQG,MAAR,CAAP,CAAT;AACIM,GAAK,IAAML,GADf;AAEA,GAAGC,YAAc,EAAjB,CAAoBI,IAAM,IAAMJ,SAAN,CAAkB,IAAlB,CAAyBG,OAAOF,KAAP,EAAcI,OAAd,CAAsBT,IAAtB,CAA4B,QAA5B,CAAzB,CAAiE,GAAvE;AACpB,MAAOQ,IAAK,GAAL,CAAWF,CAAX,CAAe,IAAf,CAAsBH,GAAtB,CAA4B,GAAnC;AACD,CALD;AAMAO,OAAOC,OAAP,CAAiB,SAASC,IAAT,CAAeC,IAAf,CAAoB;AACnC,GAAIC,GAAI,EAAR;AACAA,EAAEF,IAAF,EAAUC,KAAKZ,UAAL,CAAV;AACAL,QAAQA,QAAQmB,CAAR,CAAYnB,QAAQoB,CAAR,CAAYlB,MAAM,UAAU;AAC9C,GAAImB,MAAO,GAAGL,IAAH,EAAS,GAAT,CAAX;AACA,MAAOK,QAASA,KAAKC,WAAL,EAAT,EAA+BD,KAAKE,KAAL,CAAW,GAAX,EAAgBC,MAAhB,CAAyB,CAA/D;AACD,CAH+B,CAAhC,CAGI,QAHJ,CAGcN,CAHd;AAID,CAPD","file":"_string-html.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["var $export = require('./_export')\n , fails = require('./_fails')\n , defined = require('./_defined')\n , quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function(string, tag, attribute, value) {\n var S = String(defined(string))\n , p1 = '<' + tag;\n if(attribute !== '')p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '&quot;') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function(NAME, exec){\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function(){\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};"]}