schlechtenburg/docs/assets/index.5f371c7e.js

3 lines
20 KiB
JavaScript
Raw Normal View History

2021-03-08 17:24:06 +00:00
var t=Object.assign;import{d as e,r as n,i as r,a as s,c as o,b as l,m as c,s as i,e as a,f as u,g as f,h as p}from"./vendor.adf692d7.js";!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const r=new URL(t,location),s=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,o)=>{const l=new URL(t,r);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const c=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),i=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(c),onerror(){o(new Error(`Failed to import: ${t}`)),s(i)},onload(){n(self[e].moduleMap[l]),s(i)}});document.head.appendChild(i)})),self[e].moduleMap={}}}("assets/");const d=Symbol("Schlechtenburg block library");const h=e({name:"sb-block",props:{block:{type:Object,required:!0}},setup(t,e){const i=n(null),a=r(d,s({}));return()=>{var n;const r=(null==(s=t.block.name,n=a[s])?void 0:n.component)||o("span",null,[l("Missing block "),name]);var s;return o("div",{ref:i,class:"sb-block"},[o(r,c({data:t.block.data,blockId:t.block.id},e.attrs),null)])}}});const _=e({name:"sb-main",model:{prop:"block",event:"update"},props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0}},setup:e=>(i(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{}))),()=>o(h,{block:e.block},null))});let g;const v={};function y(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const m=y("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function b(t){if(F(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=b(A(r)?S(r):r);if(s)for(const t in s)e[t]=s[t]}return e}if(U(t))return t}const w=/;(?![^(]*\))/g,k=/:(.+)/;function S(t){const e={};return t.split(w).forEach((t=>{if(t){const n=t.split(k);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function R(t){let e="";if(A(t))e=t;else if(F(t))for(let n=0;n<t.length;n++){const r=R(t[n]);r&&(e+=r+" ")}else if(U(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const x={},E=()=>{},C=/^on[^a-z]/,O=t=>C.test(t),$=Object.assign,j=Object.prototype.hasOwnProperty,M=(t,e)=>j.call(t,e),F=Array.isArray,P=t=>"[object Map]"===T(t),I=t=>"function"==typeof t,A=t=>"string"==typeof t,N=t=>"symbol"==typeof t,U=t=>null!==t&&"object"==typeof t,L=Object.prototype.toString,T=t=>L.call(t),z=t=>A(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,B=(t,e)=>t!==e&&(t==t||e==e),V=new WeakMap,W=[];let D;const q=Symbol(""),K=Symbol("");function H(t,e=x){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!W.includes(n)){G(n);try{return X.push(Q),Q=!0,W.push(n),D=n,t()}finally{W.pop(),Z(),D=W[W.length-1]}}};return n.id=J++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let J=0;function G(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let Q=!0;const X=[];function Y(){X.push(Q),Q=!1}function Z(){const t=X.pop();Q=void 0===t||t}function tt(t,e,n){if(!Q||void 0===D)return;let r=V.get(t);r||V.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=new Set),s.has(D)||(s.add(D),D.deps.push(s))}function et(t,e,n,r,s,o){const l=V.get(t);if(!l)return;const c=new Set,i=t=>{t&&t.forEach((t=>{(t!==D||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&F(t))l.forEach(((t,e)=>{("length"===e||e>=r)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":F(t)?z(n)&&i(l.get("length")):(i(l.get(q)),P(t)&&i(l.get(K)));break;case"delete":F(t)||(i(l.get(q)),P(t)&&i(l.get(K)));break;case"set":P(t)&&i(l.get(q))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const nt=y("__proto__,__v_isRef,__isVue"),rt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(N)),st=at(),ot=at(!1,
//# sourceMappingURL=index.5f371c7e.js.map