You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/web/dist/assets/@opentiny-d73a2d67.js

3 lines
91 KiB

import{h as it}from"./vue-1e3b54ec.js";import{l as Ee}from"./xss-a5544f63.js";import{d as ur,c as pr,a as fr,h as mr,g as G,i as we,p as gr,o as hr,b as vr,n as $t,m as yr,e as H,f as ae,j as D,r as Me,k as me,l as Ce,w as Ne,q as lt,s as st,t as ct,F as br,u as wr,v as xr,x as dt,T as Sr,y as Tr}from"./@vue-a481fc63.js";const It=Object.prototype.toString,He=Object.prototype.hasOwnProperty,Mr=Object.getPrototypeOf,Et=He.toString,Cr=Et.call(Object),Nr={"[object Error]":"error","[object Object]":"object","[object RegExp]":"regExp","[object Date]":"date","[object Array]":"array","[object Function]":"function","[object String]":"string","[object Number]":"number","[object Boolean]":"boolean"},Z=e=>e==null||e==="undefined",ge=e=>Z(e)?String(e):Nr[It.call(e)]||"object",ut=e=>ge(e)==="object",$=e=>{if(!e||It.call(e)!=="[object Object]")return!1;const t=Mr(e);if(!t)return!0;const r=He.call(t,"constructor")&&t.constructor;return typeof r=="function"&&Et.call(r)===Cr},Ve=e=>typeof e=="number"&&isFinite(e),pt=e=>e-parseFloat(e)>=0,he=e=>ge(e)==="date",ft=(e,t)=>{if(typeof t=="function"){for(const r in e)if(He.call(e,r)&&t(r,e[r])===!1)break}};let q;const ke=(e,t,r)=>{if(!e||!$(e)||!t||typeof t!="string")return;t=t.split(".");let n=e;const a=t.length;if(a>1){const o=r?1:0;for(let i=o;i<a;i++)if(n=n[t[i]],Z(n))return n;return n}else return n[t[0]]},mt=(e,t,r,n)=>{if(!e||!$(e)||!t||typeof t!="string")return e;t=t.split(".");const a=e;let o=t.length,i=t[0];if(o>1){o--;let l=a,s,c;for(let d=0;d<o;d++)s=t[d],c=l[s],(c===null||!$(c))&&(l[s]={},c=l[s]),l=c;i=t[o],n&&$(l[i])?q(!0,l[i],r):l[i]=r}else n&&$(a[i])?q(!0,a[i],r):a[i]=r;return a},kr=(e,t,r,n)=>{const a=(i,l,s,c,d)=>{const u=c.indexOf(s)===0,p=c.split(s),f=p[1]&&p[1].indexOf(".")===0;s===c||u&&f?s!==c&&ft(ke(i,s),g=>{a(i,l,`${s}.${g}`,c)}):t.includes(s)||mt(l,s,ke(i,s),d)},o=(i,l,s,c)=>{const d={};return c?ft(i,u=>l.forEach(p=>a(i,d,u,p,s))):l.forEach(u=>mt(d,u,ke(i,u),s)),d};return $(e)?Array.isArray(t)?o(e,t,r,n):q(r!==!1,{},e):e},Dr=e=>Array.isArray(e)?e.map(t=>kr(t)):e,Ar=(e,t,r,n,a)=>{let o;if(r&&n&&($(n)||(o=Array.isArray(n))))if(o)o=!1,e[t]=Dr(n);else{const i=a&&$(a)?a:{};e[t]=q(r,i,n)}else if(n!==void 0)try{e[t]=n}catch{}};q=function(){const e=arguments,t=e.length;let r=e[0]||{},n=1,a=!1;for(ge(r)==="boolean"&&(a=r,r=e[n]||{},n++),!ut(r)&&ge(r)!=="function"&&(r={}),n===t&&(r=this,n--);n<t;n++){const o=e[n];if(o!==null&&ut(o)){const i=Object.keys(o);for(const l of i){const s=r[l],c=o[l];r!==c&&Ar(r,l,a,c,s)}}}return r};const $r=()=>{let e=8;return document.addEventListener&&window.performance&&(e=9,window.atob&&window.matchMedia&&(e=10,!window.attachEvent&&!document.all&&(e=11))),e},Ir=e=>{e.chrome&&~navigator.userAgent.indexOf("Edg")?(e.name="edge",e.edge=!0,delete e.chrome):!document.documentMode&&window.StyleMedia&&(e.name="edge",e.edge=!0)},Rt=typeof window<"u"&&typeof document<"u"&&window.document===document;(()=>{const e={name:void 0,version:void 0,isDoc:typeof document<"u",isMobile:!1,isPC:!0,isNode:typeof window>"u"};if(Rt){const t=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);e.isMobile=t,e.isPC=!t;let r;if(window.chrome&&(window.chrome.webstore||/^Google\b/.test(window.navigator.vendor))?(e.name="chrome",e.chrome=!0,r=navigator.userAgent.match(/chrome\/(\d+)/i),e.version=!!r&&!!r[1]&&parseInt(r[1],10),r=void 0):document.all||document.documentMode?(e.name="ie",e.version=$r(),e.ie=!0):typeof window.InstallTrigger<"u"?(e.name="firefox",e.firefox=!0):Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0?(e.name="safari",e.safari=!0):(window.opr&&window.opr.addons||window.opera)&&(e.name="opera",e.opera=!0),Ir(e),!~["ie","chrome"].indexOf(e.name)){const n=e.name+"/(\\d+)";r=navigator.userAgent.match(new RegExp(n,"i")),e.version=!!r&&!!r[1]&&parseInt(r[1],10),r=void 0}if(e.isDoc){const n=document.body||document.documentElement;["webkit","khtml","moz","ms","o"].forEach(a=>{e["-"+a]=!!n[a+"MatchesSelector"]})}}return e})();const ie=Rt?window.BigInt:global.BigInt;function Re(){return typeof ie=="functi
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xa(e,t){if(e){if(typeof e=="string")return At(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return At(e,t)}}function At(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Sa=function(t,r){for(var n=t.__vccOpts||t,a=wa(r),o;!(o=a()).done;){var i=o.value,l=i[0],s=i[1];n[l]=s}return n},Ta=et({components:{IconChevronLeft:ia(),IconChevronRight:pa(),IconRadio:ba()},props:[].concat(_o,["initBlocks","wheelBlocks","modelValue","tag","subTag"]),emits:["before-click","click"],setup:function(t,r){return Ho({props:t,context:r,renderless:ea,api:Qo})}}),Ma={class:"tiny-slide-bar__content"};function Ca(e,t,r,n,a,o){var i=Me("icon-chevron-left"),l=Me("icon-radio"),s=Me("icon-chevron-right");return H(),ae("div",{class:"tiny-slide-bar",onMousewheel:t[0]||(t[0]=Tr(function(){return e.mouseEvent&&e.mouseEvent.apply(e,arguments)},["prevent"])),ref:"wrapper"},[me(i,{class:Ce([[e.state.showLeft?"":"tiny-disabled"],"tiny-svg-size icon-chevron-left"]),onClick:e.leftClick},null,8,["class","onClick"]),D("div",Ma,[me(Sr,null,{default:Ne(function(){return[(H(),lt(st(e.tag),{class:"tiny-slide-bar__list tiny-repeat rightAni-enter-active",style:ct({width:e.state.blockWrapper+"px"}),ref:"insider"},{default:Ne(function(){return[(H(!0),ae(br,null,wr(e.modelValue,function(c,d){return H(),lt(st(e.subTag),{key:d,class:Ce([[e.state.currentIndex===d?"tiny-slide-bar__select":""],"block"]),style:ct({width:e.state.blockWidth+"px","margin-left":d===0?0:e.state.blockMargin+"px"}),onClick:function(p){return e.blockClick({item:c,index:d})}},{default:Ne(function(){return[D("ul",null,[D("li",null,[xr(e.$slots,"default",{slotData:c},function(){return[D("div",null,dt(c.title),1),D("div",null,[me(l,{class:"tiny-svg-size"})]),D("div",null,dt(c.lang),1)]})])])]}),_:2},1032,["class","style","onClick"])}),128))]}),_:3},8,["style"]))]}),_:3})]),me(s,{class:Ce([[e.state.showRight?"tiny-disabled":""],"tiny-svg-size icon-chevron-right"]),onClick:e.rightClick},null,8,["class","onClick"])],544)}var Na=Sa(Ta,[["render",Ca]]);function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},We.apply(this,arguments)}var ka=function(t){return Na},oe=et({name:be+"SlideBar",props:We({},Lo,{initBlocks:Number,wheelBlocks:{type:Number,default:1},modelValue:Array,tag:{type:String,default:"ul"},subTag:{type:String,default:"li"}}),setup:function(t,r){return Uo({props:t,context:r,template:ka})}}),Da="3.10.0";oe.model={prop:"modelValue",event:"update:modelValue"};oe.install=function(e){e.component(oe.name,oe)};oe.version=Da;export{oe as S};