vant/static/js/async/1739.67bce570.js
2024-04-20 08:49:23 +00:00

2 lines
4.3 KiB
JavaScript

/*! For license information please see 1739.67bce570.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["1739"],{9575:function(t,e,r){"use strict";r.r(e);var n=r("44990");r("19145");let s=n.Z;e.default=s},44990:function(t,e,r){"use strict";var n=r("80681"),s=r("11848"),i=r("80887"),u=r("54369");e.Z=(0,n.aZ)({__name:"index",setup(t){var e=(0,u.q)({"zh-CN":{text1:"\u6162\u6162\u6765\uFF0C\u4E0D\u8981\u6025\uFF0C\u751F\u6D3B\u7ED9\u4F60\u51FA\u4E86\u96BE\u9898\uFF0C\u53EF\u4E5F\u7EC8\u6709\u4E00\u5929\u4F1A\u7ED9\u51FA\u7B54\u6848\u3002",keywords1:"\u96BE\u9898",keywords2:["\u96BE\u9898","\u7EC8\u6709\u4E00\u5929","\u7B54\u6848"],keywords3:"\u751F\u6D3B",multipleKeywords:"\u591A\u5B57\u7B26\u5339\u914D",highlightClass:"\u8BBE\u7F6E\u9AD8\u4EAE\u6807\u7B7E\u7C7B\u540D"},"en-US":{text1:"Take your time and be patient. Life itself will eventually answer all those questions it once raised for you.",keywords1:"questions",keywords2:["time","life","answer"],keywords3:"life",multipleKeywords:"Multiple Keywords",highlightClass:"Highlight Class Name"}});return(t,r)=>{var u=(0,n.up)("demo-block");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(u,{title:(0,s.SU)(e)("basicUsage")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,s.SU)(i.ZP),{keywords:(0,s.SU)(e)("keywords1"),"source-string":(0,s.SU)(e)("text1")},null,8,["keywords","source-string"])]),_:1},8,["title"]),(0,n.Wm)(u,{title:(0,s.SU)(e)("multipleKeywords")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,s.SU)(i.ZP),{keywords:(0,s.SU)(e)("keywords2"),"source-string":(0,s.SU)(e)("text1")},null,8,["keywords","source-string"])]),_:1},8,["title"]),(0,n.Wm)(u,{title:(0,s.SU)(e)("highlightClass")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,s.SU)(i.ZP),{keywords:(0,s.SU)(e)("keywords3"),"source-string":(0,s.SU)(e)("text1"),"highlight-class":"custom-class"},null,8,["keywords","source-string"])]),_:1},8,["title"])],64)}}})},80887:function(t,e,r){"use strict";var n=r("63112"),s=r("8161"),i=(0,n.n)(s.Z);e.ZP=i},78335:function(t,e,r){"use strict";r.d(e,{Ce:function(){return l},J5:function(){return i},Or:function(){return s},SI:function(){return o},SQ:function(){return c},Vg:function(){return n},ir:function(){return u},qM:function(){return a}});var n=null,s=[Number,String],i={type:Boolean,default:!0},u=t=>({type:t,required:!0}),l=()=>({type:Array,default:()=>[]}),a=t=>({type:Number,default:t}),o=t=>({type:s,default:t}),c=t=>({type:String,default:t})},63112:function(t,e,r){"use strict";r.d(e,{n:function(){return s}});var n=r("20358");function s(t){return t.install=e=>{var{name:r}=t;r&&(e.component(r,t),e.component((0,n._A)("-".concat(r)),t))},t}},8161:function(t,e,r){"use strict";r("82116"),r("17989"),r("96245"),r("37232"),r("70629"),r("21690"),r("29256"),r("36056"),r("56115"),r("59644"),r("4171"),r("72863"),r("14288"),r("61557"),r("41869"),r("66786"),r("14529");var n=r("80681"),s=r("62568"),i=r("78335");function u(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,n.lA)(t)}var[l,a]=(0,s.do)("highlight"),o={autoEscape:i.J5,caseSensitive:Boolean,highlightClass:String,highlightTag:(0,i.SQ)("span"),keywords:(0,i.ir)([String,Array]),sourceString:(0,i.SQ)(""),tag:(0,i.SQ)("div"),unhighlightClass:String,unhighlightTag:(0,i.SQ)("span")};e.Z=(0,n.aZ)({name:l,props:o,setup(t){var e=(0,n.Fl)(()=>{var{autoEscape:e,caseSensitive:r,keywords:n,sourceString:s}=t,i=r?"g":"gi",u=(Array.isArray(n)?n:[n]).filter(t=>t).reduce((t,r)=>{e&&(r=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));for(var n,u=new RegExp(r,i);n=u.exec(s);){var l=n.index,a=u.lastIndex;if(l>=a){u.lastIndex++;continue}t.push({start:l,end:a,highlight:!0})}return t},[]),l=(u=u.sort((t,e)=>t.start-e.start).reduce((t,e)=>{var r=t[t.length-1];if(!r||e.start>r.end){var n=r?r.end:0,s=e.start;n!==s&&t.push({start:n,end:s,highlight:!1}),t.push(e)}else r.end=Math.max(r.end,e.end);return t},[]))[u.length-1];return l&&l.end<s.length&&u.push({start:l.end,end:s.length,highlight:!1}),u}),r=()=>{var{sourceString:r,highlightClass:s,unhighlightClass:i,highlightTag:l,unhighlightTag:o}=t;return e.value.map(t=>{var{start:e,end:c,highlight:d}=t,g=r.slice(e,c);return d?(0,n.Wm)(l,{class:[a("tag"),s]},u(g)?g:{default:()=>[g]}):(0,n.Wm)(o,{class:i},u(g)?g:{default:()=>[g]})})};return()=>{var e,{tag:s}=t;return(0,n.Wm)(s,{class:a()},u(e=r())?e:{default:()=>[e]})}}})},19145:function(t,e,r){"use strict";r.r(t.exports={})},13323:function(t,e,r){"use strict";r.r(t.exports={})}}]);