UNPKG

weex-flymeui

Version:

A Flyme Style UI library based on Weex for Creator.

3 lines (2 loc) 32 kB
// { "framework": "Vue" } !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["npm/weex-flymeui/components/fm-slider/index"]=t():e["npm/weex-flymeui/components/fm-slider/index"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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="/",n(n.s=205)}({0:function(e,t){e.exports=function(e,t,n,r,i){var o,s=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(o=e,s=e.default);var u,l="function"==typeof s?s.options:s;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),r&&(l._scopeId=r),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=u):n&&(u=n),u){var c=l.functional,d=c?l.render:l.beforeCreate;c?l.render=function(e,t){return u.call(t),d(e,t)}:l.beforeCreate=d?[].concat(d,u):[u]}return{esModule:o,exports:s,options:l}}},1:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},19:function(module,exports,__webpack_require__){!function(e){module.exports=e()}(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=n(1);function o(e){try{if(void 0!==("undefined"==typeof weex?"undefined":r(weex))&&weex.requireModule)return weex.requireModule(e)}catch(e){}return window.require("@weex-module/"+e)}var s=!0,a=!0,u=void 0;try{u=o("bindingx"),s=!0}catch(e){s=!1}if(!u||!u.bind)try{u=o("binding"),s=!0}catch(e){s=!1}if(!(s=!!(u&&u.bind&&u.unbind)))try{u=o("expressionBinding"),a=!0}catch(e){a=!1}function l(e){if(void 0!==e){try{e=JSON.parse(e)}catch(e){}var t={};if("string"==typeof e?t.origin=e:e&&(t.origin=e.origin,t.transformed=e.transformed),t.transformed||t.origin)return t.transformed=t.transformed||(0,i.parse)(t.origin),t}}a=!(!u||!u.bind&&!u.createBinding),t.default={isSupportNewBinding:s,isSupportBinding:a,_bindingInstances:[],bind:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(!e)throw new Error("should pass options for binding");if(e.exitExpression=l(e.exitExpression),e.props&&e.props.forEach(function(e){e.expression=l(e.expression)}),u&&a){if(s)return u.bind(e,e&&"timing"===e.eventType?function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("function"==typeof e)return e({state:"end"===t.state?"exit":t.state,t:void 0!==t.t?t.t:t.deltaT})}}(t):t);u.enableBinding(e.anchor,e.eventType);var n=e.props.map(function(e){return{element:e.element,property:e.property,expression:e.expression.transformed}});u.createBinding(e.anchor,e.eventType,"",n,t)}},unbind:function(e){if(!e)throw new Error("should pass options for binding");if(u&&a)return s?u.unbind(e):u.disableBinding(e.anchor,e.eventType)},unbindAll:function(){if(u&&a)return s?u.unbindAll():u.disableAll()},prepare:function(e){if(u&&a)return s?u.prepare(e):u.enableBinding(e.anchor,e.eventType)},getComputedStyle:function(e){return s?u.getComputedStyle(e):{}}},e.exports=t.default},function(e,t,n){"use strict";e.exports=n(2)},function(module,exports,__webpack_require__){"use strict";var lex={InputElementDiv:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",InputElementRegExp:"<WhiteSpace>|<LineTerminator>|<ReservedWord>|<Identifier>|<NumericLiteral>|<Punctuator>|<StringLiteral>",ReservedWord:"<Keyword>|<NullLiteral>|<BooleanLiteral>",WhiteSpace:/[\t\v\f\u0020\u00A0\u1680\u180E\u2000-\u200A\u202F\u205f\u3000\uFEFF]/,LineTerminator:/[\n\r\u2028\u2029]/,Keyword:/new(?![_$a-zA-Z0-9])|void(?![_$a-zA-Z0-9])|delete(?![_$a-zA-Z0-9])|in(?![_$a-zA-Z0-9])|instanceof(?![_$a-zA-Z0-9])|typeof(?![_$a-zA-Z0-9])/,NullLiteral:/null(?![_$a-zA-Z0-9])/,BooleanLiteral:/(?:true|false)(?![_$a-zA-Z0-9])/,Identifier:/[_$a-zA-Z][_$a-zA-Z0-9]*/,Punctuator:/\/|=>|\*\*|>>>=|>>=|<<=|===|!==|>>>|<<|%=|\*=|-=|\+=|<=|>=|==|!=|\^=|\|=|\|\||&&|&=|>>|\+\+|--|\:|}|\*|&|\||\^|!|~|-|\+|\?|%|=|>|<|,|;|\.(?![0-9])|\]|\[|\)|\(|{/,DivPunctuator:/\/=|\//,NumericLiteral:/(?:0[xX][0-9a-fA-F]*|\.[0-9]+|(?:[1-9]+[0-9]*|0)(?:\.[0-9]*|\.)?)(?:[eE][+-]{0,1}[0-9]+)?(?![_$a-zA-Z0-9])/,StringLiteral:/"(?:[^"\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*"|'(?:[^'\n\\\r\u2028\u2029]|\\(?:['"\\bfnrtv\n\r\u2028\u2029]|\r\n)|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\[^0-9ux'"\\bfnrtv\n\\\r\u2028\u2029])*'/,RegularExpressionLiteral:/\/(?:\[(?:\\[\s\S]|[^\]])*\]|[^*\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])(?:\[(?:\\[\s\S]|[^\]])*\]|[^\/\\\n\r\u2028\u2029]|\\[^\n\r\u2028\u2029])*\/[0-9a-zA-Z]*/};function XRegExp(e,t,n){var r=[t];var i=function t(i){var o=new RegExp;return o.compile(i.replace(/<([^>]+)>/g,function(n,i){return e[i]?(r.push(i),e[i]instanceof RegExp?"("+e[i].source+")":"("+t(e[i]).source+")"):""}),n),o}(e[t]);this.exec=function(e){var t=i.exec(e);if(null==t)return null;for(var n=new String(t[0]),o=0;o<r.length;o++)t[o]&&(n[r[o]]=t[o]);return n},Object.defineProperty(this,"lastIndex",{get:function(){return i.lastIndex},set:function(e){i.lastIndex=e}})}function LexicalParser(){var e,t=new XRegExp(lex,"InputElementDiv","g"),n=new XRegExp(lex,"InputElementRegExp","g");Object.defineProperty(this,"source",{get:function(){return e},set:function(r){e=r,t.lastIndex=0,n.lastIndex=0}}),this.reset=function(){t.lastIndex=0,n.lastIndex=0},this.getNextToken=function(r){var i,o=t.lastIndex,s=(i=r?t:n).exec(e);if(s&&i.lastIndex-o>s.length)throw new SyntaxError("Unexpected token ILLEGAL");return t.lastIndex=i.lastIndex,n.lastIndex=i.lastIndex,s}}var rules={IdentifierName:[["Identifier"]],Literal:[["NullLiteral"],["BooleanLiteral"],["NumericLiteral"],["StringLiteral"],["RegularExpressionLiteral"]],PrimaryExpression:[["Identifier"],["Literal"],["(","Expression",")"]],CallExpression:[["PrimaryExpression","Arguments"],["CallExpression","Arguments"]],Arguments:[["(",")"],["(","ArgumentList",")"]],ArgumentList:[["ConditionalExpression"],["ArgumentList",",","ConditionalExpression"]],LeftHandSideExpression:[["PrimaryExpression"],["CallExpression"]],UnaryExpression:[["LeftHandSideExpression"],["void","UnaryExpression"],["+","UnaryExpression"],["-","UnaryExpression"],["~","UnaryExpression"],["!","UnaryExpression"]],ExponentiationExpression:[["UnaryExpression"],["ExponentiationExpression","**","UnaryExpression"]],MultiplicativeExpression:[["MultiplicativeExpression","/","ExponentiationExpression"],["ExponentiationExpression"],["MultiplicativeExpression","*","ExponentiationExpression"],["MultiplicativeExpression","%","ExponentiationExpression"]],AdditiveExpression:[["MultiplicativeExpression"],["AdditiveExpression","+","MultiplicativeExpression"],["AdditiveExpression","-","MultiplicativeExpression"]],ShiftExpression:[["AdditiveExpression"],["ShiftExpression","<<","AdditiveExpression"],["ShiftExpression",">>","AdditiveExpression"],["ShiftExpression",">>>","AdditiveExpression"]],RelationalExpression:[["ShiftExpression"],["RelationalExpression","<","ShiftExpression"],["RelationalExpression",">","ShiftExpression"],["RelationalExpression","<=","ShiftExpression"],["RelationalExpression",">=","ShiftExpression"],["RelationalExpression","instanceof","ShiftExpression"],["RelationalExpression","in","ShiftExpression"]],EqualityExpression:[["RelationalExpression"],["EqualityExpression","==","RelationalExpression"],["EqualityExpression","!=","RelationalExpression"],["EqualityExpression","===","RelationalExpression"],["EqualityExpression","!==","RelationalExpression"]],BitwiseANDExpression:[["EqualityExpression"],["BitwiseANDExpression","&","EqualityExpression"]],BitwiseXORExpression:[["BitwiseANDExpression"],["BitwiseXORExpression","^","BitwiseANDExpression"]],BitwiseORExpression:[["BitwiseXORExpression"],["BitwiseORExpression","|","BitwiseXORExpression"]],LogicalANDExpression:[["BitwiseORExpression"],["LogicalANDExpression","&&","BitwiseORExpression"]],LogicalORExpression:[["LogicalANDExpression"],["LogicalORExpression","||","LogicalANDExpression"]],ConditionalExpression:[["LogicalORExpression"],["LogicalORExpression","?","LogicalORExpression",":","LogicalORExpression"]],Expression:[["ConditionalExpression"],["Expression",",","ConditionalExpression"]],Program:[["Expression"]]};function Symbol(e,t){this.name=e,this.token=t,this.childNodes=[],this.toString=function(e){if(e||(e=""),1==this.childNodes.length)return this.childNodes[0].toString(e);for(var t=e+this.name+(void 0!=this.token&&this.name!=this.token?":"+this.token:"")+"\n",n=0;n<this.childNodes.length;n++)t+=this.childNodes[n].toString(e+" ");return t}}function SyntacticalParser(){var e={Program:"$"},t={};!function e(n){t[JSON.stringify(n)]=n;for(var r=Object.getOwnPropertyNames(n);r.length;){var i=r.shift();rules[i]&&rules[i].forEach(function(e){n[e[0]]||r.push(e[0]);var t=n;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]}),n[i].$div&&(t.$div=!0),t.$reduce=i,t.$count=e.length})}for(var o in n)"object"!=typeof n[o]||"$"==o.charAt(0)||n[o].$closure||(t[JSON.stringify(n[o])]?n[o]=t[JSON.stringify(n[o])]:e(n[o]));n.$closure=!0}(e);var n=[],r=[e],i=e;this.insertSymbol=function(e,t){for(;!i[e.name]&&i.$reduce;){for(var o=i.$count,s=new Symbol(i.$reduce);o--;)s.childNodes.push(n.pop()),r.pop();i=r[r.length-1],this.insertSymbol(s)}if(i=i[e.name],n.push(e),r.push(i),!i)throw new Error;return i.$div},this.reset=function(){i=e,n=[],r=[e]},Object.defineProperty(this,"grammarTree",{get:function(){try{for(;i.$reduce;){for(var e=i.$count,t=new Symbol(i.$reduce);e--;)t.childNodes.push(n.pop()),r.pop();i=r[r.length-1],this.insertSymbol(t)}if(n.length>0&&i[";"])return this.insertSymbol(new Symbol(";",";")),this.grammarTree;if(1!=n.length||"Program"!=n[0].name)throw new Error}catch(e){throw new SyntaxError("Unexpected end of input")}return n[0]}})}function Parser(){this.lexicalParser=new LexicalParser,this.syntacticalParser=new SyntacticalParser;var e={};["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","RegularExpressionLiteral","Identifier","**","=>","{","}","(",")","[","]",".",";",",","<",">","<=",">=","==","!=","===","!==","+","-","*","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","%=","<<=",">>=",">>>=","&=","|=","^=","/","/=","instanceof","typeof","new","void","debugger","this","delete","in"].forEach(function(t){Object.defineProperty(e,t,{})}),this.reset=function(){this.lexicalParser.reset(),this.syntacticalParser.reset()},this.parse=function(t,n){var r,i=!1;this.lexicalParser.source=t;for(var o=!1;r=this.lexicalParser.getNextToken(o);){n&&n(r);try{if(Object.getOwnPropertyNames(r).some(t=>!!e.hasOwnProperty(t)&&(o=this.syntacticalParser.insertSymbol(new Symbol(t,r),i),i=!1,!0)))continue;(r.Keyword||r.Punctuator||r.DivPunctuator)&&e.hasOwnProperty(r.toString())&&(o=this.syntacticalParser.insertSymbol(new Symbol(r.toString(),r),i))}catch(e){throw new SyntaxError("Unexpected token "+r)}}return this.syntacticalParser.grammarTree}}var parser=new Parser;function JavaScriptExpression(text){parser.reset(),this.tree=parser.parse(text),this.paths=[];var context=Object.create(null),me=this,pathIndex=Object.create(null);function checkSimple(e){for(var t=e;t.childNodes.length<=1&&"MemberExpression"!==t.name;)t=t.childNodes[0];"MemberExpression"===t.name?me.isSimple=!0:me.isSimple=!1}function walk(e){if("CallExpression"===e.name&&"CallExpression"!==e.childNodes[e.childNodes.length-1].name){getPath(e.childNodes[1]);walk(e.childNodes[0])}else if("NewExpression"===e.name&&1===e.childNodes.length)getPath(e.childNodes[0]);else if("MemberExpression"===e.name&&1===e.childNodes.length)getPath(e);else for(var t=0;t<e.childNodes.length;t++)walk(e.childNodes[t])}function getPath(e){var t;if("IdentifierName"===e.childNodes[0].name)return(t=getPath(e.childNodes[2]))&&(t=t.concat(e.childNodes[0].childNodes[0].token.toString())),createPath(t),t;if("PrimaryExpression"===e.childNodes[0].name)return"Identifier"===e.childNodes[0].childNodes[0].name?(createPath(t=[e.childNodes[0].childNodes[0].token.toString()]),t):null;if("]"===e.childNodes[0].name)return getPath(e.childNodes[3]),walk(e.childNodes[1]),null;if("Arguments"===e.childNodes[0].name)return walk(e.childNodes[0]),walk(e.childNodes[1]),null;for(var n=0;n<e.childNodes.length;n++)walk(e.childNodes[n])}function createPath(e){for(var t=context,n=0;n<e.length-1;n++)t[e[n]]||(t[e[n]]=Object.create(null)),t=t[e[n]];me.paths.push(e),pathIndex[e.join(".")]=!1}this.isSimple,this.isConst,walk(this.tree),checkSimple(this.tree),0===this.paths.length&&(this.isConst=!0),this.setter=function(e){for(var t=context,n=0;n<e.length-1;n++)t[e[n]]||(t[e[n]]=Object.create(null)),t=t[e[n]];return{isCompleted:function(){for(var e in pathIndex)if(!pathIndex[e])return!1;return!0},set:function(r){return pathIndex[e.join(".")]||(pathIndex[e.join(".")]=!0),t[e[n]]=r,this.isCompleted()?me.exec():void 0}}},this.valueOf=this.exec=function(){try{return function(){return eval(text)}.call(context)}catch(e){}}}function visit(e){var t,n=e.childNodes.slice().reverse(),r=n.filter(e=>!e.token||!e.token.Punctuator);if("UnaryExpression"===e.name&&(2===n.length&&"-"===n[0].name&&1===r.length))return(t=visit(r[0])).value=-t.value,t;if("Arguments"===e.name){for(var i=[],o=r[0];o;)3===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=o.childNodes[2]),1===o.childNodes.length&&(i.unshift(o.childNodes[0]),o=null);return{type:"Arguments",children:i.map(e=>visit(e))}}if(r&&1===r.length)return t=visit(r[0]);if(e.token&&["NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","Identifier"].some(t=>e.token[t])){var s=Object.keys(e.token).filter(e=>e.match(/Literal/)||e.match(/Identifier/))[0];return{type:s,value:{NullLiteral:null,BooleanLiteral:Boolean(e.token),NumericLiteral:Number(e.token),StringLiteral:e.token,Identifier:e.token}[s]}}return"CallExpression"===e.name?{type:"CallExpression",children:[visit(n[0]),visit(n[1])]}:{type:n.filter(e=>e.token&&e.token.Punctuator)[0].name,children:n.filter(e=>!e.token||!e.token.Punctuator).map(e=>visit(e))}}function parse(e){let t=new JavaScriptExpression(e);return JSON.stringify(visit(t.tree),null)}module.exports={parse:parse}}])})},2:function(e,t,n){var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(3),o={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,l=!1,c=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function x(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function m(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(f){var i=u++;r=a||(a=x()),t=g.bind(null,r,i,!1),n=g.bind(null,r,i,!0)}else r=x(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;r&&e.setAttribute("media",r);d.ssrId&&e.setAttribute(p,t.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}e.exports=function(e,t,n,r){l=n,d=r||{};var s=i(e,t);return h(s),function(t){for(var n=[],r=0;r<s.length;r++){var a=s[r];(u=o[a.id]).refs--,n.push(u)}t?h(s=i(e,t)):s=[];for(r=0;r<n.length;r++){var u;if(0===(u=n[r]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete o[u.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function g(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}},20:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={_typeof:function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},isPlainObject:function(e){return"object"===o._typeof(e)},isString:function(e){return"string"==typeof e},isNonEmptyArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e&&e.length>0&&Array.isArray(e)&&void 0!==e},isObject:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)},isEmptyObject:function(e){return 0===Object.keys(e).length&&e.constructor===Object},decodeIconFont:function(e){var t=/&#x[a-z|0-9]{4,5};?/g;return t.test(e)?e.replace(new RegExp(t,"g"),function(e){var t=e.replace(/&#x/,"0x").replace(/;$/,"");return String.fromCharCode(t)}):e},mergeDeep:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var s=n.shift();if(o.isObject(e)&&o.isObject(s))for(var a in s)o.isObject(s[a])?(e[a]||Object.assign(e,i({},a,{})),o.mergeDeep(e[a],s[a])):Object.assign(e,i({},a,s[a]));return o.mergeDeep.apply(o,[e].concat(n))},appendProtocol:function(e){if(/^\/\//.test(e)){var t=weex.config.bundleUrl;return"http"+(/^https:/.test(t)?"s":"")+":"+e}return e},encodeURLParams:function(e){return new UrlParser(e,!0).toString()},goToH5Page:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=weex.requireModule("navigator"),i=new o.UrlParser(e,!0),s=o.appendProtocol(i.toString());r.push({url:o.encodeURLParams(s),animated:t.toString()},n)},env:{isWeb:function(){var e=weex.config.env.platform;return"object"===("undefined"==typeof window?"undefined":r(window))&&"web"===e.toLowerCase()},isIOS:function(){return"ios"===weex.config.env.platform.toLowerCase()},isIPhoneX:function(){var e=weex.config.env.deviceHeight;return o.env.isWeb()?void 0!==("undefined"==typeof window?"undefined":r(window))&&window.screen&&window.screen.width&&window.screen.height&&375===parseInt(window.screen.width,10)&&812===parseInt(window.screen.height,10):o.env.isIOS()&&2436===e},isAndroid:function(){return"android"===weex.config.env.platform.toLowerCase()},getPageHeight:function(){var e=weex.config.env,t=o.env.isWeb()?0:o.env.isIPhoneX()?176:132;return e.deviceHeight/e.deviceWidth*750-t},getScreenHeight:function(){var e=weex.config.env;return e.deviceHeight/e.deviceWidth*750}},compareVersion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.0.0",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.0.0";if(e===t)return!0;for(var n=e.split("."),r=t.split("."),i=Math.max(n.length,r.length),o=0;o<i;o++){var s=~~r[o],a=~~n[o];if(s<a)return!0;if(s>a)return!1}return!1},arrayChunk:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=[];return e&&e.length>0&&(n=e.map(function(n,r){return r%t==0?e.slice(r,r+t):null}).filter(function(e){return e})),n},truncateString:function(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=0,i="",o="",s=/[^\x00-\xff]/g,a=e.replace(s,"**").length,u=0;u<a&&(null!==(o=e.charAt(u).toString()).match(s)?r+=2:r++,!(r>t));u++)i+=o;return n&&a>t&&(i+="..."),i},animation:{pageTransitionAnimation:function(e,t,n,r){weex.requireModule("animation").transition(e,{styles:{transform:t},duration:n?250:300,timingFunction:n?"ease-in":"ease-out",delay:0},function(){r&&r()})}},uiStyle:{pageTransitionAnimationStyle:function(e){return"push"===e?{left:"750px",top:"0px",height:weex.config.env.deviceHeight/weex.config.env.deviceWidth*750+"px"}:"model"===e?{top:weex.config.env.deviceHeight/weex.config.env.deviceWidth*750+"px",left:"0px",height:weex.config.env.deviceHeight/weex.config.env.deviceWidth*750+"px"}:{}}}};t.default=o},205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(206);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(r).default}})},206:function(e,t,n){var r=!1;var i=n(0)(n(209),n(210),function(e){r||n(207)},"data-v-18ede8e6",null);i.options.__file="/Users/suen/Documents/develop/project/weex-flymeui/packages/fm-slider/index.vue",i.esModule&&Object.keys(i.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),i.options.functional&&console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions."),e.exports=i.exports},207:function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("1dcc10e0",r,!1,{})},208:function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"\n.fm-banner-wrap[data-v-18ede8e6] {\n width: 10rem;\n padding: 0.22222rem 0 0.22222rem 0.22222rem;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n height: 3.57407rem;\n overflow: hidden;\n}\n.banner-wrap--1[data-v-18ede8e6] {\n width: 10rem;\n height: 4.77778rem;\n padding: 0.44444rem 0.44444rem;\n}\n.fm-nativeBanner-wrap[data-v-18ede8e6] {\n width: 10rem;\n height: 3.57407rem;\n padding: 0.22222rem 0;\n}\n.nativeBanner-wrap--1[data-v-18ede8e6] {\n width: 10rem;\n height: 4.77778rem;\n padding: 0.44444rem 0.22222rem;\n}\n.card-list[data-v-18ede8e6] {\n position: absolute;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n height: 3.12963rem;\n}\n.card-item[data-v-18ede8e6] {\n width: 7.33333rem;\n height: 3.12963rem;\n margin-right: 0.11111rem;\n border-radius: 0.05556rem;\n overflow: hidden;\n}\n",""])},209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(20)),i=s(n(58)),o=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}var a=weex.requireModule("animation");t.default={name:"FmSlider",props:{items:{type:Array,default:function(){return[]}},panOffset:{type:Number,default:30},cardS:{type:Object,default:function(){return{width:792,height:338}}},autoPlay:{type:Boolean,default:!1},interval:{type:[Number,String],default:4e3},timingFunction:{type:String,default:"cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},data:function(){return{selectIndex:0,gesToken:0,isMoving:!1,startX:0,startTime:0,currentIndex:0,autoPlayTimer:null}},computed:{isCreator:function(){return weex.supports&&weex.supports("@component/FmSliderNative")},cItems:function(){var e=this.items,t=[];return e.length>=2&&(t=t.concat(e.slice(-2),e,e.slice(0,2))),t},cNativeItems:function(){return this.items.map(function(e){return e.src})},cardLength:function(){return this.items.length}},methods:{startHandle:function(e){var t=this;i.default.supportsEB()&&"start"===e.state&&(this.clearAutoPlay(),setTimeout(function(){var e=t.$refs.sliderCtn;t.bindExp(e)},0))},onPanStart:function(e){i.default.supportsEB()||(this.clearAutoPlay(),this.startX=e.changedTouches[0].clientX,this.startTime=Date.now())},onPanMove:function(e){if(!i.default.supportsEB()&&!this.isMoving){var t=e.changedTouches[0].clientX-this.startX,n=this.currentIndex*(this.cardS.width+12),r=this.$refs["card-list"];r&&r&&a.transition(r,{styles:{transform:"translateX("+(t-n)+"px)"},timingFunction:"ease",delay:0,duration:0},function(){})}},onPanEnd:function(e){i.default.supportsEB()||this.panEnd(e)},panEnd:function(e){var t=this;this.isMoving=!0;var n=e.deltaX;r.default.env.isWeb()&&(n=e.changedTouches[0].clientX-this.startX);var i=this.currentIndex,o=i,s=Date.now()-this.startTime,a=this.panOffset||this.cardS.width/2;n<-a||n<-10&&s<200?o!==this.cardLength&&o++:(n>a||n>10&&s<500)&&-2!==o&&o--,this.slideTo(i,o),setTimeout(function(){t.checkNeedAutoPlay()},4e3)},bindExp:function(e){var t=this;if(e&&e.ref){if(this.isMoving)return o.default.unbind({eventType:"pan",token:this.gesToken}),void(this.gesToken=0);var n=this.currentIndex,r=n*(this.cardS.width+12),i=[{element:this.$refs["card-list"].ref,property:"transform.translateX",expression:-r+"+x"}],s=this.$refs["card"+n][0];i.push({element:s.ref,property:"transform.translateX",expression:"x <= 0 ? (x / 792 * 12) : 0"});var a=this.$refs["card"+(n-1)][0];i.push({element:a.ref,property:"transform.translateX",expression:"x > 0 ? (1 - (x / 792)) * -12 : -12"});var u=o.default.bind({eventType:"pan",anchor:e.ref,props:i},function(e){t.isMoving||"end"!==e.state&&"cancel"!==e.state&&"exit"!==e.state||t.panEnd(e)});this.gesToken=u.token}},slideTo:function(e,t){var n=this,r=this.cardS,i=this.timingFunction,o=this.$refs["card-list"];if(o){var s=t*(r.width+12);if(o&&a.transition(o,{styles:{transform:"translateX("+-s+"px)"},duration:500,timingFunction:i},function(r){n.isMoving=!1,e!==t&&(n.currentIndex=t),n.checkNeedReset()}),e<t){var u=this.$refs["card"+this.currentIndex];u&&a.transition(u[0],{styles:{transform:"translateX(-12px)"},duration:500,timingFunction:i});var l=this.$refs["card"+(this.currentIndex-1)];l&&a.transition(l[0],{styles:{transform:"translateX(0px)"},duration:500,timingFunction:i})}else if(e>t){var c=this.$refs["card"+(this.currentIndex-1)];c&&a.transition(c[0],{styles:{transform:"translateX(0px)"},duration:500,timingFunction:i});var d=this.$refs["card"+(this.currentIndex-2)];d&&a.transition(d[0],{styles:{transform:"translateX(-12px)"},duration:500,timingFunction:i})}}},checkNeedReset:function(){var e=this.cardS,t=this.timingFunction,n=this.$refs["card-list"];if(n){if(this.currentIndex>=this.cardLength)this.currentIndex=0,a.transition(this.$refs["card"+(this.cardLength-1)][0],{styles:{transform:"translateX(0px)"},duration:1e-5,timingFunction:t}),a.transition(this.$refs["card-1"][0],{styles:{transform:"translateX(-12px)"},duration:1e-5,timingFunction:t});else{if(-2!==this.currentIndex)return;this.currentIndex=this.cardLength-2,a.transition(this.$refs["card"+(this.cardLength-3)][0],{styles:{transform:"translateX(-12px)"},duration:1e-5,timingFunction:t})}n&&a.transition(n,{styles:{transform:"translateX("+-this.currentIndex*(e.width+12)+"px)"},duration:1e-5,timingFunction:t})}},checkNeedAutoPlay:function(){var e=this;this.autoPlay&&this.items.length>=1&&(this.clearAutoPlay(),this.autoPlayTimer=setInterval(function(){e.slideTo(e.currentIndex,e.currentIndex+1)},parseInt(this.interval)))},clearAutoPlay:function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},itemClicked:function(e){var t=this.isCreator?e.position:e;this.$emit("fmSliderItemClicked",t)}},mounted:function(){var e=this;setTimeout(function(){var t=e.$refs.sliderCtn;i.default.supportsEB()&&t&&t.ref&&o.default.prepare&&o.default.prepare({anchor:t.ref,eventType:"pan"})},20),this.checkNeedAutoPlay()},beforeDestroy:function(){this.clearAutoPlay()}}},210:function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isCreator?n("FmSliderNative",{staticClass:"fm-nativeBanner-wrap",class:["nativeBanner-wrap--"+e.items.length],staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0),attrs:{autoplay:e.autoPlay,data:e.cNativeItems},on:{itemclick:e.itemClicked}}):n("div",{ref:"sliderCtn",staticClass:"fm-banner-wrap",class:["banner-wrap--"+e.items.length],staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0),on:{panstart:e.onPanStart,panmove:e.onPanMove,panend:e.onPanEnd,horizontalpan:e.startHandle}},[e.items.length>1?n("div",{ref:"card-list",staticClass:"card-list",staticStyle:e.$processStyle(void 0),style:e.$processStyle({left:-2*e.cardS.width+"px"})},e._l(e.cItems,function(t,r){return n("div",{key:r,ref:"card"+(r-2),refInFor:!0,staticClass:"card-item",staticStyle:e.$processStyle(void 0),style:e.$processStyle(r-2==-1&&{transform:"translateX(-12px)"})},[e._t("card"+(r-2),[n("image",{staticStyle:e.$processStyle(void 0),style:e.$processStyle({width:e.cardS.width+"px",height:e.cardS.height+"px"}),attrs:{src:t.src},on:{click:function(t){e.itemClicked(r-2<0?r-2+e.items.length:r-2>=e.items.length?r-2-e.items.length:r-2)}}})])],2)})):n("div",{staticClass:"card-list",staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0)},e._l(e.items,function(t,r){return n("div",{key:r,ref:"card"+r,refInFor:!0,staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0)},[e._t("card"+r,[n("image",{staticStyle:e.$processStyle(void 0),style:e.$processStyle({width:1.2425*e.cardS.width+"px",height:1.2425*e.cardS.height+"px"}),attrs:{src:t.src},on:{click:function(t){e.itemClicked(r)}}})])],2)}))])},staticRenderFns:[]},e.exports.render._withStripped=!0},3:function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}},58:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(19)),i=o(n(20));function o(e){return e&&e.__esModule?e:{default:e}}var s={supportsEB:function(){return r.default.isSupportBinding&&!i.default.env.isWeb()},supportsEBForAndroid:function(){return i.default.env.isAndroid()&&s.supportsEB()},supportsEBForIos:function(){return i.default.env.isIOS()&&s.supportsEB()}};t.default=s}})});