diff --git a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
index 93e7cb52..5c020e0b 100644
--- a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
+++ b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
@@ -62,7 +62,7 @@ import{html as e,css as a}from"../../lit/index.js";import{DDD as t}from"../d-d-d
overflow: hidden;
}
#expand {
- transform: rotate(0deg);
+ transform: rotate(var(--a11y-collapse-transform-deg,0deg));
transition: transform 0.75s ease;
}
#content {
@@ -90,7 +90,7 @@ import{html as e,css as a}from"../../lit/index.js";import{DDD as t}from"../d-d-d
}
@media screen {
#expand.rotated {
- transform: rotate(-90deg);
+ transform: rotate(var(--a11y-collapse-transform-rotated-deg, -90deg));
transition: transform 0.75s ease;
}
:host #content {
@@ -108,9 +108,9 @@ import{html as e,css as a}from"../../lit/index.js";import{DDD as t}from"../d-d-d
border-color: var(--a11y-collapse-border-color);
max-height: 0;
transition:
- visibility 0.75s ease,
- opacity 0.75s ease,
- max-height 0.75s ease;
+ visibility var(--a11y-collapse-transition-duration, 0.75s) ease,
+ opacity var(--a11y-collapse-transition-duration, 0.75s) ease,
+ max-height var(--a11y-collapse-transition-duration, 0.75s) ease;
overflow-y: hidden;
opacity: 1;
visibility: visible;
diff --git a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/rpg-character-toast/rpg-character-toast.js b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/rpg-character-toast/rpg-character-toast.js
index 9d8eb7c5..9d0a4f24 100644
--- a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/rpg-character-toast/rpg-character-toast.js
+++ b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/rpg-character-toast/rpg-character-toast.js
@@ -1,4 +1,4 @@
-import{css as t,html as e,unsafeCSS as i}from"../../../../lit/index.js";import{SimpleToastEl as a}from"../../../simple-toast/lib/simple-toast-el.js";import"../../../rpg-character/rpg-character.js";import"../../../future-terminal-text/future-terminal-text.js";const r=new URL("./images/SpeechBubbleL.svg",import.meta.url).href,l=new URL("./images/SpeechBubbleMiddle.svg",import.meta.url).href,s=new URL("./images/SpeechBubbleR.svg",import.meta.url).href;export class RPGCharacterToast extends a{static get tag(){return"rpg-character-toast"}constructor(){super(),this.awaitingMerlinInput=!1,this.windowControllers=new AbortController,this.text="Saved",this.closeText="Close",this.merlin=!1,this.classStyle="",this.future=!1,this.duration=3e3,this.accentColor="grey",this.dark=!1,this.eventCallback=null,this.fire=!1,this.hat="coffee",this.speed=500,this.walking=!1}static get styles(){return[super.styles,t`
+import{css as t,html as e,unsafeCSS as i}from"../../../../lit/index.js";import{SimpleToastEl as a}from"../../../simple-toast/lib/simple-toast-el.js";import"../../../rpg-character/rpg-character.js";import"../../../future-terminal-text/future-terminal-text.js";const r=new URL("./images/SpeechBubbleL.svg",import.meta.url).href,s=new URL("./images/SpeechBubbleMiddle.svg",import.meta.url).href,l=new URL("./images/SpeechBubbleR.svg",import.meta.url).href;export class RPGCharacterToast extends a{static get tag(){return"rpg-character-toast"}constructor(){super(),this.awaitingMerlinInput=!1,this.windowControllers=new AbortController,this.text="Saved",this.closeText="Close",this.merlin=!1,this.classStyle="",this.future=!1,this.duration=3e3,this.accentColor="grey",this.dark=!1,this.eventCallback=null,this.fire=!1,this.hat="coffee",this.speed=500,this.walking=!1}static get styles(){return[super.styles,t`
:host([opened]) {
display: block;
padding: 0;
@@ -33,7 +33,7 @@ import{css as t,html as e,unsafeCSS as i}from"../../../../lit/index.js";import{S
width: 100px;
margin: 6px 0px 0px;
padding: 16px;
- color: var(--simple-colors-default-theme-purple-6, purple);
+ color: var(--ddd-theme-default-wonderPurple);
vertical-align: middle;
display: inline-flex;
height: 100px;
@@ -85,7 +85,7 @@ import{css as t,html as e,unsafeCSS as i}from"../../../../lit/index.js";import{S
background-repeat: repeat-x;
background-image: var(
--rpg-character-toast-mid-background-image,
- url("${i(l)}")
+ url("${i(s)}")
);
padding: var(--rpg-character-toast-mid-padding, 54px 2px 0 2px);
display: block;
@@ -125,7 +125,7 @@ import{css as t,html as e,unsafeCSS as i}from"../../../../lit/index.js";import{S
.rightedge {
background-image: var(
--rpg-character-toast-right-background-image,
- url("${i(s)}")
+ url("${i(l)}")
);
width: 40px;
background-color: white;
diff --git a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-search-results.js b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-search-results.js
index 5c83a92e..3bdd2c8d 100644
--- a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-search-results.js
+++ b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-search-results.js
@@ -44,7 +44,7 @@ import{SimpleColors as e}from"../../../simple-colors/simple-colors.js";import{ht
margin-bottom: 8px;
}
:host([dark]) #noResult {
- color: var(--simple-colors-default-theme-grey-12, black);
+ color: var(--ddd-theme-default-coalyGray);
}
`]}render(){return t`
diff --git a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-steps.js b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-steps.js
index 7eac8272..c2b24077 100644
--- a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-steps.js
+++ b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-steps.js
@@ -1,4 +1,4 @@
-import{html as t,css as e,unsafeCSS as s}from"../../../../lit/index.js";import{SimpleColors as i}from"../../../simple-colors/simple-colors.js";import{autorun as a,toJS as o}from"../../../../mobx/dist/mobx.esm.js";import{store as p}from"./AppHaxStore.js";import{localStorageSet as n}from"../../../utils/utils.js";import"../../../../scrollable-component/index.js";import"../../../simple-icon/lib/simple-icon-lite.js";import{MicroFrontendRegistry as r}from"../../../micro-frontend-registry/micro-frontend-registry.js";import{enableServices as l}from"../../../micro-frontend-registry/lib/microServices.js";import"./app-hax-site-button.js";import"./app-hax-hat-progress.js";import"./app-hax-button.js";const c=new URL("../assets/images/Home.svg",import.meta.url).href,h=new URL("../assets/images/DisabledCircle.svg",import.meta.url).href,d=new URL("../assets/images/TransparentCircle.svg",import.meta.url).href,m=new URL("../assets/images/EnabledCircle.svg",import.meta.url).href,u={collection:["collections-theme","bootstrap-theme"],blog:["haxor-slevin"],course:["clean-one","clean-two","learn-two-theme"],website:["polaris-theme"],training:["training-theme"],import:["clean-one","clean-two","learn-two-theme"]};export class AppHaxSteps extends i{static get tag(){return"app-hax-steps"}constructor(){super(),this.unlockComingSoon=!1,this.unlockTerrible=!1,this.windowControllers=new AbortController,this.nameTyped="",this.stepRoutes=[],this._progressReady=!1,this.step=null,this.loaded=!1,this.themeNames=[],this.appSettings={},a((()=>{this.appSettings=o(p.appSettings);const t=o(p.site.structure);this.themeNames=Object.keys(this.appSettings.themes).filter((e=>t&&u[t]&&u[t].includes(e)))})),a((()=>{this.dark=o(p.darkMode)})),a((()=>{n("app-hax-step",o(p.step))})),a((()=>{n("app-hax-site",o(p.site)),this.step=p.stepTest(this.step)})),a((()=>{o(p.createSiteSteps)&&o(p.location)&&(this.step=p.stepTest(this.step))})),a((()=>{const t=o(p.routes);this.stepRoutes=t.filter((t=>t.step))}))}static get properties(){return{...super.properties,step:{type:Number,reflect:!0},stepRoutes:{type:Array},themeNames:{type:Array},unlockComingSoon:{type:Boolean,reflect:!0,attribute:"unlock-coming-soon"},unlockTerrible:{type:Boolean,reflect:!0,attribute:"unlock-terrible"},loaded:{type:Boolean,reflect:!0},appSettings:{type:Object},nameTyped:{type:String}}}chooseStructure(t){if(!t.target.comingSoon){const{value:e}=t.target;p.site.structure=e,"course"===e&&(p.site.type="own",p.site.theme="clean-one"),"blog"===e&&(p.site.type="own",p.site.theme="haxor-slevin"),"collection"===e&&(p.site.type="own",p.site.theme="collections-theme"),"website"===e&&(p.site.type="own",p.site.theme="polaris-theme"),"training"===e&&(p.site.type="own",p.site.theme="training-theme"),p.appEl.playSound("click2")}}chooseType(t){if(!t.target.comingSoon){const{type:e}=t.target;p.site.type=e,p.appEl.playSound("click2")}}async docxImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/lib/docx-file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("docx"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/docxToSite",a);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(".docx","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}async evoImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("zip"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/evolutionToSite",a,null,null,"?jwt="+o(p.AppHaxAPI.jwt));p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,this.nameTyped=n.data.filename.replace(".zip","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}async gbImport(t){if(!t.target.comingSoon){const{type:e}=t.target;let s=globalThis.prompt("URL for the Gitbook repo");l(["haxcms"]),this.setProcessingVisual();const i=await r.call("@haxcms/gitbookToSite",{md:s});p.toast("Processed!",300),200==i.status&&i.data&&""!=i.data.contents?(p.items=i.data.items,i.data.files&&(p.itemFiles=i.data.files),this.nameTyped=i.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async importFromURL(t){const{type:e,prompt:s,callback:i,param:a}=t.target;if(!t.target.comingSoon){let t=globalThis.prompt(s);l(["haxcms"]),this.setProcessingVisual();const o={};o[a]=t;const n=await r.call(i,o);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async notionImport(t){if(!t.target.comingSoon){const{type:e}=t.target;let s=globalThis.prompt("URL for the Github Notion repo");l(["haxcms"]),this.setProcessingVisual();const i=await r.call("@haxcms/notionToSite",{repoUrl:s});p.toast("Processed!",300),200==i.status&&i.data&&""!=i.data.contents?(p.items=i.data.items,i.data.files&&(p.itemFiles=i.data.files),this.nameTyped=i.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async pressbooksImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/lib/docx-file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("html"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/pressbooksToSite",a);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(".html","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}setProcessingVisual(){let t=globalThis.document.createElement("simple-icon-lite");t.icon="hax:loading",t.style.setProperty("--simple-icon-height","40px"),t.style.setProperty("--simple-icon-width","40px"),t.style.height="150px",t.style.marginLeft="8px",p.toast("Processing",6e4,{hat:"construction",slot:t})}chooseTheme(t){if(!t.target.comingSoon){const{value:e}=t.target;p.site.theme=e,p.appEl.playSound("click2")}}chooseName(){if(""!==this.nameTyped){const t=this.shadowRoot.querySelector("#sitename").value;p.site.name=t,p.appEl.playSound("click2")}}progressReady(t){t.detail&&(this._progressReady=!0,5===this.step&&setTimeout((()=>{this.shadowRoot.querySelector("app-hax-hat-progress").process()}),300))}updated(t){super.updated&&super.updated(t),t.forEach(((t,e)=>{if(4===this.step&&"step"===e&&this.shadowRoot&&(this.shadowRoot.querySelector("#sitename").value=o(p.site.name)),5===this.step&&"step"===e&&this.shadowRoot&&this._progressReady&&setTimeout((()=>{this.shadowRoot.querySelector("app-hax-hat-progress").process()}),600),"step"===e&&(p.step=this.step),"unlockTerrible"===e&&this[e]){Object.keys(u).forEach((t=>{u[t]=[...u[t],"terrible-themes","terrible-productionz-themes","terrible-outlet-themes","terrible-best-themes","terrible-resume-themes"]}));const t=o(p.site.structure);this.themeNames=Object.keys(this.appSettings.themes).filter((e=>t&&u[t]&&u[t].includes(e)))}}))}connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.maintainScroll.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("popstate",this.popstateListener.bind(this),{signal:this.windowControllers.signal})}disconnectedCallback(){this.windowControllers.abort(),super.disconnectedCallback()}popstateListener(t){if("popstate"===t.type&&null===t.state)try{setTimeout((()=>{const e=t.target.document.location.pathname.split("/").pop();if(e.includes("createSite")){const t=parseInt(e.replace("createSite-step-",""));tp.stepTest(t)&&(p.toast("Please select an option"),this.step=p.stepTest(t),this.shadowRoot.querySelector("#link-step-"+this.step).click())}}),0)}catch(t){}}maintainScroll(){this.shadowRoot&&this.step&&(this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"}),setTimeout((()=>{this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"})}),100))}firstUpdated(t){super.firstUpdated&&super.firstUpdated(t),setTimeout((()=>{null===this.step&&(this.step=1),this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"})}),100),a((()=>{if(o(p.createSiteSteps)&&o(p.appReady)){const t=o(p.location);t.route&&t.route.step&&t.route.name&&setTimeout((()=>{this.scrollToThing("#".concat(t.route.name),{behavior:"smooth",block:"start",inline:"nearest"}),4===t.route.step&&4===p.stepTest(4)&&setTimeout((()=>{this.shadowRoot.querySelector("#sitename").focus(),this.scrollToThing("#step-4",{behavior:"instant",block:"start",inline:"nearest"})}),800)}),300)}})),a((()=>{if(this.shadowRoot&&o(p.createSiteSteps)&&o(p.appReady)){const t=o(p.activeItem);t&&t.name&&t.step&&!this.__overrideProgression&&this.shadowRoot.querySelector("#link-".concat(t.name)).click()}}))}scrollToThing(t,e){const s=void 0!==globalThis.safari;this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step")&&this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step").classList.remove("active-step"),s?this.shadowRoot.querySelector(t).scrollIntoView():this.shadowRoot.querySelector(t).scrollIntoView(e),this.shadowRoot.querySelector(t).classList.add("active-step")}static get styles(){return[super.styles,e`
+import{html as t,css as e,unsafeCSS as s}from"../../../../lit/index.js";import{SimpleColors as i}from"../../../simple-colors/simple-colors.js";import{autorun as a,toJS as o}from"../../../../mobx/dist/mobx.esm.js";import{store as p}from"./AppHaxStore.js";import{localStorageSet as n}from"../../../utils/utils.js";import"../../../../scrollable-component/index.js";import"../../../simple-icon/lib/simple-icon-lite.js";import{MicroFrontendRegistry as r}from"../../../micro-frontend-registry/micro-frontend-registry.js";import{enableServices as l}from"../../../micro-frontend-registry/lib/microServices.js";import"./app-hax-site-button.js";import"./app-hax-hat-progress.js";import"./app-hax-button.js";const c=new URL("../assets/images/Home.svg",import.meta.url).href,h=new URL("../assets/images/DisabledCircle.svg",import.meta.url).href,d=new URL("../assets/images/TransparentCircle.svg",import.meta.url).href,m=new URL("../assets/images/EnabledCircle.svg",import.meta.url).href,u={collection:["collections-theme","bootstrap-theme"],blog:["haxor-slevin"],course:["clean-one","clean-two","learn-two-theme"],website:["polaris-flex-theme"],training:["training-theme"],import:["clean-one","clean-two","learn-two-theme"]};export class AppHaxSteps extends i{static get tag(){return"app-hax-steps"}constructor(){super(),this.unlockComingSoon=!1,this.unlockTerrible=!1,this.windowControllers=new AbortController,this.nameTyped="",this.stepRoutes=[],this._progressReady=!1,this.step=null,this.loaded=!1,this.themeNames=[],this.appSettings={},a((()=>{this.appSettings=o(p.appSettings);const t=o(p.site.structure);this.themeNames=Object.keys(this.appSettings.themes).filter((e=>t&&u[t]&&u[t].includes(e)))})),a((()=>{this.dark=o(p.darkMode)})),a((()=>{n("app-hax-step",o(p.step))})),a((()=>{n("app-hax-site",o(p.site)),this.step=p.stepTest(this.step)})),a((()=>{o(p.createSiteSteps)&&o(p.location)&&(this.step=p.stepTest(this.step))})),a((()=>{const t=o(p.routes);this.stepRoutes=t.filter((t=>t.step))}))}static get properties(){return{...super.properties,step:{type:Number,reflect:!0},stepRoutes:{type:Array},themeNames:{type:Array},unlockComingSoon:{type:Boolean,reflect:!0,attribute:"unlock-coming-soon"},unlockTerrible:{type:Boolean,reflect:!0,attribute:"unlock-terrible"},loaded:{type:Boolean,reflect:!0},appSettings:{type:Object},nameTyped:{type:String}}}chooseStructure(t){if(!t.target.comingSoon){const{value:e}=t.target;p.site.structure=e,"course"===e&&(p.site.type="own",p.site.theme="clean-one"),"blog"===e&&(p.site.type="own",p.site.theme="haxor-slevin"),"collection"===e&&(p.site.type="own",p.site.theme="collections-theme"),"website"===e&&(p.site.type="own",p.site.theme="polaris-flex-theme"),"training"===e&&(p.site.type="own",p.site.theme="training-theme"),p.appEl.playSound("click2")}}chooseType(t){if(!t.target.comingSoon){const{type:e}=t.target;p.site.type=e,p.appEl.playSound("click2")}}async docxImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/lib/docx-file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("docx"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/docxToSite",a);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(".docx","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}async evoImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("zip"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/evolutionToSite",a,null,null,"?jwt="+o(p.AppHaxAPI.jwt));p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,this.nameTyped=n.data.filename.replace(".zip","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}async gbImport(t){if(!t.target.comingSoon){const{type:e}=t.target;let s=globalThis.prompt("URL for the Gitbook repo");l(["haxcms"]),this.setProcessingVisual();const i=await r.call("@haxcms/gitbookToSite",{md:s});p.toast("Processed!",300),200==i.status&&i.data&&""!=i.data.contents?(p.items=i.data.items,i.data.files&&(p.itemFiles=i.data.files),this.nameTyped=i.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async importFromURL(t){const{type:e,prompt:s,callback:i,param:a}=t.target;if(!t.target.comingSoon){let t=globalThis.prompt(s);l(["haxcms"]),this.setProcessingVisual();const o={};o[a]=t;const n=await r.call(i,o);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async notionImport(t){if(!t.target.comingSoon){const{type:e}=t.target;let s=globalThis.prompt("URL for the Github Notion repo");l(["haxcms"]),this.setProcessingVisual();const i=await r.call("@haxcms/notionToSite",{repoUrl:s});p.toast("Processed!",300),200==i.status&&i.data&&""!=i.data.contents?(p.items=i.data.items,i.data.files&&(p.itemFiles=i.data.files),this.nameTyped=i.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("Repo did not return valid structure"))}}async pressbooksImport(t){if(!t.target.comingSoon){const{type:e}=t.target;import("../../../file-system-broker/lib/docx-file-system-broker.js").then((async t=>{l(["haxcms"]);const s=globalThis.FileSystemBroker.requestAvailability(),i=await s.loadFile("html"),a=new FormData;a.append("method","site"),a.append("type",o(p.site.structure)),a.append("upload",i),this.setProcessingVisual();const n=await r.call("@haxcms/pressbooksToSite",a);p.toast("Processed!",300),200==n.status&&n.data&&""!=n.data.contents?(p.items=n.data.items,n.data.files&&(p.itemFiles=n.data.files),this.nameTyped=n.data.filename.replace(".html","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((()=>{this.shadowRoot.querySelector("#sitename").value=this.nameTyped,this.shadowRoot.querySelector("#sitename").select()}),800),p.site.type=e,p.site.theme="clean-one",p.appEl.playSound("click2")):(p.appEl.playSound("error"),p.toast("File did not return valid HTML structure"))}))}}setProcessingVisual(){let t=globalThis.document.createElement("simple-icon-lite");t.icon="hax:loading",t.style.setProperty("--simple-icon-height","40px"),t.style.setProperty("--simple-icon-width","40px"),t.style.height="150px",t.style.marginLeft="8px",p.toast("Processing",6e4,{hat:"construction",slot:t})}chooseTheme(t){if(!t.target.comingSoon){const{value:e}=t.target;p.site.theme=e,p.appEl.playSound("click2")}}chooseName(){if(""!==this.nameTyped){const t=this.shadowRoot.querySelector("#sitename").value;p.site.name=t,p.appEl.playSound("click2")}}progressReady(t){t.detail&&(this._progressReady=!0,5===this.step&&setTimeout((()=>{this.shadowRoot.querySelector("app-hax-hat-progress").process()}),300))}updated(t){super.updated&&super.updated(t),t.forEach(((t,e)=>{if(4===this.step&&"step"===e&&this.shadowRoot&&(this.shadowRoot.querySelector("#sitename").value=o(p.site.name)),5===this.step&&"step"===e&&this.shadowRoot&&this._progressReady&&setTimeout((()=>{this.shadowRoot.querySelector("app-hax-hat-progress").process()}),600),"step"===e&&(p.step=this.step),"unlockTerrible"===e&&this[e]){Object.keys(u).forEach((t=>{u[t]=[...u[t],"terrible-themes","terrible-productionz-themes","terrible-outlet-themes","terrible-best-themes","terrible-resume-themes"]}));const t=o(p.site.structure);this.themeNames=Object.keys(this.appSettings.themes).filter((e=>t&&u[t]&&u[t].includes(e)))}}))}connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.maintainScroll.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("popstate",this.popstateListener.bind(this),{signal:this.windowControllers.signal})}disconnectedCallback(){this.windowControllers.abort(),super.disconnectedCallback()}popstateListener(t){if("popstate"===t.type&&null===t.state)try{setTimeout((()=>{const e=t.target.document.location.pathname.split("/").pop();if(e.includes("createSite")){const t=parseInt(e.replace("createSite-step-",""));tp.stepTest(t)&&(p.toast("Please select an option"),this.step=p.stepTest(t),this.shadowRoot.querySelector("#link-step-"+this.step).click())}}),0)}catch(t){}}maintainScroll(){this.shadowRoot&&this.step&&(this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"}),setTimeout((()=>{this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"})}),100))}firstUpdated(t){super.firstUpdated&&super.firstUpdated(t),setTimeout((()=>{null===this.step&&(this.step=1),this.scrollToThing(`#step-${this.step}`,{behavior:"instant",block:"start",inline:"nearest"})}),100),a((()=>{if(o(p.createSiteSteps)&&o(p.appReady)){const t=o(p.location);t.route&&t.route.step&&t.route.name&&setTimeout((()=>{this.scrollToThing("#".concat(t.route.name),{behavior:"smooth",block:"start",inline:"nearest"}),4===t.route.step&&4===p.stepTest(4)&&setTimeout((()=>{this.shadowRoot.querySelector("#sitename").focus(),this.scrollToThing("#step-4",{behavior:"instant",block:"start",inline:"nearest"})}),800)}),300)}})),a((()=>{if(this.shadowRoot&&o(p.createSiteSteps)&&o(p.appReady)){const t=o(p.activeItem);t&&t.name&&t.step&&!this.__overrideProgression&&this.shadowRoot.querySelector("#link-".concat(t.name)).click()}}))}scrollToThing(t,e){const s=void 0!==globalThis.safari;this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step")&&this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step").classList.remove("active-step"),s?this.shadowRoot.querySelector(t).scrollIntoView():this.shadowRoot.querySelector(t).scrollIntoView(e),this.shadowRoot.querySelector(t).classList.add("active-step")}static get styles(){return[super.styles,e`
:host {
display: block;
}
diff --git a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/code-editor/code-editor.js b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/code-editor/code-editor.js
index e216005f..f962a475 100644
--- a/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/code-editor/code-editor.js
+++ b/app/unbundled-webcomponents/app/dist/build/es6/node_modules/@haxtheweb/code-editor/code-editor.js
@@ -2,7 +2,7 @@
* Copyright 2019 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
-import{LitElement as e,html as t,css as o}from"../../lit/index.js";import{SchemaBehaviors as i}from"../schema-behaviors/schema-behaviors.js";import"./lib/monaco-element/monaco-element.js";import{ReplaceWithPolyfill as a}from"../utils/utils.js";Element.prototype.replaceWith||(Element.prototype.replaceWith=a),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=a),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=a);class CodeEditor extends(i(e)){static get styles(){return[o`
+import{LitElement as e,html as t,css as o}from"../../lit/index.js";import{SchemaBehaviors as i}from"../schema-behaviors/schema-behaviors.js";import"./lib/monaco-element/monaco-element.js";import{ReplaceWithPolyfill as r}from"../utils/utils.js";Element.prototype.replaceWith||(Element.prototype.replaceWith=r),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=r),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=r);class CodeEditor extends(i(e)){static get styles(){return[o`
:host {
display: flex;
flex-direction: column;
@@ -128,4 +128,4 @@ import{LitElement as e,html as t,css as o}from"../../lit/index.js";import{Schema
Check it out on code pen:
`:""}
- `}getTheme(e){let t=globalThis.matchMedia&&"auto"==e,o=t&&globalThis.matchMedia("(prefers-color-scheme: dark)").matches,i=t&&globalThis.matchMedia("(prefers-color-scheme: light)").matches,a=o?"vs-dark":i?"vs":e&&"auto"!=e?e:"vs-dark";return this.setAttribute("theme-colors",a),a}get placeholder(){return`${this.editorValue||this.innerHTML}`.replace(/\s*<\/?template.*>\s*/gm,"")}static get tag(){return"code-editor"}static get properties(){return{...super.properties,libPath:{type:String},title:{type:String},showCodePen:{type:Boolean,reflect:!0,attribute:"show-code-pen"},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},codePenData:{type:Object,attribute:"code-pen-data"},editorValue:{type:String,attribute:"editor-value"},value:{type:String},theme:{type:String,reflect:!0,attribute:"theme"},mode:{type:String},language:{type:String},fontSize:{type:Number,attribute:"font-size"},wordWrap:{type:Boolean,attribute:"word-wrap"},autofocus:{type:Boolean,reflect:!0},hideLineNumbers:{type:Boolean,attribute:"hide-line-numbers"},focused:{type:Boolean,reflect:!0},tabSize:{type:Number,attribute:"tab-size"},ready:{type:Boolean}}}updated(e){super.updated&&super.updated(e),e.forEach(((e,t)=>{"editorValue"==t&&this._editorValueChanged(this[t]),"mode"==t&&this._modeChanged(this[t],e),"showCodePen"===t&&(this.dispatchEvent(new CustomEvent("show-code-pen-changed",{detail:{value:this[t]}})),this[t]&&!globalThis.customElements.get("code-pen-button")&&import("./lib/code-pen-button.js")),"value"===t&&this.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this[t]}})),"focused"===t&&this.dispatchEvent(new CustomEvent("focused-changed",{detail:{focused:this[t]}})),["title","value"].includes(t)&&(this.codePenData=this._computeCodePenData(this.title,this.value))}))}_computeCodePenData(e,t){return{title:e,html:t,head:'