From b4c871add9bc7fa5d5f754ba6a7c8856c966bbe8 Mon Sep 17 00:00:00 2001 From: maxli Date: Sun, 7 Apr 2024 20:05:04 +0800 Subject: [PATCH] fix(android): fix PullRefreshContainer size for recycler view --- .../examples/android-demo/res/vue2/index.android.js | 6 +++--- .../examples/android-demo/res/vue2/vendor.android.js | 4 ++-- .../res/vue3/asyncComponentFromHttp.android.js | 2 +- .../res/vue3/asyncComponentFromLocal.android.js | 2 +- .../examples/android-demo/res/vue3/index.android.js | 9 ++++----- .../examples/android-demo/res/vue3/vendor.android.js | 4 ++-- framework/examples/ios-demo/res/vue2/index.ios.js | 8 ++++---- framework/examples/ios-demo/res/vue2/vendor.ios.js | 4 ++-- .../ios-demo/res/vue3/asyncComponentFromHttp.ios.js | 2 +- .../ios-demo/res/vue3/asyncComponentFromLocal.ios.js | 2 +- framework/examples/ios-demo/res/vue3/index.ios.js | 11 ++++++----- framework/examples/ios-demo/res/vue3/vendor.ios.js | 4 ++-- .../example/assets/jsbundle/vue2/index.android.js | 6 +++--- .../example/assets/jsbundle/vue2/vendor.android.js | 4 ++-- .../jsbundle/vue3/asyncComponentFromHttp.android.js | 2 +- .../jsbundle/vue3/asyncComponentFromLocal.android.js | 2 +- .../example/assets/jsbundle/vue3/index.android.js | 9 ++++----- .../example/assets/jsbundle/vue3/vendor.android.js | 4 ++-- .../mtt/hippy/views/hippylist/PullRefreshHelper.java | 2 +- .../views/hippylist/RecyclerViewEventHelper.java | 4 +--- 20 files changed, 44 insertions(+), 47 deletions(-) diff --git a/framework/examples/android-demo/res/vue2/index.android.js b/framework/examples/android-demo/res/vue2/index.android.js index 8a64a045d2c..d8291b9fa68 100644 --- a/framework/examples/android-demo/res/vue2/index.android.js +++ b/framework/examples/android-demo/res/vue2/index.android.js @@ -1,8 +1,8 @@ -!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},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="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;n>> .article-title"],declarations:[{type:"declaration",property:"fontSize",value:17},{type:"declaration",property:"lineHeight",value:24},{type:"declaration",property:"color",value:4280558628}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .normal-text"],declarations:[{type:"declaration",property:"fontSize",value:11},{type:"declaration",property:"color",value:4289374890},{type:"declaration",property:"alignSelf",value:"center"}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .image"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"height",value:160},{type:"declaration",property:"resizeMode",value:"cover"}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-one-image-container"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"marginTop",value:8},{type:"declaration",property:"flex",value:1}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-one-image"],declarations:[{type:"declaration",property:"height",value:120}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-two"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"justifyContent",value:"space-between"}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-two-left-container"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"marginRight",value:8}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-two-image-container"],declarations:[{type:"declaration",property:"flex",value:1}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-two-image"],declarations:[{type:"declaration",property:"height",value:140}]},{hash:"53198b9ea693840a1e99e8844fb55b80",selectors:["[specital-attr='pull-header-footer'] >>> .style-five-image-container"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"marginTop",value:8},{type:"declaration",property:"flex",value:1}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"d1575d8d2dc016817ffbbc424853b4c3",selectors:["#demo-swiper"],declarations:[{type:"declaration",property:"flex",value:1}]},{hash:"d1575d8d2dc016817ffbbc424853b4c3",selectors:["#demo-swiper #swiper"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"height",value:400}]},{hash:"d1575d8d2dc016817ffbbc424853b4c3",selectors:["#demo-swiper #swiper-dots"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"height",value:40}]},{hash:"d1575d8d2dc016817ffbbc424853b4c3",selectors:["#demo-swiper .dot"],declarations:[{type:"declaration",property:"width",value:10},{type:"declaration",property:"height",value:10},{type:"declaration",property:"borderRadius",value:5},{type:"declaration",property:"backgroundColor",value:4289309097},{type:"declaration",property:"marginLeft",value:5},{type:"declaration",property:"marginRight",value:5}]},{hash:"d1575d8d2dc016817ffbbc424853b4c3",selectors:["#demo-swiper .dot.hightlight"],declarations:[{type:"declaration",property:"backgroundColor",value:4281519410}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:["#demo-vue-native"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"padding",value:12},{type:"declaration",property:"overflowY",value:"scroll"}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.native-block"],declarations:[{type:"declaration",property:"marginTop",value:15},{type:"declaration",property:"marginBottom",value:15}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.native-block p"],declarations:[{type:"declaration",property:"marginVertical",value:5}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.vue-native-title"],declarations:[{type:"declaration",property:"textDecorationLine",value:"underline"},{type:"declaration",property:"color",value:4282431619}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.event-btn"],declarations:[{type:"declaration",property:"backgroundColor",value:4282431619},{type:"declaration",property:"flex",value:1},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"width",value:120},{type:"declaration",property:"height",value:40},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"borderRadius",value:3},{type:"declaration",property:"marginBottom",value:5},{type:"declaration",property:"marginTop",value:5}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.event-btn-result"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"flexDirection",value:"column"}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.event-btn .v864846ba.event-btn-text"],declarations:[{type:"declaration",property:"color",value:4294967295}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.item-wrapper"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"justifyContent",value:"flex-start"},{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"alignItems",value:"center"}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.item-button"],declarations:[{type:"declaration",property:"width",value:80},{type:"declaration",property:"height",value:40},{type:"declaration",property:"backgroundColor",value:4282431619},{type:"declaration",property:"borderRadius",value:3},{type:"declaration",property:"marginBottom",value:5},{type:"declaration",property:"marginTop",value:5},{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"marginRight",value:10}]},{hash:"43e426ecb50b85fe3c4ddde465271098",selectors:[".v864846ba.item-button span"],declarations:[{type:"declaration",property:"color",value:4294967295},{type:"declaration",property:"textAlign",value:"center"}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall"],declarations:[{type:"declaration",property:"flex",value:1}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .ul-refresh"],declarations:[{type:"declaration",property:"backgroundColor",value:4282431619}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .ul-refresh-text"],declarations:[{type:"declaration",property:"color",value:4294967295},{type:"declaration",property:"height",value:50},{type:"declaration",property:"lineHeight",value:50},{type:"declaration",property:"textAlign",value:"center"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .pull-footer"],declarations:[{type:"declaration",property:"backgroundColor",value:4282431619},{type:"declaration",property:"height",value:40}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .pull-footer-text"],declarations:[{type:"declaration",property:"color",value:4294967295},{type:"declaration",property:"lineHeight",value:40},{type:"declaration",property:"textAlign",value:"center"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .refresh-text"],declarations:[{type:"declaration",property:"height",value:40},{type:"declaration",property:"lineHeight",value:40},{type:"declaration",property:"textAlign",value:"center"},{type:"declaration",property:"color",value:4294967295}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .banner-view"],declarations:[{type:"declaration",property:"backgroundColor",value:4286611584},{type:"declaration",property:"height",value:100},{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .pull-footer"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"height",value:40},{type:"declaration",property:"backgroundColor",value:4282431619},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .list-view-item"],declarations:[{type:"declaration",property:"backgroundColor",value:4293848814}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .article-title"],declarations:[{type:"declaration",property:"fontSize",value:12},{type:"declaration",property:"lineHeight",value:16},{type:"declaration",property:"color",value:4280558628}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .normal-text"],declarations:[{type:"declaration",property:"fontSize",value:10},{type:"declaration",property:"color",value:4289374890},{type:"declaration",property:"alignSelf",value:"center"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .image"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"height",value:120},{type:"declaration",property:"resize",value:"both"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-one-image-container"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"marginTop",value:8},{type:"declaration",property:"flex",value:1}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-one-image"],declarations:[{type:"declaration",property:"height",value:60}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-two"],declarations:[{type:"declaration",property:"flexDirection",value:"row"},{type:"declaration",property:"justifyContent",value:"space-between"}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-two-left-container"],declarations:[{type:"declaration",property:"flex",value:1},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"marginRight",value:8}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-two-image-container"],declarations:[{type:"declaration",property:"flex",value:1}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .style-two-image"],declarations:[{type:"declaration",property:"height",value:80}]},{hash:"e910bbd0806b91928bc96c0f2ab7b536",selectors:["#demo-waterfall .refresh"],declarations:[{type:"declaration",property:"backgroundColor",value:4282431619}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"e4ecf6cecb1e194aebd5cb55fa21762f",selectors:[".v4fb46863.feature-list"],declarations:[{type:"declaration",property:"overflow",value:"scroll"}]},{hash:"e4ecf6cecb1e194aebd5cb55fa21762f",selectors:[".v4fb46863.feature-item"],declarations:[{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"paddingTop",value:10},{type:"declaration",property:"paddingBottom",value:10}]},{hash:"e4ecf6cecb1e194aebd5cb55fa21762f",selectors:[".v4fb46863.feature-title"],declarations:[{type:"declaration",property:"color",value:4283782485},{type:"declaration",property:"textAlign",value:"center"}]},{hash:"e4ecf6cecb1e194aebd5cb55fa21762f",selectors:[".v4fb46863.feature-item .v4fb46863.button"],declarations:[{type:"declaration",property:"display",value:"block"},{type:"declaration",property:"borderStyle",value:"solid"},{type:"declaration",property:"borderColor",value:4282431619},{type:"declaration",property:"borderWidth",value:2},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"width",value:200},{type:"declaration",property:"height",value:56},{type:"declaration",property:"lineHeight",value:56},{type:"declaration",property:"fontSize",value:16},{type:"declaration",property:"color",value:4282431619},{type:"declaration",property:"textAlign",value:"center"}]},{hash:"e4ecf6cecb1e194aebd5cb55fa21762f",selectors:["#version-info"],declarations:[{type:"declaration",property:"paddingTop",value:10},{type:"declaration",property:"paddingBottom",value:10},{type:"declaration",property:"marginBottom",value:10},{type:"declaration",property:"borderBottomWidth",value:1},{type:"declaration",property:"borderStyle",value:"solid"},{type:"declaration",property:"borderBottomColor",value:4292664540}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"c61cb7203b6913da6f4e814e647c1e0f",selectors:[".v66065e90.demo-remote-input"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flex",value:1},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"flexDirection",value:"column"}]},{hash:"c61cb7203b6913da6f4e814e647c1e0f",selectors:[".v66065e90.input-label"],declarations:[{type:"declaration",property:"margin",value:20},{type:"declaration",property:"marginBottom",value:0}]},{hash:"c61cb7203b6913da6f4e814e647c1e0f",selectors:[".v66065e90.demo-remote-input .v66065e90.remote-input"],declarations:[{type:"declaration",property:"width",value:350},{type:"declaration",property:"height",value:80},{type:"declaration",property:"color",value:4280558628},{type:"declaration",property:"borderWidth",value:1},{type:"declaration",property:"borderStyle",value:"solid"},{type:"declaration",property:"borderColor",value:4291611852},{type:"declaration",property:"fontSize",value:16},{type:"declaration",property:"margin",value:20},{type:"declaration",property:"placeholderTextColor",value:4289374890}]},{hash:"c61cb7203b6913da6f4e814e647c1e0f",selectors:[".v66065e90.demo-remote-input .v66065e90.input-button"],declarations:[{type:"declaration",property:"borderColor",value:4283210490},{type:"declaration",property:"borderWidth",value:1},{type:"declaration",property:"paddingLeft",value:10},{type:"declaration",property:"paddingRight",value:10},{type:"declaration",property:"borderStyle",value:"solid"},{type:"declaration",property:"marginTop",value:5},{type:"declaration",property:"marginBottom",value:5},{type:"declaration",property:"marginLeft",value:20},{type:"declaration",property:"marginRight",value:20}]},{hash:"c61cb7203b6913da6f4e814e647c1e0f",selectors:[".v66065e90.tips-wrap"],declarations:[{type:"declaration",property:"marginTop",value:20},{type:"declaration",property:"padding",value:10}]}])))}).call(this,a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js":function(e,t,a){"use strict";function o(e,t,a,o,r,s,i,n){const l="function"==typeof e?e.options:e;let c;if(t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),o&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):r&&(c=n?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;const e=l.render;l.render=function(t,a){return c.call(a),e(t,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,c):[c]}return{exports:e,options:l}}a.d(t,"a",(function(){return o}))},"../../packages/hippy-vue-native-components/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue-native-components/dist/index.js")},"../../packages/hippy-vue-router/dist/index.js":function(e,t,a){"use strict";(function(e,o){function r(e,t){const a=Object.create(null),o=e.split(",");for(let e=0;ea[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), +!function(e){function t(t){for(var a,r,s=t[0],i=t[1],n=0,c=[];n0===n.indexOf(e))){var l=n.split("/"),c=l[l.length-1],d=c.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+c)}else{var p;d=n.split(".")[0];(p=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(n=p+n)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+n;var a=o[e];0!==a&&a&&a[1](t),o[e]=void 0}},global.dynamicLoad(n,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},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="",r.oe=function(e){throw console.error(e),e};var s=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var n=0;na[e.toLowerCase()]:e=>a[e]}function s(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}let i;function n(){return i}function l(e){return"[object Function]"===Object.prototype.toString.call(e)}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a.d(t,"a",(function(){return fe})), /*! * @hippy/vue-router vunspecified * (Using Vue v2.6.14 and Hippy-Vue vunspecified) - * Build at: Wed Apr 03 2024 18:09:14 GMT+0800 (中国标准时间) + * Build at: Sun Apr 07 2024 19:11:31 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -22,4 +22,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"===t(o)?o:String(o)},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e(),e._v(" "),e.Vue.Native.Clipboard?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Clipboard 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setString}},[a("span",[e._v("setString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getString}},[a("span",[e._v("getString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",clipboardString:"ready to set",clipboardValue:"",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})},setString(){r.default.Native.Clipboard.setString("hippy"),this.clipboardString='copy "hippy" value succeed'},async getString(){const e=await r.default.Native.Clipboard.getString();this.clipboardValue=e||"undefined"}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file +Object.freeze({}),r("slot,component",!0),r("key,ref,slot,slot-scope,is"),e.env.PORT;var d={exports:{}},p={exports:{}},u={exports:{}};!function(e){function t(a){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u);var v={exports:{}};!function(e){var t=u.exports.default;e.exports=function(e,a){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,a||"default");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),function(e){var t=u.exports.default,a=v.exports;e.exports=function(e){var o=a(e,"string");return"symbol"===t(o)?o:String(o)},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,a,o){return(a=t(a))in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var y=c(d.exports);function h(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var m={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render(e,{props:t,children:a,parent:o,data:r}){r.routerView=!0;const s=o.$createElement,{name:i}=t,n=o.$route,l=o._routerViewCache||(o._routerViewCache={});let c=0,d=!1;for(;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&(c+=1),o._inactive&&(d=!0),o=o.$parent;if(r.routerViewDepth=c,d)return s(l[i],r,a);const p=n.matched[c];if(!p)return l[i]=null,s();const u=p.components[i];l[i]=u,r.registerRouteInstance=(e,t)=>{const a=p.instances[i];(t&&a!==e||!t&&a===e)&&(p.instances[i]=t)},r.hook||(r.hook={}),r.hook.prepatch=(e,t)=>{p.instances[i]=t.componentInstance};let v=function(e,t){switch(typeof t){case"undefined":return null;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:return null}}(n,p.props&&p.props[i]);if(r.props=v,v){v=function(e){for(var t=1;t{u.props&&t in u.props||(e[t]=v[t],delete v[t])})}return s(u,r,a)}};const f=/[!'()*]/g,g=e=>"%"+e.charCodeAt(0).toString(16),_=/%2C/g,C=e=>encodeURIComponent(e).replace(f,g).replace(_,","),x=decodeURIComponent;function S(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const a=e.replace(/\+/g," ").split("="),o=x(a.shift()),r=a.length>0?x(a.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}),t):t}function w(e){const t=e?Object.keys(e).map(t=>{const a=e[t];if(void 0===a)return"";if(null===a)return C(t);if(Array.isArray(a)){const e=[];return a.forEach(a=>{void 0!==a&&(null===a?e.push(C(t)):e.push(`${C(t)}=${C(a)}`))}),e.join("&")}return`${C(t)}=${C(a)}`}).filter(e=>e.length>0).join("&"):null;return t?"?"+t:""}const k=/\/?$/;function A(e){if(Array.isArray(e))return e.map(A);if(e&&"object"==typeof e){const t={};return Object.keys(e).forEach(a=>{t[a]=A(e[a])}),t}return e}function P(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t}function E({path:e,query:t={},hash:a=""},o){return(e||"/")+(o||w)(t)+a}function j(e={},t={}){if(!e||!t)return e===t;const a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every(a=>{const o=e[a],r=t[a];return"object"==typeof o&&"object"==typeof r?j(o,r):String(o)===String(r)})}function T(e,t,a,o){let r;o&&({stringifyQuery:r}=o.options);let s=t.query||{};try{s=A(s)}catch(e){}const i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:E(t,r),matched:e?P(e):[]};return a&&(i.redirectedFrom=E(a,r)),Object.freeze(i)}const V=T(null,{path:"/"});function I(e,t){return t===V?e===t:!!t&&(e.path&&t.path?e.path.replace(k,"")===t.path.replace(k,"")&&e.hash===t.hash&&j(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&j(e.query,t.query)&&j(e.params,t.params)))}function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function Y(e){for(var t=1;t{O(e)&&(this.replace?t.replace(o):t.push(o))},h={click:O};Array.isArray(this.event)?this.event.forEach(e=>{h[e]=y}):h[this.event]=y;const b={class:i};if("a"===this.tag)b.on=h,b.attrs={href:s};else{const e=function e(t){return t?t.find(t=>{if("a"===t.tag)return!0;if(t.children){return!!e(t.children)}return!1}):null}(this.$slots.default);if(e){e.isStatic=!1;const t=Y({},e.data);e.data=t,t.on=h;const a=Y({},e.data.attrs);e.data.attrs=a,a.href=s}else b.on=h}return e(this.tag,b,this.$slots.default)}};var D={exports:{}},R=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)};D.exports=G,D.exports.parse=U,D.exports.compile=function(e,t){return M(U(e,t),t)},D.exports.tokensToFunction=M,D.exports.tokensToRegExp=K;var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){for(var a,o=[],r=0,s=0,i="",n=t&&t.delimiter||"/";null!=(a=B.exec(e));){var l=a[0],c=a[1],d=a.index;if(i+=e.slice(s,d),s=d+l.length,c)i+=c[1];else{var p=e[s],u=a[2],v=a[3],y=a[4],h=a[5],b=a[6],m=a[7];i&&(o.push(i),i="");var f=null!=u&&null!=p&&p!==u,g="+"===b||"*"===b,_="?"===b||"*"===b,C=a[2]||n,x=y||h;o.push({name:v||r++,prefix:u||"",delimiter:C,optional:_,repeat:g,partial:f,asterisk:!!m,pattern:x?z(x):m?".*":"[^"+F(C)+"]+?"})}}return s=0&&(t=e.slice(o),e=e.slice(0,o));const r=e.indexOf("?");return r>=0&&(a=e.slice(r+1),e=e.slice(0,r)),{path:e,query:a,hash:t}}(r.path||""),i=t&&t.path||"/",n=s.path?J(s.path,i,a||r.append):i,l=function(e,t={},a){const o=a||S;let r;try{r=o(e||"")}catch(e){0,r={}}return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}(s.query,r.query,o&&o.options.parseQuery);let c=r.hash||s.hash;return c&&"#"!==c.charAt(0)&&(c="#"+c),{_normalized:!0,path:n,query:l,hash:c}}function oe(e,t){return q(e,[],t)}function re(e,t,a,o,r,s){const{path:i,name:n}=o;const l=o.pathToRegexpOptions||{},c=function(e,t,a){return a||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:Z(`${t.path}/${e}`)}(i,r,l.strict);"boolean"==typeof o.caseSensitive&&(l.sensitive=o.caseSensitive);const d={path:c,regex:oe(c,l),components:o.components||{default:o.component},instances:{},name:n,parent:r,matchAs:s,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&o.children.forEach(o=>{const r=s?Z(`${s}/${o.path}`):void 0;re(e,t,a,o,d,r)}),void 0!==o.alias){(Array.isArray(o.alias)?o.alias:[o.alias]).forEach(s=>{const i={path:s,children:o.children};re(e,t,a,i,r,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),n&&(a[n]||(a[n]=d))}function se(e,t,a,o){const r=t||[],s=a||Object.create(null),i=o||Object.create(null);e.forEach(e=>{re(r,s,i,e)});for(let e=0,t=r.length;e!e.optional).map(e=>e.name);if("object"!=typeof l.params&&(l.params={}),s&&"object"==typeof s.params&&Object.keys(s.params).forEach(e=>{!(e in l.params)&&t.indexOf(e)>-1&&(l.params[e]=s.params[e])}),e)return l.path=X(e.path,l.params),n(e,l,i)}else if(l.path){l.params={};for(let e=0;eo[e])}}}function ne(e,t,a){const o=t.match(e);if(!o)return!1;if(!a)return!0;for(let t=1,r=o.length;t{r>=e.length?a():e[r]?t(e[r],()=>{o(r+1)}):o(r+1)};o(0)}const ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function de(e){return Array.prototype.concat.apply([],e)}function pe(e,t){return de(e.map(e=>Object.keys(e.components).map(a=>t(e.components[a],e.instances[a],e,a))))}function ue(e){return(t,a,o)=>{let r=!1,i=0,l=null;pe(e,(e,t,a,c)=>{if("function"==typeof e&&void 0===e.cid){r=!0,i+=1;const t=s(t=>{const r=n();var s;((s=t).__esModule||ce&&"Module"===s[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:r.extend(t),a.components[c]=t,i-=1,i<=0&&o()}),d=s(e=>{const t=`Failed to resolve async component ${c}: ${e}`;l||(l=h(e)?e:new Error(t),o(l))});let p;try{p=e(t,d)}catch(e){d(e)}if(p)if("function"==typeof p.then)p.then(t,d);else{const e=p.component;e&&"function"==typeof e.then&&e.then(t,d)}}}),r||o()}}function ve(e,t,a,o){const r=pe(e,(e,o,r,s)=>{const i=function(e,t){if("function"!=typeof e){e=n().extend(e)}return e.options[t]}(e,t);return i?Array.isArray(i)?i.map(e=>a(e,o,r,s)):a(i,o,r,s):null});return de(o?r.reverse():r)}function ye(e,t){return t?function(...a){return e.apply(t,a)}:null}function he(e,t,a,o,r){return function(s,i,n){return e(s,i,e=>{n(e),"function"==typeof e&&o.push(()=>{!function e(t,a,o,r){a[o]&&!a[o]._isBeingDestroyed?t(a[o]):r()&&setTimeout(()=>{e(t,a,o,r)},16)}(e,t.instances,a,r)})})}}class be{constructor(e,t="/"){this.router=e,this.base=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=V,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[];const a=this.router.match("/",this.current);if(!a)throw new Error("Root router path with / is required");this.stack=[a],this.index=0}push(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index+1).concat(e),this.index+=1,l(t)&&t(e)},a)}replace(e,t,a){this.transitionTo(e,e=>{this.stack=this.stack.slice(0,this.index).concat(e),l(t)&&t(e)},a)}go(e){const t=this.index+e;if(t<0||t>=this.stack.length)return;const a=this.stack[t];this.confirmTransition(a,()=>{this.index=t,this.updateRoute(a),this.stack=this.stack.slice(0,t+1)})}getCurrentLocation(){const e=this.stack[this.stack.length-1];return e?e.fullPath:"/"}ensureURL(){}listen(e){this.cb=e}onReady(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))}onError(e){this.errorCbs.push(e)}transitionTo(e,t,a){const o=this.router.match(e,this.current);this.confirmTransition(o,()=>{this.updateRoute(o),l(t)&&t(o),this.ensureURL(),this.ready||(this.ready=!0,this.readyCbs.forEach(e=>{e(o)}))},e=>{a&&a(e),e&&!this.ready&&(this.ready=!0,this.readyErrorCbs.forEach(t=>{t(e)}))})}confirmTransition(e,t,a){const{current:o}=this,r=e=>{h(e)&&this.errorCbs.length&&this.errorCbs.forEach(t=>{t(e)}),l(a)&&a(e)};if(I(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),r();const{updated:s,deactivated:i,activated:n}=function(e,t){let a;const o=Math.max(e.length,t.length);for(a=0;ae.beforeEnter),ue(n));this.pending=e;const d=(t,a)=>{if(this.pending!==e)return r();try{return t(e,o,e=>{!1===e||h(e)?(this.ensureURL(!0),r(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(r(),"object"==typeof e&&e.replace?this.replace(e):this.push(e)):a(e)})}catch(e){return r(e)}};return le(c,d,()=>{const a=[];le(function(e,t,a){return ve(e,"beforeRouteEnter",(e,o,r,s)=>he(e,r,s,t,a))}(n,a,()=>this.current===e).concat(this.router.resolveHooks),d,()=>this.pending!==e?r():(this.pending=null,t(e),this.router.app?this.router.app.$nextTick(()=>{a.forEach(e=>{e()})}):null))})}updateRoute(e){const t=this.current;this.current=e,l(this.cb)&&this.cb(e),this.router.afterHooks.forEach(a=>{l(a)&&a(e,t)})}hardwareBackPress(){if(this.stack.length>1)return this.go(-1);const{matched:e}=this.stack[0];if(e.length){const{components:t,instances:a}=e[0];if(t&&t.default&&l(t.default.beforeAppExit))return t.default.beforeAppExit.call(a.default,this.exitApp)}return this.exitApp()}exitApp(){n().Native.callNative("DeviceEventModule","invokeDefaultBackPressHandler")}}function me(e,t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}}class fe{constructor(e={}){if(this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ie(e.routes||[],this),!o.__GLOBAL__||!o.__GLOBAL__.appRegister)throw new Error("Hippy-Vue-Router can\t work without Native environment");this.history=new be(this,e.base)}match(e,t,a){return this.matcher.match(e,t,a)}get currentRoute(){return this.history&&this.history.current}init(e,t){if(this.apps.push(e),this.app)return;this.app=e;const{history:a}=this;a instanceof be&&a.transitionTo(a.getCurrentLocation()),a.listen(e=>{this.apps.forEach(t=>{t._route=e})}),"android"===t.Native.Platform&&l(a.hardwareBackPress)&&!this.options.disableAutoBack&&(setTimeout(()=>t.Native.callNative("DeviceEventModule","setListenBackPress",!0),300),e.$on("hardwareBackPress",()=>a.hardwareBackPress()))}beforeEach(e){return me(this.beforeHooks,e)}beforeResolve(e){return me(this.resolveHooks,e)}afterEach(e){return me(this.afterHooks,e)}onReady(e,t){this.history.onReady(e,t)}onError(e){this.history.onError(e)}push(e,t,a){this.history.push(e,t,a)}replace(e,t,a){this.history.replace(e,t,a)}go(e){this.history.go(e)}back(){this.go(-1)}forward(){this.go(1)}getMatchedComponents(e){const t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?t.matched.map(e=>Object.keys(e.components).map(t=>e.components[t])):[]}resolve(e,t,a){const o=ae(e,t||this.history.current,a,this),r=this.match(o,t),s=r.redirectedFrom||r.fullPath,{base:i}=this.history;return{location:o,route:r,href:function(e,t){return e?Z(`${e}/${t}`):t}(i,s),normalizedTo:o,resolved:r}}addRoutes(e){this.matcher.addRoutes(e),this.history.current!==V&&this.history.transitionTo(this.history.getCurrentLocation())}}fe.install=function e(t){if(e.installed&&n()===t)return;e.installed=!0,function(e){i=e}(t);const a=e=>void 0!==e,o=(e,t)=>{let o=e.$options._parentVnode;a(o)&&a(o=o.data)&&a(o=o.registerRouteInstance)&&o(e,t)};t.mixin({beforeCreate(){a(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this,t),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get(){return this._routerRoot._route}}),t.component("RouterView",m),t.component("RouterLink",H);const r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created},fe.version="2.6.14"}).call(this,a("./node_modules/process/browser.js"),a("./node_modules/webpack/buildin/global.js"))},"../../packages/hippy-vue/dist/index.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("../../packages/hippy-vue/dist/index.js")},"./node_modules/process/browser.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/process/browser.js")},"./node_modules/webpack/buildin/global.js":function(e,t,a){e.exports=a("dll-reference hippyVueBase")("./node_modules/webpack/buildin/global.js")},"./src/app.vue":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"root"}},[a("div",{attrs:{id:"header"}},[a("div",{staticClass:"left-title"},[a("img",{directives:[{name:"show",rawName:"v-show",value:!["/","/debug","/remote-debug"].includes(e.$router.history.current.path),expression:"!['/', '/debug', '/remote-debug'].includes($router.history.current.path)"}],attrs:{id:"back-btn",src:e.imgs.backButtonImg},on:{click:e.goToHome}}),e._v(" "),["/","/debug","/remote-debug"].includes(e.$router.history.current.path)?a("label",{staticClass:"title"},[e._v("Hippy Vue")]):e._e()]),e._v(" "),a("label",{staticClass:"title"},[e._v(e._s(e.subtitle))])]),e._v(" "),a("div",{staticClass:"body-container",on:{click:function(e){return e.stopPropagation()}}},[a("keep-alive",[a("router-view",{staticClass:"feature-content"})],1)],1),e._v(" "),a("div",{staticClass:"bottom-tabs"},e._l(e.tabs,(function(t,o){return a("div",{key:"tab-"+o,class:["bottom-tab",o===e.activatedTab?"activated":""],on:{click:function(a){return e.navigateTo(a,t,o)}}},[a("span",{staticClass:"bottom-tab-text"},[e._v("\n "+e._s(t.text)+"\n ")])])})),0)])};o._withStripped=!0;var r={name:"App",data:()=>({imgs:{backButtonImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAIPUlEQVR4Xu2dT8xeQxTGn1O0GiWEaEJCWJCwQLBo/WnRSqhEJUQT0W60G+1Ku1SS2mlXaqM2KqJSSUlajVb9TViwYEHCQmlCQghRgqKPTHLK7Zfvfd97Zt5535l7z91+58zce57fnfe7d+Y+I/Cj1xWQXl+9XzwcgJ5D4AA4AD2vQM8v30cAB6DnFZjA5ZO8VUTenEBX5i58BDCXzJZA8ikA6wFsFpEttuz80Q5AxhqTfAbA2kYXW0VkU8YuzU07AOaStUsg+RyA1bNEFwWBA9BOz9ZRJOcAeAHAqiFJ20VkQ+tGMwY6AGMsLslTAOwGcE+LZneIyLoWcVlDHIAxlVfFfxXACkOTO0VkjSF+7KEOwJhKSnIfgDuNzf0M4BoR+cqYN7ZwByCxlCTnAtgLYLmxqR8ALBGRz4x5Yw13ABLKSfJ0APsBLDU28x2Am0XkC2Pe2MMdgMiSkjwDwAEAi41NBPEXichhY16WcAcgoqwkzwRwCMD1xvRvANxUivjh3B0Ao4IkzwbwFoCrjalf67B/xJiXNdwBMJSX5LkA3gFwpSEthH6pd/63xrzs4Q5AyxKTPB/AuwAub5lyIuxzvfO/N+ZNJNwBaFFmkhcAeA/ApS3CmyGf6qPej8a8iYU7ACNKTfIivfMvNqryMYBbRCS87Cn2cACGSKPivw/gQqOCQfzwnH/UmDfxcAdgQMlJXqLDvlX8DwHcVoP4/hg4WPzLdNhfaLwlw2hxu4j8ZsybWriPADNKT/IKfdQ7z6jK2wDuEJE/jHlTDXcAGuUneZW+5DnHqMpBAHeJyDFj3tTDHQCVgOR1+nr3LKMqYRp4pYj8bcwrItwBAEBykU7sLDCqsgfAfSLyjzGvmPDeA0ByiU7pzjeqEsS/V0SOG/OKCu81ACSX6WKOeUZVdgF4oHbxe/0YSDIs33oFwGlG8ae+js94vkPDezkCkFypq3dPNRaziJW8xnN2AJoVIHm/rtsPS7gtRzFr+S0nPSq2VyOAiv9ixEKYor7mGSWq5e+9AYDkgwDC51rWa94iIpstRa0p1lqMmq7tv3Ml+RCA8KGm9Xo3isi2Ki+65UlbC9Ky2XLCSD4MYHvEGXVe/M4/BpJ8BMDWCPHXi8jTEXnVpXR2BCD5OIDHjIoQwDoRedaYV214JwEg+SSAjUZVgvhrROR5Y17V4Z0DoGHJYhEmTOaEV7svWZK6ENspAGaxZGmjUZjGDTN64bVw747OADDEkmWYqEH8u0Xktd4prxdcPQAtLVlm0/cvXcjRW/GrfwxU8V9uacnShOBPXcL1Rl/v/BPXXe0IYPTjaer8uy7eDN/49f6oEgCSYRo3/NNm8eMJYv+qy7Y/6L3ytf4PkGDJ8ot+sPGRi/9/BaoaARIsWX7S7/Q+cfFPrkA1ACRYsgTxb5y2GVOp4FUBQIIlSxFOXKWKX8VjYIIlSzFOXA5AZAUSLFmKM2OKLEH2tGJ/AhIsWYo0Y8quZGQHRQKQYMlSrBlTpD7Z04oDIMGSpWgzpuxKRnZQFACJ4t8gIsWaMUXqkz2tGAASLFmKd+LKrmJCB0UAQDLWkqUKJ64EfbKnTh2ABEuWqsyYsisZ2cFUAUiwZKnOjClSn+xpUwMgwZKlSjOm7EpGdlAjAOHuDz58VblxReqTPW1qAIQr85+A7PqO7GCqACgEsb58/k/gSHlHB0wdAIXAHwNHa5UloggAFIJYb15/EZSARjEAKASx1uw+DxAJQVEAKASxmzP4TGAEBMUBoBCE7VnC0m3rDh1hLcBiESlub54IbSaSUiQADQhi9ujxBSEGdIoFQCGI3aXLl4S1hKBoABSC2H36fFFoCwiKB0AhiN2p05eFj4CgCgAUgti9ev2roCEQVAOAQhC7W3f4LjDs4uWfhs2AoSoAFIK5avG+vMVPXDPEPw6dpWDVAaAQ+OfhRvoHhVcJgEIQ3L53R7iDuEFEg4ZqAVAI5qj1+yrjDeEWMVqwqgE4ITrJYAFvhcBNoiLcs4032uTCE2zieusRGNTpxAjQGAmCJfxaI3bBJTTs/uVGkcbCFRnuVrE2WTo1AjRGAjeLbslBJwHQJ4RgFR8s4y2H28VbqlV6rG8YMVqhzo4AjZ8D3zJmCAedB0B/DnzTqAEQ9AIAhSB227gnROTR0YNpnRG9AUAhCLuG+saRXZkLiLnnfOvYk6vWqxGg8Y+hbx7dpcmgyJHAt4/v2lyAFQSSy3R10Txj7i7dZey4Ma+48F7+BDRVILkEwH4A843q7NFJpKoh6D0A+nSwCMABAAsiIAjTyWFGscrDAVDZEjyL9unuY2ELuuoOB6AhWYJlzUHdhexYbQQ4ADMUS/AtrNK9zAGY5ZZNcC6tzr/QARgwZqt3cfAoWGgc1qsyr3IAhqibYGAdPIzDp2hHjfBMPNwBGFHyBAv7KoysHYAW91zCDibFO5g5AC0A0JdFwbcoxrKmaAczB6AlAApBrGVNsQ5mDoABAIUg1rKmSPMqB8AIgEIQa1kTzKuCjd2RiG6zpDgAkWVN2Mu4KAczByASAB0JYi1rinEwcwASAFAIgmXN6wCWGpsqwsHMATCqNiic5F4AK4zNBQeza0XksDFvbOEOwJhKSTLGt2iniKwZ0ylENeMARJVt9iSSFt+iHSKybozdRzXlAESVbXASyTa+RdtFZMOYu45qzgGIKtvopCGWNVtFZNPoFiYT4QBkrDPJmZY1W0Rkc8YuzU07AOaS2RIaljUbRWSbLTt/tAOQv8Zhf8Sw0eWhCXRl7sIBMJesWwkOQLf0NF+NA2AuWbcSHIBu6Wm+GgfAXLJuJTgA3dLTfDX/AlSTmJ/JwwOoAAAAAElFTkSuQmCC"},subtitle:"",activatedTab:0,tabs:[{text:"API",path:"/"},{text:"调试",path:"/remote-debug"}]}),watch:{$route(e){void 0!==e.name?this.subtitle=e.name:this.subtitle=""}},methods:{navigateTo(e,t,a){a!==this.activatedTab&&(e.stopPropagation(),console.log(t),this.activatedTab=a,this.$router.replace({path:t.path}))},goToHome(){this.$router.back()}}},s=(a("./src/app.vue?vue&type=style&index=0&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),i=Object(s.a)(r,o,[],!1,null,null,null);i.options.__file="src/app.vue";t.a=i.exports},"./src/app.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/app.vue?vue&type=style&index=0&lang=css&")},"./src/assets/defaultSource.jpg":function(e,t,a){e.exports=a.p+"assets/defaultSource.jpg"},"./src/assets/hippyLogoWhite.png":function(e,t,a){e.exports=a.p+"assets/hippyLogoWhite.png"},"./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&")},"./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&")},"./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&")},"./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&")},"./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&")},"./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&")},"./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&")},"./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&")},"./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&")},"./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&")},"./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&")},"./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&")},"./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&")},"./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&")},"./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&")},"./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&")},"./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&")},"./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&")},"./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&")},"./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&")},"./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&")},"./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-swiper.vue?vue&type=style&index=0&lang=css&")},"./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&")},"./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&")},"./src/main-native.js":function(e,t,a){"use strict";a.r(t),function(e){var t=a("../../packages/hippy-vue/dist/index.js"),o=a("../../packages/hippy-vue-router/dist/index.js"),r=a("../../packages/hippy-vue-native-components/dist/index.js"),s=a("./src/app.vue"),i=a("./src/routes.js"),n=a("./src/util.js");t.default.config.productionTip=!1,t.default.config.trimWhitespace=!0,t.default.use(r.default),t.default.use(o.a);const l=new o.a(i.a);e.Hippy.on("uncaughtException",e=>{console.error("uncaughtException error",e.stack,e.message)}),e.Hippy.on("unhandledRejection",e=>{console.error("unhandledRejection reason",e)});const c=new t.default({appName:"Demo",rootView:"#root",render:e=>e(s.a),iPhone:{statusBar:{backgroundColor:4283416717}},router:l});c.$start((e,a)=>{console.log("instance",e,"initialProps",a),t.default.Native.BackAndroid.addListener(()=>(console.log("backAndroid"),!0))}),Object(n.b)(c)}.call(this,a("./node_modules/webpack/buildin/global.js"))},"./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&")},"./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&":function(e,t,a){"use strict";a("../../packages/hippy-vue-css-loader/dist/css-loader.js!../../packages/hippy-vue-loader/lib/loaders/stylePostLoader.js!../../packages/hippy-vue-loader/lib/index.js?!./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&")},"./src/routes.js":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v4fb46863 feature-list"},[a("li",[a("div",{staticClass:"v4fb46863",attrs:{id:"version-info"}},[a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Vue: "+e._s(e.Vue.version)+"\n ")]),e._v(" "),e.Vue.Native?a("p",{staticClass:"v4fb46863 feature-title"},[e._v("\n Hippy-Vue: "+e._s("unspecified"!==e.Vue.Native.version?e.Vue.Native.version:"master")+"\n ")]):e._e()])]),e._v(" "),e._m(0),e._v(" "),e._l(e.featureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)})),e._v(" "),e.nativeFeatureList.length?a("li",[a("p",{staticClass:"v4fb46863 feature-title",attrs:{paintType:"fcp"}},[e._v("\n 终端组件 Demos\n ")])]):e._e(),e._v(" "),e._l(e.nativeFeatureList,(function(t){return a("li",{key:t.id,staticClass:"v4fb46863 feature-item"},[a("router-link",{staticClass:"v4fb46863 button",attrs:{to:{path:"/demo/"+t.id}}},[e._v("\n "+e._s(t.name)+"\n ")])],1)}))],2)};o._withStripped=!0;var r=a("../../packages/hippy-vue/dist/index.js"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v26278b5d button-demo"},[a("label",{staticClass:"v26278b5d button-label"},[e._v("按钮和状态绑定")]),e._v(" "),a("button",{staticClass:"v26278b5d button-demo-1",class:{"is-active":e.isClicked,"is-pressing":e.isPressing},on:{touchstart:e.onTouchBtnStart,touchmove:e.onTouchBtnMove,touchend:e.onTouchBtnEnd,click:e.clickView}},[e.isClicked?a("span",{staticClass:"v26278b5d button-text"},[e._v("视图已经被点击了,再点一下恢复")]):a("span",{staticClass:"v26278b5d button-text"},[e._v("视图尚未点击")])]),e._v(" "),a("img",{directives:[{name:"show",rawName:"v-show",value:e.isClicked,expression:"isClicked"}],staticClass:"v26278b5d button-demo-1-image",attrs:{alt:"demo1-image",src:"https://user-images.githubusercontent.com/12878546/148737148-d0b227cb-69c8-4b21-bf92-739fb0c3f3aa.png"}})])};s._withStripped=!0;var i={data:()=>({isClicked:!1,isPressing:!1}),methods:{clickView(){this.isClicked=!this.isClicked},onTouchBtnStart(e){console.log("onBtnTouchDown",e),e.stopPropagation()},onTouchBtnMove(e){console.log("onBtnTouchMove",e),e.stopPropagation(),console.log(e)},onTouchBtnEnd(e){console.log("onBtnTouchEnd",e),e.stopPropagation(),console.log(e)}}},n=(a("./src/components/demos/demo-button.vue?vue&type=style&index=0&id=26278b5d&scoped=true&lang=css&"),a("../../packages/hippy-vue-loader/lib/runtime/componentNormalizer.js")),l=Object(n.a)(i,s,[],!1,null,"26278b5d",null);l.options.__file="src/components/demos/demo-button.vue";var c=l.exports,d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614",attrs:{id:"div-demo"},on:{scroll:e.onOuterScroll}},[a("div",["ios"!==e.Vue.Native.Platform?a("div",[a("label",[e._v("水波纹效果: ")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:Object.assign({},e.imgRectangle,e.imgRectangleExtra)},[a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.imgRectangle,"native-background-android":{borderless:!0,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"white",maxWidth:200}},[e._v("\n 外层背景图,内层无边框水波纹,受外层影响始终有边框\n ")])])],1),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.circleRipple,"native-background-android":{borderless:!0,color:"#666666",rippleRadius:100}}},[a("p",{staticClass:"ve3dda614",style:{color:"black",textAlign:"center"}},[e._v("\n 无边框圆形水波纹\n ")])]),e._v(" "),a("demo-ripple-div",{staticClass:"ve3dda614",attrs:{"position-y":e.offsetY,"wrapper-style":e.squareRipple,"native-background-android":{borderless:!1,color:"#666666"}}},[a("p",{staticClass:"ve3dda614",style:{color:"#fff"}},[e._v("\n 带背景色水波纹\n ")])])],1):e._e(),e._v(" "),a("label",[e._v("背景图效果:")]),e._v(" "),a("div",{staticClass:"ve3dda614",style:e.demo1Style,attrs:{accessible:!0,"aria-label":"背景图","aria-disabled":!1,"aria-selected":!0,"aria-checked":!1,"aria-expanded":!1,"aria-busy":!0,role:"image","aria-valuemax":10,"aria-valuemin":1,"aria-valuenow":5,"aria-valuetext":"middle"}},[a("p",{staticClass:"ve3dda614 div-demo-1-text"},[e._v("\n Hippy 背景图展示\n ")])]),e._v(" "),a("label",[e._v("渐变色效果:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("Transform")]),e._v(" "),e._m(1),e._v(" "),a("label",[e._v("水平滚动:")]),e._v(" "),a("div",{ref:"demo-2",staticClass:"ve3dda614 div-demo-2",attrs:{bounces:!0,scrollEnabled:!0,pagingEnabled:!1,showsHorizontalScrollIndicator:!1},on:{scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},[e._m(2)]),e._v(" "),a("label",[e._v("垂直滚动:")]),e._v(" "),a("div",{staticClass:"ve3dda614 div-demo-3",attrs:{showsVerticalScrollIndicator:!1}},[e._m(3)])])])};d._withStripped=!0;var p=a("./src/assets/defaultSource.jpg"),u=a.n(p),v=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"ripple1",style:this.wrapperStyle,attrs:{nativeBackgroundAndroid:Object.assign({},this.nativeBackgroundAndroid)},on:{layout:this.onLayout,touchstart:this.onTouchStart,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this._t("default")],2)};v._withStripped=!0;const y={display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"};var h={name:"DemoRippleDiv",props:{nativeBackgroundAndroid:{default:{borderless:!1}},wrapperStyle:{type:Object,default:()=>y},positionY:{default:0}},data(){return{scrollOffsetY:this.positionY,viewX:0,viewY:0,demo1Style:y}},watch:{positionY(e){this.scrollOffsetY=e}},mounted(){this.rippleRef=this.$refs.ripple1},methods:{async onLayout(){const e=await r.default.Native.measureInAppWindow(this.rippleRef);this.viewX=e.left,this.viewY=e.top},onTouchStart(e){const t=e.touches[0];this.rippleRef.setHotspot(t.clientX-this.viewX,t.clientY+this.scrollOffsetY-this.viewY),this.rippleRef.setPressed(!0)},onTouchEnd(){this.rippleRef.setPressed(!1)}}},b=Object(n.a)(h,v,[],!1,null,null,null);b.options.__file="src/components/demos/demo-ripple-div.vue";var m={components:{"demo-ripple-div":b.exports},data:()=>({Vue:r.default,offsetY:0,demo1Style:{display:"flex",height:"40px",width:"200px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat",justifyContent:"center",alignItems:"center",marginTop:"10px",marginBottom:"10px"},imgRectangle:{width:"260px",height:"56px",alignItems:"center",justifyContent:"center"},imgRectangleExtra:{marginTop:"20px",backgroundImage:""+u.a,backgroundSize:"cover",backgroundRepeat:"no-repeat"},circleRipple:{marginTop:"30px",width:"150px",height:"56px",alignItems:"center",justifyContent:"center",borderWidth:"3px",borderStyle:"solid",borderColor:"#40b883"},squareRipple:{marginBottom:"20px",alignItems:"center",justifyContent:"center",width:"150px",height:"150px",backgroundColor:"#40b883",marginTop:"30px",borderRadius:"12px",overflow:"hidden"}}),mounted(){this.demon2=this.$refs["demo-2"],setTimeout(()=>{this.demon2.scrollTo(50,0,1e3)},1e3)},methods:{onOuterScroll(e){this.offsetY=e.offsetY},onScroll(e){console.log("onScroll",e)},onMomentumScrollBegin(e){console.log("onMomentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("onMomentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},f=(a("./src/components/demos/demo-div.vue?vue&type=style&index=0&id=e3dda614&scoped=true&lang=css&"),Object(n.a)(m,d,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-1-1"},[t("p",{staticClass:"ve3dda614 div-demo-1-text"},[this._v("\n Hippy 背景渐变色展示\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ve3dda614 div-demo-transform"},[t("p",{staticClass:"ve3dda614 div-demo-transform-text"},[this._v("\n Transform\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-row"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ve3dda614 display-flex flex-column"},[a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n A\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n B\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n C\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n D\n ")]),e._v(" "),a("p",{staticClass:"ve3dda614 text-block"},[e._v("\n E\n ")])])}],!1,null,"e3dda614",null));f.options.__file="src/components/demos/demo-div.vue";var g=f.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img"}},[a("div",{staticClass:"vc6df51b0",attrs:{id:"demo-img-container"}},[a("label",[e._v("Contain:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image contain",attrs:{src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",placeholder:e.defaultImage},on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}}),e._v(" "),a("label",[e._v("Cover:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("Center:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png"}}),e._v(" "),a("label",[e._v("CapInsets:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png",capInsets:{top:50,left:50,bottom:50,right:50}}}),e._v(" "),a("label",[e._v("TintColor:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image center tint-color",attrs:{src:e.hippyLogoImage}}),e._v(" "),a("label",[e._v("Gif:")]),e._v(" "),a("img",{staticClass:"vc6df51b0 image cover",attrs:{placeholder:e.defaultImage,src:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif"},on:{load:e.onLoad}}),e._v(" "),a("div",{staticClass:"vc6df51b0 img-result"},[a("p",[e._v("Load Result: "+e._s(e.gifLoadResult))])])])])};_._withStripped=!0;var C=a("./src/assets/hippyLogoWhite.png"),x=a.n(C),S={data:()=>({defaultImage:u.a,hippyLogoImage:x.a,gifLoadResult:{}}),methods:{onTouchStart(e){console.log("onTouchDown",e),e.stopPropagation()},onTouchMove(e){console.log("onTouchMove",e),e.stopPropagation(),console.log(e)},onTouchEnd(e){console.log("onTouchEnd",e),e.stopPropagation(),console.log(e)},onLoad(e){console.log("onLoad",e);const{width:t,height:a,url:o}=e;this.gifLoadResult={width:t,height:a,url:o}}}},w=(a("./src/components/demos/demo-img.vue?vue&type=style&index=0&id=c6df51b0&scoped=true&lang=css&"),Object(n.a)(S,_,[],!1,null,"c6df51b0",null));w.options.__file="src/components/demos/demo-img.vue";var k=w.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v76bc5c6f demo-input",on:{click:e.blurAllInput}},[a("label",[e._v("文本:")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"input",staticClass:"v76bc5c6f input",attrs:{placeholder:"Text","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",editable:!0},domProps:{value:e.text},on:{click:e.stopPropagation,keyboardWillShow:e.onKeyboardWillShow,keyboardWillHide:e.onKeyboardWillHide,blur:e.onBlur,focus:e.onFocus,input:function(t){t.target.composing||(e.text=t.target.value)}}}),e._v(" "),a("div",[a("span",[e._v("文本内容为:")]),e._v(" "),a("span",[e._v(e._s(e.text))])]),e._v(" "),a("div",[a("span",[e._v(e._s("事件: "+e.event+" | isFocused: "+e.isFocused))])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.clearTextContent}},[a("span",[e._v("清空文本内容")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.focus}},[a("span",[e._v("Focus")])]),e._v(" "),a("button",{staticClass:"v76bc5c6f input-button",on:{click:e.blur}},[a("span",[e._v("Blur")])]),e._v(" "),a("label",[e._v("数字:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"number","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Number"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("密码:")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{type:"password","caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"Password"},on:{change:e.textChange,click:e.stopPropagation}}),e._v(" "),a("label",[e._v("文本(限制5个字符):")]),e._v(" "),a("input",{staticClass:"v76bc5c6f input",attrs:{maxlength:5,"caret-color":"yellow","underline-color-android":"grey","placeholder-text-color":"#40b883",placeholder:"5 个字符"},on:{change:e.textChange,click:e.stopPropagation}})])};A._withStripped=!0;var P={data:()=>({text:"",event:void 0,isFocused:void 0}),mounted(){this.getChildNodes(this.$refs.inputDemo.childNodes).find(e=>"input"===e.tagName).focus()},methods:{textChange(e){console.log(e.value)},blurAllInput(){this.getChildNodes(this.$refs.inputDemo.childNodes).filter(e=>"input"===e.tagName).forEach(e=>e.blur())},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.text=""},onKeyboardWillHide(){console.log("onKeyboardWillHide")},onKeyboardWillShow(e){console.log("onKeyboardWillShow",e)},getChildNodes:e=>r.default.Native?e:Array.from(e),focus(e){e.stopPropagation(),this.$refs.input.focus()},blur(e){e.stopPropagation(),this.$refs.input.blur()},async onFocus(){this.isFocused=await this.$refs.input.isFocused(),this.event="onFocus"},async onBlur(){this.isFocused=await this.$refs.input.isFocused(),this.event="onBlur"}}},E=(a("./src/components/demos/demo-input.vue?vue&type=style&index=0&id=76bc5c6f&scoped=true&lang=css&"),Object(n.a)(P,A,[],!1,null,"76bc5c6f",null));E.options.__file="src/components/demos/demo-input.vue";var j=E.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v36005ed6 p-demo"},[a("div",[a("label",[e._v("不带样式:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content",on:{touchstart:e.onTouchTextStart,touchmove:e.onTouchTextMove,touchend:e.onTouchTextEnd}},[e._v("\n 这是最普通的一行可点击文字\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-content-status"},[e._v("\n 当前touch状态: "+e._s(e.labelTouchStatus)+"\n ")]),e._v(" "),a("label",[e._v("颜色:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-1 p-demo-content"},[e._v("\n 这行文字改变了颜色\n ")]),e._v(" "),a("label",[e._v("尺寸:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-2 p-demo-content"},[e._v("\n 这行改变了大小\n ")]),e._v(" "),a("label",[e._v("粗体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-3 p-demo-content"},[e._v("\n 这行加粗了\n ")]),e._v(" "),a("label",[e._v("下划线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-4 p-demo-content"},[e._v("\n 这里有条下划线\n ")]),e._v(" "),a("label",[e._v("删除线:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-5 p-demo-content"},[e._v("\n 这里有条删除线\n ")]),e._v(" "),a("label",[e._v("自定义字体:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content"},[e._v("\n 腾讯字体 Hippy\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold"}},[e._v("\n 腾讯字体 Hippy 粗体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 斜体\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-6 p-demo-content",staticStyle:{"font-weight":"bold","font-style":"italic"}},[e._v("\n 腾讯字体 Hippy 粗斜体\n ")]),e._v(" "),a("label",[e._v("文字阴影:")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-7 p-demo-content",style:e.textShadow,on:{click:e.changeTextShadow}},[e._v("\n 这里是文字灰色阴影,点击可改变颜色\n ")]),e._v(" "),a("label",[e._v("文本字符间距")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-8 p-demo-content",staticStyle:{"margin-bottom":"5px"}},[e._v("\n Text width letter-spacing -1\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6 p-demo-9 p-demo-content",staticStyle:{"margin-top":"5px"}},[e._v("\n Text width letter-spacing 5\n ")]),e._v(" "),a("label",[e._v("字体 style:")]),e._v(" "),e._m(0),e._v(" "),a("label",[e._v("numberOfLines="+e._s(e.textMode.numberOfLines)+" | ellipsizeMode="+e._s(e.textMode.ellipsizeMode))]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"19px",color:"white"}},[e._v("先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。")]),e._v(" "),a("span",[e._v("然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。")])]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[e._v("\n "+e._s("line 1\n\nline 3\n\nline 5")+"\n ")]),e._v(" "),a("p",{staticClass:"v36005ed6",style:{backgroundColor:"#40b883",marginBottom:10,paddingHorizontal:10,paddingVertical:5,fontSize:14},attrs:{numberOfLines:e.textMode.numberOfLines,ellipsizeMode:e.textMode.ellipsizeMode}},[a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img1}}),e._v(" "),a("img",{staticClass:"v36005ed6",style:{width:24,height:24},attrs:{src:e.img2}})]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:e.incrementLine}},[a("span",[e._v("加一行")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:e.decrementLine}},[a("span",[e._v("减一行")])])]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("clip")}}},[a("span",[e._v("clip")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("head")}}},[a("span",[e._v("head")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("middle")}}},[a("span",[e._v("middle")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeMode("tail")}}},[a("span",[e._v("tail")])])])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"border-width":"1","border-color":"gray"},attrs:{"break-strategy":e.breakStrategy}},[e._v("\n "+e._s(e.longText)+"\n ")]),e._v(" "),a("div",{staticClass:"v36005ed6 button-bar"},[a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v36005ed6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e(),e._v(" "),a("label",[e._v("vertical-align")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-align":"middle"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-align":"baseline"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-align":"bottom"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"top"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"middle"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"baseline"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16","vertical-align":"bottom"}},[e._v("字")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{lineHeight:"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12","vertical-alignment":"1"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12","vertical-alignment":"2"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24","vertical-alignment":"3"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24",top:"-10"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"18",height:"12",top:"-5"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"12"},attrs:{src:e.img3}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"36",height:"24",top:"5"},attrs:{src:e.img3}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")]),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"font-size":"16"}},[e._v("字")])]):e._e()]),e._v(" "),a("label",[e._v("tint-color & background-color")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("span",{staticClass:"v36005ed6",staticStyle:{"vertical-align":"middle","background-color":"#99f"}},[e._v("text")])]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","tint-color":"orange","background-color":"#ccc"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","background-color":"#ccc"},attrs:{src:e.img2}})]):e._e()]),e._v(" "),a("label",[e._v("margin")]),e._v(" "),a("div",{staticClass:"v36005ed6 p-demo-content"},[a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"top","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"middle","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"baseline","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-align":"bottom","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]),e._v(" "),"android"===e.Platform?a("p",[e._v("\n legacy mode:\n ")]):e._e(),e._v(" "),"android"===e.Platform?a("p",{staticClass:"v36005ed6",staticStyle:{"line-height":"50","background-color":"#40b883","padding-horizontal":"10","padding-vertical":"5"}},[a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"0","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"1","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"2","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}}),e._v(" "),a("img",{staticClass:"v36005ed6",staticStyle:{width:"24",height:"24","vertical-alignment":"3","background-color":"#ccc",margin:"5"},attrs:{src:e.img2}})]):e._e()])])])};T._withStripped=!0;var V={data:()=>({Platform:r.default.Native.Platform,textShadowIndex:0,isClicked:!1,isPressing:!1,labelTouchStatus:"",textShadow:{textShadowOffset:{x:1,y:1},textShadowRadius:3,textShadowColor:"grey"},textMode:{numberOfLines:2,ellipsizeMode:"tail"},img1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEXRSTlMA9QlZEMPc2Mmmj2VkLEJ4Rsx+pEgAAAChSURBVCjPjVLtEsMgCDOAdbbaNu//sttVPes+zvGD8wgQCLp/TORbUGMAQtQ3UBeSAMlF7/GV9Cmb5eTJ9R7H1t4bOqLE3rN2UCvvwpLfarhILfDjJL6WRKaXfzxc84nxAgLzCGSGiwKwsZUB8hPorZwUV1s1cnGKw+yAOrnI+7hatNIybl9Q3OkBfzopCw6SmDVJJiJ+yD451OS0/TNM7QnuAAbvCG0TSAAAAABJRU5ErkJggg==",img2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAANlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAA\n AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3dmhyAAAAEnRSTlMA/QpX7WQU2m27pi3Ej9KEQXaD5HhjAAAAqklEQVQoz41\n SWxLDIAh0RcFXTHL/yzZSO01LMpP9WJEVUNA9gfdXTioCSKE/kQQTQmf/ArRYva+xAcuPP37seFII2L7FN4BmXdHzlEPIpDHiZ0A7eIViPc\n w2QwqipkvMSdNEFBUE1bmMNOyE7FyFaIkAP4jHhhG80lvgkzBODTKpwhRMcexuR7fXzcp08UDq6GRbootp4oRtO3NNpd4NKtnR9hB6oaefw\n eIFQU0EfnGDRoQAAAAASUVORK5CYII=",img3:"https://user-images.githubusercontent.com/12878546/148736255-7193f89e-9caf-49c0-86b0-548209506bd6.gif",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{changeTextShadow(){this.textShadow={textShadowOffsetX:this.textShadowIndex%2==1?10:1,textShadowOffsetY:1,textShadowRadius:3,textShadowColor:this.textShadowIndex%2==1?"red":"grey"},this.textShadowIndex+=1},onTouchTextStart(e){this.labelTouchStatus="touch start",console.log("onTextTouchDown",e),e.stopPropagation()},onTouchTextMove(e){this.labelTouchStatus="touch move",console.log("onTextTouchMove",e),e.stopPropagation(),console.log(e)},onTouchTextEnd(e){this.labelTouchStatus="touch end",console.log("onTextTouchEnd",e),e.stopPropagation(),console.log(e)},incrementLine(){this.textMode.numberOfLines<6&&(this.textMode.numberOfLines+=1)},decrementLine(){this.textMode.numberOfLines>1&&(this.textMode.numberOfLines-=1)},changeMode(e){this.textMode.ellipsizeMode=e},changeBreakStrategy(e){this.breakStrategy=e}}},I=(a("./src/components/demos/demo-p.vue?vue&type=style&index=0&id=36005ed6&scoped=true&lang=css&"),Object(n.a)(V,T,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v36005ed6 p-demo-content"},[t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"normal"}},[this._v("\n font-style: normal\n ")]),this._v(" "),t("p",{staticClass:"v36005ed6",staticStyle:{"font-style":"italic"}},[this._v("\n font-style: italic\n ")]),this._v(" "),t("p",[this._v("font-style: [not set]")])])}],!1,null,"36005ed6",null));I.options.__file="src/components/demos/demo-p.vue";var L=I.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v5819936a",attrs:{id:"shadow-demo"}},["android"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-android"},[e._m(0)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a no-offset-shadow-demo-cube-ios"},[e._m(1)]):e._e(),e._v(" "),"android"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-android"},[e._m(2)]):e._e(),e._v(" "),"ios"===e.Platform?a("div",{staticClass:"v5819936a offset-shadow-demo-cube-ios"},[e._m(3)]):e._e()])};Y._withStripped=!0;var O={data:()=>({Platform:r.default.Native.Platform}),mounted(){this.Platform=r.default.Native.Platform}},H=(a("./src/components/demos/demo-shadow.vue?vue&type=style&index=0&id=5819936a&scoped=true&lang=css&"),Object(n.a)(O,Y,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-android"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a no-offset-shadow-demo-content-ios"},[t("p",[this._v("没有偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-android"},[t("p",[this._v("偏移阴影样式")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v5819936a offset-shadow-demo-content-ios"},[t("p",[this._v("偏移阴影样式")])])}],!1,null,"5819936a",null));H.options.__file="src/components/demos/demo-shadow.vue";var D=H.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v6cb502b6",attrs:{id:"demo-textarea"}},[a("label",[e._v("多行文本:")]),e._v(" "),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v6cb502b6 textarea",attrs:{rows:10,placeholder:"多行文本编辑器"},domProps:{value:e.content},on:{contentSizeChange:e.contentSizeChange,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v6cb502b6 output-container"},[a("p",{staticClass:"v6cb502b6 output"},[e._v("\n 输入的文本为:"+e._s(e.content)+"\n ")])]),e._v(" "),"android"===e.Platform?a("label",[e._v("break-strategy="+e._s(e.breakStrategy))]):e._e(),e._v(" "),"android"===e.Platform?a("div",[a("textarea",{staticClass:"v6cb502b6 textarea",attrs:{defaultValue:e.longText,"break-strategy":e.breakStrategy}}),e._v(" "),a("div",{staticClass:"v6cb502b6 button-bar"},[a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("simple")}}},[a("span",[e._v("simple")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("high_quality")}}},[a("span",[e._v("high_quality")])]),e._v(" "),a("button",{staticClass:"v6cb502b6 button",on:{click:function(){return e.changeBreakStrategy("balanced")}}},[a("span",[e._v("balanced")])])])]):e._e()])};R._withStripped=!0;var B={data:()=>({Platform:r.default.Native.Platform,content:"The quick brown fox jumps over the lazy dog,快灰狐狸跳过了懒 🐕。",longText:"The 58-letter name Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch is the name of a town on Anglesey, an island of Wales.",breakStrategy:"simple"}),methods:{contentSizeChange(e){console.log(e)},changeBreakStrategy(e){this.breakStrategy=e}}},U=(a("./src/components/demos/demo-textarea.vue?vue&type=style&index=0&id=6cb502b6&scoped=true&lang=css&"),Object(n.a)(B,R,[],!1,null,"6cb502b6",null));U.options.__file="src/components/demos/demo-textarea.vue";var N=U.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v71b90789",attrs:{id:"demo-list"}},[a("ul",{ref:"list",staticClass:"v71b90789",style:e.horizontal&&{height:50,flex:0},attrs:{id:"list",horizontal:e.horizontal,exposureEventEnabled:!0,delText:e.delText,editable:!0,bounces:!0,rowShouldSticky:!0,overScrollEnabled:!0,scrollEventThrottle:1e3},on:{endReached:e.onEndReached,delete:e.onDelete,scroll:e.onScroll,momentumScrollBegin:e.onMomentumScrollBegin,momentumScrollEnd:e.onMomentumScrollEnd,scrollBeginDrag:e.onScrollBeginDrag,scrollEndDrag:e.onScrollEndDrag}},e._l(e.dataSource,(function(t,o){return a("li",{key:o+"_"+t.style,staticClass:"v71b90789",class:e.horizontal&&"item-horizontal-style",attrs:{type:t.style,sticky:1===o},on:{appear:function(t){return e.onAppear(o)},disappear:function(t){return e.onDisappear(o)},willAppear:function(t){return e.onWillAppear(o)},willDisappear:function(t){return e.onWillDisappear(o)}}},[1===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 1 UI")+"\n ")])])]):2===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 2 UI")+"\n ")])])]):5===t.style?a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{numberOfLines:1}},[e._v("\n "+e._s(o+": Style 5 UI")+"\n ")])])]):a("div",{staticClass:"v71b90789 container"},[a("div",{staticClass:"v71b90789 item-container"},[a("p",{staticClass:"v71b90789",attrs:{id:"loading"}},[e._v("\n "+e._s(e.loadingState)+"\n ")])])]),e._v(" "),o!==e.dataSource.length-1?a("div",{staticClass:"v71b90789 separator-line"}):e._e()])})),0),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v71b90789",style:{position:"absolute",right:20,bottom:20,width:67,height:67,borderRadius:30,boxShadowOpacity:.6,boxShadowRadius:5,boxShadowOffsetX:3,boxShadowOffsetY:3,boxShadowColor:"#40b883"},on:{click:e.changeDirection}},[a("div",{staticClass:"v71b90789",style:{width:60,height:60,borderRadius:30,backgroundColor:"#40b883",display:"flex",justifyContent:"center",alignItems:"center"}},[a("p",{staticClass:"v71b90789",style:{color:"white"}},[e._v("\n 切换方向\n ")])])]):e._e()])};M._withStripped=!0;const F=[{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5},{style:1},{style:2},{style:5}];var z={data:()=>({Vue:r.default,loadingState:"Loading now...",dataSource:[],delText:"Delete",horizontal:void 0}),mounted(){this.isLoading=!1,this.dataSource=F},methods:{changeDirection(){this.horizontal=void 0===this.horizontal||void 0},onAppear(e){console.log("onAppear",e)},onDisappear(e){console.log("onDisappear",e)},onWillAppear(e){console.log("onWillAppear",e)},onWillDisappear(e){console.log("onWillDisappear",e)},mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(F),600)}),onDelete(e){this.dataSource.splice(e.index,1)},async onEndReached(){const{dataSource:e,isLoading:t}=this;if(t)return;this.isLoading=!0,this.dataSource=e.concat([{style:100}]);const a=await this.mockFetchData();this.dataSource=e.concat(a),this.isLoading=!1},onScroll(e){console.log("onScroll",e.offsetY),e.offsetY<=0?this.topReached||(this.topReached=!0,console.log("onTopReached")):this.topReached=!1},onMomentumScrollBegin(e){console.log("momentumScrollBegin",e)},onMomentumScrollEnd(e){console.log("momentumScrollEnd",e)},onScrollBeginDrag(e){console.log("onScrollBeginDrag",e)},onScrollEndDrag(e){console.log("onScrollEndDrag",e)}}},$=(a("./src/components/demos/demo-list.vue?vue&type=style&index=0&id=71b90789&scoped=true&lang=css&"),Object(n.a)(z,M,[],!1,null,"71b90789",null));$.options.__file="src/components/demos/demo-list.vue";var W=$.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.iframeStyle,attrs:{id:"iframe-demo"}},[a("label",[e._v("地址栏:")]),e._v(" "),a("input",{ref:"input",attrs:{id:"address",name:"url",returnKeyType:"go"},domProps:{value:e.displayUrl},on:{endEditing:e.goToUrl,keyup:e.onKeyUp}}),e._v(" "),a("iframe",{ref:"iframe",attrs:{id:"iframe",src:e.url,method:"get"},on:{load:e.onLoad,loadStart:e.onLoadStart,loadEnd:e.onLoadEnd}})])};K._withStripped=!0;var G={data:()=>({url:"https://hippyjs.org",displayUrl:"https://hippyjs.org",iframeStyle:{"min-height":r.default.Native?100:"100vh"}}),methods:{onLoad(e){let{url:t}=e;void 0===t&&(t=this.$refs.iframe.src),t!==this.url&&(this.displayUrl=t)},onLoadStart(e){const{url:t}=e;console.log("onLoadStart",t)},onLoadEnd(e){const{url:t,success:a,error:o}=e;console.log("onLoadEnd",t,a,o)},onKeyUp(e){13===e.keyCode&&(e.preventDefault(),this.goToUrl({value:this.$refs.input.value}))},goToUrl(e){this.url=e.value}}},q=(a("./src/components/demos/demo-iframe.vue?vue&type=style&index=0&lang=css&"),Object(n.a)(G,K,[],!1,null,null,null));q.options.__file="src/components/demos/demo-iframe.vue";var Q=q.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v77bce928",attrs:{id:"websocket-demo"}},[a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Url:\n ")]),e._v(" "),a("input",{ref:"inputUrl",staticClass:"v77bce928",attrs:{value:"wss://echo.websocket.org"}}),e._v(" "),a("div",{staticClass:"v77bce928 row"},[a("button",{staticClass:"v77bce928",on:{click:e.connect}},[a("span",[e._v("Connect")])]),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.disconnect}},[a("span",[e._v("Disconnect")])])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Message:\n ")]),e._v(" "),a("input",{ref:"inputMessage",staticClass:"v77bce928",attrs:{value:"Rock it with Hippy WebSocket"}}),e._v(" "),a("button",{staticClass:"v77bce928",on:{click:e.sendMessage}},[a("span",[e._v("Send")])])]),e._v(" "),a("div",[a("p",{staticClass:"v77bce928 demo-title"},[e._v("\n Log:\n ")]),e._v(" "),a("div",{staticClass:"v77bce928 output fullscreen"},[a("div",e._l(e.output,(function(t,o){return a("p",{key:o,staticClass:"v77bce928"},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])};X._withStripped=!0;var J={data:()=>({output:[]}),methods:{connect(){this.$refs.inputUrl.getValue().then(e=>{this.disconnect();const t=new WebSocket(e);t.onopen=()=>this.appendOutput("[Opened] "+t.url),t.onclose=()=>this.appendOutput("[Closed] "+t.url),t.onerror=e=>this.appendOutput("[Error] "+e.reason),t.onmessage=e=>this.appendOutput("[Received] "+e.data),this.ws=t})},disconnect(){this.ws&&1===this.ws.readyState&&this.ws.close()},appendOutput(e){this.output.unshift(e)},sendMessage(){this.$refs.inputMessage.getValue().then(e=>{this.appendOutput("[Sent] "+e),this.ws.send(e)})}}},Z=(a("./src/components/demos/demo-websocket.vue?vue&type=style&index=0&id=77bce928&scoped=true&lang=css&"),Object(n.a)(J,X,[],!1,null,"77bce928",null));Z.options.__file="src/components/demos/demo-websocket.vue";var ee=Z.exports,te=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349",attrs:{id:"demo-dynamicimport"},on:{click:this.onAsyncComponentLoad}},[this._m(0),this._v(" "),this.loaded?t("div",{staticClass:"v2ea31349 async-com-wrapper"},[t("AsyncComponentFromLocal",{staticClass:"v2ea31349 async-component-outer-local"}),this._v(" "),t("AsyncComponentFromHttp")],1):this._e()])};te._withStripped=!0;var ae={components:{AsyncComponentFromLocal:()=>a.e(1).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-local.vue")).then(e=>e).catch(e=>console.error("import async local component error",e)),AsyncComponentFromHttp:()=>a.e(0).then(a.bind(null,"./src/components/demos/dynamicImport/async-component-http.vue")).then(e=>e).catch(e=>console.error("import async remote component error",e))},data:()=>({loaded:!1}),methods:{onAsyncComponentLoad(){this.loaded=!0}}},oe=(a("./src/components/demos/demo-dynamicimport.vue?vue&type=style&index=0&id=2ea31349&scoped=true&lang=css&"),Object(n.a)(ae,te,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v2ea31349 import-btn"},[t("p",[this._v("点我异步加载")])])}],!1,null,"2ea31349",null));oe.options.__file="src/components/demos/demo-dynamicimport.vue";var re=oe.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v14216e7a demo-turbo"},[a("span",{staticClass:"v14216e7a result"},[e._v(" "+e._s(e.result)+" ")]),e._v(" "),a("ul",{staticClass:"v14216e7a",staticStyle:{flex:"1"}},e._l(e.funList,(function(t){return a("li",{key:t,staticClass:"v14216e7a cell"},[a("div",{staticClass:"v14216e7a contentView"},[a("div",{staticClass:"v14216e7a func-info"},[a("span",{staticClass:"v14216e7a",attrs:{numberOfLines:0}},[e._v("函数名:"+e._s(t))])]),e._v(" "),a("span",{staticClass:"v14216e7a action-button",on:{click:function(a){return a.stopPropagation(),function(){return e.onTurboFunc(t)}.apply(null,arguments)}}},[e._v("运行")])])])})),0)])};se._withStripped=!0;const ie=()=>getTurboModule("demoTurbo").getTurboConfig();var ne={data:()=>({config:null,result:"",funList:["getString","getNum","getBoolean","getMap","getObject","getArray","nativeWithPromise","getTurboConfig","printTurboConfig","getInfo","setInfo"]}),methods:{async onTurboFunc(e){if("nativeWithPromise"===e)this.result=await(async e=>turboPromise(getTurboModule("demoTurbo").nativeWithPromise)(e))("aaa");else if("getTurboConfig"===e)this.config=ie(),this.result="获取到config对象";else if("printTurboConfig"===e)this.result=(t=this.config||ie(),getTurboModule("demoTurbo").printTurboConfig(t));else if("getInfo"===e)this.result=(this.config||ie()).getInfo();else if("setInfo"===e)(this.config||ie()).setInfo("Hello World"),this.result="设置config信息成功";else{const t={getString:()=>{return e="123",getTurboModule("demoTurbo").getString(e);var e},getNum:()=>{return e=1024,getTurboModule("demoTurbo").getNum(e);var e},getBoolean:()=>{return e=!0,getTurboModule("demoTurbo").getBoolean(e);var e},getMap:()=>{return e=new Map([["a","1"],["b",2]]),getTurboModule("demoTurbo").getMap(e);var e},getObject:()=>{return e={c:"3",d:"4"},getTurboModule("demoTurbo").getObject(e);var e},getArray:()=>{return e=["a","b","c"],getTurboModule("demoTurbo").getArray(e);var e}};this.result=t[e]()}var t}}},le=(a("./src/components/demos/demo-turbo.vue?vue&type=style&index=0&id=14216e7a&scoped=true&lang=css&"),Object(n.a)(ne,se,[],!1,null,"14216e7a",null));le.options.__file="src/components/demos/demo-turbo.vue";var ce={demoDiv:{name:"div 组件",component:g},demoShadow:{name:"box-shadow",component:D},demoP:{name:"p 组件",component:L},demoButton:{name:"button 组件",component:c},demoImg:{name:"img 组件",component:k},demoInput:{name:"input 组件",component:j},demoTextarea:{name:"textarea 组件",component:N},demoUl:{name:"ul/li 组件",component:W},demoIFrame:{name:"iframe 组件",component:Q},demoWebSocket:{name:"WebSocket",component:ee},demoDynamicImport:{name:"DynamicImport",component:re},demoTurbo:{name:"Turbo",component:le.exports}},de=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v4ffd9eb0 set-native-props-demo"},[a("label",[e._v("setNativeProps实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-1-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown1,touchmove:e.onTouchMove1}},[a("div",{ref:"demo-1-point",staticClass:"v4ffd9eb0 native-demo-1-point"})]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 splitter"}),e._v(" "),a("label",[e._v("普通渲染实现拖动效果")]),e._v(" "),a("div",{staticClass:"v4ffd9eb0 native-demo-2-drag",style:{width:e.screenWidth},on:{touchstart:e.onTouchDown2,touchmove:e.onTouchMove2}},[a("div",{ref:"demo-2-point",staticClass:"v4ffd9eb0 native-demo-2-point",style:{left:e.demon2Left+"px"}})])])};de._withStripped=!0;var pe={data:()=>({demon2Left:0,screenWidth:0}),mounted(){this.screenWidth=r.default.Native.Dimensions.screen.width,this.demon1Point=this.$refs["demo-1-point"]},methods:{onTouchDown1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchdown x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchMove1(e){e.stopPropagation();const t=e.touches[0].clientX-40;console.log("touchmove x",t,this.screenWidth),this.demon1Point.setNativeProps({style:{left:t}})},onTouchDown2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchdown x",this.demon2Left,this.screenWidth)},onTouchMove2(e){e.stopPropagation(),this.demon2Left=e.touches[0].clientX-40,console.log("touchmove x",this.demon2Left,this.screenWidth)}}},ue=(a("./src/components/demos/demo-set-native-props.vue?vue&type=style&index=0&id=4ffd9eb0&scoped=true&lang=css&"),Object(n.a)(pe,de,[],!1,null,"4ffd9eb0",null));ue.options.__file="src/components/demos/demo-set-native-props.vue";var ve=ue.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rect",staticClass:"v864846ba",attrs:{id:"demo-vue-native"}},[a("div",[e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Platform")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Platform))])]):e._e(),e._v(" "),e.Vue.Native.Device?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Device")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Device))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.isIPhoneX")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.isIPhoneX))])]):e._e(),e._v(" "),"ios"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OSVersion")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OSVersion||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Localization")]),e._v(" "),a("p",[e._v(e._s("国际化相关信息"))]),e._v(" "),a("p",[e._v(e._s("国家 "+e.Vue.Native.Localization.country))]),e._v(" "),a("p",[e._v(e._s("语言 "+e.Vue.Native.Localization.language))]),e._v(" "),a("p",[e._v(e._s("方向 "+(1===e.Vue.Native.Localization.direction?"RTL":"LTR")))])]),e._v(" "),"android"===e.Vue.Native.Platform?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.APILevel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.APILevel||"null"))])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block",on:{layout:e.refreshScreenStatus}},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.screenIsVertical")]),e._v(" "),a("p",[e._v(e._s(e.screenIsVertical))])]),e._v(" "),e.Vue.Native.Dimensions.window.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.window.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.window.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.window.height))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.width?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.width")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.width))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.height?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.height")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.height))])]):e._e(),e._v(" "),e.Vue.Native.OnePixel?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.OnePixel")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.OnePixel))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.Vue.Native.Dimensions.screen.statusBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.statusBarHeight")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.statusBarHeight))])]):e._e(),e._v(" "),"android"===e.Vue.Native.Platform&&void 0!==e.Vue.Native.Dimensions.screen.navigatorBarHeight?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.Dimensions.screen.navigatorBarHeight(Android only)")]),e._v(" "),a("p",[e._v(e._s(e.Vue.Native.Dimensions.screen.navigatorBarHeight))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App.$options.$superProps")]),e._v(" "),a("p",[e._v(e._s(JSON.stringify(e.app.$options.$superProps)))])]):e._e(),e._v(" "),e.app?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("App event")]),e._v(" "),a("div",[a("button",{staticClass:"v864846ba event-btn",on:{click:e.triggerAppEvent}},[a("span",{staticClass:"v864846ba event-btn-text"},[e._v("Trigger app event")])]),e._v(" "),a("div",{staticClass:"v864846ba event-btn-result"},[a("p",[e._v("Event triggered times: "+e._s(e.eventTriggeredTimes))])])])]):e._e(),e._v(" "),e.Vue.Native.getBoundingClientRect?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Vue.Native.getBoundingClientRect")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!1)}}},[a("span",[e._v("relative to App")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect1))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:function(){return e.getBoundingClientRect(!0)}}},[a("span",[e._v("relative to container")])]),e._v(" "),a("span",{staticClass:"v864846ba",staticStyle:{"max-width":"200px"}},[e._v(e._s(e.rect2))])])]):e._e(),e._v(" "),e.Vue.Native.AsyncStorage?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("AsyncStorage 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setItem}},[a("span",[e._v("setItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.removeItem}},[a("span",[e._v("removeItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageSetStatus))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getItem}},[a("span",[e._v("getItem")])]),e._v(" "),a("span",[e._v(e._s(e.storageValue))])])]):e._e(),e._v(" "),e.Vue.Native.ImageLoader?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("ImageLoader 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getSize}},[a("span",[e._v("getSize")])]),e._v(" "),a("span",[e._v(e._s(e.imageSize))])])]):e._e(),e._v(" "),a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Fetch 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.fetchText))])])]),e._v(" "),e.Vue.Native.NetInfo?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("NetInfo 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("span",[e._v(e._s(e.netInfoText))])])]):e._e(),e._v(" "),e.Vue.Native.Cookie?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Cookie 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setCookie}},[a("span",[e._v("setCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookieString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getCookie}},[a("span",[e._v("getCookie")])]),e._v(" "),a("span",[e._v(e._s(e.cookiesValue))])])]):e._e(),e._v(" "),e.Vue.Native.Clipboard?a("div",{staticClass:"v864846ba native-block"},[a("label",{staticClass:"v864846ba vue-native-title"},[e._v("Clipboard 使用")]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.setString}},[a("span",[e._v("setString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardString))])]),e._v(" "),a("div",{staticClass:"v864846ba item-wrapper"},[a("button",{staticClass:"v864846ba item-button",on:{click:e.getString}},[a("span",[e._v("getString")])]),e._v(" "),a("span",[e._v(e._s(e.clipboardValue))])])]):e._e()])])};ye._withStripped=!0;var he=a("./src/util.js");var be={data(){const{screenIsVertical:e}=r.default.Native;return{app:this.app,eventTriggeredTimes:0,rect1:null,rect2:null,Vue:r.default,screenIsVertical:e,storageValue:"",storageSetStatus:"ready to set",clipboardString:"ready to set",clipboardValue:"",imageSize:"",netInfoText:"正在获取...",fetchText:"请求网址中...",cookieString:"ready to set",cookiesValue:"",hasLayout:!1}},async created(){this.storageValue="",this.imageSize="",this.netInfoText="",this.netInfoText=await r.default.Native.NetInfo.fetch(),this.netInfoListener=r.default.Native.NetInfo.addEventListener("change",e=>{this.netInfoText="收到通知: "+e.network_info}),fetch("https://hippyjs.org",{mode:"no-cors"}).then(e=>{this.fetchText="成功状态: "+e.status}).catch(e=>{this.fetchText="收到错误: "+e})},async mounted(){this.app=Object(he.a)(),this.app.$on("testEvent",()=>{this.eventTriggeredTimes+=1})},beforeDestroy(){this.netInfoListener&&r.default.Native.NetInfo.remove("change",this.netInfoListener),this.app.$off("testEvent"),delete this.app},methods:{async getBoundingClientRect(e=!1){try{const t=await r.default.Native.getBoundingClientRect(this.$refs.rect,{relToContainer:e});e?this.rect2=""+JSON.stringify(t):this.rect1=""+JSON.stringify(t)}catch(e){console.error("getBoundingClientRect error",e)}},triggerAppEvent(){this.app.$emit("testEvent")},refreshScreenStatus(){this.screenIsVertical=r.default.Native.screenIsVertical},setItem(){r.default.Native.AsyncStorage.setItem("itemKey","hippy"),this.storageSetStatus='set "hippy" value succeed'},removeItem(){r.default.Native.AsyncStorage.removeItem("itemKey"),this.storageSetStatus='remove "hippy" value succeed'},async getItem(){const e=await r.default.Native.AsyncStorage.getItem("itemKey");this.storageValue=e||"undefined"},async getSize(){const e=await r.default.Native.ImageLoader.getSize("https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png");console.log("ImageLoader getSize",e),this.imageSize=`${e.width}x${e.height}`},setCookie(){r.default.Native.Cookie.set("https://hippyjs.org","name=hippy;network=mobile"),this.cookieString="'name=hippy;network=mobile' is set"},getCookie(){r.default.Native.Cookie.getAll("https://hippyjs.org").then(e=>{this.cookiesValue=e})},setString(){r.default.Native.Clipboard.setString("hippy"),this.clipboardString='copy "hippy" value succeed'},async getString(){const e=await r.default.Native.Clipboard.getString();this.clipboardValue=e||"undefined"}}},me=(a("./src/components/native-demos/demo-vue-native.vue?vue&type=style&index=0&id=864846ba&scoped=true&lang=css&"),Object(n.a)(be,ye,[],!1,null,"864846ba",null));me.options.__file="src/components/native-demos/demo-vue-native.vue";var fe=me.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"v1b9933af",attrs:{id:"animation-demo"}},[a("li",[a("label",[e._v("控制动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleLoopPlaying}},[e.loopPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleDirection}},["horizon"===e.direction?a("span",[e._v("切换为纵向")]):a("span",[e._v("切换为横向")])])]),e._v(" "),a("div",{staticClass:"v1b9933af",staticStyle:{height:"150px"}},[a("loop",{staticClass:"v1b9933af",attrs:{playing:e.loopPlaying,direction:e.direction,"on-ref":e.onRef},on:{actionsDidUpdate:e.actionsDidUpdate}},[a("p",[e._v("I'm a looping animation")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("点赞笑脸动画:")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteUp}},[a("span",[e._v("点赞 👍")])]),e._v(" "),a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.voteDown}},[a("span",[e._v("踩 👎")])])]),e._v(" "),a("div",{staticClass:"v1b9933af vote-face-container center"},[a(e.voteComponent,{tag:"component",staticClass:"v1b9933af vote-icon",attrs:{"is-changed":e.isChanged}})],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("渐变色动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleColorPlaying}},[e.colorPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("color-component",{staticClass:"v1b9933af",attrs:{playing:e.colorPlaying}},[a("p",[e._v("背景色渐变")])])],1)]),e._v(" "),a("li",[a("div",{staticClass:"v1b9933af",staticStyle:{"margin-top":"10px"}}),e._v(" "),a("label",[e._v("贝塞尔曲线动画")]),e._v(" "),a("div",{staticClass:"v1b9933af toolbar"},[a("button",{staticClass:"v1b9933af toolbar-btn",on:{click:e.toggleCubicPlaying}},[e.cubicPlaying?a("span",[e._v("暂停")]):a("span",[e._v("播放")])])]),e._v(" "),a("div",[a("cubic-bezier",{staticClass:"v1b9933af",attrs:{playing:e.cubicPlaying}},[a("p",[e._v("cubic-bezier(.45,2.84,.38,.5)")])])],1)])])};ge._withStripped=!0;var _e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationLoop",staticClass:"v63fc9d7f loop-green",style:{backgroundColor:"grey"},attrs:{playing:e.playing,actions:e.loopActions},on:{actionsDidUpdate:function(t){return e.$emit("actionsDidUpdate")}}},[a("div",{staticClass:"v63fc9d7f loop-white"},[e._t("default")],2)])],1)};_e._withStripped=!0;const Ce={transform:{translateX:{startValue:0,toValue:200,duration:2e3,repeatCount:-1}}},xe={transform:{translateY:{startValue:0,toValue:50,duration:2e3,repeatCount:-1}}};var Se={props:{playing:Boolean,direction:{validator:e=>["horizon","vertical"].indexOf(e)>-1},onRef:Function},data(){let e;switch(this.$props.direction){case"horizon":e=Ce;break;case"vertical":e=xe;break;default:throw new Error("direction must be defined in props")}return{loopActions:e}},watch:{direction(e){switch(e){case"horizon":this.loopActions=Ce;break;case"vertical":this.loopActions=xe}}},mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationLoop)}},we=(a("./src/components/native-demos/animations/loop.vue?vue&type=style&index=0&id=63fc9d7f&scoped=true&lang=css&"),Object(n.a)(Se,_e,[],!1,null,"63fc9d7f",null));we.options.__file="src/components/native-demos/animations/loop.vue";var ke=we.exports,Ae=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"v44bf239d loop-green",attrs:{playing:this.playing,actions:this.loopActions}},[t("div",{staticClass:"v44bf239d loop-white"},[this._t("default")],2)])],1)};Ae._withStripped=!0;const Pe={transform:{translateX:[{startValue:50,toValue:150,duration:1e3,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"},{startValue:150,toValue:50,duration:1e3,repeatCount:-1,timingFunction:"cubic-bezier(0.45,2.84, 000.38,.5)"}]}};var Ee={props:{playing:Boolean,onRef:Function},data:()=>({loopActions:Pe}),mounted(){this.$props.onRef&&this.$props.onRef(this.$refs.animationView)}},je=(a("./src/components/native-demos/animations/cubic-bezier.vue?vue&type=style&index=0&id=44bf239d&scoped=true&lang=css&"),Object(n.a)(Ee,Ae,[],!1,null,"44bf239d",null));je.options.__file="src/components/native-demos/animations/cubic-bezier.vue";var Te=je.exports,Ve=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{staticClass:"vca89125a vote-face",attrs:{actions:this.animations.face,playing:""}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-eye",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteEye},actions:this.animations.upVoteEye}}),this._v(" "),t("animation",{staticClass:"vca89125a vote-up-mouth",attrs:{tag:"img",playing:"",props:{src:this.imgs.upVoteMouth},actions:this.animations.upVoteMouth}})],1)};Ve._withStripped=!0;var Ie={data:()=>({imgs:{upVoteEye:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAFCAYAAABIHbx0AAAAAXNSR0IArs4c6QAAAQdJREFUGBljZACCVeVK/L8//m9i/P/flIGR8ZgwD2+9e8+lryA5dLCzRI/77ZfPjQz//1v9Z2Q8zcrPWBfWee8j45mZxqw3z709BdRgANPEyMhwLFIiwZaxoeEfTAxE/29oYFr+YsHh//8ZrJDEL6gbCZsxO8pwJP9nYEhFkgAxZS9/vXxj3Zn3V5DF1TQehwNdUogsBmRLvH/x4zHLv///PRgZGH/9Z2TYzsjAANT4Xxko6c/A8M8DSK9A1sQIFPvPwPibkeH/VmAQXAW6TAWo3hdkBgsTE9Pa/2z/s6In3n8J07SsWE2E4esfexgfRgMt28rBwVEZPOH6c5jYqkJtod/ff7gBAOnFYtdEXHPzAAAAAElFTkSuQmCC",upVoteMouth:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAA4VBMVEUAAACobCawciy0f0OmaSOmaSKlaCCmZyCmaCGpayO2hEmpbiq3hUuweTqscjCmaCGmZyCmZyClaCCmaCCmaSGoaCL///+vdzimaCGmaCKmaSKlZyGmaCGmaCGnaCGnaCGnaCGmaCKscCW/gEDDmmm9j1m6ilSnaSOmaSGqcCylZyGrcCymZyClaCGnaCKmaSCqaiumbyH///+lZyDTtJDawKLLp37XupmyfT/+/v3o18XfybDJo3jBlWP8+vf48+z17uXv49bq3Mv28Ony6N3x59zbwqXSs5DQsIrNqoK5h0+BlvpqAAAAMnRSTlMA/Qv85uChjIMl/f38/Pv4zq6nl04wAfv18tO7tXx0Y1tGEQT+/v3b1q+Ui35sYj8YF964s/kAAADySURBVCjPddLHVsJgEIbhL6QD6Qldqr2bgfTQ7N7/Bckv6omYvItZPWcWcwbTC+f6dqLWcFBNvRsPZekKNeKI1RFMS3JkRZEdyTKFDrEaNACMt3i9TcP3KOLb+g5zepuPoiBMk6elr0mAkPlfBQs253M2F4G/j5OBPl8NNjQGhrSqBCHdAx6lleCkB6AlNqvAho6wa0RJBTjuThmYifVlKUjYApZLWRl41M9/7qtQ+B+sml0V37VsCuID8KwZE+BXKFTPiyB75QQPxVyR+Jf1HsTbvEH2A/42G50Raaf1j7zZIMPyUJJ6Y/d7ojm4dAvf8QkUbUjwOwWDwQAAAABJRU5ErkJggg=="},animations:{face:{transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},upVoteEye:{top:[{startValue:14,toValue:8,delay:250,duration:125},{startValue:8,toValue:14,duration:250},{startValue:14,toValue:8,duration:250},{startValue:8,toValue:14,duration:125}],transform:{scale:[{startValue:1.2,toValue:1.4,duration:250,timingFunction:"linear"},{startValue:1.4,toValue:1.2,delay:750,duration:250,timingFunction:"linear"}]}},upVoteMouth:{bottom:[{startValue:9,toValue:14,delay:250,duration:125},{startValue:14,toValue:9,duration:250},{startValue:9,toValue:14,duration:250},{startValue:14,toValue:9,duration:125}],transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,delay:750,duration:250,timingFunction:"linear"}],scaleY:[{startValue:.725,delay:250,toValue:1.45,duration:125},{startValue:1.45,toValue:.87,duration:250},{startValue:.87,toValue:1.45,duration:250},{startValue:1.45,toValue:1,duration:125}]}}}})},Le=(a("./src/components/native-demos/animations/vote-up.vue?vue&type=style&index=0&id=ca89125a&scoped=true&lang=css&"),Object(n.a)(Ie,Ve,[],!1,null,"ca89125a",null));Le.options.__file="src/components/native-demos/animations/vote-up.vue";var Ye=Le.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("animation",{ref:"animationRef",staticClass:"v3adfe95a vote-face",attrs:{actions:e.animations.face,playing:""},on:{start:e.animationStart,end:e.animationEnd,repeat:e.animationRepeat,cancel:e.animationCancel}}),e._v(" "),a("animation",{staticClass:"v3adfe95a vote-down-face",attrs:{tag:"img",playing:"",props:{src:e.imgs.downVoteFace},actions:e.animations.downVoteFace}})],1)};Oe._withStripped=!0;const He={transform:{scale:[{startValue:1,toValue:1.2,duration:250,timingFunction:"linear"},{startValue:1.2,toValue:1,duration:250,delay:750,timingFunction:"linear"}]}},De={transform:{translateX:[{startValue:10,toValue:1,duration:250,timingFunction:"linear"},{startValue:1,toValue:10,duration:250,delay:750,timingFunction:"linear",repeatCount:-1}]}};var Re={props:["isChanged"],data:()=>({imgs:{downVoteFace:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAXVBMVEUAAACmaCCoaSKlZyCmaCCoaiG0byOlZyCmaCGnaSKmaCCmZyClZyCmaCCmaSCybyymZyClaCGlaCGnaCCnaSGnaiOlZyKocCXMmTOmaCKnaCKmaSClZyGoZyClZyDPYmTmAAAAHnRSTlMA6S/QtjYO+FdJ4tyZbWYH7cewgTw5JRQFkHFfXk8vbZ09AAAAiUlEQVQY07WQRxLDMAhFPyq21dxLKvc/ZoSiySTZ+y3g8YcFA5wFcOkHYEi5QDkknparH5EZKS6GExQLs0RzUQUY6VYiK2ayNIapQ6EjNk2xd616Bi5qIh2fn8BqroS1XtPmgYKXxo+y07LuDrH95pm3LBM5FMpHWg2osOOLjRR6hR/WOw780bwASN0IT3NosMcAAAAASUVORK5CYII="},animations:{face:He,downVoteFace:{left:[{startValue:16,toValue:10,delay:250,duration:125},{startValue:10,toValue:24,duration:250},{startValue:24,toValue:10,duration:250},{startValue:10,toValue:16,duration:125}],transform:{scale:[{startValue:1,toValue:1.3,duration:250,timingFunction:"linear"},{startValue:1.3,toValue:1,delay:750,duration:250,timingFunction:"linear"}]}}}}),watch:{isChanged(e,t){!t&&e?(console.log("changed to face2"),this.animations.face=De):t&&!e&&(console.log("changed to face1"),this.animations.face=He),setTimeout(()=>{this.animationRef.start()},10)}},mounted(){this.animationRef=this.$refs.animationRef},methods:{animationStart(){console.log("animation-start callback")},animationEnd(){console.log("animation-end callback")},animationRepeat(){console.log("animation-repeat callback")},animationCancel(){console.log("animation-cancel callback")}}},Be=(a("./src/components/native-demos/animations/vote-down.vue?vue&type=style&index=0&id=3adfe95a&scoped=true&lang=css&"),Object(n.a)(Re,Oe,[],!1,null,"3adfe95a",null));Be.options.__file="src/components/native-demos/animations/vote-down.vue";var Ue=Be.exports,Ne=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("animation",{ref:"animationView",staticClass:"vc3eb3b96 color-green",attrs:{playing:this.playing,actions:this.colorActions}},[t("div",{staticClass:"vc3eb3b96 color-white"},[this._t("default")],2)])],1)};Ne._withStripped=!0;const Me={backgroundColor:[{startValue:"#40b883",toValue:"yellow",valueType:"color",duration:1e3,delay:0,mode:"timing",timingFunction:"linear"},{startValue:"yellow",toValue:"#40b883",duration:1e3,valueType:"color",delay:0,mode:"timing",timingFunction:"linear",repeatCount:-1}]};var Fe={props:{playing:Boolean,onRef:Function},data:()=>({colorActions:Me})},ze=(a("./src/components/native-demos/animations/color-change.vue?vue&type=style&index=0&id=c3eb3b96&scoped=true&lang=css&"),Object(n.a)(Fe,Ne,[],!1,null,"c3eb3b96",null));ze.options.__file="src/components/native-demos/animations/color-change.vue";var $e=ze.exports,We={components:{Loop:ke,colorComponent:$e,CubicBezier:Te},data:()=>({loopPlaying:!0,colorPlaying:!0,cubicPlaying:!0,direction:"horizon",voteComponent:Ye,colorComponent:$e,isChanged:!0}),methods:{onRef(e){this.animationRef=e},voteUp(){this.voteComponent=Ye},voteDown(){this.voteComponent=Ue,this.isChanged=!this.isChanged},toggleLoopPlaying(){this.loopPlaying=!this.loopPlaying},toggleColorPlaying(){this.colorPlaying=!this.colorPlaying},toggleCubicPlaying(){this.cubicPlaying=!this.cubicPlaying},toggleDirection(){this.direction="horizon"===this.direction?"vertical":"horizon"},actionsDidUpdate(){console.log("actions updated & startAnimation"),this.animationRef.start()}}},Ke=(a("./src/components/native-demos/demo-animation.vue?vue&type=style&index=0&id=1b9933af&scoped=true&lang=css&"),Object(n.a)(We,ge,[],!1,null,"1b9933af",null));Ke.options.__file="src/components/native-demos/demo-animation.vue";var Ge=Ke.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vbdcf35a6",attrs:{id:"dialog-demo"}},[a("label",[e._v("显示或者隐藏对话框:")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",on:{click:function(){return e.clickView("slide_fade")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("显示对话框--slide_fade")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.immersionStatusBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("immerseStatusBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("沉浸式状态栏")])]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-1",style:[{borderColor:e.autoHideNavigationBar?"#FF0000":"#40b883"}],on:{click:function(){return e.clickDialogConfig("hideNavigationBar")}}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("隐藏导航栏")])]),e._v(" "),e.dialogIsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,supportedOrientations:e.supportedOrientations,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{show:e.onShow,requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-wrapper"},[a("div",{staticClass:"vbdcf35a6 fullscreen center row",on:{click:e.clickView}},[a("div",{staticClass:"vbdcf35a6 dialog-demo-close-btn center column",on:{click:e.stopPropagation}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text"},[e._v("\n 点击空白区域关闭\n ")]),e._v(" "),a("button",{staticClass:"vbdcf35a6 dialog-demo-button-2",on:{click:e.clickOpenSecond}},[a("span",{staticClass:"vbdcf35a6 button-text"},[e._v("点击打开二级全屏弹窗")])])]),e._v(" "),e.dialog2IsVisible?a("dialog",{staticClass:"vbdcf35a6",attrs:{animationType:e.dialogAnimationType,transparent:!0,immersionStatusBar:e.immersionStatusBar,autoHideStatusBar:e.autoHideStatusBar,autoHideNavigationBar:e.autoHideNavigationBar},on:{requestClose:e.onClose}},[a("div",{staticClass:"vbdcf35a6 dialog-2-demo-wrapper center column row",on:{click:e.clickOpenSecond}},[a("p",{staticClass:"vbdcf35a6 dialog-demo-close-btn-text",staticStyle:{color:"white"}},[e._v("\n Hello 我是二级全屏弹窗,点击任意位置关闭。\n ")])])]):e._e()])])]):e._e()])};qe._withStripped=!0;var Qe={beforeRouteLeave(e,t,a){this.dialogIsVisible||a()},data:()=>({supportedOrientations:["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"],dialogIsVisible:!1,dialog2IsVisible:!1,dialogAnimationType:"",immersionStatusBar:!1,autoHideStatusBar:!1,autoHideNavigationBar:!1}),methods:{clickView(e=""){this.dialogIsVisible=!this.dialogIsVisible,this.dialogIsVisible&&(this.dialogAnimationType=e)},clickOpenSecond(e){e.stopPropagation(),this.dialog2IsVisible=!this.dialog2IsVisible},clickDialogConfig(e){switch(e){case"hideStatusBar":this.autoHideStatusBar=!this.autoHideStatusBar;break;case"immerseStatusBar":this.immersionStatusBar=!this.immersionStatusBar;break;case"hideNavigationBar":this.autoHideNavigationBar=!this.autoHideNavigationBar}},onShow(){console.log("Dialog is opening")},onClose(e){e.stopPropagation(),this.dialog2IsVisible?this.dialog2IsVisible=!1:this.dialogIsVisible=!1,console.log("Dialog is closing")},stopPropagation(e){e.stopPropagation()}}},Xe=(a("./src/components/native-demos/demo-dialog.vue?vue&type=style&index=0&id=bdcf35a6&scoped=true&lang=css&"),Object(n.a)(Qe,qe,[],!1,null,"bdcf35a6",null));Xe.options.__file="src/components/native-demos/demo-dialog.vue";var Je=Xe.exports,Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"demo-swiper"}},[a("div",{staticClass:"toolbar"},[a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToPrevPage}},[a("span",[e._v("翻到上一页")])]),e._v(" "),a("button",{staticClass:"toolbar-btn",on:{click:e.scrollToNextPage}},[a("span",[e._v("翻到下一页")])]),e._v(" "),a("p",{staticClass:"toolbar-text"},[e._v("\n 当前第 "+e._s(e.currentSlideNum+1)+" 页\n ")])]),e._v(" "),a("swiper",{ref:"swiper",attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dragging:e.onDragging,dropped:e.onDropped,stateChanged:e.onStateChanged}},e._l(e.dataSource,(function(t){return a("swiper-slide",{key:t,style:{backgroundColor:4278222848+100*t}},[a("p",[e._v("I'm Slide "+e._s(t+1))])])})),1),e._v(" "),a("div",{attrs:{id:"swiper-dots"}},e._l(e.dataSource,(function(t){return a("div",{key:t,staticClass:"dot",class:{hightlight:e.currentSlideNum===t}})})),0)],1)};Ze._withStripped=!0;var et={data:()=>({dataSource:new Array(7).fill(0).map((e,t)=>t),currentSlide:2,currentSlideNum:2,state:"idle"}),mounted(){this.$maxSlideIndex=this.$refs.swiper.$el.childNodes.length-1},methods:{scrollToNextPage(){this.currentSlide 如果不需要显示加载情况,可以直接使用 ul 的 onEndReached 实现一直加载\n *\n * 事件:\n * idle: 滑动距离在 pull-footer 区域内触发一次,参数 contentOffset,滑动距离\n * pulling: 滑动距离超出 pull-footer 后触发一次,参数 contentOffset,滑动距离\n * released: 滑动超出距离,松手后触发一次\n */\n "),a("pull-footer",{ref:"pullFooter",staticClass:"v44ac5390 pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v44ac5390 pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)])};ot._withStripped=!0;const rt="https://user-images.githubusercontent.com/12878546/148736841-59ce5d1c-8010-46dc-8632-01c380159237.jpg",st={style:1,itemBean:{title:"非洲总统出行真大牌,美制武装直升机和中国潜艇为其保驾",picList:[rt,rt,rt],subInfo:["三图评论","11评"]}},it={style:2,itemBean:{title:"彼得·泰尔:认知未来是投资人的谋生之道",picUrl:"https://user-images.githubusercontent.com/12878546/148736850-4fc13304-25d4-4b6a-ada3-cbf0745666f5.jpg",subInfo:["左文右图"]}},nt={style:5,itemBean:{title:"愤怒!美官员扬言:“不让中国拿走南海的岛屿,南海岛礁不属于中国”?",picUrl:"https://user-images.githubusercontent.com/12878546/148736859-29e3a5b2-612a-4fdd-ad21-dc5d29fa538f.jpg",subInfo:["六眼神魔 5234播放"]}};var lt=[nt,st,it,st,it,st,it,nt,st],ct=(r.default.component("StyleOne",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n '}),r.default.component("StyleTwo",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n
\n

\n {{ itemBean.title }}\n

\n
\n

\n {{ itemBean.subInfo.join(\'\') }}\n

\n
\n
\n
\n \n
\n
\n '}),r.default.component("StyleFive",{inheritAttrs:!1,props:["itemBean"],template:'\n
\n

\n {{ itemBean.title }}\n

\n
\n \n
\n
\n

\n {{ itemBean.subInfo.join(\' \') }}\n

\n
\n
\n '}),{data:()=>({headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",dataSource:[],scrollPos:{top:0,left:0},Vue:r.default}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},methods:{mockFetchData:()=>new Promise(e=>{setTimeout(()=>e(lt),800)}),onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},onScroll(e){e.stopPropagation(),this.scrollPos={top:e.offsetY,left:e.offsetX}},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";const e=await this.mockFetchData();this.dataSource=e.reverse(),this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},scrollToNextPage(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs,{scrollPos:t}=this,a=t.top+this.$windowHeight-200;e.scrollTo({left:t.left,top:a})},scrollToBottom(){if(!r.default.Native)return void alert("This method is only supported in Native environment.");const{list:e}=this.$refs;e.scrollToIndex(0,e.childNodes.length-1)}}}),dt=(a("./src/components/native-demos/demo-pull-header-footer.vue?vue&type=style&index=0&id=44ac5390&scoped=true&lang=css&"),Object(n.a)(ct,ot,[],!1,null,"44ac5390",null));dt.options.__file="src/components/native-demos/demo-pull-header-footer.vue";var pt=dt.exports,ut=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v782cda3d",attrs:{id:"demo-waterfall"}},[a("waterfall",{ref:"gridView",staticClass:"v782cda3d",style:{flex:1},attrs:{"content-inset":e.contentInset,"column-spacing":e.columnSpacing,"contain-banner-view":e.isIos,"contain-pull-footer":!0,"inter-item-spacing":e.interItemSpacing,"number-of-columns":e.numberOfColumns,"preload-item-number":4},on:{endReached:e.onEndReached,scroll:e.onScroll}},[a("pull-header",{ref:"pullHeader",staticClass:"v782cda3d ul-refresh",on:{idle:e.onHeaderIdle,pulling:e.onHeaderPulling,released:e.onHeaderReleased}},[a("p",{staticClass:"v782cda3d ul-refresh-text"},[e._v("\n "+e._s(e.headerRefreshText)+"\n ")])]),e._v(" "),e.isIos?a("div",{staticClass:"v782cda3d banner-view"},[a("span",[e._v("BannerView")])]):e._e(),e._v(" "),a("waterfall-item",{staticClass:"v782cda3d banner-view",attrs:{fullSpan:!0,",":""}},[a("span",[e._v("BannerView")])]),e._v(" "),e._l(e.dataSource,(function(t,o){return a("waterfall-item",{key:o,staticClass:"v782cda3d",style:{width:e.itemWidth},attrs:{type:t.style},on:{click:function(t){return t.stopPropagation(),function(){return e.onItemClick(o)}.apply(null,arguments)}}},[1===t.style?a("style-one",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),2===t.style?a("style-two",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e(),e._v(" "),5===t.style?a("style-five",{staticClass:"v782cda3d",attrs:{"item-bean":t.itemBean}}):e._e()],1)})),e._v(" "),a("pull-footer",{ref:"pullFooter",staticClass:"v782cda3d pull-footer",on:{idle:e.onFooterIdle,pulling:e.onFooterPulling,released:e.onEndReached}},[a("p",{staticClass:"v782cda3d pull-footer-text"},[e._v("\n "+e._s(e.footerRefreshText)+"\n ")])])],2)],1)};ut._withStripped=!0;var vt={data:()=>({dataSource:[...lt,...lt,...lt,...lt],isRefreshing:!1,Vue:r.default,STYLE_LOADING:100,headerRefreshText:"继续下拉触发刷新",footerRefreshText:"正在加载...",isLoading:!1,isIos:"ios"===r.default.Native.Platform}),mounted(){this.loadMoreDataFlag=!1,this.fetchingDataFlag=!1,this.dataSource=[...lt],r.default.Native?(this.$windowHeight=r.default.Native.Dimensions.window.height,console.log("Vue.Native.Dimensions.window",r.default.Native.Dimensions)):this.$windowHeight=window.innerHeight,this.$refs.pullHeader.collapsePullHeader({time:2e3})},computed:{refreshText(){return this.isRefreshing?"正在刷新":"下拉刷新"},itemWidth(){return(r.default.Native.Dimensions.screen.width-this.contentInset.left-this.contentInset.right-(this.numberOfColumns-1)*this.columnSpacing)/this.numberOfColumns},listMargin:()=>5,columnSpacing:()=>6,interItemSpacing:()=>6,numberOfColumns:()=>2,contentInset:()=>({top:0,left:5,bottom:0,right:5})},methods:{mockFetchData(){return new Promise(e=>{setTimeout(()=>(this.fetchTimes+=1,this.fetchTimes>=50?e([]):e([...lt,...lt])),600)})},onHeaderPulling(e){this.fetchingDataFlag||(console.log("onHeaderPulling",e.contentOffset),e.contentOffset>30?this.headerRefreshText="松手,即可触发刷新":this.headerRefreshText="继续下拉,触发刷新")},onFooterPulling(e){console.log("onFooterPulling",e)},onHeaderIdle(){},onFooterIdle(){},async onHeaderReleased(){if(this.fetchingDataFlag)return;this.fetchingDataFlag=!0,console.log("onHeaderReleased"),this.headerRefreshText="刷新数据中,请稍等";await this.mockFetchData();this.fetchingDataFlag=!1,this.headerRefreshText="2秒后收起",this.$refs.pullHeader.collapsePullHeader({time:2e3})},async onRefresh(){this.isRefreshing=!0;const e=await this.mockFetchData();this.isRefreshing=!1,this.dataSource=e.reverse(),this.$refs.header.refreshCompleted()},onScroll(e){console.log("waterfall onScroll",e)},async onEndReached(){const{dataSource:e}=this;if(this.loadMoreDataFlag)return;this.loadMoreDataFlag=!0,this.footerRefreshText="加载更多...";const t=await this.mockFetchData();0===t.length&&(this.footerRefreshText="没有更多数据"),this.dataSource=[...e,...t],this.loadMoreDataFlag=!1,this.$refs.pullFooter.collapsePullFooter()},onItemClick(e){this.$refs.gridView.scrollToIndex({index:e,animation:!0})}}},yt=(a("./src/components/native-demos/demo-waterfall.vue?vue&type=style&index=0&id=782cda3d&scoped=true&lang=css&"),Object(n.a)(vt,ut,[],!1,null,"782cda3d",null));yt.options.__file="src/components/native-demos/demo-waterfall.vue";var ht=yt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-wrap"},on:{layout:e.onLayout}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"demo-content"}},[a("div",{staticClass:"v3bbacb8e",attrs:{id:"banner"}}),e._v(" "),a("div",{staticClass:"v3bbacb8e",attrs:{id:"tabs"}},e._l(2,(function(t){return a("p",{key:"tab"+t,staticClass:"v3bbacb8e",class:e.currentSlide===t-1?"selected":"",on:{click:function(a){return e.onTabClick(t)}}},[e._v("\n tab "+e._s(t)+" "+e._s(1===t?"(parent first)":"(self first)")+"\n ")])})),0),e._v(" "),a("swiper",{ref:"swiper",staticClass:"v3bbacb8e",style:{height:e.layoutHeight-80},attrs:{id:"swiper","need-animation":"",current:e.currentSlide},on:{dropped:e.onDropped}},[a("swiper-slide",{key:"slide1",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"parent"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)]),e._v(" "),a("swiper-slide",{key:"slide2",staticClass:"v3bbacb8e"},[a("ul",{staticClass:"v3bbacb8e",attrs:{nestedScrollTopPriority:"self"}},e._l(30,(function(t){return a("li",{key:"item"+t,staticClass:"v3bbacb8e",class:t%2?"item-even":"item-odd"},[a("p",[e._v("Item "+e._s(t))])])})),0)])],1)],1)])};bt._withStripped=!0;var mt={data:()=>({layoutHeight:0,currentSlide:0}),methods:{onLayout(e){this.layoutHeight=e.height},onTabClick(e){console.log("onclick",e),this.currentSlide=e-1},onDropped(e){this.currentSlide=e.currentSlide}}},ft=(a("./src/components/native-demos/demo-nested-scroll.vue?vue&type=style&index=0&id=3bbacb8e&scoped=true&lang=css&"),Object(n.a)(mt,bt,[],!1,null,"3bbacb8e",null));ft.options.__file="src/components/native-demos/demo-nested-scroll.vue";var gt=ft.exports;const _t={};r.default.Native&&Object.assign(_t,{demoVueNative:{name:"Vue.Native 能力",component:fe},demoAnimation:{name:"animation 组件",component:Ge},demoModal:{name:"dialog 组件",component:Je},demoSwiper:{name:"swiper 组件",component:at},demoPullHeaderFooter:{name:"pull-header/footer 组件",component:pt},demoWaterfall:{name:"waterfall 组件",component:ht},demoNestedScroll:{name:"nested scroll 示例",component:gt},demoSetNativeProps:{name:"setNativeProps",component:ve}});var Ct=_t,xt={name:"App",data:()=>({featureList:Object.keys(ce).map(e=>({id:e,name:ce[e].name})),nativeFeatureList:Object.keys(Ct).map(e=>({id:e,name:Ct[e].name})),Vue:r.default}),beforeAppExit(){}},St=(a("./src/pages/menu.vue?vue&type=style&index=0&id=4fb46863&scoped=true&lang=css&"),Object(n.a)(xt,o,[function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("p",{staticClass:"v4fb46863 feature-title"},[this._v("\n 浏览器组件 Demos\n ")])])}],!1,null,"4fb46863",null));St.options.__file="src/pages/menu.vue";var wt=St.exports,kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"inputDemo",staticClass:"v66065e90 demo-remote-input",on:{click:e.blurInput}},[a("div",{staticClass:"v66065e90 tips-wrap"},e._l(e.tips,(function(t,o){return a("p",{key:o,staticClass:"v66065e90 tips-item",style:e.styles.tipText},[e._v("\n "+e._s(o+1)+". "+e._s(t)+"\n ")])})),0),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.bundleUrl,expression:"bundleUrl"}],ref:"input",staticClass:"v66065e90 remote-input",attrs:{"caret-color":"yellow",placeholder:"please input bundleUrl",multiple:!0,numberOfLines:"4"},domProps:{value:e.bundleUrl},on:{click:e.stopPropagation,input:function(t){t.target.composing||(e.bundleUrl=t.target.value)}}}),e._v(" "),a("div",{staticClass:"v66065e90 buttonContainer",style:e.styles.buttonContainer},[a("button",{staticClass:"v66065e90 input-button",style:e.styles.button,on:{click:e.openBundle}},[a("span",{staticClass:"v66065e90",style:e.styles.buttonText},[e._v("开始")])])])])};kt._withStripped=!0;var At={data:()=>({bundleUrl:"http://127.0.0.1:38989/index.bundle?debugUrl=ws%3A%2F%2F127.0.0.1%3A38989%2Fdebugger-proxy",tips:["安装远程调试依赖: npm i -D @hippy/debug-server-next@latest","修改 webpack 配置,添加远程调试地址","运行 npm run hippy:dev 开始编译,编译结束后打印出 bundleUrl 及调试首页地址","粘贴 bundleUrl 并点击开始按钮","访问调试首页开始远程调试,远程调试支持热更新(HMR)"],styles:{tipText:{color:"#242424",marginBottom:12},button:{width:200,height:40,borderRadius:8,backgroundColor:"#4c9afa",alignItems:"center",justifyContent:"center"},buttonText:{fontSize:16,textAlign:"center",lineHeight:40,color:"#fff"},buttonContainer:{alignItems:"center",justifyContent:"center"}}}),methods:{blurInput(e){e.stopPropagation(),this.$refs.input.blur()},openBundle(){this.bundleUrl&&r.default.Native.callNative("TestModule","remoteDebug",this.$root.$options.rootViewId,this.bundleUrl)},stopPropagation(e){e.stopPropagation()},clearTextContent(){this.bundleUrl=""},getChildNodes:e=>r.default.Native?e:Array.from(e)}},Pt=(a("./src/pages/remote-debug.vue?vue&type=style&index=0&id=66065e90&scoped=true&lang=css&"),Object(n.a)(At,kt,[],!1,null,"66065e90",null));Pt.options.__file="src/pages/remote-debug.vue";var Et=Pt.exports;t.a={disableAutoBack:!1,routes:[{path:"/",component:wt},{path:"/remote-debug",component:Et,name:"调试"},...Object.keys(ce).map(e=>({path:"/demo/"+e,name:ce[e].name,component:ce[e].component})),...Object.keys(Ct).map(e=>({path:"/demo/"+e,name:Ct[e].name,component:Ct[e].component}))]}},"./src/util.js":function(e,t,a){"use strict";let o;function r(e){o=e}function s(){return o}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}))},0:function(e,t,a){e.exports=a("./src/main-native.js")},"dll-reference hippyVueBase":function(e,t){e.exports=hippyVueBase}}); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue2/vendor.android.js b/framework/examples/android-demo/res/vue2/vendor.android.js index 1edf7bb233c..8d1bf466091 100644 --- a/framework/examples/android-demo/res/vue2/vendor.android.js +++ b/framework/examples/android-demo/res/vue2/vendor.android.js @@ -2,7 +2,7 @@ var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports; /*! * @hippy/vue-native-components vunspecified * (Using Vue v2.6.14 and Hippy-Vue vunspecified) - * Build at: Wed Apr 03 2024 18:09:14 GMT+0800 (中国标准时间) + * Build at: Sun Apr 07 2024 19:11:31 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. @@ -25,7 +25,7 @@ var hippyVueBase=function(e){var t={};function n(o){if(t[o])return t[o].exports; /*! * @hippy/vue vunspecified * (Using Vue v2.6.14) - * Build at: Wed Apr 03 2024 18:09:14 GMT+0800 (中国标准时间) + * Build at: Sun Apr 07 2024 19:11:31 GMT+0800 (中国标准时间) * * Tencent is pleased to support the open source community by making * Hippy available. diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js index 21494235d66..b797fd5968a 100644 --- a/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js +++ b/framework/examples/android-demo/res/vue3/asyncComponentFromHttp.android.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[0],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:["#async-component-http"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"height",value:200},{type:"declaration",property:"width",value:300},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:[".async-txt"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-http.vue":function(e,t,o){"use strict";o.r(t);var s=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportHttp"}),d=(o("./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const c=o.n(d)()(a,[["render",function(e,t,o,n,a,d){return Object(s.k)(),Object(s.e)("div",{id:"async-component-http",class:"local-local"},[Object(s.f)("p",{class:"async-txt"}," 我是远程异步组件 ")])}]]);t.default=c},"./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css")}}]); \ No newline at end of file +((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[0],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){(function(t){e.exports=(t.__HIPPY_VUE_STYLES__||(t.__HIPPY_VUE_STYLES__=[]),void(t.__HIPPY_VUE_STYLES__=t.__HIPPY_VUE_STYLES__.concat([{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:["#async-component-http"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"height",value:200},{type:"declaration",property:"width",value:300},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"98b9a9a48568b6b697be35441fbacde6",selectors:[".async-txt"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,o("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-http.vue":function(e,t,o){"use strict";o.r(t);var s=o("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=o("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportHttp"}),d=(o("./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css"),o("./node_modules/vue-loader/dist/exportHelper.js"));const c=o.n(d)()(a,[["render",function(e,t,o,n,a,d){return Object(s.t)(),Object(s.f)("div",{id:"async-component-http",class:"local-local"},[Object(s.g)("p",{class:"async-txt"}," 我是远程异步组件 ")])}]]);t.default=c},"./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css":function(e,t,o){"use strict";o("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-http.vue?vue&type=style&index=0&id=312bbf24&lang=css")}}]); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js b/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js index 7d21a71abda..fe5ad672f63 100644 --- a/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js +++ b/framework/examples/android-demo/res/vue3/asyncComponentFromLocal.android.js @@ -1 +1 @@ -((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[1],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,s){(function(o){e.exports=(o.__HIPPY_VUE_STYLES__||(o.__HIPPY_VUE_STYLES__=[]),void(o.__HIPPY_VUE_STYLES__=o.__HIPPY_VUE_STYLES__.concat([{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-component-local[data-v-8399ef12]"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-txt[data-v-8399ef12]"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,s("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-local.vue":function(e,o,s){"use strict";s.r(o);var t=s("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=s("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportLocal"}),c=(s("./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css"),s("./node_modules/vue-loader/dist/exportHelper.js"));const d=s.n(c)()(a,[["render",function(e,o,s,n,a,c){return Object(t.k)(),Object(t.e)("div",{class:"async-component-local"},[Object(t.f)("p",{class:"async-txt"}," 我是本地异步组件 ")])}],["__scopeId","data-v-8399ef12"]]);o.default=d},"./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,s){"use strict";s("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css")}}]); \ No newline at end of file +((0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[]).push([[1],{"../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,t){(function(o){e.exports=(o.__HIPPY_VUE_STYLES__||(o.__HIPPY_VUE_STYLES__=[]),void(o.__HIPPY_VUE_STYLES__=o.__HIPPY_VUE_STYLES__.concat([{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-component-local[data-v-8399ef12]"],declarations:[{type:"declaration",property:"display",value:"flex"},{type:"declaration",property:"flexDirection",value:"column"},{type:"declaration",property:"alignItems",value:"center"},{type:"declaration",property:"justifyContent",value:"center"},{type:"declaration",property:"position",value:"relative"},{type:"declaration",property:"backgroundColor",value:4283484818},{type:"declaration",property:"borderRadius",value:10},{type:"declaration",property:"marginBottom",value:10}]},{hash:"1d9d4525f36cd98b4f95527dc85017cf",selectors:[".async-txt[data-v-8399ef12]"],declarations:[{type:"declaration",property:"color",value:4278190080}]}])))}).call(this,t("./node_modules/webpack/buildin/global.js"))},"./src/components/demo/dynamicImport/async-component-local.vue":function(e,o,t){"use strict";t.r(o);var s=t("./node_modules/vue/dist/vue.runtime.esm-bundler.js");var n=t("../../packages/hippy-vue-next/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"),a=Object(n.defineComponent)({name:"DynamicImportLocal"}),c=(t("./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css"),t("./node_modules/vue-loader/dist/exportHelper.js"));const d=t.n(c)()(a,[["render",function(e,o,t,n,a,c){return Object(s.t)(),Object(s.f)("div",{class:"async-component-local"},[Object(s.g)("p",{class:"async-txt"}," 我是本地异步组件 ")])}],["__scopeId","data-v-8399ef12"]]);o.default=d},"./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css":function(e,o,t){"use strict";t("../../packages/hippy-vue-css-loader/dist/css-loader.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js?!./src/components/demo/dynamicImport/async-component-local.vue?vue&type=style&index=0&id=8399ef12&scoped=true&lang=css")}}]); \ No newline at end of file diff --git a/framework/examples/android-demo/res/vue3/index.android.js b/framework/examples/android-demo/res/vue3/index.android.js index b98f6af55bb..3b1df1b8245 100644 --- a/framework/examples/android-demo/res/vue3/index.android.js +++ b/framework/examples/android-demo/res/vue3/index.android.js @@ -1,10 +1,9 @@ -!function(e){function t(t){for(var o,r,a=t[0],l=t[1],c=0,s=[];c0===c.indexOf(e))){var i=c.split("/"),s=i[i.length-1],d=s.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+s)}else{var u;d=c.split(".")[0];(u=global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__[d])&&(c=u+c)}onScriptComplete=function(t){if(t instanceof Error){t.message+=", load chunk "+e+" failed, path is "+c;var o=n[e];0!==o&&o&&o[1](t),n[e]=void 0}},global.dynamicLoad(c,onScriptComplete)}return Promise.all(t)},r.m=e,r.c=o,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},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="",r.oe=function(e){throw console.error(e),e};var a=(0,eval)("this").webpackJsonp=(0,eval)("this").webpackJsonp||[],l=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c(a.push(e),()=>{const t=a.indexOf(e);t>-1&&a.splice(t,1)}),destroy(){a=[],t=[""],o=0},go(e,l=!0){const c=this.location,i=e<0?r.back:r.forward;o=Math.max(0,Math.min(o+e,t.length-1)),l&&function(e,t,{direction:o,delta:r}){const l={direction:o,delta:r,type:n.pop};for(const o of a)o(e,t,l)}(this.location,c,{direction:i,delta:e})},get position(){return o}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t[o]}),i}t.createHippyHistory=u,t.createHippyRouter=function(e){var t;const o=a.createRouter({history:null!==(t=e.history)&&void 0!==t?t:u(),routes:e.routes});return e.noInjectAndroidHardwareBackPress||function(e){if(l.Native.isAndroid()){function t(){const{position:t}=e.options.history;if(t>0)return e.back(),!0}e.isReady().then(()=>{l.BackAndroid.addListener(t)})}}(o),o},Object.keys(a).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}))},"./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js":function(e,t,o){"use strict";o.r(t),o.d(t,"generateCodeFrame",(function(){return n.generateCodeFrame})),o.d(t,"BASE_TRANSITION",(function(){return u})),o.d(t,"CAMELIZE",(function(){return N})),o.d(t,"CAPITALIZE",(function(){return V})),o.d(t,"CREATE_BLOCK",(function(){return f})),o.d(t,"CREATE_COMMENT",(function(){return v})),o.d(t,"CREATE_ELEMENT_BLOCK",(function(){return b})),o.d(t,"CREATE_ELEMENT_VNODE",(function(){return m})),o.d(t,"CREATE_SLOTS",(function(){return A})),o.d(t,"CREATE_STATIC",(function(){return g})),o.d(t,"CREATE_TEXT",(function(){return h})),o.d(t,"CREATE_VNODE",(function(){return y})),o.d(t,"FRAGMENT",(function(){return c})),o.d(t,"GUARD_REACTIVE_PROPS",(function(){return L})),o.d(t,"IS_MEMO_SAME",(function(){return W})),o.d(t,"IS_REF",(function(){return F})),o.d(t,"KEEP_ALIVE",(function(){return d})),o.d(t,"MERGE_PROPS",(function(){return E})),o.d(t,"NORMALIZE_CLASS",(function(){return T})),o.d(t,"NORMALIZE_PROPS",(function(){return I})),o.d(t,"NORMALIZE_STYLE",(function(){return P})),o.d(t,"OPEN_BLOCK",(function(){return p})),o.d(t,"POP_SCOPE_ID",(function(){return H})),o.d(t,"PUSH_SCOPE_ID",(function(){return B})),o.d(t,"RENDER_LIST",(function(){return k})),o.d(t,"RENDER_SLOT",(function(){return w})),o.d(t,"RESOLVE_COMPONENT",(function(){return j})),o.d(t,"RESOLVE_DIRECTIVE",(function(){return _})),o.d(t,"RESOLVE_DYNAMIC_COMPONENT",(function(){return O})),o.d(t,"RESOLVE_FILTER",(function(){return S})),o.d(t,"SET_BLOCK_TRACKING",(function(){return M})),o.d(t,"SUSPENSE",(function(){return s})),o.d(t,"TELEPORT",(function(){return i})),o.d(t,"TO_DISPLAY_STRING",(function(){return C})),o.d(t,"TO_HANDLERS",(function(){return R})),o.d(t,"TO_HANDLER_KEY",(function(){return D})),o.d(t,"TS_NODE_TYPES",(function(){return to})),o.d(t,"UNREF",(function(){return U})),o.d(t,"WITH_CTX",(function(){return Y})),o.d(t,"WITH_DIRECTIVES",(function(){return x})),o.d(t,"WITH_MEMO",(function(){return z})),o.d(t,"advancePositionWithClone",(function(){return Ce})),o.d(t,"advancePositionWithMutation",(function(){return Ee})),o.d(t,"assert",(function(){return Te})),o.d(t,"baseCompile",(function(){return Qo})),o.d(t,"baseParse",(function(){return et})),o.d(t,"buildDirectiveArgs",(function(){return To})),o.d(t,"buildProps",(function(){return Ao})),o.d(t,"buildSlots",(function(){return _o})),o.d(t,"checkCompatEnabled",(function(){return qe})),o.d(t,"convertToBlock",(function(){return ye})),o.d(t,"createArrayExpression",(function(){return Q})),o.d(t,"createAssignmentExpression",(function(){return de})),o.d(t,"createBlockStatement",(function(){return ce})),o.d(t,"createCacheExpression",(function(){return le})),o.d(t,"createCallExpression",(function(){return ne})),o.d(t,"createCompilerError",(function(){return l})),o.d(t,"createCompoundExpression",(function(){return oe})),o.d(t,"createConditionalExpression",(function(){return ae})),o.d(t,"createForLoopParams",(function(){return vo})),o.d(t,"createFunctionExpression",(function(){return re})),o.d(t,"createIfStatement",(function(){return se})),o.d(t,"createInterpolation",(function(){return te})),o.d(t,"createObjectExpression",(function(){return X})),o.d(t,"createObjectProperty",(function(){return Z})),o.d(t,"createReturnStatement",(function(){return pe})),o.d(t,"createRoot",(function(){return q})),o.d(t,"createSequenceExpression",(function(){return ue})),o.d(t,"createSimpleExpression",(function(){return ee})),o.d(t,"createStructuralDirectiveTransform",(function(){return Nt})),o.d(t,"createTemplateLiteral",(function(){return ie})),o.d(t,"createTransformContext",(function(){return It})),o.d(t,"createVNodeCall",(function(){return J})),o.d(t,"extractIdentifiers",(function(){return Qt})),o.d(t,"findDir",(function(){return Pe})),o.d(t,"findProp",(function(){return Ie})),o.d(t,"forAliasRE",(function(){return We})),o.d(t,"generate",(function(){return Mt})),o.d(t,"getBaseTransformPreset",(function(){return Jo})),o.d(t,"getConstantType",(function(){return wt})),o.d(t,"getInnerRange",(function(){return Ae})),o.d(t,"getMemoedVNodeCall",(function(){return ze})),o.d(t,"getVNodeBlockHelper",(function(){return be})),o.d(t,"getVNodeHelper",(function(){return fe})),o.d(t,"hasDynamicKeyVBind",(function(){return Re})),o.d(t,"hasScopeRef",(function(){return Fe})),o.d(t,"helperNameMap",(function(){return K})),o.d(t,"injectProp",(function(){return He})),o.d(t,"isBuiltInType",(function(){return ve})),o.d(t,"isCoreComponent",(function(){return he})),o.d(t,"isFunctionType",(function(){return Xt})),o.d(t,"isInDestructureAssignment",(function(){return $t})),o.d(t,"isMemberExpression",(function(){return we})),o.d(t,"isMemberExpressionBrowser",(function(){return xe})),o.d(t,"isMemberExpressionNode",(function(){return ke})),o.d(t,"isReferencedIdentifier",(function(){return Gt})),o.d(t,"isSimpleIdentifier",(function(){return je})),o.d(t,"isSlotOutlet",(function(){return Me})),o.d(t,"isStaticArgOf",(function(){return Le})),o.d(t,"isStaticExp",(function(){return me})),o.d(t,"isStaticProperty",(function(){return Zt})),o.d(t,"isStaticPropertyKey",(function(){return eo})),o.d(t,"isTemplateNode",(function(){return De})),o.d(t,"isText",(function(){return Ne})),o.d(t,"isVSlot",(function(){return Ve})),o.d(t,"locStub",(function(){return $})),o.d(t,"noopDirectiveTransform",(function(){return Xo})),o.d(t,"processExpression",(function(){return no})),o.d(t,"processFor",(function(){return po})),o.d(t,"processIf",(function(){return lo})),o.d(t,"processSlotOutlet",(function(){return Lo})),o.d(t,"registerRuntimeHelpers",(function(){return G})),o.d(t,"resolveComponentType",(function(){return wo})),o.d(t,"stringifyExpression",(function(){return ro})),o.d(t,"toValidAssetId",(function(){return Ue})),o.d(t,"trackSlotScopes",(function(){return go})),o.d(t,"trackVForSlotScopes",(function(){return jo})),o.d(t,"transform",(function(){return Lt})),o.d(t,"transformBind",(function(){return Vo})),o.d(t,"transformElement",(function(){return ko})),o.d(t,"transformExpression",(function(){return oo})),o.d(t,"transformModel",(function(){return Yo})),o.d(t,"transformOn",(function(){return No})),o.d(t,"traverseNode",(function(){return Rt})),o.d(t,"walkBlockDeclarations",(function(){return Jt})),o.d(t,"walkFunctionParams",(function(){return qt})),o.d(t,"walkIdentifiers",(function(){return Kt})),o.d(t,"warnDeprecation",(function(){return Je})),o.d(t,"DOMDirectiveTransforms",(function(){return Sn})),o.d(t,"DOMNodeTransforms",(function(){return _n})),o.d(t,"TRANSITION",(function(){return cn})),o.d(t,"TRANSITION_GROUP",(function(){return sn})),o.d(t,"V_MODEL_CHECKBOX",(function(){return en})),o.d(t,"V_MODEL_DYNAMIC",(function(){return nn})),o.d(t,"V_MODEL_RADIO",(function(){return Zo})),o.d(t,"V_MODEL_SELECT",(function(){return on})),o.d(t,"V_MODEL_TEXT",(function(){return tn})),o.d(t,"V_ON_WITH_KEYS",(function(){return an})),o.d(t,"V_ON_WITH_MODIFIERS",(function(){return rn})),o.d(t,"V_SHOW",(function(){return ln})),o.d(t,"compile",(function(){return xn})),o.d(t,"createDOMCompilerError",(function(){return yn})),o.d(t,"parse",(function(){return kn})),o.d(t,"parserOptions",(function(){return pn})),o.d(t,"transformStyle",(function(){return fn}));var n=o("./node_modules/@vue/shared/dist/shared.esm-bundler.js");function r(e){throw e}function a(e){}function l(e,t,o,n){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const c=Symbol(""),i=Symbol(""),s=Symbol(""),d=Symbol(""),u=Symbol(""),p=Symbol(""),f=Symbol(""),b=Symbol(""),y=Symbol(""),m=Symbol(""),v=Symbol(""),h=Symbol(""),g=Symbol(""),j=Symbol(""),O=Symbol(""),_=Symbol(""),S=Symbol(""),x=Symbol(""),k=Symbol(""),w=Symbol(""),A=Symbol(""),C=Symbol(""),E=Symbol(""),T=Symbol(""),P=Symbol(""),I=Symbol(""),L=Symbol(""),R=Symbol(""),N=Symbol(""),V=Symbol(""),D=Symbol(""),M=Symbol(""),B=Symbol(""),H=Symbol(""),Y=Symbol(""),U=Symbol(""),F=Symbol(""),z=Symbol(""),W=Symbol(""),K={[c]:"Fragment",[i]:"Teleport",[s]:"Suspense",[d]:"KeepAlive",[u]:"BaseTransition",[p]:"openBlock",[f]:"createBlock",[b]:"createElementBlock",[y]:"createVNode",[m]:"createElementVNode",[v]:"createCommentVNode",[h]:"createTextVNode",[g]:"createStaticVNode",[j]:"resolveComponent",[O]:"resolveDynamicComponent",[_]:"resolveDirective",[S]:"resolveFilter",[x]:"withDirectives",[k]:"renderList",[w]:"renderSlot",[A]:"createSlots",[C]:"toDisplayString",[E]:"mergeProps",[T]:"normalizeClass",[P]:"normalizeStyle",[I]:"normalizeProps",[L]:"guardReactiveProps",[R]:"toHandlers",[N]:"camelize",[V]:"capitalize",[D]:"toHandlerKey",[M]:"setBlockTracking",[B]:"pushScopeId",[H]:"popScopeId",[Y]:"withCtx",[U]:"unref",[F]:"isRef",[z]:"withMemo",[W]:"isMemoSame"};function G(e){Object.getOwnPropertySymbols(e).forEach(t=>{K[t]=e[t]})}const $={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function q(e,t=$){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function J(e,t,o,n,r,a,l,c=!1,i=!1,s=!1,d=$){return e&&(c?(e.helper(p),e.helper(be(e.inSSR,s))):e.helper(fe(e.inSSR,s)),l&&e.helper(x)),{type:13,tag:t,props:o,children:n,patchFlag:r,dynamicProps:a,directives:l,isBlock:c,disableTracking:i,isComponent:s,loc:d}}function Q(e,t=$){return{type:17,loc:t,elements:e}}function X(e,t=$){return{type:15,loc:t,properties:e}}function Z(e,t){return{type:16,loc:$,key:Object(n.isString)(e)?ee(e,!0):e,value:t}}function ee(e,t=!1,o=$,n=0){return{type:4,loc:o,content:e,isStatic:t,constType:t?3:n}}function te(e,t){return{type:5,loc:t,content:Object(n.isString)(e)?ee(e,!1,t):e}}function oe(e,t=$){return{type:8,loc:t,children:e}}function ne(e,t=[],o=$){return{type:14,loc:o,callee:e,arguments:t}}function re(e,t,o=!1,n=!1,r=$){return{type:18,params:e,returns:t,newline:o,isSlot:n,loc:r}}function ae(e,t,o,n=!0){return{type:19,test:e,consequent:t,alternate:o,newline:n,loc:$}}function le(e,t,o=!1){return{type:20,index:e,value:t,isVNode:o,loc:$}}function ce(e){return{type:21,body:e,loc:$}}function ie(e){return{type:22,elements:e,loc:$}}function se(e,t,o){return{type:23,test:e,consequent:t,alternate:o,loc:$}}function de(e,t){return{type:24,left:e,right:t,loc:$}}function ue(e){return{type:25,expressions:e,loc:$}}function pe(e){return{type:26,returns:e,loc:$}}function fe(e,t){return e||t?y:m}function be(e,t){return e||t?f:b}function ye(e,{helper:t,removeHelper:o,inSSR:n}){e.isBlock||(e.isBlock=!0,o(fe(n,e.isComponent)),t(p),t(be(n,e.isComponent)))}const me=e=>4===e.type&&e.isStatic,ve=(e,t)=>e===t||e===Object(n.hyphenate)(t);function he(e){return ve(e,"Teleport")?i:ve(e,"Suspense")?s:ve(e,"KeepAlive")?d:ve(e,"BaseTransition")?u:void 0}const ge=/^\d|[^\$\w]/,je=e=>!ge.test(e),Oe=/[A-Za-z_$\xA0-\uFFFF]/,_e=/[\.\?\w$\xA0-\uFFFF]/,Se=/\s+[.[]\s*|\s*[.[]\s+/g,xe=e=>{e=e.trim().replace(Se,e=>e.trim());let t=0,o=[],n=0,r=0,a=null;for(let l=0;l!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function Ne(e){return 5===e.type||2===e.type}function Ve(e){return 7===e.type&&"slot"===e.name}function De(e){return 1===e.type&&3===e.tagType}function Me(e){return 1===e.type&&2===e.tagType}const Be=new Set([I,L]);function He(e,t,o){let r,a,l=13===e.type?e.props:e.arguments[2],c=[];if(l&&!Object(n.isString)(l)&&14===l.type){const e=function e(t,o=[]){if(t&&!Object(n.isString)(t)&&14===t.type){const r=t.callee;if(!Object(n.isString)(r)&&Be.has(r))return e(t.arguments[0],o.concat(t))}return[t,o]}(l);l=e[0],c=e[1],a=c[c.length-1]}if(null==l||Object(n.isString)(l))r=X([t]);else if(14===l.type){const e=l.arguments[0];Object(n.isString)(e)||15!==e.type?l.callee===R?r=ne(o.helper(E),[X([t]),l]):l.arguments.unshift(X([t])):Ye(t,e)||e.properties.unshift(t),!r&&(r=l)}else 15===l.type?(Ye(t,l)||l.properties.unshift(t),r=l):(r=ne(o.helper(E),[X([t]),l]),a&&a.callee===L&&(a=c[c.length-2]));13===e.type?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function Ye(e,t){let o=!1;if(4===e.key.type){const n=e.key.content;o=t.properties.some(e=>4===e.key.type&&e.key.content===n)}return o}function Ue(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,o)=>"-"===t?"_":e.charCodeAt(o).toString())}`}function Fe(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let o=0;oFe(e,t));case 11:return!!Fe(e.source,t)||e.children.some(e=>Fe(e,t));case 9:return e.branches.some(e=>Fe(e,t));case 10:return!!Fe(e.condition,t)||e.children.some(e=>Fe(e,t));case 4:return!e.isStatic&&je(e.content)&&!!t[e.content];case 8:return e.children.some(e=>Object(n.isObject)(e)&&Fe(e,t));case 5:case 12:return Fe(e.content,t);case 2:case 3:default:return!1}}function ze(e){return 14===e.type&&e.callee===z?e.arguments[1].returns:e}const We=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ke={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_PROP:{message:".prop modifier for v-bind has been removed and no longer necessary. Vue 3 will automatically set a binding as DOM property when appropriate."},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with