site-libsoc/Server/public/js/components/manifesto-component.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2023-07-04 01:12:28 +07:00
import{S as t,i as e,a as n,b as i,s as l,f as o,n as r,h as s,l as c,d as a,o as d,t as m,g as u,j as f,r as h,u as g,p,v as w,e as b,y as x,H as y}from"./index-ce8c147b.js";import{locales as v,getData as k}from"../../../../../../../../../js/libraries/serverTools.js";import{px2rem as H}from"../../../../../../../../../js/libraries/miscTools.js";function T(t,e,n){const i=t.slice();return i[30]=e[n],i[31]=e,i[32]=n,i}function j(t,e,n){const i=t.slice();return i[33]=e[n],i}function L(t,e,n){const i=t.slice();return i[33]=e[n],i}function I(t,e,n){const i=t.slice();return i[38]=e[n],i[39]=e,i[40]=n,i}function Y(t,e,n){const i=t.slice();return i[41]=e[n],i[42]=e,i[43]=n,i}function M(t){let e,n,l,r,d,f,h=t[38].name+"",p=t[38];const w=()=>t[17](n,p),b=()=>t[17](null,p);function x(){return t[18](t[38])}return{c(){e=o("div"),n=o("button"),l=m(h),r=u(),s(n,"class","level0 heading-button"),s(e,"class","heading-button-wrapper")},m(t,o){i(t,e,o),c(e,n),c(n,l),w(),c(e,r),d||(f=g(n,"click",x),d=!0)},p(e,n){p!==(t=e)[38]&&(b(),p=t[38],w())},d(t){t&&a(e),b(),d=!1,f()}}}function A(t){let e,n=t[38],l=[];for(let e=0;e<n.length;e+=1)l[e]=C(Y(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=b()},m(t,n){for(let e=0;e<l.length;e+=1)l[e].m(t,n);i(t,e,n)},p(t,i){if(3088&i[0]){let o;for(n=t[38],o=0;o<n.length;o+=1){const r=Y(t,n,o);l[o]?l[o].p(r,i):(l[o]=C(r),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){p(l,t),t&&a(e)}}}function C(t){let e,n,l,r,d,f,h=t[41].name+"",p=t[41];const w=()=>t[15](n,p),b=()=>t[15](null,p);function x(){return t[16](t[41])}return{c(){e=o("div"),n=o("button"),l=m(h),r=u(),s(n,"class","level1 heading-button"),s(e,"class","heading-button-wrapper")},m(t,o){i(t,e,o),c(e,n),c(n,l),w(),c(e,r),d||(f=g(n,"click",x),d=!0)},p(e,n){p!==(t=e)[41]&&(b(),p=t[41],w())},d(t){t&&a(e),b(),d=!1,f()}}}function z(t){let e;let n=function(t,e){return Array.isArray(t[38])?A:M}(t),l=n(t);return{c(){l.c(),e=b()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&a(e)}}}function E(t){let e;let n=function(t,e){return t[30],"ul"==Object.keys(t[30])[0]?N:(t[30],"ol"==Object.keys(t[30])[0]?B:(t[30],"h3"==t[30].type?R:(t[30],"h2"==t[30].type?V:"#"==t[30][0]?S:O)))}(t),l=n(t);return{c(){l.c(),e=b()},m(t,n){l.m(t,n),i(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&a(e)}}}function O(t){let e,n,l,d=t[30]+"";return{c(){e=o("p"),n=new y(!1),l=u(),n.a=l,s(e,"class","margin-end")},m(t,o){i(t,e,o),n.m(d,e),c(e,l)},p:r,d(t){t&&a(e)}}}function S(t){let e,n=t[30].slice(2,t[30].length)+"";return{c(){e=o("h1")},m(t,l){i(t,e,l),e.innerHTML=n},p:r,d(t){t&&a(e)}}}function V(t){let e,n,l,r,d,m=t[30].line+"",f=t[30];const p=()=>t[22](n,f),w=()=>t[22](null,f);return{c(){e=o("button"),n=o("h2"),l=u(),s(n,"id",t[30].id),h(e,"display","block"),h(e,"width","100%")},m(o,s){i(o,e,s),c(e,n),n.innerHTML=m,p(),c(e,l),r||(d=g(e,"click",(function(){x(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),r=!0)},p(e,n){f!==(t=e)[30]&&(w(),f=t[30],p())},d(t){t&&a(e),w(),r=!1,d()}}}function R(t){let e,n,l,r,d,m=t[30].line+"",f=t[30];const p=()=>t[21](n,f),w=()=>t[21](null,f);return{c(){e=o("button"),n=o("h3"),l=u(),s(n,"id",t[30].id),h(e,"display","block"),h(e,"width","100%")},m(o,s){i(o,e,s),c(e,n),n.innerHTML=m,p(),c(e,l),r||(d=g(e,"click",(function(){x(t[6].scrollIntoView({block:"start"},!0))&&t[6].scrollIntoView({block:"start"},!0).apply(this,arguments)})),r=!0)},p(e,n){f!==(t=e)[30]&&(w(),f=t[30],p())},d(t){t&&a(e),w(),r=!1,d()}}}function B(t){let e,n,l=t[30].ol,r=[];for(let e=0;e<l.length;e+=1)r[e]=_(j(t,l,e));return{c(){e=o("ol");for(let t=0;t<r.length;t+=1)r[t].c();n=u()},m(t,l){i(t,e,l);for(let t=0;t<r.length;t+=1)r[t].m(e,null);c(e,n)},p(t,i){if(512&i[0]){let o;for(l=t[30].ol,o=0;o<l.length;o+=1){const s=j(t,l,o);r[o]?r[o].p(s,i):(r[o]=_(s),r[o].c(),r[o].m(e,n))}for(;o<r.length;o+=1)r[o].d(1);r.length=l.length}},d(t){t&&a(e),p(r,t)}}}function N(t){let e,n,l=t[30].ul,r=[];for(let e=0;e<l.length;e+=1)r[e]=F(L(t,l,e));return{c(){e=o("ul");for(let t=0;t<r.length;t+=1)r[t].c();n=u