12 lines
28 KiB
JavaScript
12 lines
28 KiB
JavaScript
import{b as de,j as Re,l as Dt,s as zt,p as n,c as g,t as M,k as Et,i as dt,f as Pt,e as xt,d as ft,m as Jt}from"./disclose-version.CyWgP0ZN.js";import{u as ht,e as Gt,g as we,q as Fe,h as re,O as ke,z as De,o as Te,af as ze,ag as ue,d as Yt,f as It,j as qe,ae as Ne,r as ie,Q as je,az as Kt,v as Wt,aA as Ue,aB as Ve,aC as Xe,X as Ge,a2 as ve,aD as Je,aE as We,m as Ye,aF as Ke,aG as Ie,b as Pe,k as Qe,c as Ze,R as se,B as yt,S as Ae,K as y,a as ta,P as ea,aH as aa,aI as na,aJ as ra,aK as oa,T as ia,n as Rt,aL as sa,aM as la,a9 as fe,aa as _e,ab as ca,aN as da,t as $t,aO as T,C as q,D as Mt,E as W,w as Ht,F as k,G as w,J as L,L as c,M as $,aP as N,N as it,I as A,ar as Ft,aQ as ua}from"./utils.CCeXIeLi.js";import{e as va,i as qt,a as gt,p as Oe,b as j,s as Be,d as Ut,c as ct,t as fa,r as Qt}from"./ProgressBar.svelte_svelte_type_style_lang.CzTHQWo8.js";import{w as le}from"./index.BivHbqgg.js";import{a as _a,c as ce,s as Bt,b as ba}from"./index-client.CTmobSb_.js";let Zt=null;function ma(e,t){return t}function pa(e,t,a,o){for(var i=[],r=t.length,s=0;s<r;s++)We(t[s].e,i,!0);var p=r>0&&i.length===0&&a!==null;if(p){var h=a.parentNode;Ye(h),h.append(a),o.clear(),kt(e,t[0].prev,t[r-1].next)}Ke(i,()=>{for(var l=0;l<r;l++){var f=t[l];p||(o.delete(f.k),kt(e,f.prev,f.next)),Ie(f.e,!p)}})}function ha(e,t,a,o,i,r=null){var s=e,p={flags:t,items:new Map,first:null};{var h=e;s=ht?Gt(we(h)):h.appendChild(Fe())}ht&&re();var l=null,f=!1;ke(()=>{var v=a(),_=De(v)?v:v==null?[]:Te(v),C=_.length;if(f&&C===0)return;f=C===0;let d=!1;if(ht){var b=s.data===ze;b!==(C===0)&&(s=ue(),Gt(s),Yt(!1),d=!0)}if(ht){for(var u=null,m,x=0;x<C;x++){if(It.nodeType===8&&It.data===qe){s=It,d=!0,Yt(!1);break}var H=_[x],I=o(H,x);m=Ee(It,p,u,null,H,I,x,i,t),p.items.set(I,m),u=m}C>0&&Gt(ue())}ht||ga(_,p,s,i,t,o),r!==null&&(C===0?l?Ne(l):l=ie(()=>r(s)):l!==null&&je(l,()=>{l=null})),d&&Yt(!0),a()}),ht&&(s=It)}function ga(e,t,a,o,i,r){var s=e.length,p=t.items,h=t.first,l=h,f,v=null,_=[],C=[],d,b,u,m;for(m=0;m<s;m+=1){if(d=e[m],b=r(d,m),u=p.get(b),u===void 0){var x=l?l.e.nodes_start:a;v=Ee(x,t,v,v===null?t.first:v.next,d,b,m,o,i),p.set(b,v),_=[],C=[],l=v.next;continue}if(ya(u,d,m),u.e.f&Kt&&Ne(u.e),u!==l){if(f!==void 0&&f.has(u)){if(_.length<C.length){var H=C[0],I;v=H.prev;var G=_[0],U=_[_.length-1];for(I=0;I<_.length;I+=1)be(_[I],H,a);for(I=0;I<C.length;I+=1)f.delete(C[I]);kt(t,G.prev,U.next),kt(t,v,G),kt(t,U,H),l=H,v=U,m-=1,_=[],C=[]}else f.delete(u),be(u,l,a),kt(t,u.prev,u.next),kt(t,u,v===null?t.first:v.next),kt(t,v,u),v=u;continue}for(_=[],C=[];l!==null&&l.k!==b;)l.e.f&Kt||(f??(f=new Set)).add(l),C.push(l),l=l.next;if(l===null)continue;u=l}_.push(u),v=u,l=u.next}if(l!==null||f!==void 0){for(var R=f===void 0?[]:Te(f);l!==null;)l.e.f&Kt||R.push(l),l=l.next;var D=R.length;if(D>0){var tt=s===0?a:null;pa(t,R,tt,p)}}Wt.first=t.first&&t.first.e,Wt.last=v&&v.e}function ya(e,t,a,o){Ue(e.v,t),e.i=a}function Ee(e,t,a,o,i,r,s,p,h){var l=Zt;try{var f=(h&Ve)!==0,v=(h&Xe)===0,_=f?v?Ge(i):ve(i):i,C=h&Je?ve(s):s,d={i:C,v:_,k:r,a:null,e:null,prev:a,next:o};return Zt=d,d.e=ie(()=>p(e,_,C),ht),d.e.prev=a&&a.e,d.e.next=o&&o.e,a===null?t.first=d:(a.next=d,a.e.next=d.e),o!==null&&(o.prev=d,o.e.prev=d.e),d}finally{Zt=l}}function be(e,t,a){for(var o=e.next?e.next.e.nodes_start:a,i=t?t.e.nodes_start:a,r=e.e.nodes_start;r!==o;){var s=Pe(r);i.before(r),r=s}}function kt(e,t,a){t===null?e.first=a:(t.next=a,t.e.next=a&&a.e),a!==null&&(a.prev=t,a.e.prev=t&&t.e)}function At(e,t,a,o,i){var r=e,s="",p;ke(()=>{if(s===(s=t()??"")){ht&&re();return}p!==void 0&&(Ie(p),p=void 0),s!==""&&(p=ie(()=>{if(ht){It.data;for(var h=re(),l=h;h!==null&&(h.nodeType!==8||h.data!=="");)l=h,h=Pe(h);if(h===null)throw Qe(),Ze;de(It,l),r=Gt(h);return}var f=s+"",v=Re(f);de(we(v),v.lastChild),r.before(v)}))})}function Ca(e,t,a){se(()=>{var o=yt(()=>t(e,a==null?void 0:a())||{});if(a&&(o!=null&&o.update)){var i=!1,r={};Ae(()=>{var s=a();y(s),i&&ta(r,s)&&(r=s,o.update(s))}),i=!0}if(o!=null&&o.destroy)return()=>o.destroy()})}const xa=requestAnimationFrame,wa=()=>performance.now(),Tt={tick:e=>xa(e),now:()=>wa(),tasks:new Set};function Se(e){Tt.tasks.forEach(t=>{t.c(e)||(Tt.tasks.delete(t),t.f())}),Tt.tasks.size!==0&&Tt.tick(Se)}function ka(e){let t;return Tt.tasks.size===0&&Tt.tick(Se),{promise:new Promise(a=>{Tt.tasks.add(t={c:e,f:a})}),abort(){Tt.tasks.delete(t)}}}function Vt(e,t){e.dispatchEvent(new CustomEvent(t))}function Ta(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("")}function me(e){const t={},a=e.split(";");for(const o of a){const[i,r]=o.split(":");if(!i||r===void 0)break;const s=Ta(i.trim());t[s]=r.trim()}return t}const Na=e=>e;function St(e,t,a,o){var i=(e&ra)!==0,r=(e&sa)!==0,s=i&&r,p=(e&la)!==0,h=s?"both":i?"in":"out",l,f=t.inert,v,_;function C(){var x=ca,H=Wt;fe(null),_e(null);try{return l??(l=a()(t,(o==null?void 0:o())??{},{direction:h}))}finally{fe(x),_e(H)}}var d={is_global:p,in(){var x;if(t.inert=f,!i){_==null||_.abort(),(x=_==null?void 0:_.reset)==null||x.call(_);return}r||v==null||v.abort(),Vt(t,"introstart"),v=oe(t,C(),_,1,()=>{Vt(t,"introend"),v==null||v.abort(),v=l=void 0})},out(x){if(!r){x==null||x(),l=void 0;return}t.inert=!0,Vt(t,"outrostart"),_=oe(t,C(),v,0,()=>{Vt(t,"outroend"),x==null||x()})},stop:()=>{v==null||v.abort(),_==null||_.abort()}},b=Wt;if((b.transitions??(b.transitions=[])).push(d),i&&_a){var u=p;if(!u){for(var m=b.parent;m&&m.f&ea;)for(;(m=m.parent)&&!(m.f&aa););u=!m||(m.f&na)!==0}u&&se(()=>{yt(()=>d.in())})}}function oe(e,t,a,o,i){var r=o===1;if(oa(t)){var s,p=!1;return ia(()=>{if(!p){var u=t({direction:r?"in":"out"});s=oe(e,u,a,o,i)}}),{abort:()=>{p=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(a==null||a.deactivate(),!(t!=null&&t.duration))return i(),{abort:Rt,deactivate:Rt,reset:Rt,t:()=>o};const{delay:h=0,css:l,tick:f,easing:v=Na}=t;var _=[];if(r&&a===void 0&&(f&&f(0,1),l)){var C=me(l(0,1));_.push(C,C)}var d=()=>1-o,b=e.animate(_,{duration:h});return b.onfinish=()=>{var u=(a==null?void 0:a.t())??1-o;a==null||a.abort();var m=o-u,x=t.duration*Math.abs(m),H=[];if(x>0){if(l)for(var I=Math.ceil(x/16.666666666666668),G=0;G<=I;G+=1){var U=u+m*v(G/I),R=l(U,1-U);H.push(me(R))}d=()=>{var D=b.currentTime;return u+m*v(D/x)},f&&ka(()=>{if(b.playState!=="running")return!1;var D=d();return f(D,1-D),!0})}b=e.animate(H,{duration:x,fill:"forwards"}),b.onfinish=()=>{d=()=>o,f==null||f(o,1-o),i()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=Rt)},deactivate:()=>{i=Rt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>d()}}function Ia(e,t,a,o=a){e.addEventListener(t,a);const i=e.__on_r;i?e.__on_r=()=>{i(),o()}:e.__on_r=o,va()}function te(e,t,a=t){var o=da();Ia(e,"input",()=>{var i=pe(e)?he(e.value):e.value;a(i),o&&i!==(i=t())&&(e.value=i??"")}),Ae(()=>{var i=t();if(ht&&e.defaultValue!==e.value){a(e.value);return}pe(e)&&i===he(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function pe(e){var t=e.type;return t==="number"||t==="range"}function he(e){return e===""?null:+e}const Pa=le(void 0);function Aa(e,t){if(!window.isSecureContext)return console.error("Clipboard action failed: app not running in secure context, see: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard"),{};const a=()=>{e.dispatchEvent(new CustomEvent("copyComplete"))},o=()=>{if(typeof t=="object"){if("element"in t){const i=document.querySelector(`[data-clipboard="${t.element}"]`);if(!i)throw new Error(`Missing HTMLElement with an attribute of [data-clipboard="${t.element}"]`);ee(i.innerHTML,"text/html").then(a);return}if("input"in t){const i=document.querySelector(`[data-clipboard="${t.input}"]`);if(!i)throw new Error(`Missing HTMLInputElement with an attribute of [data-clipboard="${t.input}"]`);ee(i.value).then(a);return}}ee(t).then(a)};return e.addEventListener("click",o),{update(i){t=i},destroy(){e.removeEventListener("click",o)}}}async function ee(e,t="text/plain"){navigator.clipboard.write?await navigator.clipboard.write([new ClipboardItem({[t]:new Blob([e],{type:t}),"text/plain":new Blob([e],{type:"text/plain"})})]):await new Promise(a=>{a(navigator.clipboard.writeText(String(e)))})}const Oa=e=>e;function Ba(e){const t=e-1;return t*t*t+1}function ge(e,{delay:t=0,duration:a=400,easing:o=Oa}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:a,easing:o,css:r=>`opacity: ${r*i}`}}function ye(e,{delay:t=0,duration:a=400,easing:o=Ba,axis:i="y"}={}){const r=getComputedStyle(e),s=+r.opacity,p=i==="y"?"height":"width",h=parseFloat(r[p]),l=i==="y"?["top","bottom"]:["left","right"],f=l.map(m=>`${m[0].toUpperCase()}${m.slice(1)}`),v=parseFloat(r[`padding${f[0]}`]),_=parseFloat(r[`padding${f[1]}`]),C=parseFloat(r[`margin${f[0]}`]),d=parseFloat(r[`margin${f[1]}`]),b=parseFloat(r[`border${f[0]}Width`]),u=parseFloat(r[`border${f[1]}Width`]);return{delay:t,duration:a,easing:o,css:m=>`overflow: hidden;opacity: ${Math.min(m*20,1)*s};${p}: ${m*h}px;padding-${l[0]}: ${m*v}px;padding-${l[1]}: ${m*_}px;margin-${l[0]}: ${m*C}px;margin-${l[1]}: ${m*d}px;border-${l[0]}-width: ${m*b}px;border-${l[1]}-width: ${m*u}px;`}}var Ea=M('<div data-testid="accordion"><!></div>');function Sa(e,t){const a=Dt(t,["children","$$slots","$$events","$$legacy"]);$t(t,!1);const o=zt(),i=()=>Et(Oe,"$prefersReducedMotionStore",o),r=$();let s=n(t,"autocollapse",8,!1),p=n(t,"width",8,"w-full"),h=n(t,"spacing",8,"space-y-1"),l=n(t,"disabled",8,!1),f=n(t,"padding",8,"py-2 px-4"),v=n(t,"hover",8,"hover:bg-primary-hover-token"),_=n(t,"rounded",8,"rounded-container-token"),C=n(t,"caretOpen",8,"rotate-180"),d=n(t,"caretClosed",8,""),b=n(t,"regionControl",8,""),u=n(t,"regionPanel",8,"space-y-4"),m=n(t,"regionCaret",8,""),x=n(t,"transitions",24,()=>!i()),H=n(t,"transitionIn",8,ye),I=n(t,"transitionInParams",24,()=>({duration:200})),G=n(t,"transitionOut",8,ye),U=n(t,"transitionOutParams",24,()=>({duration:200}));const R=le(null);T("active",R),T("autocollapse",s()),T("disabled",l()),T("padding",f()),T("hover",v()),T("rounded",_()),T("caretOpen",C()),T("caretClosed",d()),T("regionControl",b()),T("regionPanel",u()),T("regionCaret",m()),T("transitions",x()),T("transitionIn",H()),T("transitionInParams",I()),T("transitionOut",G()),T("transitionOutParams",U()),q(()=>(y(p()),y(h()),y(a)),()=>{L(r,`${p()} ${h()} ${a.class??""}`)}),Mt(),qt();var D=Ea(),tt=k(D);gt(tt,t,"default",{},null),w(D),W(()=>j(D,`accordion ${c(r)??""}`)),g(e,D),Ht()}function Lt(e,t){const{transition:a,params:o,enabled:i}=t;return i?a(e,o):"duration"in o?a(e,{duration:0}):{duration:0}}var La=M('<div class="accordion-lead"><!></div>'),$a=M("<div><!></div>"),Ma=M("<div><!></div>"),Ha=M('<div role="region"><!></div>'),Ra=M('<div data-testid="accordion-item"><button type="button"><!> <div class="accordion-summary flex-1"><!></div> <!></button> <!></div>');function ae(e,t){const a=Be(t),o=Dt(t,["children","$$slots","$$events","$$legacy"]);$t(t,!1);const i=zt(),r=()=>Et(G(),"$active",i),s=$(),p=$(),h=$(),l=$(),f=$(),v=$(),_=$(),C=ce();let d=n(t,"open",12,!1),b=n(t,"id",24,()=>String(Math.random()));const u="",m="text-start w-full flex items-center space-x-4",x="fill-current w-3 transition-transform duration-[200ms]",H="";let I=n(t,"autocollapse",24,()=>N("autocollapse")),G=n(t,"active",24,()=>N("active")),U=n(t,"disabled",24,()=>N("disabled")),R=n(t,"padding",24,()=>N("padding")),D=n(t,"hover",24,()=>N("hover")),tt=n(t,"rounded",24,()=>N("rounded")),_t=n(t,"caretOpen",24,()=>N("caretOpen")),et=n(t,"caretClosed",24,()=>N("caretClosed")),Ct=n(t,"regionControl",24,()=>N("regionControl")),at=n(t,"regionPanel",24,()=>N("regionPanel")),K=n(t,"regionCaret",24,()=>N("regionCaret")),nt=n(t,"transitions",24,()=>N("transitions")),st=n(t,"transitionIn",24,()=>N("transitionIn")),J=n(t,"transitionInParams",24,()=>N("transitionInParams")),Q=n(t,"transitionOut",24,()=>N("transitionOut")),B=n(t,"transitionOutParams",24,()=>N("transitionOutParams"));const F=`
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
<path d="M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" />
|
|
</svg>`;function Y(S){I()===!0?G().set(b()):d(!d()),ot(S)}function ot(S){const O=I()?r()===b():d();C("toggle",{event:S,id:b(),panelId:`accordion-panel-${b()}`,open:O,autocollapse:I()})}I()&&d()&&Y(),q(()=>(y(d()),y(I())),()=>{d()&&I()&&Y()}),q(()=>(y(I()),r(),y(b()),y(d())),()=>{L(s,I()?r()===b():d())}),q(()=>y(o),()=>{L(p,`${u} ${o.class??""}`)}),q(()=>(y(R()),y(D()),y(tt()),y(Ct())),()=>{L(h,`${m} ${R()} ${D()} ${tt()} ${Ct()}`)}),q(()=>(c(s),y(_t()),y(et())),()=>{L(l,c(s)?_t():et())}),q(()=>(y(K()),c(l)),()=>{L(f,`${x} ${K()} ${c(l)}`)}),q(()=>y(K()),()=>{L(v,`${x} ${K()}`)}),q(()=>(y(R()),y(tt()),y(at())),()=>{L(_,`${H} ${R()} ${tt()} ${at()}`)}),Mt(),qt();var Z=Ra(),E=k(Z),bt=k(E);dt(bt,()=>a.lead,S=>{var O=La(),V=k(O);gt(V,t,"lead",{},null),w(O),g(S,O)});var Nt=A(bt,2),wt=k(Nt);gt(wt,t,"summary",{},S=>{var O=ft("(summary)");g(S,O)}),w(Nt);var ut=A(Nt,2);dt(ut,()=>a.iconClosed||a.iconOpen,S=>{var O=$a(),V=k(O);dt(V,()=>c(s),X=>{var z=Pt(),lt=it(z);gt(lt,t,"iconClosed",{},vt=>{var rt=Pt(),P=it(rt);At(P,()=>F),g(vt,rt)}),g(X,z)},X=>{var z=Pt(),lt=it(z);gt(lt,t,"iconOpen",{},vt=>{var rt=Pt(),P=it(rt);At(P,()=>F),g(vt,rt)}),g(X,z)}),w(O),W(()=>j(O,`accordion-summary-icons ${c(v)??""}`)),g(S,O)},S=>{var O=Ma(),V=k(O);At(V,()=>F),w(O),W(()=>j(O,`accordion-summary-caret ${c(f)??""}`)),g(S,O)}),w(E);var Ot=A(E,2);dt(Ot,()=>c(s),S=>{var O=Ha(),V=k(O);gt(V,t,"content",{},X=>{var z=ft("(content)");g(X,z)}),w(O),W(()=>{j(O,`accordion-panel ${c(_)??""}`),ct(O,"id",`accordion-panel-${b()??""}`),ct(O,"aria-hidden",!c(s)),ct(O,"aria-labelledby",b())}),St(1,O,()=>Lt,()=>({transition:st(),params:J(),enabled:nt()})),St(2,O,()=>Lt,()=>({transition:Q(),params:B(),enabled:nt()})),g(S,O)}),w(Z),W(()=>{j(Z,`accordion-item ${c(p)??""}`),j(E,`accordion-control ${c(h)??""}`),ct(E,"id",b()),ct(E,"aria-expanded",c(s)),ct(E,"aria-controls",`accordion-panel-${b()??""}`),E.disabled=U()}),xt("click",E,Y),xt("click",E,function(S){Ut.call(this,t,S)}),xt("keydown",E,function(S){Ut.call(this,t,S)}),xt("keyup",E,function(S){Ut.call(this,t,S)}),xt("keypress",E,function(S){Ut.call(this,t,S)}),g(e,Z),Ht()}var Fa=M("<div><span> </span></div>"),Da=M("<header></header>"),za=M('<div data-testid="stepper"><!> <div><!></div></div>');function qa(e,t){const a=Dt(t,["children","$$slots","$$events","$$legacy"]);$t(t,!1);const o=zt(),i=()=>Et(Oe,"$prefersReducedMotionStore",o),r=()=>Et(F,"$state",o),s=$(),p=$(),h=$(),l=$(),f=$(),v=$(),_=ce();let C=n(t,"gap",8,"gap-4"),d=n(t,"stepTerm",8,"Step"),b=n(t,"badge",8,"variant-filled-surface"),u=n(t,"active",8,"variant-filled"),m=n(t,"border",8,"border-surface-400-500-token"),x=n(t,"start",8,0),H=n(t,"justify",8,"justify-between"),I=n(t,"buttonBack",8,"variant-ghost"),G=n(t,"buttonBackType",8,"button"),U=n(t,"buttonBackLabel",8,"← Back"),R=n(t,"buttonNext",8,"variant-filled"),D=n(t,"buttonNextType",8,"button"),tt=n(t,"buttonNextLabel",8,"Next →"),_t=n(t,"buttonComplete",8,"variant-filled-primary"),et=n(t,"buttonCompleteType",8,"button"),Ct=n(t,"buttonCompleteLabel",8,"Complete"),at=n(t,"regionHeader",8,""),K=n(t,"regionContent",8,""),nt=n(t,"transitions",24,()=>!i()),st=n(t,"transitionIn",8,ge),J=n(t,"transitionInParams",24,()=>({duration:100})),Q=n(t,"transitionOut",8,ge),B=n(t,"transitionOutParams",24,()=>({duration:100})),F=le({current:x(),total:0});async function Y(V,X){await new Promise(z=>setTimeout(z)),!V&&(Jt(F,yt(r).current+=1,yt(r)),_("next",{step:X,state:r()}),_("step",{step:X,state:r()}))}function ot(V){Jt(F,yt(r).current-=1,yt(r)),_("back",{step:V,state:r()}),_("step",{step:V,state:r()})}function Z(V){_("complete",{step:V,state:r()})}T("state",F),T("stepTerm",d()),T("gap",C()),T("justify",H()),T("onNext",Y),T("onBack",ot),T("onComplete",Z),T("buttonBack",I()),T("buttonBackType",G()),T("buttonBackLabel",U()),T("buttonNext",R()),T("buttonNextType",D()),T("buttonNextLabel",tt()),T("buttonComplete",_t()),T("buttonCompleteType",et()),T("buttonCompleteLabel",Ct()),T("transitions",nt()),T("transitionIn",st()),T("transitionInParams",J()),T("transitionOut",Q()),T("transitionOutParams",B());const E="space-y-4",bt="flex items-center border-t mt-[15px]",Nt="-mt-[15px] transition-all duration-300",wt="";q(()=>r(),()=>{L(s,V=>V===r().current)}),q(()=>y(a),()=>{L(p,`${E} ${a.class??""}`)}),q(()=>(y(m()),y(C()),y(at())),()=>{L(h,`${bt} ${m()} ${C()} ${at()}`)}),q(()=>{},()=>{L(l,`${Nt}`)}),q(()=>(c(s),y(u()),y(b())),()=>{L(f,V=>c(s)(V)?u():b())}),q(()=>y(K()),()=>{L(v,`${wt} ${K()}`)}),Mt(),qt();var ut=za(),Ot=k(ut);dt(Ot,()=>r().total,V=>{var X=Da();ha(X,5,()=>Array.from(Array(r().total).keys()),ma,(z,lt)=>{var vt=Fa();const rt=Ft(()=>c(s)(c(lt)));var P=k(vt);const mt=Ft(()=>`badge ${c(f)(c(lt))??""}`);var jt=k(P,!0);W(()=>Bt(jt,c(s)(c(lt))?`${d()} ${c(lt)+1}`:c(lt)+1)),w(P),w(vt),W(()=>{j(vt,`stepper-header-step ${c(l)??""}`),fa(vt,"flex-1",c(rt)),j(P,c(mt))}),g(z,vt)}),w(X),W(()=>j(X,`stepper-header ${c(h)??""}`)),St(1,X,()=>Lt,()=>({transition:st(),params:J(),enabled:nt()})),St(2,X,()=>Lt,()=>({transition:Q(),params:B(),enabled:nt()})),g(V,X)});var S=A(Ot,2),O=k(S);gt(O,t,"default",{},null),w(S),w(ut),W(()=>{j(ut,`stepper ${c(p)??""}`),j(S,`stepper-content ${c(v)??""}`)}),g(e,ut),Ht()}var ja=M('<div class="step-navigation-slot"><!></div>'),Ua=M("<button><!></button>"),Va=M('<svg class="w-3 aspect-square fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"></path></svg>'),Xa=M("<button><!> <span><!></span></button>"),Ga=M("<button><!></button>"),Ja=M("<div><!> <!></div>"),Wa=M('<div data-testid="step"><header><!></header> <div><!></div> <!></div>');function ne(e,t){const a=Be(t),o=Dt(t,["children","$$slots","$$events","$$legacy"]);$t(t,!1);const i=zt(),r=()=>Et(d(),"$state",i),s=$(),p=$(),h=$(),l=$();let f=n(t,"locked",8,!1),v=n(t,"regionHeader",8,""),_=n(t,"regionContent",8,""),C=n(t,"regionNavigation",8,""),d=n(t,"state",24,()=>N("state")),b=n(t,"stepTerm",24,()=>N("stepTerm")),u=n(t,"gap",24,()=>N("gap")),m=n(t,"justify",24,()=>N("justify")),x=n(t,"onNext",24,()=>N("onNext")),H=n(t,"onBack",24,()=>N("onBack")),I=n(t,"onComplete",24,()=>N("onComplete")),G=n(t,"buttonBack",24,()=>N("buttonBack")),U=n(t,"buttonBackType",24,()=>N("buttonBackType")),R=n(t,"buttonBackLabel",24,()=>N("buttonBackLabel")),D=n(t,"buttonNext",24,()=>N("buttonNext")),tt=n(t,"buttonNextType",24,()=>N("buttonNextType")),_t=n(t,"buttonNextLabel",24,()=>N("buttonNextLabel")),et=n(t,"buttonComplete",24,()=>N("buttonComplete")),Ct=n(t,"buttonCompleteType",24,()=>N("buttonCompleteType")),at=n(t,"buttonCompleteLabel",24,()=>N("buttonCompleteLabel")),K=n(t,"transitions",24,()=>N("transitions")),nt=n(t,"transitionIn",24,()=>N("transitionIn")),st=n(t,"transitionInParams",24,()=>N("transitionInParams")),J=n(t,"transitionOut",24,()=>N("transitionOut")),Q=n(t,"transitionOutParams",24,()=>N("transitionOutParams"));const B=r().total;Jt(d(),yt(r).total+=1,yt(r));const F="space-y-4",Y="text-2xl font-bold",ot="space-y-4",Z="flex";ba(()=>{Jt(d(),yt(r).total-=1,yt(r))}),q(()=>y(o),()=>{L(s,`${F} ${o.class??""}`)}),q(()=>y(v()),()=>{L(p,`${Y} ${v()}`)}),q(()=>y(_()),()=>{L(h,`${ot} ${_()}`)}),q(()=>(y(m()),y(u()),y(C())),()=>{L(l,`${Z} ${m()} ${u()} ${C()}`)}),Mt(),qt();var E=Pt(),bt=it(E);dt(bt,()=>B===r().current,Nt=>{var wt=Wa(),ut=k(wt),Ot=k(ut);gt(Ot,t,"header",{},X=>{var z=ft();W(()=>Bt(z,`${b()??""} ${B+1}`)),g(X,z)}),w(ut);var S=A(ut,2),O=k(S);gt(O,t,"default",{},X=>{var z=ft();W(()=>Bt(z,`(${b()??""} ${B+1} Content)`)),g(X,z)}),w(S);var V=A(S,2);dt(V,()=>r().total>1,X=>{var z=Ja(),lt=k(z);dt(lt,()=>B===0&&a.navigation,rt=>{var P=ja(),mt=k(P);gt(mt,t,"navigation",{},null),w(P),g(rt,P)},rt=>{var P=Ua(),mt=k(P);At(mt,R),w(P),W(()=>{ct(P,"type",U()),j(P,`btn ${G()??""}`),P.disabled=r().current===0}),xt("click",P,()=>H()(B)),g(rt,P)});var vt=A(lt,2);dt(vt,()=>B<r().total-1,rt=>{var P=Xa(),mt=k(P);dt(mt,f,Me=>{var He=Va();g(Me,He)});var jt=A(mt,2),$e=k(jt);At($e,_t),w(jt),w(P),W(()=>{ct(P,"type",tt()),j(P,`btn ${D()??""}`),P.disabled=f()}),xt("click",P,()=>x()(f(),B)),g(rt,P)},rt=>{var P=Ga(),mt=k(P);At(mt,at),w(P),W(()=>{ct(P,"type",Ct()),j(P,`btn ${et()??""}`),P.disabled=f()}),xt("click",P,()=>I()(B)),g(rt,P)}),w(z),W(()=>j(z,`step-navigation ${c(l)??""}`)),St(1,z,()=>Lt,()=>({transition:nt(),params:st(),enabled:K()})),St(2,z,()=>Lt,()=>({transition:J(),params:Q(),enabled:K()})),g(X,z)}),w(wt),W(()=>{j(wt,`step ${c(s)??""}`),j(ut,`step-header ${c(p)??""}`),j(S,`step-content ${c(h)??""}`)}),g(Nt,wt)}),g(e,E),Ht()}var Ya=M('<div data-testid="codeblock"><header><span class="codeblock-language"> </span> <button type="button"> </button></header> <pre><code><!></code></pre></div>');function Xt(e,t){const a=Dt(t,["children","$$slots","$$events","$$legacy"]);$t(t,!1);const o=zt(),i=()=>Et(Pa,"$storeHighlightJs",o),r=$(),s=ce();let p=n(t,"language",8,"plaintext"),h=n(t,"code",8,""),l=n(t,"lineNumbers",8,!1),f=n(t,"background",8,"bg-neutral-900/90"),v=n(t,"blur",8,""),_=n(t,"text",8,"text-sm"),C=n(t,"color",8,"text-white"),d=n(t,"rounded",8,"rounded-container-token"),b=n(t,"shadow",8,"shadow"),u=n(t,"button",8,"btn btn-sm variant-soft !text-white"),m=n(t,"buttonLabel",8,"Copy"),x=n(t,"buttonCopied",8,"👍");const H="overflow-hidden shadow",I="text-xs text-white/50 uppercase flex justify-between items-center p-2 pl-4",G="whitespace-pre-wrap break-all p-4 pt-1";let U=$(!1),R=$(h()),D=$(!1);function tt(at){return at==="js"?"javascript":at==="ts"?"typescript":at==="shell"?"terminal":at}function _t(){L(D,!0),setTimeout(()=>{L(D,!1)},2e3),s("copy")}q(()=>(i(),y(h()),y(p())),()=>{i()!==void 0&&(L(R,i().highlight(h(),{language:p()}).value.trim()),L(U,!0))}),q(()=>(y(l()),c(R)),()=>{l()&&(L(R,c(R).replace(/^/gm,()=>'<span class="line"></span> ')),L(U,!0))}),q(()=>(y(f()),y(v()),y(_()),y(C()),y(d()),y(b()),y(a)),()=>{L(r,`${H} ${f()} ${v()} ${_()} ${C()} ${d()} ${b()} ${a.class??""}`)}),Mt(),qt();var et=Pt(),Ct=it(et);dt(Ct,()=>p()&&h(),at=>{var K=Ya(),nt=k(K);j(nt,`codeblock-header ${I}`);var st=k(nt),J=k(st,!0);W(()=>Bt(J,tt(p()))),w(st);var Q=A(st,2),B=k(Q,!0);w(Q),w(nt);var F=A(nt,2);j(F,`codeblock-pre ${G}`);var Y=k(F),ot=k(Y);dt(ot,()=>c(U),Z=>{var E=Pt(),bt=it(E);At(bt,()=>c(R)),g(Z,E)},Z=>{var E=ft();W(()=>Bt(E,h().trim())),g(Z,E)}),w(Y),w(F),w(K),W(()=>{j(K,`codeblock ${c(r)??""}`),j(Q,`codeblock-btn ${u()??""}`),Bt(B,c(D)?x():m()),j(Y,`codeblock-code language-${p()??""} lineNumbers`)}),se(()=>xt("click",Q,_t)),Ca(Q,(Z,E)=>Aa(Z,E),h),g(at,K)}),g(e,et),Ht()}const Le="git.froth.zone",Ka="Froth Git",pt="pages.git.froth.zone",Qa="Froth Pages",Ce="150.136.112.69",xe="2603:c020:4004:62ee:d84c:2488:5bdb:99c1";var Za=M(`<div class="space-y-2"><p>Create a public repository named <code class="code">pages</code> to make the site available on
|
|
the main subdomain.</p> <hr></div> <p>Or, create a branch named <code class="code">pages</code> in any public repository.</p> <p><code class="code">git switch --orphan pages</code><br><code class="code">git rm --cached -r .</code></p> <!>`,1),tn=M('<a target="_blank" class="btn variant-filled-secondary">Create a repository!</a>'),en=M("<p>Push your static content. HTML, CSS, fonts, images or anything else.</p>"),an=M('<code class="code"></code> <!>',1),nn=M('<p>For apex domains where CNAME does not work.</p> <p><code class="code"></code><br><code class="code"></code></p> <!>',1),rn=M('<p>If CNAME will not work and ALIAS is not available</p> <p><code class="code"></code><br><code class="code"></code><br><code class="code"></code></p> <!>',1),on=M("<!> <!> <!>",1),sn=M(`<div class="space-y-4"><p>Access your new website with this link:</p> <code class="code"></code> <p>or, use this handy form that can navigate for you!</p> <div class="space-y-1"><div class="input-group input-group-divider grid-cols-4"><input title="Username" type="text" placeholder="Username (required)" required> <div class="input-group-shim"></div> <input class="input variant-form-material" title="Repository" type="text" placeholder="Repository"> <input class="input variant-form-material" title="Branch" type="text" placeholder="Branch"></div> <a class="btn variant-filled-secondary">Take me there!</a></div> <hr> <div><h3 class="h3">What about custom domains?</h3> <p>To use custom domains, create a <code class="code">.domains</code> in the root of your repository
|
|
with the domain name you would like to use.</p> <br> <p>Then, add a DNS record for that domain:</p> <em>(note): use the above form to auto-generate your DNS records!</em> <!></div></div>`),ln=M("<!> <!> <!>",1);function cn(e,t){$t(t,!1);const a=$(),o=$();let i=$(""),r=$(""),s=$("");function p(){window.open("https://docs.codeberg.org/codeberg-pages/","_blank")}q(()=>(c(i),c(r),c(s)),()=>{L(a,`https://${c(i)}.${pt}${c(r)?`/${c(r)}`:""}${c(s)?`/@${c(s)}`:""}`)}),q(()=>(c(s),c(r),c(i),pt),()=>{L(o,`${c(s)?`${c(s)}.`:""}${c(r)?`${c(r)}.`:""}${c(i)}.${pt}`)}),Mt(),qa(e,{buttonCompleteLabel:"Open Documentation",buttonComplete:"variant-filled-success",$$events:{complete:p},children:(h,l)=>{var f=ln(),v=it(f);ne(v,{children:(d,b)=>{var u=Za(),m=A(it(u),6);Xt(m,{buttonCopied:"Copied!",lineNumbers:!0,language:"shell",code:`git switch --orphan pages
|
|
git rm --cached -r .`}),g(d,u)},$$slots:{default:!0,navigation:(d,b)=>{var u=tn();ct(u,"href",`https://${Le}/repo/create`),g(d,u)},header:(d,b)=>{var u=ft("1 - Make a repository");g(d,u)}}});var _=A(v,2);ne(_,{children:(d,b)=>{var u=en();g(d,u)},$$slots:{default:!0,header:(d,b)=>{var u=ft("2 - Add your files");g(d,u)}}});var C=A(_,2);ne(C,{children:(d,b)=>{var u=sn(),m=A(k(u),2);m.textContent=`https://USERNAME.${pt}[/REPOSITORY][/@BRANCH]`;var x=A(m,4),H=k(x),I=k(H);Qt(I);var G=A(I,2);G.textContent=`.${pt}/`;var U=A(G,2);Qt(U);var R=A(U,2);Qt(R),w(H);var D=A(H,2);w(x);var tt=A(x,4),_t=A(k(tt),10);Sa(_t,{autocollapse:!0,children:(et,Ct)=>{var at=on(),K=it(at);ae(K,{open:!0,$$slots:{summary:(J,Q)=>{var B=ft("CNAME (Prefered)");g(J,B)},content:(J,Q)=>{var B=an(),F=it(B);F.textContent=`CNAME [[branch.]repo.]user.${pt}.`;var Y=A(F,2),ot=Ft(()=>`CNAME ${c(o)}.`);Xt(Y,{buttonCopied:"Copied!",language:"dns",get code(){return c(ot)}}),g(J,B)}}});var nt=A(K,2);ae(nt,{$$slots:{summary:(J,Q)=>{var B=ft("ALIAS (If available)");g(J,B)},content:(J,Q)=>{var B=nn(),F=A(it(B),2),Y=k(F);Y.textContent=`ALIAS ${pt}.`;var ot=A(Y,2);ot.textContent=`TXT $[[branch.]repo.]user.${pt}`,w(F);var Z=A(F,2),E=Ft(()=>`ALIAS ${pt}.
|
|
TXT ${c(o)}`);Xt(Z,{buttonCopied:"Copied!",language:"dns",get code(){return c(E)}}),g(J,B)}}});var st=A(nt,2);ae(st,{$$slots:{summary:(J,Q)=>{var B=ft("A/AAAA (Old reliable)");g(J,B)},content:(J,Q)=>{var B=rn(),F=A(it(B),2),Y=k(F);Y.textContent=`A ${Ce}`;var ot=A(Y,2);ot.textContent=`AAAA ${xe}`;var Z=A(ot,2);Z.textContent=`TXT $[[branch.]repo.]user.${pt}`,w(F);var E=A(F,2),bt=Ft(()=>`A ${Ce}
|
|
AAAA ${xe}
|
|
TXT ${c(o)}`);Xt(E,{buttonCopied:"Copied!",language:"dns",get code(){return c(bt)}}),g(J,B)}}}),g(et,at)},$$slots:{default:!0}}),w(tt),w(u),W(()=>{j(I,`input variant-form-material ${(c(i)?"":"input-error")??""}`),ct(D,"href",c(a))}),te(I,()=>c(i),et=>L(i,et)),te(U,()=>c(r),et=>L(r,et)),te(R,()=>c(s),et=>L(s,et)),g(d,u)},$$slots:{default:!0,header:(d,b)=>{var u=ft("3 - You're Done!");g(d,u)}}}),g(h,f)},$$slots:{default:!0}}),Ht()}var dn=M(`<div class="container mx-auto text-left p-4 md:text-center"><div class="relative z-[1] space-y-6 pt-32 pb-24"><div class="font-bold text-4xl tracking-tight">Host <span class="text-tertiary-500">static websites</span> </div> <p class="max-w-lg opacity-90 md:mx-auto">It's quick, easy, free & fast - just put your project's homepage, developer blog or web
|
|
experiment into a Git repository at <a class="anchor"></a> and we'll do the rest.</p> <br> <div class="flex flex-col gap-3 md:space-x-3 md:block mx-auto md:w-6/12"><!></div></div></div>`);function mn(e){var t=dn(),a=k(t),o=k(a),i=A(k(o),2);i.nodeValue=` with ${Qa}!`,w(o);var r=A(o,2),s=A(k(r));ct(s,"href",`https://${Le}`),s.textContent=Ka,ua(),w(r);var p=A(r,4),h=k(p);cn(h,{}),w(p),w(a),w(t),g(e,t)}export{mn as _};
|
|
//# sourceMappingURL=2.CUQ7tt0P.js.map
|