@gkits/collect 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as s,nullableNumberConverter as a,when as l,repeat as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,p={exports:{}};(u=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u.exports.__esModule=!0,u.exports.default=u.exports;var h=d(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(m),function(t){var e=g.exports.default,o=m.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var y=d(f.exports),b={exports:{}},w={exports:{}},x={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(x);var k=d(x.exports);!function(t){var e=x.exports;t.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(w),function(t){var e=w.exports;function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(b);var S=d(b.exports),C={exports:{}},O={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(O),function(t){var e=O.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(C);var L=d(C.exports),B={exports:{}},$={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}($),function(t){var e=g.exports.default,o=$.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var _=d(B.exports),E={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(E);var A=d(E.exports),I={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I);var z=d(I.exports);function T(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":z(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}var M={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(M);var P=d(M.exports),j={exports:{}},R={exports:{}},F={exports:{}};!function(t){var e=I.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(F),function(t){var e=I.exports.default,o=F.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(R),function(t){var e=R.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(j);var D=d(j.exports);var H={exports:{}};!function(t){var e=R.exports;t.exports=function(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(H);var N=d(H.exports),W={exports:{}},V={exports:{}},Y={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(Y),function(t){var e=Y.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var G={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var J={exports:{}};!function(t){var e=Y.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(J);var X={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(X),function(t){var e=V.exports,o=G.exports,n=J.exports,r=X.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(W);var U=d(W.exports),q={exports:{}},K={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(K);var Z={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}(Z);var Q={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Q),function(t){var e=K.exports,o=Z.exports,n=J.exports,r=Q.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(q);var tt=d(q.exports),et=Math.min,ot=Math.max,nt=Math.floor,rt=Math.round;function it(t,e,o){e/=100,o/=100;var n=nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function st(t,e,o){var n,r,i=et(t/=255,e/=255,o/=255),s=ot(t,e,o),a=s-i;if(0===a)n=r=0;else{r=a/s;var l=((s-t)/6+a/2)/a,c=((s-e)/6+a/2)/a,d=((s-o)/6+a/2)/a;t===s?n=d-c:e===s?n=1/3+l-d:o===s&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*s]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-et(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-et(1,e*(1-n)+n)),s=255*(1-et(1,o*(1-n)+n));return U(st(r,i,s))}function lt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function ct(t){return st.apply(void 0,U(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function dt(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),s=tt(i,5),a=s[1],l=s[2],c=s[3],d=s[4];if(a>100||l>100||c>100||d>100)break t;return{values:at(a,l,c,d),type:r};case"rgba":var u=n(e),p=tt(u,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(U(st(h,f,v)),[g]),a:g,type:r};case"hexa":var m=tt(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),b=m.substring(6);return b=b?parseInt(b,16)/255:void 0,{values:[].concat(U(ct(y)),[b]),a:b,type:r};case"hsla":var w=n(e),x=tt(w,7),k=x[3],S=x[4],C=x[5],O=x[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(U(lt(k,S,C)),[O]),a:O,type:r};case"hsva":var L=n(e),B=tt(L,7),$=B[3],_=B[4],E=B[5],A=B[6];if($>360||_>100||E>100||A<0||A>1)break t;return{values:[$,_,E,A],a:A,type:r}}return{values:null,type:null}}function ut(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(U(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(U(it(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=it(t,e,o),i=r[0]/255,s=r[1]/255,a=r[2]/255;return[100*(1===(n=et(1-i,1-s,1-a))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return it(t,e,o).map((function(t){return rt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return ut(e.h,e.s,e.v,e.a)}};return e}function pt(t,e){var o=dt(t),n=ut.apply(void 0,U(o.values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var ht={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},ft=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},vt=function(t){var e;return N(e={},"--".concat(t,"Color"),"var(--hi".concat(ft(t),"Color,").concat(ht[t],")")),N(e,"--".concat(t,"Color-hover"),"var(--hi".concat(ft(t),"Color-hover,").concat(pt(ht[t],.6),")")),N(e,"--".concat(t,"Color-active"),"var(--hi".concat(ft(t),"Color-active,").concat(pt(ht[t],.4),")")),N(e,"--".concat(t,"Color-outline"),"var(--hi".concat(ft(t),"Color-outline,").concat(pt(ht[t],.15),")")),e},gt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(ht.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(pt(ht.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(ht.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(ht.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},vt("primary")),vt("success")),vt("error")),vt("warning")),vt("info")),mt=function(t){return Object.prototype.toString.call(t)},yt=function(t){return"[object Object]"==mt(t)},bt=function(t){return"[object Array]"==mt(t)};function wt(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},o="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),n="";if(t&&bt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var s in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=e[s];n+=".".concat(s,"{").concat(a,"}")}return n}var xt,kt=function(){function t(){P(this,t),this.config={theme:gt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var s=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,s)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(o,n){var r,i,s=e.async,a=void 0===s||s,l=e.beforeSend,c=void 0===l?function(){}:l,d=e.data,u=void 0===d?null:d,p=e.headers,h=void 0===p?{}:p,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,b=void 0===y?0:y,w=new XMLHttpRequest;if(w.open(v,t,a),b&&(r=window.setTimeout((function(){n(new Error("the xhr request timeout ".concat(b,"ms")))}),b)),w.onerror=function(){n(new Error("unknown error"))},w.onreadystatechange=function(){if(4===w.readyState)if(b&&void 0!==r&&clearTimeout(r),w.status>=200&&w.status<300)o(w);else{var t=new Error("the request is error");n(t)}},yt(u))try{i=JSON.stringify(u),h["content-type"]="application/json"}catch(t){n(t)}else"string"==typeof u&&(h["content-type"]="application/x-www-form-urlencoded");for(var x in h)w.setRequestHeader(x,h[x]);b&&(w.timeout=b),w.responseType=m,!1!==c(w)&&w.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return D(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var o in t){var n=t[o];yt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}]),t}();function St(){var t="",e=kt.case.config.theme;for(var o in e)o&&(t+="".concat(o,":").concat(e[o],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(wt())}var Ct=t(xt||(xt=A(["\n:host{\n text-align:center;color:#fff\n}\n\n","\n:host{\n text-align:center;color:#fff\n}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {",";}\n.ConflateWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:35vw;}\n.Icon div{width:25vw;text-align:center}\n.Icon div p{font-size:3.2vw;}\n.Icon img{width:19.2vw}\n\n.Button{position:absolute;width:100%;bottom:12vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n\n\n"])),St(),wt(["PoiNo"]));function Ot(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}const Lt=t=>Object.prototype.toString.call(t),Bt=t=>"[object Object]"==Lt(t),$t=t=>"[object Array]"==Lt(t);function _t(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((t=>{t=_t(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=_t(t[e]);return t}function Et(t){return(e,o)=>{if(Bt(e))for(var n in e)At(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=_t(e)).split(":");At(t)(o[0],o[1])})):At(t)(e,o))}}function At(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class It{static get instance(){return this._instance||(this._instance=new It),this._instance}constructor(){"classList"in document.documentElement?(this.has=(t,e)=>t.classList.contains(e),this.add=(t,e)=>{const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.add(o[e])},this.remove=(t,e)=>{if(!t)return;const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.remove(o[e])}):(this.has=(t,e)=>this.classReg(e).test(t.className),this.add=(t,e)=>{this.has(t,e)||(t.className=t.className+" "+e)},this.remove=(t,e)=>{t.className=t.className.replace(this.classReg(e)," ")})}classReg(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}toggle(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}const zt={addHandler(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},removeHandler(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},onceHandler(t,e,o){this.addHandler(t,e,o,{once:!0})},trigger(t,e,o){t.dispatchEvent(new CustomEvent(e,{detail:o,bubbles:!0,cancelable:!0}))},emitEvent(t,e,...o){let n,r;"string"==typeof e?(n=e,r="on"+this.capitalize(e)):(n=e.event,r=e.method),t.$listeners[`${n}`]&&t.$emit(n,...o),"function"==typeof t.$props[r]&&t.$props[r](...o)},capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1)},Tt=t`
|
|
1
|
+
import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as s,nullableNumberConverter as a,when as l,repeat as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u,p={exports:{}};(u=p).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u.exports.__esModule=!0,u.exports.default=u.exports;var h=d(p.exports),f={exports:{}},v={exports:{}},g={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(m),function(t){var e=g.exports.default,o=m.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(v),function(t){var e=v.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(f);var y=d(f.exports),b={exports:{}},w={exports:{}},x={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(x);var k=d(x.exports);!function(t){var e=x.exports;t.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(w),function(t){var e=w.exports;function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(b);var S=d(b.exports),C={exports:{}},O={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(O),function(t){var e=O.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(C);var L=d(C.exports),B={exports:{}},$={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}($),function(t){var e=g.exports.default,o=$.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var _=d(B.exports),E={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(E);var A=d(E.exports),I={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I);var z=d(I.exports);function T(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":z(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}var P={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(P);var M=d(P.exports),j={exports:{}},R={exports:{}},F={exports:{}};!function(t){var e=I.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(F),function(t){var e=I.exports.default,o=F.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(R),function(t){var e=R.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(j);var D=d(j.exports);var H={exports:{}};!function(t){var e=R.exports;t.exports=function(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(H);var N=d(H.exports),W={exports:{}},V={exports:{}},Y={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(Y),function(t){var e=Y.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var G={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(G);var J={exports:{}};!function(t){var e=Y.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(J);var X={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(X),function(t){var e=V.exports,o=G.exports,n=J.exports,r=X.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(W);var U=d(W.exports),q={exports:{}},K={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(K);var Z={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}(Z);var Q={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Q),function(t){var e=K.exports,o=Z.exports,n=J.exports,r=Q.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(q);var tt=d(q.exports),et=Math.min,ot=Math.max,nt=Math.floor,rt=Math.round;function it(t,e,o){e/=100,o/=100;var n=nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function st(t,e,o){var n,r,i=et(t/=255,e/=255,o/=255),s=ot(t,e,o),a=s-i;if(0===a)n=r=0;else{r=a/s;var l=((s-t)/6+a/2)/a,c=((s-e)/6+a/2)/a,d=((s-o)/6+a/2)/a;t===s?n=d-c:e===s?n=1/3+l-d:o===s&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*s]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-et(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-et(1,e*(1-n)+n)),s=255*(1-et(1,o*(1-n)+n));return U(st(r,i,s))}function lt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function ct(t){return st.apply(void 0,U(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function dt(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),s=tt(i,5),a=s[1],l=s[2],c=s[3],d=s[4];if(a>100||l>100||c>100||d>100)break t;return{values:at(a,l,c,d),type:r};case"rgba":var u=n(e),p=tt(u,7),h=p[3],f=p[4],v=p[5],g=p[6];if(h>255||f>255||v>255||g<0||g>1)break t;return{values:[].concat(U(st(h,f,v)),[g]),a:g,type:r};case"hexa":var m=tt(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),b=m.substring(6);return b=b?parseInt(b,16)/255:void 0,{values:[].concat(U(ct(y)),[b]),a:b,type:r};case"hsla":var w=n(e),x=tt(w,7),k=x[3],S=x[4],C=x[5],O=x[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(U(lt(k,S,C)),[O]),a:O,type:r};case"hsva":var L=n(e),B=tt(L,7),$=B[3],_=B[4],E=B[5],A=B[6];if($>360||_>100||E>100||A<0||A>1)break t;return{values:[$,_,E,A],a:A,type:r}}return{values:null,type:null}}function ut(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(U(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(U(it(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=it(t,e,o),i=r[0]/255,s=r[1]/255,a=r[2]/255;return[100*(1===(n=et(1-i,1-s,1-a))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return it(t,e,o).map((function(t){return rt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return ut(e.h,e.s,e.v,e.a)}};return e}function pt(t,e){var o=dt(t),n=ut.apply(void 0,U(o.values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var ht={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},ft=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},vt=function(t){var e;return N(e={},"--".concat(t,"Color"),"var(--hi".concat(ft(t),"Color,").concat(ht[t],")")),N(e,"--".concat(t,"Color-hover"),"var(--hi".concat(ft(t),"Color-hover,").concat(pt(ht[t],.6),")")),N(e,"--".concat(t,"Color-active"),"var(--hi".concat(ft(t),"Color-active,").concat(pt(ht[t],.4),")")),N(e,"--".concat(t,"Color-outline"),"var(--hi".concat(ft(t),"Color-outline,").concat(pt(ht[t],.15),")")),e},gt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(ht.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(pt(ht.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(ht.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(ht.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},vt("primary")),vt("success")),vt("error")),vt("warning")),vt("info")),mt=function(t){return Object.prototype.toString.call(t)},yt=function(t){return"[object Object]"==mt(t)},bt=function(t){return"[object Array]"==mt(t)};function wt(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},o="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),n="";if(t&&bt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var s in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=e[s];n+=".".concat(s,"{").concat(a,"}")}return n}var xt,kt=function(){function t(){M(this,t),this.config={theme:gt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var s=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,s)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(o,n){var r,i,s=e.async,a=void 0===s||s,l=e.beforeSend,c=void 0===l?function(){}:l,d=e.data,u=void 0===d?null:d,p=e.headers,h=void 0===p?{}:p,f=e.method,v=void 0===f?"get":f,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,b=void 0===y?0:y,w=new XMLHttpRequest;if(w.open(v,t,a),b&&(r=window.setTimeout((function(){n(new Error("the xhr request timeout ".concat(b,"ms")))}),b)),w.onerror=function(){n(new Error("unknown error"))},w.onreadystatechange=function(){if(4===w.readyState)if(b&&void 0!==r&&clearTimeout(r),w.status>=200&&w.status<300)o(w);else{var t=new Error("the request is error");n(t)}},yt(u))try{i=JSON.stringify(u),h["content-type"]="application/json"}catch(t){n(t)}else"string"==typeof u&&(h["content-type"]="application/x-www-form-urlencoded");for(var x in h)w.setRequestHeader(x,h[x]);b&&(w.timeout=b),w.responseType=m,!1!==c(w)&&w.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return D(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var o in t){var n=t[o];yt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}]),t}();function St(){var t="",e=kt.case.config.theme;for(var o in e)o&&(t+="".concat(o,":").concat(e[o],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(wt())}var Ct=t(xt||(xt=A(["\n:host{\n text-align:center;color:#fff\n}\n\n","\n:host{\n text-align:center;color:#fff\n}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {",";}\n.ConflateWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:35vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block}\n.Icon div{width:25vw;text-align:center}\n.Icon div p{font-size:3.2vw;}\n.Icon img{width:19.2vw}\n\n.Button{position:absolute;width:100%;bottom:12vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n\n\n"])),St(),wt(["PoiNo"]));function Ot(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}const Lt=t=>Object.prototype.toString.call(t),Bt=t=>"[object Object]"==Lt(t),$t=t=>"[object Array]"==Lt(t);function _t(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((t=>{t=_t(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=_t(t[e]);return t}function Et(t){return(e,o)=>{if(Bt(e))for(var n in e)At(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=_t(e)).split(":");At(t)(o[0],o[1])})):At(t)(e,o))}}function At(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class It{static get instance(){return this._instance||(this._instance=new It),this._instance}constructor(){"classList"in document.documentElement?(this.has=(t,e)=>t.classList.contains(e),this.add=(t,e)=>{const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.add(o[e])},this.remove=(t,e)=>{if(!t)return;const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.remove(o[e])}):(this.has=(t,e)=>this.classReg(e).test(t.className),this.add=(t,e)=>{this.has(t,e)||(t.className=t.className+" "+e)},this.remove=(t,e)=>{t.className=t.className.replace(this.classReg(e)," ")})}classReg(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}toggle(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}const zt={addHandler(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},removeHandler(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},onceHandler(t,e,o){this.addHandler(t,e,o,{once:!0})},trigger(t,e,o){t.dispatchEvent(new CustomEvent(e,{detail:o,bubbles:!0,cancelable:!0}))},emitEvent(t,e,...o){let n,r;"string"==typeof e?(n=e,r="on"+this.capitalize(e)):(n=e.event,r=e.method),t.$listeners[`${n}`]&&t.$emit(n,...o),"function"==typeof t.$props[r]&&t.$props[r](...o)},capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1)},Tt=t`
|
|
2
2
|
:host{
|
|
3
3
|
position: fixed;
|
|
4
4
|
left: 0;
|
|
@@ -19,7 +19,7 @@ import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,o
|
|
|
19
19
|
opacity: 0;
|
|
20
20
|
transition: all 0.35s ease-out;
|
|
21
21
|
}
|
|
22
|
-
`;let Mt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?It.instance.add(this,"Leave"):It.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&Et(this)("background",this.background),zt.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Ot([e],Mt.prototype,"background",void 0),Ot([e({mode:"boolean"})],Mt.prototype,"show",void 0),Mt=Ot([o({name:"h-mask",styles:Tt,shadowOptions:{mode:"closed"}})],Mt);const Pt=new class{constructor(){if(this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=()=>{void 0!==this.previousBodyPaddingRight&&(document.body.style.paddingRight=this.previousBodyPaddingRight,this.previousBodyPaddingRight=void 0),void 0!==this.previousBodyOverflowSetting&&(document.body.style.overflow=this.previousBodyOverflowSetting,document.documentElement.style.overflow=this.previousBodyOverflowSetting,this.previousBodyOverflowSetting=void 0)},this.handleScroll=(t,e)=>{const o=t.targetTouches[0].clientY-this.initialClientY;return!this.allowTouchMove(t.target)&&(e&&0===e.scrollTop&&o>0||this.isTargetElementTotallyScrolled(e)&&o<0?this.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){const t={get passive(){this.hasPassiveEvents=!0}};zt.addHandler(window,"testPassive",null,t),zt.removeHandler(window,"testPassive",null,t)}}isTargetElementTotallyScrolled(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}allowTouchMove(t){this.locks.some((e=>!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))))}preventDefault(t){const e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}setOverflowHidden(t){if(void 0===this.previousBodyPaddingRight){const e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${o}px`)}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}disable(t,e){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(this.locks.some((e=>e.targetElement===t)))return;const o={targetElement:t,options:e||{}};this.locks=[...this.locks,o],this.isIosDevice?(t.ontouchstart=t=>{1===t.targetTouches.length&&(this.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=e=>{1===e.targetTouches.length&&this.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}clearAll(){this.isIosDevice?(this.locks.forEach((t=>{t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(zt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}enable(t){t?(this.locks=this.locks.filter((e=>e.targetElement!==t)),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(zt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}};function jt(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?Pt.enable(document.body):Pt.disable(document.body),n.apply(this,arguments)},o}function Rt(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:()=>{}}function Ft(t){return t?e=>{if("string"==typeof e)t.removeAttribute(e);else for(let o=0;o<e.length;o++){const n=e[o];t.removeAttribute(n)}}:()=>{}}const{min:Dt,max:Ht,floor:Nt,round:Wt}=Math;function Vt(t,e,o){e/=100,o/=100;let n=Nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function Yt(t,e,o){let n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function Gt(t,e,o){let n,r,i;const s=Dt(t/=255,e/=255,o/=255),a=Ht(t,e,o),l=a-s;if(i=a,0===l)n=r=0;else{r=l/a;let i=((a-t)/6+l/2)/l,s=((a-e)/6+l/2)/l,c=((a-o)/6+l/2)/l;t===a?n=c-s:e===a?n=1/3+i-c:o===a&&(n=2/3+s-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Jt(t,e,o,n){return e/=100,o/=100,[...Gt(255*(1-Dt(1,(t/=100)*(1-(n/=100))+n)),255*(1-Dt(1,e*(1-n)+n)),255*(1-Dt(1,o*(1-n)+n)))]}function Xt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function Ut(t){return Gt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function qt(t=0,e=0,o=0,n=1){const r=(t,e)=>(o=0)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),i={h:t,s:e,v:o,a:n,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=r(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...Yt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...Vt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,o){const n=Vt(t,e,o),r=n[0]/255,i=n[1]/255,s=n[2]/255;let a,l,c,d;return a=Dt(1-r,1-i,1-s),l=1===a?0:(1-r-a)/(1-a),c=1===a?0:(1-i-a)/(1-a),d=1===a?0:(1-s-a)/(1-a),[100*l,100*c,100*d,100*a]}(i.h,i.s,i.v);return t.toString=r(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return Vt(t,e,o).map((t=>Wt(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>qt(i.h,i.s,i.v,i.a)};return i}function Kt(t,e){const o=qt(...function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const r in e)if(n=e[r].exec(t))switch(r){case"cmyk":{let[,t,e,i,s]=o(n);if(t>100||e>100||i>100||s>100)break t;return{values:Jt(t,e,i,s),type:r}}case"rgba":{let[,,,t,e,i,s]=o(n);if(t>255||e>255||i>255||s<0||s>1)break t;return{values:[...Gt(t,e,i),s],a:s,type:r}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...Ut(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[...Xt(t,e,i),s],a:s,type:r}}case"hsva":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[t,e,i,s],a:s,type:r}}}return{values:null,type:null}}(t).values).toRGBA();return`rgba(${o[0].toFixed(0)},${o[1].toFixed(0)},${o[2].toFixed(0)},${Number(o[3].toFixed(2))*e})`}const Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Qt=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),te=t=>({[`--${t}Color`]:`var(--hi${Qt(t)}Color,${Zt[t]})`,[`--${t}Color-hover`]:`var(--hi${Qt(t)}Color-hover,${Kt(Zt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${Qt(t)}Color-active,${Kt(Zt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${Qt(t)}Color-outline,${Kt(Zt[t],.15)})`}),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${Zt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Kt(Zt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${Zt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${Zt.primary})`,"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},te("primary")),te("success")),te("error")),te("warning")),te("info"));function oe(t){const e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"};let o="";if(t&&$t(t))for(let n=0;n<t.length;n++)o+=`${e[t[n]]};`;else{o+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ";for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o+=`.${t}{${e[t]}}`)}return o}class ne{static get case(){return this._case||(this._case=new ne),this._case}constructor(){this.config={theme:ee,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE"))return;let t="✰ hi-kits ✰",e=`\n\ndocs: ${atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA==")}/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n`,o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){let o=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,o)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t,e={}){return new Promise(((o,n)=>{const{async:r=!0,beforeSend:i=(()=>{}),data:s=null,headers:a={},method:l="get",responseType:c="json",timeout:d=0}=e,u=new XMLHttpRequest;let p,h;if(u.open(l,t,r),d&&(p=window.setTimeout((()=>{n(new Error(`the xhr request timeout ${d}ms`))}),d)),u.onerror=()=>{n(new Error("unknown error"))},u.onreadystatechange=()=>{if(4===u.readyState)if(d&&void 0!==p&&clearTimeout(p),u.status>=200&&u.status<300)o(u);else{const t=new Error("the request is error");n(t)}},Bt(s))try{h=JSON.stringify(s),a["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(s)&&(a["content-type"]="application/x-www-form-urlencoded");for(const t in a)u.setRequestHeader(t,a[t]);d&&(u.timeout=d),u.responseType=c,!1!==i(u)&&u.send(h)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((t=>{window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}install(t){}init(t,e=this.config){for(const o in t){const n=t[o];Bt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}function re(){let t="",e=ne.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${oe()}`}const ie=t`
|
|
22
|
+
`;let Pt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?It.instance.add(this,"Leave"):It.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&Et(this)("background",this.background),zt.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Ot([e],Pt.prototype,"background",void 0),Ot([e({mode:"boolean"})],Pt.prototype,"show",void 0),Pt=Ot([o({name:"h-mask",styles:Tt,shadowOptions:{mode:"closed"}})],Pt);const Mt=new class{constructor(){if(this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=()=>{void 0!==this.previousBodyPaddingRight&&(document.body.style.paddingRight=this.previousBodyPaddingRight,this.previousBodyPaddingRight=void 0),void 0!==this.previousBodyOverflowSetting&&(document.body.style.overflow=this.previousBodyOverflowSetting,document.documentElement.style.overflow=this.previousBodyOverflowSetting,this.previousBodyOverflowSetting=void 0)},this.handleScroll=(t,e)=>{const o=t.targetTouches[0].clientY-this.initialClientY;return!this.allowTouchMove(t.target)&&(e&&0===e.scrollTop&&o>0||this.isTargetElementTotallyScrolled(e)&&o<0?this.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){const t={get passive(){this.hasPassiveEvents=!0}};zt.addHandler(window,"testPassive",null,t),zt.removeHandler(window,"testPassive",null,t)}}isTargetElementTotallyScrolled(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}allowTouchMove(t){this.locks.some((e=>!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))))}preventDefault(t){const e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}setOverflowHidden(t){if(void 0===this.previousBodyPaddingRight){const e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${o}px`)}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}disable(t,e){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(this.locks.some((e=>e.targetElement===t)))return;const o={targetElement:t,options:e||{}};this.locks=[...this.locks,o],this.isIosDevice?(t.ontouchstart=t=>{1===t.targetTouches.length&&(this.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=e=>{1===e.targetTouches.length&&this.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}clearAll(){this.isIosDevice?(this.locks.forEach((t=>{t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(zt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}enable(t){t?(this.locks=this.locks.filter((e=>e.targetElement!==t)),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(zt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}};function jt(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?Mt.enable(document.body):Mt.disable(document.body),n.apply(this,arguments)},o}function Rt(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:()=>{}}function Ft(t){return t?e=>{if("string"==typeof e)t.removeAttribute(e);else for(let o=0;o<e.length;o++){const n=e[o];t.removeAttribute(n)}}:()=>{}}const{min:Dt,max:Ht,floor:Nt,round:Wt}=Math;function Vt(t,e,o){e/=100,o/=100;let n=Nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function Yt(t,e,o){let n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function Gt(t,e,o){let n,r,i;const s=Dt(t/=255,e/=255,o/=255),a=Ht(t,e,o),l=a-s;if(i=a,0===l)n=r=0;else{r=l/a;let i=((a-t)/6+l/2)/l,s=((a-e)/6+l/2)/l,c=((a-o)/6+l/2)/l;t===a?n=c-s:e===a?n=1/3+i-c:o===a&&(n=2/3+s-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Jt(t,e,o,n){return e/=100,o/=100,[...Gt(255*(1-Dt(1,(t/=100)*(1-(n/=100))+n)),255*(1-Dt(1,e*(1-n)+n)),255*(1-Dt(1,o*(1-n)+n)))]}function Xt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function Ut(t){return Gt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function qt(t=0,e=0,o=0,n=1){const r=(t,e)=>(o=0)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),i={h:t,s:e,v:o,a:n,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=r(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...Yt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...Vt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,o){const n=Vt(t,e,o),r=n[0]/255,i=n[1]/255,s=n[2]/255;let a,l,c,d;return a=Dt(1-r,1-i,1-s),l=1===a?0:(1-r-a)/(1-a),c=1===a?0:(1-i-a)/(1-a),d=1===a?0:(1-s-a)/(1-a),[100*l,100*c,100*d,100*a]}(i.h,i.s,i.v);return t.toString=r(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return Vt(t,e,o).map((t=>Wt(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>qt(i.h,i.s,i.v,i.a)};return i}function Kt(t,e){const o=qt(...function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const r in e)if(n=e[r].exec(t))switch(r){case"cmyk":{let[,t,e,i,s]=o(n);if(t>100||e>100||i>100||s>100)break t;return{values:Jt(t,e,i,s),type:r}}case"rgba":{let[,,,t,e,i,s]=o(n);if(t>255||e>255||i>255||s<0||s>1)break t;return{values:[...Gt(t,e,i),s],a:s,type:r}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...Ut(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[...Xt(t,e,i),s],a:s,type:r}}case"hsva":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[t,e,i,s],a:s,type:r}}}return{values:null,type:null}}(t).values).toRGBA();return`rgba(${o[0].toFixed(0)},${o[1].toFixed(0)},${o[2].toFixed(0)},${Number(o[3].toFixed(2))*e})`}const Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Qt=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),te=t=>({[`--${t}Color`]:`var(--hi${Qt(t)}Color,${Zt[t]})`,[`--${t}Color-hover`]:`var(--hi${Qt(t)}Color-hover,${Kt(Zt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${Qt(t)}Color-active,${Kt(Zt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${Qt(t)}Color-outline,${Kt(Zt[t],.15)})`}),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${Zt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Kt(Zt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${Zt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${Zt.primary})`,"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},te("primary")),te("success")),te("error")),te("warning")),te("info"));function oe(t){const e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"};let o="";if(t&&$t(t))for(let n=0;n<t.length;n++)o+=`${e[t[n]]};`;else{o+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ";for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o+=`.${t}{${e[t]}}`)}return o}class ne{static get case(){return this._case||(this._case=new ne),this._case}constructor(){this.config={theme:ee,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE"))return;let t="✰ hi-kits ✰",e=`\n\ndocs: ${atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA==")}/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n`,o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){let o=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,o)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t,e={}){return new Promise(((o,n)=>{const{async:r=!0,beforeSend:i=(()=>{}),data:s=null,headers:a={},method:l="get",responseType:c="json",timeout:d=0}=e,u=new XMLHttpRequest;let p,h;if(u.open(l,t,r),d&&(p=window.setTimeout((()=>{n(new Error(`the xhr request timeout ${d}ms`))}),d)),u.onerror=()=>{n(new Error("unknown error"))},u.onreadystatechange=()=>{if(4===u.readyState)if(d&&void 0!==p&&clearTimeout(p),u.status>=200&&u.status<300)o(u);else{const t=new Error("the request is error");n(t)}},Bt(s))try{h=JSON.stringify(s),a["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(s)&&(a["content-type"]="application/x-www-form-urlencoded");for(const t in a)u.setRequestHeader(t,a[t]);d&&(u.timeout=d),u.responseType=c,!1!==i(u)&&u.send(h)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((t=>{window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}install(t){}init(t,e=this.config){for(const o in t){const n=t[o];Bt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}function re(){let t="",e=ne.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${oe()}`}const ie=t`
|
|
23
23
|
:host .LoadBox{
|
|
24
24
|
position: fixed;
|
|
25
25
|
display: flex;
|
|
@@ -103,7 +103,7 @@ slot {
|
|
|
103
103
|
<div class="LoadBox" ${i("LoadBox")}>
|
|
104
104
|
<slot></slot>
|
|
105
105
|
</div>
|
|
106
|
-
`;let ae=class extends n{constructor(){super(),this.show=!1,ne.case.install([
|
|
106
|
+
`;let ae=class extends n{constructor(){super(),this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Ft(this.HIMask)("show"):Rt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}close(){Ft(this.HIMask)("show"),this.$emit("close")}closeChange(){this.$emit("change")}};function le(t,e="px"){const o=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"];let n=!1;for(let e=0;e<o.length;e++){const r=o[e];String(t).toLowerCase().indexOf(r)>-1&&(n=!0)}return n?t:t+e}function ce(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${t}}`}Ot([s],ae.prototype,"HIMask",void 0),Ot([s],ae.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],ae.prototype,"show",void 0),Ot([jt],ae.prototype,"showChanged",null),Ot([e],ae.prototype,"dir",void 0),Ot([e],ae.prototype,"background",void 0),ae=Ot([o({name:"h-load",styles:ie,template:se,shadowOptions:{mode:"closed"}})],ae);const de=t`
|
|
107
107
|
:host .LoadBox{
|
|
108
108
|
position: fixed;
|
|
109
109
|
display: flex;
|
|
@@ -186,7 +186,7 @@ slot {
|
|
|
186
186
|
<div class="LoadBox" ${i("LoadBox")}>
|
|
187
187
|
<slot></slot>
|
|
188
188
|
</div>
|
|
189
|
-
`;let pe=class extends n{constructor(){super(),this.show=!1,ne.case.install([
|
|
189
|
+
`;let pe=class extends n{constructor(){super(),this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Ft(this.HIMask)("show"):Rt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}clickFn(){this.$emit("click")}changeFn(){this.$emit("change")}};Ot([s],pe.prototype,"HIMask",void 0),Ot([s],pe.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],pe.prototype,"show",void 0),Ot([jt],pe.prototype,"showChanged",null),Ot([e],pe.prototype,"dir",void 0),Ot([e],pe.prototype,"background",void 0),pe=Ot([o({name:"h-enter",styles:de,template:ue,shadowOptions:{mode:"closed"}})],pe);const he=t`
|
|
190
190
|
.Border{
|
|
191
191
|
-webkit-mask-size: 100%;
|
|
192
192
|
-webkit-mask-position: 0;
|
|
@@ -232,7 +232,7 @@ ${ce("flex")}
|
|
|
232
232
|
<div class="Overlay PosF OH" style="opacity:0;">
|
|
233
233
|
<slot></slot>
|
|
234
234
|
</div>
|
|
235
|
-
`;let ye=class extends n{constructor(){super(),this.mode="auto",this.show=!1,ne.case.install([
|
|
235
|
+
`;let ye=class extends n{constructor(){super(),this.mode="auto",this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Ft(this.Mask)("show"):Rt(this.Mask)("show")}connectedCallback(){super.connectedCallback()}close(){"auto"==this.mode&&(this.show=!1)}};Ot([s],ye.prototype,"Mask",void 0),Ot([e],ye.prototype,"mode",void 0),Ot([e({mode:"boolean"})],ye.prototype,"show",void 0),ye=Ot([o({name:"h-overlay",styles:ge,template:me})],ye);const be=t`
|
|
236
236
|
:host{
|
|
237
237
|
position: absolute;
|
|
238
238
|
pointer-events: none;
|
|
@@ -352,7 +352,7 @@ ${ce("flex")}
|
|
|
352
352
|
<div class="ArrowWrap">
|
|
353
353
|
<span class="Arrow"></span>
|
|
354
354
|
</div>
|
|
355
|
-
`;let xe=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Et(this)({color:e})}connectedCallback(){super.connectedCallback()}};Ot([e],xe.prototype,"dir",void 0),Ot([e],xe.prototype,"color",void 0),xe=Ot([o({name:"h-arrow",styles:be,template:we,shadowOptions:{mode:"closed"}})],xe);var ke=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},Se=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},Ce=function(){function t(){var e=this;if(P(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};ke(window,"testPassive",null,o),Se(window,"testPassive",null,o)}}return D(t,[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(U(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),t}(),Oe=new Ce;function Le(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?Oe.enable(document.body):Oe.disable(document.body),n.apply(this,arguments)},o}function Be(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:function(){}}function $e(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var o=0;o<e.length;o++){var n=e[o];t.removeAttribute(n)}}:function(){}}var _e,Ee,Ae=function(){function t(){var e=this;P(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return D(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}]),t}(),Ie={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")};function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var Te,Me=r(_e||(_e=A(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n ','\n <div>\n <img src="','/download/img/collect/icon02.png"/>\n <p>ihaier新年头像框</p>\n </div>\n <div>\n <img src="','/download/img/collect/icon03.png"/>\n <p>2.18抽奖次数+1</p>\n </div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【优惠券】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),Ie.path,l((function(t){return t.isCoupon}),r(Ee||(Ee=A(['\n <div>\n <img src="','/download/img/collect/icon01.png"/>\n <p>三翼鸟场景券</p>\n </div>\n '])),Ie.path)),Ie.path,Ie.path,(function(t){return t.accept()}),Ie.path),Pe=function(t){L(o,n);var e=ze(o);function o(){var t;return h(this,o),(t=e.call(this)).isCoupon=!1,t.isClick=!1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],Pe.prototype,"Overlay",void 0),T([s],Pe.prototype,"video",void 0),T([s],Pe.prototype,"contentWrap",void 0),T([e({mode:"boolean"})],Pe.prototype,"show",void 0),T([Le],Pe.prototype,"showChanged",null),Pe=T([o({name:"g-collect-conflate",template:Me,styles:Ct,shadowOptions:{mode:"closed"}})],Pe);var je=t(Te||(Te=A(["\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.ListWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.ListWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(["PoiNo"]));class Re extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Et(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Rt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Rt(o)("first"):t+1==e&&Rt(o)("last"),Rt(o)("index",String(t))}t&&t()}}}Ot([e],Re.prototype,"color",void 0),Ot([e],Re.prototype,"size",void 0),Ot([e({mode:"boolean"})],Re.prototype,"disabled",void 0);const Fe=t`
|
|
355
|
+
`;let xe=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Et(this)({color:e})}connectedCallback(){super.connectedCallback()}};Ot([e],xe.prototype,"dir",void 0),Ot([e],xe.prototype,"color",void 0),xe=Ot([o({name:"h-arrow",styles:be,template:we,shadowOptions:{mode:"closed"}})],xe);var ke=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},Se=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},Ce=function(){function t(){var e=this;if(M(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};ke(window,"testPassive",null,o),Se(window,"testPassive",null,o)}}return D(t,[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(U(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),t}(),Oe=new Ce;function Le(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?Oe.enable(document.body):Oe.disable(document.body),n.apply(this,arguments)},o}function Be(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:function(){}}function $e(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var o=0;o<e.length;o++){var n=e[o];t.removeAttribute(n)}}:function(){}}var _e,Ee,Ae=function(){function t(){var e=this;M(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return D(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}]),t}(),Ie={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")};function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var Te,Pe=r(_e||(_e=A(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p>ihaier新年头像框</p></div>\n <div><img src="','/download/img/collect/icon03.png"/><p>2.18抽奖次数+1</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【优惠券】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),Ie.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(Ee||(Ee=A(['<div><img src="','/download/img/collect/icon01.png"/><p>三翼鸟场景券</p></div>\n '])),Ie.path)),Ie.path,Ie.path,(function(t){return t.accept()}),Ie.path),Me=function(t){L(o,n);var e=ze(o);function o(){var t;return h(this,o),(t=e.call(this)).isCoupon=!0,t.isClick=!1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],Me.prototype,"Overlay",void 0),T([s],Me.prototype,"video",void 0),T([s],Me.prototype,"contentWrap",void 0),T([e({mode:"boolean"})],Me.prototype,"show",void 0),T([Le],Me.prototype,"showChanged",null),Me=T([o({name:"g-collect-conflate",template:Pe,styles:Ct,shadowOptions:{mode:"closed"}})],Me);var je=t(Te||(Te=A(["\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardWrap{display:flex}\n.CardWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(["PoiNo"]),wt(["PoiNo"]));class Re extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Et(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Rt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Rt(o)("first"):t+1==e&&Rt(o)("last"),Rt(o)("index",String(t))}t&&t()}}}Ot([e],Re.prototype,"color",void 0),Ot([e],Re.prototype,"size",void 0),Ot([e({mode:"boolean"})],Re.prototype,"disabled",void 0);const Fe=t`
|
|
356
356
|
${re()}
|
|
357
357
|
${ce("flex")}
|
|
358
358
|
:host {
|
|
@@ -447,4 +447,4 @@ ${ce("flex")}
|
|
|
447
447
|
<span class="Badge PosA TC" style="${t=>t.badgeStyle}">${t=>t.count}</span>
|
|
448
448
|
${l((t=>t.text),r`<span class="BadgeText">${t=>t.text}</span>`)}
|
|
449
449
|
</template>
|
|
450
|
-
`;let He=class extends Re{countChanged(t,e){String(e).length>1?Rt(this)("suit"):Ft(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Ft(this)("invalid");else switch(Rt(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${ee["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${ee["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${ee["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${ee["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${ee["--colorNeutral5"]}`)}}};var Ne,We,Ve;function Ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}Ot([e],He.prototype,"count",void 0),Ot([e({mode:"boolean"})],He.prototype,"dot",void 0),Ot([e],He.prototype,"badgeStyle",void 0),Ot([e({mode:"boolean"})],He.prototype,"standAlone",void 0),Ot([e],He.prototype,"status",void 0),Ot([e],He.prototype,"text",void 0),He=Ot([o({name:"h-badge",styles:Fe,template:De,shadowOptions:{mode:"closed"}})],He);var Ge,Je=r(Ne||(Ne=A(['\n<section class="ListWrap">\n <div class="Synthesis" @click="','">\n ','\n <img class="Img" src="','/download/img/collect/synthesis.png" />\n </div>\n ',"\n</section>\n"])),(function(t){return t.SynthesisFn()}),l((function(t){return t.isVideo}),r(We||(We=A(['<video autoplay muted loop\n autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><source src="','/download/img/collect/hecheng1.mp4" type="video/mp4"/></video><img class="Tips" src="','/download/img/collect/tips.png" />'])),Ie.path,Ie.path)),Ie.path,c((function(t){return t.cardItem}),r(Ve||(Ve=A(['<div class="Card"><h-badge count="6"></h-badge><img src="','"/></div>'])),(function(t){return t.grey})),{positioning:!0})),Xe=function(t){L(o,n);var e=Ye(o);function o(){var t;return h(this,o),(t=e.call(this)).isVideo=!0,t.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),kt.case.install([He]),t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(t){}}]),o}();T([s],Xe.prototype,"isVideo",void 0),T([s],Xe.prototype,"cardItem",void 0),Xe=T([o({name:"g-collect-list",template:Je,styles:je,shadowOptions:{mode:"closed"}})],Xe);var Ue,qe,Ke,Ze=t(Ge||(Ge=A(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {","}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n.Button{position:absolute;width:100%;bottom:15vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n"])),St(),wt(["PoiNo"]));function Qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var to,eo=r(Ue||(Ue=A(["\n<h-overlay ",' mode=\'handle\'>\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><source src="','/download/img/collect/draw01.mp4" type="video/mp4"/></video>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <div>\n ',"\n </div>\n <div>\n ",'\n </div> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),l((function(t){return 1==t.type}),r(qe||(qe=A(['<img src="','/download/img/collect/title01.png"/><p class="Subtitle">再集',"张不同卡面即可合成场景卡</p>"])),Ie.path,(function(t){return t.number}))),l((function(t){return 2==t.type}),r(Ke||(Ke=A(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">2000元食联网优惠券</p>'])),Ie.path)),(function(t){return t.accept()}),Ie.path),oo=function(t){L(o,n);var e=Qe(o);function o(){var t;return h(this,o),(t=e.call(this)).isClick=!1,t.type=1,t.number=1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],oo.prototype,"Overlay",void 0),T([s],oo.prototype,"video",void 0),T([s],oo.prototype,"contentWrap",void 0),T([e],oo.prototype,"type",void 0),T([e({converter:a})],oo.prototype,"number",void 0),T([e({mode:"boolean"})],oo.prototype,"show",void 0),T([Le],oo.prototype,"showChanged",null),oo=T([o({name:"g-collect-prize",template:eo,styles:Ze,shadowOptions:{mode:"closed"}})],oo);var no,ro,io,so,ao=t(to||(to=A(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n.Nav {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n"])));function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var co=r(no||(no=A(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n ","\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(ro||(ro=A(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),Ie.path)),c((function(t){return t.cardItem}),r(io||(io=A(['<div class="CardContainer ','" style="','">\n <img src="','"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(so||(so=A(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),Ie.path))),uo=function(t){L(o,n);var e=lo(o);function o(){var t;return h(this,o),(t=e.call(this)).cardItem=Array.from({length:5},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),t.active=0,t.MAX_VISIBILITY=1,t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"update",value:function(t){}}]),o}();T([s],uo.prototype,"cardItem",void 0),T([s],uo.prototype,"active",void 0),uo=T([o({name:"g-collect-swipe",template:co,styles:ao,shadowOptions:{mode:"closed"}})],uo);export{Pe as HiCollectConflate,Xe as HiCollectList,oo as HiCollectPrize,uo as HiCollectSwipe};
|
|
450
|
+
`;let He=class extends Re{countChanged(t,e){String(e).length>1?Rt(this)("suit"):Ft(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Ft(this)("invalid");else switch(Rt(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${ee["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${ee["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${ee["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${ee["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${ee["--colorNeutral5"]}`)}}};var Ne,We,Ve,Ye;function Ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}Ot([e],He.prototype,"count",void 0),Ot([e({mode:"boolean"})],He.prototype,"dot",void 0),Ot([e],He.prototype,"badgeStyle",void 0),Ot([e({mode:"boolean"})],He.prototype,"standAlone",void 0),Ot([e],He.prototype,"status",void 0),Ot([e],He.prototype,"text",void 0),He=Ot([o({name:"h-badge",styles:Fe,template:De,shadowOptions:{mode:"closed"}})],He);var Je,Xe=r(Ne||(Ne=A(['\n<section class="ListWrap">\n <div class="Synthesis" @click="','">\n ','\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <span class="CardWrap">\n ',"\n </span>\n</section>\n"])),(function(t){return t.SynthesisFn()}),l((function(t){return t.isVideo}),r(We||(We=A(['<h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" />'])),Ie.path,Ie.path)),(function(t){return t.isVideo?"hide":""}),Ie.path,c((function(t){return t.cardItem}),r(Ve||(Ve=A(['<div class="Card">\n ','\n <img src="','"/></div>'])),l((function(t){return t.total>0}),r(Ye||(Ye=A(['<h-badge count="','"></h-badge>'])),(function(t){return t.total}))),(function(t){return t.grey})),{positioning:!0})),Ue=function(t){L(o,n);var e=Ge(o);function o(){var t;return h(this,o),(t=e.call(this)).isVideo=!0,t.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),kt.case.install([He]),t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(t){}}]),o}();T([s],Ue.prototype,"isVideo",void 0),T([s],Ue.prototype,"cardItem",void 0),Ue=T([o({name:"g-collect-list",template:Xe,styles:je,shadowOptions:{mode:"closed"}})],Ue);var qe,Ke,Ze,Qe=t(Je||(Je=A(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {","}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n.Button{position:absolute;width:100%;bottom:15vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n"])),St(),wt(["PoiNo"]));function to(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var eo,oo=r(qe||(qe=A(["\n<h-overlay ",' mode=\'handle\'>\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><source src="','/download/img/collect/draw01.mp4" type="video/mp4"/></video>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),l((function(t){return 1==t.type}),r(Ke||(Ke=A(['<img src="','/download/img/collect/title01.png"/><p class="Subtitle">再集',"张不同卡面即可合成场景卡</p>"])),Ie.path,(function(t){return t.number}))),l((function(t){return 2==t.type}),r(Ze||(Ze=A(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">2000元食联网优惠券</p>'])),Ie.path)),(function(t){return t.accept()}),Ie.path),no=function(t){L(o,n);var e=to(o);function o(){var t;return h(this,o),(t=e.call(this)).isClick=!1,t.type=1,t.number=1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?$e(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ae.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){}}]),o}();T([s],no.prototype,"Overlay",void 0),T([s],no.prototype,"video",void 0),T([s],no.prototype,"contentWrap",void 0),T([e],no.prototype,"type",void 0),T([e({converter:a})],no.prototype,"number",void 0),T([e({mode:"boolean"})],no.prototype,"show",void 0),T([Le],no.prototype,"showChanged",null),no=T([o({name:"g-collect-prize",template:oo,styles:Qe,shadowOptions:{mode:"closed"}})],no);var ro,io,so,ao,lo=t(eo||(eo=A(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n.Nav {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n"])));function co(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _(this,o)}}var uo=r(ro||(ro=A(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(io||(io=A(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),Ie.path)),c((function(t){return t.cardItem}),r(so||(so=A(['<div class="CardContainer ','" style="','">\n <img src="','"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(ao||(ao=A(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),Ie.path))),po=function(t){L(o,n);var e=co(o);function o(){var t;return h(this,o),(t=e.call(this)).cardItem=Array.from({length:5},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),t.active=0,t.MAX_VISIBILITY=1,t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"update",value:function(t){}}]),o}();T([s],po.prototype,"cardItem",void 0),T([s],po.prototype,"active",void 0),po=T([o({name:"g-collect-swipe",template:uo,styles:lo,shadowOptions:{mode:"closed"}})],po);export{Me as HiCollectConflate,Ue as HiCollectList,no as HiCollectPrize,po as HiCollectSwipe};
|