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-uoOjf5Au.js

3 lines
93 KiB

import{h as at}from"./vue-l_NObxuH.js";import{d as ar,c as sr,a as lr,h as cr,i as xe,p as dr,g as U,o as ur,b as pr,n as Nt,m as fr,e as L,f as oe,j as D,r as ke,k as he,l as Ne,w as De,q as st,s as lt,F as mr,t as ct,u as gr,v as dt,x as hr,T as vr,y as br}from"./@vue-M2CzPUka.js";const Dt=Object.prototype.toString,He=Object.prototype.hasOwnProperty,yr=Object.getPrototypeOf,At=He.toString,wr=At.call(Object),Sr={"[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"},q=e=>e==null,be=e=>q(e)?String(e):Sr[Dt.call(e)]||"object",ut=e=>be(e)==="object",E=e=>{if(!e||Dt.call(e)!=="[object Object]")return!1;const t=yr(e);if(!t)return!0;const r=He.call(t,"constructor")&&t.constructor;return typeof r=="function"&&At.call(r)===wr},Ge=e=>typeof e=="number"&&isFinite(e),pt=e=>e-parseFloat(e)>=0,ye=e=>be(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 Y;const Ae=(e,t,r)=>{if(!e||!E(e)||!t||typeof t!="string")return;const n=t.split(".");let i=e;const o=n.length;if(o>1){const s=r?1:0;for(let a=s;a<o;a++)if(i=i[n[a]],q(i))return i;return i}else return i[n[0]]},mt=(e,t,r,n)=>{if(!e||!E(e)||!t||typeof t!="string")return e;const i=t.split("."),o=e;let s=i.length,a=i[0];if(s>1){s--;let l=o,c,d;for(let u=0;u<s;u++)c=i[u],d=l[c],(d===null||!E(d))&&(l[c]={},d=l[c]),l=d;a=i[s],n&&E(l[a])?Y(!0,l[a],r):l[a]=r}else n&&E(o[a])?Y(!0,o[a],r):o[a]=r;return o},xr=(e,t,r,n)=>{const i=(s,a,l,c,d)=>{const u=c.indexOf(l)===0,p=c.split(l),m=p[1]&&p[1].indexOf(".")===0;l===c||u&&m?l!==c&&ft(Ae(s,l),h=>(i(s,a,`${l}.${h}`,c),!0)):t&&!t.includes(l)&&mt(a,l,Ae(s,l),d)},o=(s,a,l,c)=>{const d={};return c?ft(s,u=>a.forEach(p=>i(s,d,u,p,l))):a.forEach(u=>mt(d,u,Ae(s,u),l)),d};return E(e)?Array.isArray(t)?o(e,t,r,n):Y(r!==!1,{},e):e},Tr=e=>Array.isArray(e)?e.map(t=>xr(t)):e,Mr=(e,t,r,n,i)=>{let o;if(r&&n&&(E(n)||(o=Array.isArray(n))))if(o)o=!1,e[t]=Tr(n);else{const s=i&&E(i)?i:{};e[t]=Y(r,s,n)}else if(n!==void 0)try{e[t]=n}catch{}};Y=function(...e){const t=e.length;let r=e[0]||{},n=1,i=!1;for(be(r)==="boolean"&&(i=r,r=e[n]||{},n++),!ut(r)&&be(r)!=="function"&&(r={});n<t;n++){const o=e[n];if(o!==null&&ut(o)){const s=Object.keys(o);for(const a of s){const l=r[a],c=o[a];r!==c&&Mr(r,a,i,c,l)}}}return r};const Cr=()=>{let e=8;return document.addEventListener&&window.performance&&(e=9,window.atob&&window.matchMedia&&(e=10,!window.attachEvent&&!document.all&&(e=11))),e},kr=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)},Et=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(Et){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=Cr(),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),kr(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(i=>{e["-"+i]=!!n[i+"MatchesSelector"]})}}return e})();const ie=Et?window.BigInt:global.BigInt;function ze(){return typeof ie=="function"}function ee(e){let t=e.toString().trim(),r=t.startsWith("-");r&&(t=
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qo(e,t){if(e){if(typeof e=="string")return kt(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 kt(e,t)}}function kt(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 ei=function(t,r){for(var n=t.__vccOpts||t,i=Xo(r),o;!(o=i()).done;){var s=o.value,a=s[0],l=s[1];n[a]=l}return n},ti=Qe({components:{IconChevronLeft:Lo(),IconChevronRight:Ho(),IconRadio:Jo()},props:[].concat(ho,["initBlocks","wheelBlocks","modelValue","tag","subTag"]),emits:["before-click","click"],setup:function(t,r){return So({props:t,context:r,renderless:$o,api:Po})}}),ri={class:"tiny-slide-bar__content"};function ni(e,t,r,n,i,o){var s=ke("icon-chevron-left"),a=ke("icon-radio"),l=ke("icon-chevron-right");return L(),oe("div",{class:"tiny-slide-bar",onMousewheel:t[0]||(t[0]=br(function(){return e.mouseEvent&&e.mouseEvent.apply(e,arguments)},["prevent"])),ref:"wrapper"},[he(s,{class:Ne([[e.state.showLeft?"":"tiny-disabled"],"tiny-svg-size icon-chevron-left"]),onClick:e.leftClick},null,8,["class","onClick"]),D("div",ri,[he(vr,null,{default:De(function(){return[(L(),dt(st(e.tag),{class:"tiny-slide-bar__list tiny-repeat rightAni-enter-active",style:lt({width:e.state.blockWrapper+"px"}),ref:"insider"},{default:De(function(){return[(L(!0),oe(mr,null,hr(e.modelValue,function(c,d){return L(),dt(st(e.subTag),{key:d,class:Ne([[e.state.currentIndex===d?"tiny-slide-bar__select":""],"block"]),style:lt({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:De(function(){return[D("ul",null,[D("li",null,[gr(e.$slots,"default",{slotData:c},function(){return[D("div",null,ct(c.title),1),D("div",null,[he(a,{class:"tiny-svg-size"})]),D("div",null,ct(c.lang),1)]})])])]}),_:2},1032,["class","style","onClick"])}),128))]}),_:3},8,["style"]))]}),_:3})]),he(l,{class:Ne([[e.state.showRight?"tiny-disabled":""],"tiny-svg-size icon-chevron-right"]),onClick:e.rightClick},null,8,["class","onClick"])],544)}var oi=ei(ti,[["render",ni]]),ii={};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 ai=function(t){var r;return typeof process=="object"&&((r=ii)==null||r.TINY_MODE),oi},ne=Qe({name:Se+"SlideBar",props:We({},go,{initBlocks:Number,wheelBlocks:{type:Number,default:1},modelValue:Array,tag:{type:String,default:"ul"},subTag:{type:String,default:"li"}}),setup:function(t,r){return yo({props:t,context:r,template:ai})}}),si="3.13.0";ne.model={prop:"modelValue",event:"update:modelValue"};ne.install=function(e){e.component(ne.name,ne)};ne.version=si;export{ne as S};