3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
|
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,o as f,g as p,h as d}from"./vendor.8be2b941.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 h=Symbol("Schlechtenburg block library");const _=e({name:"sb-block",props:{block:{type:Object,required:!0}},setup(t,e){const i=n(null),a=r(h,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 g=e({name:"sb-main",model:{prop:"block",event:"update"},props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}}},setup:e=>(i(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{}))),()=>o("div",{class:"sb-main"},[o(_,{block:e.block},null)]))});let v;const m={};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 b=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 w(t){if(P(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=w(A(r)?R(r):r);if(s)for(const t in s)e[t]=s[t]}return e}if(L(t))return t}const k=/;(?![^(]*\))/g,S=/:(.+)/;function R(t){const e={};return t.split(k).forEach((t=>{if(t){const n=t.split(S);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function x(t){let e="";if(A(t))e=t;else if(P(t))for(let n=0;n<t.length;n++){const r=x(t[n]);r&&(e+=r+" ")}else if(L(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const E={},C=()=>{},O=/^on[^a-z]/,j=t=>O.test(t),$=Object.assign,F=Object.prototype.hasOwnProperty,M=(t,e)=>F.call(t,e),P=Array.isArray,I=t=>"[object Map]"===z(t),U=t=>"function"==typeof t,A=t=>"string"==typeof t,N=t=>"symbol"==typeof t,L=t=>null!==t&&"object"==typeof t,T=Object.prototype.toString,z=t=>T.call(t),B=t=>A(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,V=(t,e)=>t!==e&&(t==t||e==e),W=new WeakMap,D=[];let q;const K=Symbol(""),H=Symbol("");function J(t,e=E){(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(!D.includes(n)){Q(n);try{return Y.push(X),X=!0,D.push(n),q=n,t()}finally{D.pop(),tt(),q=D[D.length-1]}}};return n.id=G++,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 G=0;function Q(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let X=!0;const Y=[];function Z(){Y.push(X),X=!1}function tt(){const t=Y.pop();X=void 0===t||t}function et(t,e,n){if(!X||void 0===q)return;let r=W.get(t);r||W.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=new Set),s.has(q)||(s.add(q),q.deps.push(s))}function nt(t,e,n,r,s,o){const l=W.get(t);if(!l)return;const c=new Set,i=t=>{t&&t.forEach((t=>{(t!==q||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&P(t))l.forEach(((t,e)=>{("length"===e||e>=r)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":P(t)?B(n)&&i(l.get("length")):(i(l.get(K)),I(t)&&i(l.get(H)));break;case"delete":P(t)||(i(l.get(K)),I(t)&&i(l.get(H)));break;case"set":I(t)&&i(l.get(K))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const rt=y("__proto__,__v_isRef,__isVue"),st=new Set(Objec
|
||
|
//# sourceMappingURL=index.84f4ccb4.js.map
|