-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathtip.min.js
1 lines (1 loc) · 9.7 KB
/
tip.min.js
1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.tip=e():(t.cube=t.cube||{},t.cube.tip=e())}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=408)}({0:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},1:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e,n){var r=n(1),o=n(0),i=n(31),u=n(6),c=n(5),f=function(t,e,n){var s,a,p,l=t&f.F,d=t&f.G,v=t&f.S,h=t&f.P,x=t&f.B,y=t&f.W,b=d?o:o[e]||(o[e]={}),m=b.prototype,_=d?r:v?r[e]:(r[e]||{}).prototype;d&&(n=e);for(s in n)(a=!l&&_&&void 0!==_[s])&&c(b,s)||(p=a?_[s]:n[s],b[s]=d&&"function"!=typeof _[s]?n[s]:x&&a?i(p,r):y&&_[s]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((b.virtual||(b.virtual={}))[s]=p,t&f.R&&m&&!m[s]&&u(m,s,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},11:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},12:function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},13:function(t,e,n){var r=n(36),o=n(25);t.exports=Object.keys||function(t){return r(t,o)}},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e){t.exports=!0},17:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},19:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},20:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},21:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},22:function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},23:function(t,e,n){var r=n(24)("keys"),o=n(17);t.exports=function(t){return r[t]||(r[t]=o(t))}},24:function(t,e,n){var r=n(0),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(15)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},25:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},27:function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},28:function(t,e,n){var r=n(8),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},3:function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var r=n(34);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},33:function(t,e,n){t.exports=!n(3)&&!n(11)(function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a})},34:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},36:function(t,e,n){var r=n(5),o=n(7),i=n(50)(!1),u=n(23)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(s,n)||s.push(n));return s}},4:function(t,e,n){var r=n(12),o=n(33),i=n(22),u=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},40:function(t,e,n){var r=n(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},408:function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(409)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n);r.default.install=function(t){t.component(r.default.name,r.default)},e.default=r.default,t.exports=e.default})},409:function(t,e,n){function r(t){n(410)}var o=n(9)(n(411),n(412),r,null,null);t.exports=o.exports},41:function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},410:function(t,e){},411:function(t,e,n){var r,o,i;!function(u,c){o=[t,e,n(48),n(58)],r=c,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=o(n),u=o(r);e.default={name:"cube-tip",mixins:[u.default],props:{direction:{type:String,default:"top"},offsetLeft:{type:[String,Number],default:0},offsetRight:{type:[String,Number],default:0},offsetTop:{type:[String,Number],default:0},offsetBottom:{type:[String,Number],default:0}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.$refs.angle.style,n={left:"right",right:"left",top:"bottom",bottom:"top"};[{name:"offsetLeft",target:"left",percentFix:{marginLeft:"-6px"}},{name:"offsetRight",target:"right",percentFix:{marginRight:"-6px"}},{name:"offsetTop",target:"top",percentFix:{marginTop:"-6px"}},{name:"offsetBottom",target:"bottom",percentFix:{marginBottom:"-6px"}}].forEach(function(r){var o=t[r.name];if(0!==o){var u="number"==typeof o;e[r.target]=o+(u?"px":""),r.percentFix&&!u&&(0,i.default)(r.percentFix).forEach(function(t){e[t]=r.percentFix[t]}),e[n[r.target]]="auto"}})})},methods:{handleClick:function(){this.hide(),this.$emit("click")},close:function(){this.hide(),this.$emit("close")}}},t.exports=e.default})},412:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"cube-tip-zoom"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"cube-tip",attrs:{"data-dir":t.direction},on:{click:t.handleClick}},[n("i",{ref:"angle",staticClass:"cube-tip-angle"}),t._v(" "),n("button",{staticClass:"cube-tip-close cubeic-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}),t._v(" "),n("div",{staticClass:"cube-tip-content"},[t._t("default")],2)])])},staticRenderFns:[]}},48:function(t,e,n){t.exports={default:n(59),__esModule:!0}},5:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},50:function(t,e,n){var r=n(7),o=n(41),i=n(51);t.exports=function(t){return function(e,n,u){var c,f=r(e),s=o(f.length),a=i(u,s);if(t&&n!=n){for(;s>a;)if((c=f[a++])!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===n)return t||a||0;return!t&&-1}}},51:function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},58:function(t,e,n){var r,o,i;!function(n,u){o=[t,e],r=u,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,n){e?t.show():n&&!t._createAPI_reuse&&t.hide()},{immediate:!0})},methods:{show:function(){this.isVisible=!0},hide:function(){this.isVisible=!1}}},t.exports=e.default})},59:function(t,e,n){n(60),t.exports=n(0).Object.keys},6:function(t,e,n){var r=n(4),o=n(14);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},60:function(t,e,n){var r=n(27),o=n(13);n(61)("keys",function(){return function(t){return o(r(t))}})},61:function(t,e,n){var r=n(10),o=n(0),i=n(11);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},7:function(t,e,n){var r=n(40),o=n(19);t.exports=function(t){return r(o(t))}},8:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},9:function(t,e){t.exports=function(t,e,n,r,o){var i,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(i=t,u=t.default);var f="function"==typeof u?u.options:u;e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns),r&&(f._scopeId=r);var s;if(o?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=s):n&&(s=n),s){var a=f.functional,p=a?f.render:f.beforeCreate;a?f.render=function(t,e){return s.call(e),p(t,e)}:f.beforeCreate=p?[].concat(p,s):[s]}return{esModule:i,exports:u,options:f}}}})});