PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | assets/js/apps/comments.min.js +8 -8 1.1.10 → 1.1.12 View file →
@@ -1,5 +1,5 @@
1 -var openStationApp_comments=function(w){"use strict";function h(n,...e){return{__wpdHtml:!0,strings:n,values:e}}function be(n){return!!n&&n.__wpdHtml===!0}const $e="$$wpd$$",_=/\$\$wpd\$\$(\d+)\$\$/g,_e="$$wpd-node$$",ye=/^\$\$wpd-node\$\$(\d+)\$\$$/,ke=new Set(["style","script","textarea","title"]);function we(n){let e="",t=!1,s=null,o=!1,i=null,r="",c=!1;for(let d=0;d<n.length;d++){const u=n[d];e+=u;for(let m=0;m<u.length;m++){const f=u[m];if(o){u.startsWith("-->",m)&&(o=!1,m+=2);continue}if(i!==null){f==="<"&&u[m+1]==="/"&&u.slice(m+2,m+2+i.length).toLowerCase()===i&&(m+=1+i.length,i=null,t=!0,c=!1,r="");continue}if(s!==null){f===s&&(s=null);continue}if(t){f==='"'||f==="'"?(s=f,c=!1):f===">"?(t=!1,c=!1,ke.has(r)&&(i=r),r=""):c&&(/[a-zA-Z0-9-]/.test(f)?r+=f.toLowerCase():c=!1);continue}if(u.startsWith("<!--",m)){o=!0,m+=3;continue}const v=u[m+1]??"";f==="<"&&/[a-zA-Z/!]/.test(v)&&(t=!0,r="",c=/[a-zA-Z]/.test(v))}d<n.length-1&&(e+=t||o||i!==null?`${$e}${d}$$`:`<!--${_e}${d}$$-->`)}return e}const X=new WeakMap;function G(n){const e=X.get(n);if(e)return e;const t=document.createElement("template");t.innerHTML=we(n);const s=[],o=(c,d)=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;for(const v of Array.from(f.attributes)){const $=v.name,p=v.value,b=$[0];if(_.test(p))if(_.lastIndex=0,b==="@"){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"event",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else if(b==="."){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"prop",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else if(b==="?"){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"bool",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else{const g=[],y=[];let k=0,M;for(_.lastIndex=0;(M=_.exec(p))!==null;)g.push(p.slice(k,M.index)),y.push(Number(M[1])),k=M.index+M[0].length;g.push(p.slice(k)),s.push({path:d,kind:"attr",name:$,template:g,valueIndices:y}),f.setAttribute($,"")}}}const u=Array.from(c.childNodes);let m=0;for(let f=0;f<u.length;f++){const v=u[f],$=f+m;if(v.nodeType===Node.COMMENT_NODE){const p=ye.exec(v.data);if(p){const b=document.createTextNode("");v.parentNode.replaceChild(b,v),s.push({path:[...d,$],kind:"node",valueIndex:Number(p[1])})}continue}if(v.nodeType===Node.TEXT_NODE){const p=v.textContent||"";if(!_.test(p)){_.lastIndex=0;continue}_.lastIndex=0;const b=v.parentNode;let g=0,y;const k=[],M=[];for(_.lastIndex=0;(y=_.exec(p))!==null;){y.index>g&&k.push(document.createTextNode(p.slice(g,y.index)));const Q=document.createTextNode("");k.push(Q),M.push({path:[...d,$+k.length-1],kind:"node",valueIndex:Number(y[1])}),g=y.index+y[0].length}g<p.length&&k.push(document.createTextNode(p.slice(g)));for(const Q of k)b.insertBefore(Q,v);b.removeChild(v),m+=k.length-1,s.push(...M)}else o(v,[...d,$])}};o(t.content,[]);const r={template:t,buildParts:c=>{const d=[];for(const u of s){let m=c;for(const f of u.path)m=m.childNodes[f];u.kind==="node"?d.push({kind:"node",valueIndex:u.valueIndex,child:{anchor:m,state:null}}):u.kind==="attr"?d.push({kind:"attr",element:m,name:u.name,template:u.template,valueIndices:u.valueIndices}):u.kind==="event"?d.push({kind:"event",valueIndex:u.valueIndex,element:m,name:u.name}):u.kind==="prop"?d.push({kind:"prop",valueIndex:u.valueIndex,element:m,name:u.name}):u.kind==="bool"&&d.push({kind:"bool",valueIndex:u.valueIndex,element:m,name:u.name})}return d}};return X.set(n,r),r}const Y=new WeakMap;function xe(n,e){for(const t of n.nodes)if(t.parentNode!==e)return!1;return!0}function J(n,e){const t=Y.get(e);if(t&&t.strings===n.strings&&xe(t,e)){I(t.parts,n.values);return}const s=G(n.strings),o=s.template.content.cloneNode(!0),i=s.buildParts(o),r=Array.from(o.childNodes);for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(o),I(i,n.values),Y.set(e,{strings:n.strings,parts:i,nodes:r})}function I(n,e){for(const t of n)if(t.kind==="node")V(t.child,e[t.valueIndex]);else if(t.kind==="attr"){let s=t.template[0];for(let o=0;o<t.valueIndices.length;o++)s+=ee(e[t.valueIndices[o]]),s+=t.template[o+1];s!==t.last&&(t.last=s,s===""?t.element.removeAttribute(t.name):t.element.setAttribute(t.name,s))}else if(t.kind==="event"){const s=e[t.valueIndex];s!==t.current&&(t.current&&t.element.removeEventListener(t.name,t.current),s&&t.element.addEventListener(t.name,s),t.current=s)}else if(t.kind==="prop"){const s=e[t.valueIndex];s!==t.last&&(t.last=s,t.element[t.name]=s)}else if(t.kind==="bool"){const s=!!e[t.valueIndex];s!==t.last&&(t.last=s,s?t.element.setAttribute(t.name,""):t.element.removeAttribute(t.name))}}function V(n,e){if(e==null||e===!1){n.state&&(x(n.state),n.state=null);return}if(Array.isArray(e)){Ae(n,e);return}if(be(e)){Se(n,e);return}if(e instanceof Node){Ce(n,e);return}Me(n,ee(e))}function Ce(n,e){const t=n.state;t?.shape==="node"&&t.node===e||(t&&x(t),S(n,[e]),n.state={shape:"node",node:e})}function Me(n,e){const t=n.state;if(t?.shape==="text"){t.text!==e&&(t.node.textContent=e,t.text=e);return}t&&x(t);const s=document.createTextNode(e);S(n,[s]),n.state={shape:"text",node:s,text:e}}function Se(n,e){const t=n.state;if(t?.shape==="template"&&t.strings===e.strings){I(t.parts,e.values);return}t&&x(t);const s=G(e.strings),o=s.template.content.cloneNode(!0),i=s.buildParts(o),r=Array.from(o.childNodes);S(n,[o]),I(i,e.values),n.state={shape:"template",strings:e.strings,parts:i,nodes:r}}function Ae(n,e){const t=n.state;if(t?.shape==="array"){const o=Math.min(t.entries.length,e.length);for(let i=0;i<o;i++)V(t.entries[i],e[i]);if(e.length<t.entries.length){for(let i=e.length;i<t.entries.length;i++){const r=t.entries[i];r.state&&x(r.state),r.anchor.remove()}t.entries.length=e.length}else for(let i=t.entries.length;i<e.length;i++){const r=document.createTextNode("");S(n,[r]);const c={anchor:r,state:null};V(c,e[i]),t.entries.push(c)}return}t&&x(t);const s=[];for(const o of e){const i=document.createTextNode("");S(n,[i]);const r={anchor:i,state:null};V(r,o),s.push(r)}n.state={shape:"array",entries:s}}function S(n,e){const t=n.anchor.parentNode;if(t)for(const s of e)t.insertBefore(s,n.anchor)}function x(n){if(n.shape==="text"){n.node.remove();return}if(n.shape==="template"){for(const e of n.parts)e.kind==="node"&&e.child.state&&(x(e.child.state),e.child.state=null);for(const e of n.nodes)e.parentNode&&e.parentNode.removeChild(e);return}if(n.shape==="node"){n.node.parentNode&&n.node.parentNode.removeChild(n.node);return}for(const e of n.entries)e.state&&x(e.state),e.anchor.remove()}function ee(n){return n==null||n===!1?"":String(n)}const C=class C extends HTMLElement{constructor(){super(),this._renderScheduled=!1,this._propValues={},this.constructor.shadow?(this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot):this._renderRoot=this,this._installPropAccessors()}static get observedAttributes(){return this.props.map(ne)}connectedCallback(){this._adoptStyles(),this.requestUpdate()}attributeChangedCallback(e,t,s){if(t===s)return;const o=ze(e);this._propValues[o]=s,this.requestUpdate()}get classNames(){return Array.from(this.classList)}set classNames(e){if(e==null){this.removeAttribute("class");return}const s=(Array.isArray(e)?e:String(e).split(/\s+/)).map(o=>String(o).trim()).filter(o=>o!=="");this.className=s.join(" ")}requestUpdate(){this._scheduleRender()}emit(e,t){return this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}_installPropAccessors(){const e=this.constructor;for(const t of e.props){if(Object.getOwnPropertyDescriptor(this,t))continue;const s=ne(t);Object.defineProperty(this,t,{get:()=>t in this._propValues?this._propValues[t]:this.getAttribute(s),set:o=>{let i;o==null||o===!1?i=null:o===!0?i="":i=String(o),this._propValues[t]=i,i===null?this.removeAttribute(s):this.setAttribute(s,i),this.requestUpdate()},enumerable:!0,configurable:!0})}}_scheduleRender(){this._renderScheduled||!this.isConnected||(this._renderScheduled=!0,queueMicrotask(()=>{this._renderScheduled=!1,this.isConnected&&J(this.render(),this._renderRoot)}))}_adoptStyles(){const e=this.constructor;if(e.styles.length!==0)if(e.shadow&&this.shadowRoot){const t=e.styles.map(s=>s.sheet).filter(s=>s!==null);if(this.shadowRoot.adoptedStyleSheets=t,t.length!==e.styles.length){for(const s of e.styles)if(!s.sheet){const o=document.createElement("style");o.textContent=s.cssText,this.shadowRoot.appendChild(o)}}}else this._adoptLightStyles(e)}_adoptLightStyles(e){if(!C._lightStylesAdopted.has(e)){C._lightStylesAdopted.add(e);for(const t of e.styles){const s=document.createElement("style");s.dataset.osUi=this.tagName.toLowerCase(),s.textContent=t.cssText,document.head.appendChild(s)}}}};C.props=[],C.styles=[],C.shadow=!0,C._lightStylesAdopted=new WeakSet;let R=C;function te(n,e){customElements.get(n)||customElements.define(n,e)}function ne(n){return n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ze(n){return n.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const Te=(()=>{try{return typeof new CSSStyleSheet().replaceSync=="function"}catch{return!1}})();function se(n,...e){let t=n[0];for(let s=1;s<n.length;s++){const o=e[s-1];if(typeof o=="string"||typeof o=="number")t+=String(o);else if(o&&o.__wpdCss)t+=o.cssText;else throw new TypeError("[os-ui] css`` interpolations must be strings, numbers, or other css`` results. Got: "+typeof o);t+=n[s]}if(Te){const s=new CSSStyleSheet;return s.replaceSync(t),{__wpdCss:!0,sheet:s,cssText:t}}return{__wpdCss:!0,sheet:null,cssText:t}}const Ee=se`:host{display:grid;grid-template-rows:auto auto minmax( 0,1fr ) auto;flex:1 1 auto;min-inline-size:0;min-block-size:0;block-size:100%;overflow:hidden}:host( [ hidden ] ){display:none}.content{min-inline-size:0;min-block-size:0;overflow:auto}:host( [ contained ] ) .content{display:flex;flex-direction:column;overflow:hidden}::slotted( * ){min-inline-size:0}:host( [ contained ] ) slot:not( [ name ] )::slotted( * ){flex:1 1 auto;min-block-size:0}`,E=class E extends R{render(){return h`<div><slot name="header"></slot></div>
1 +var openStationApp_comments=function(w){"use strict";function h(n,...e){return{__wpdHtml:!0,strings:n,values:e}}function be(n){return!!n&&n.__wpdHtml===!0}const $e="$$wpd$$",_=/\$\$wpd\$\$(\d+)\$\$/g,_e="$$wpd-node$$",ye=/^\$\$wpd-node\$\$(\d+)\$\$$/,ke=new Set(["style","script","textarea","title"]);function we(n){let e="",t=!1,s=null,o=!1,i=null,r="",c=!1;for(let d=0;d<n.length;d++){const u=n[d];e+=u;for(let m=0;m<u.length;m++){const f=u[m];if(o){u.startsWith("-->",m)&&(o=!1,m+=2);continue}if(i!==null){f==="<"&&u[m+1]==="/"&&u.slice(m+2,m+2+i.length).toLowerCase()===i&&(m+=1+i.length,i=null,t=!0,c=!1,r="");continue}if(s!==null){f===s&&(s=null);continue}if(t){f==='"'||f==="'"?(s=f,c=!1):f===">"?(t=!1,c=!1,ke.has(r)&&(i=r),r=""):c&&(/[a-zA-Z0-9-]/.test(f)?r+=f.toLowerCase():c=!1);continue}if(u.startsWith("<!--",m)){o=!0,m+=3;continue}const v=u[m+1]??"";f==="<"&&/[a-zA-Z/!]/.test(v)&&(t=!0,r="",c=/[a-zA-Z]/.test(v))}d<n.length-1&&(e+=t||o||i!==null?`${$e}${d}$$`:`<!--${_e}${d}$$-->`)}return e}const X=new WeakMap;function G(n){const e=X.get(n);if(e)return e;const t=document.createElement("template");t.innerHTML=we(n);const s=[],o=(c,d)=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;for(const v of Array.from(f.attributes)){const $=v.name,p=v.value,b=$[0];if(_.test(p))if(_.lastIndex=0,b==="@"){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"event",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else if(b==="."){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"prop",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else if(b==="?"){const g=_.exec(p);_.lastIndex=0,s.push({path:d,kind:"bool",name:$.slice(1),valueIndex:g?Number(g[1]):0}),f.removeAttribute($)}else{const g=[],y=[];let k=0,M;for(_.lastIndex=0;(M=_.exec(p))!==null;)g.push(p.slice(k,M.index)),y.push(Number(M[1])),k=M.index+M[0].length;g.push(p.slice(k)),s.push({path:d,kind:"attr",name:$,template:g,valueIndices:y}),f.setAttribute($,"")}}}const u=Array.from(c.childNodes);let m=0;for(let f=0;f<u.length;f++){const v=u[f],$=f+m;if(v.nodeType===Node.COMMENT_NODE){const p=ye.exec(v.data);if(p){const b=document.createTextNode("");v.parentNode.replaceChild(b,v),s.push({path:[...d,$],kind:"node",valueIndex:Number(p[1])})}continue}if(v.nodeType===Node.TEXT_NODE){const p=v.textContent||"";if(!_.test(p)){_.lastIndex=0;continue}_.lastIndex=0;const b=v.parentNode;let g=0,y;const k=[],M=[];for(_.lastIndex=0;(y=_.exec(p))!==null;){y.index>g&&k.push(document.createTextNode(p.slice(g,y.index)));const Q=document.createTextNode("");k.push(Q),M.push({path:[...d,$+k.length-1],kind:"node",valueIndex:Number(y[1])}),g=y.index+y[0].length}g<p.length&&k.push(document.createTextNode(p.slice(g)));for(const Q of k)b.insertBefore(Q,v);b.removeChild(v),m+=k.length-1,s.push(...M)}else o(v,[...d,$])}};o(t.content,[]);const r={template:t,buildParts:c=>{const d=[];for(const u of s){let m=c;for(const f of u.path)m=m.childNodes[f];u.kind==="node"?d.push({kind:"node",valueIndex:u.valueIndex,child:{anchor:m,state:null}}):u.kind==="attr"?d.push({kind:"attr",element:m,name:u.name,template:u.template,valueIndices:u.valueIndices}):u.kind==="event"?d.push({kind:"event",valueIndex:u.valueIndex,element:m,name:u.name}):u.kind==="prop"?d.push({kind:"prop",valueIndex:u.valueIndex,element:m,name:u.name}):u.kind==="bool"&&d.push({kind:"bool",valueIndex:u.valueIndex,element:m,name:u.name})}return d}};return X.set(n,r),r}const Y=new WeakMap;function xe(n,e){for(const t of n.nodes)if(t.parentNode!==e)return!1;return!0}function J(n,e){const t=Y.get(e);if(t&&t.strings===n.strings&&xe(t,e)){I(t.parts,n.values);return}const s=G(n.strings),o=s.template.content.cloneNode(!0),i=s.buildParts(o),r=Array.from(o.childNodes);for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(o),I(i,n.values),Y.set(e,{strings:n.strings,parts:i,nodes:r})}function I(n,e){for(const t of n)if(t.kind==="node")V(t.child,e[t.valueIndex]);else if(t.kind==="attr"){let s=t.template[0];for(let o=0;o<t.valueIndices.length;o++)s+=ee(e[t.valueIndices[o]]),s+=t.template[o+1];s!==t.last&&(t.last=s,s===""?t.element.removeAttribute(t.name):t.element.setAttribute(t.name,s))}else if(t.kind==="event"){const s=e[t.valueIndex];s!==t.current&&(t.current&&t.element.removeEventListener(t.name,t.current),s&&t.element.addEventListener(t.name,s),t.current=s)}else if(t.kind==="prop"){const s=e[t.valueIndex];s!==t.last&&(t.last=s,t.element[t.name]=s)}else if(t.kind==="bool"){const s=!!e[t.valueIndex];s!==t.last&&(t.last=s,s?t.element.setAttribute(t.name,""):t.element.removeAttribute(t.name))}}function V(n,e){if(e==null||e===!1){n.state&&(x(n.state),n.state=null);return}if(Array.isArray(e)){Ae(n,e);return}if(be(e)){Se(n,e);return}if(e instanceof Node){Ce(n,e);return}Me(n,ee(e))}function Ce(n,e){const t=n.state;t?.shape==="node"&&t.node===e||(t&&x(t),A(n,[e]),n.state={shape:"node",node:e})}function Me(n,e){const t=n.state;if(t?.shape==="text"){t.text!==e&&(t.node.textContent=e,t.text=e);return}t&&x(t);const s=document.createTextNode(e);A(n,[s]),n.state={shape:"text",node:s,text:e}}function Se(n,e){const t=n.state;if(t?.shape==="template"&&t.strings===e.strings){I(t.parts,e.values);return}t&&x(t);const s=G(e.strings),o=s.template.content.cloneNode(!0),i=s.buildParts(o),r=Array.from(o.childNodes);A(n,[o]),I(i,e.values),n.state={shape:"template",strings:e.strings,parts:i,nodes:r}}function Ae(n,e){const t=n.state;if(t?.shape==="array"){const o=Math.min(t.entries.length,e.length);for(let i=0;i<o;i++)V(t.entries[i],e[i]);if(e.length<t.entries.length){for(let i=e.length;i<t.entries.length;i++){const r=t.entries[i];r.state&&x(r.state),r.anchor.remove()}t.entries.length=e.length}else for(let i=t.entries.length;i<e.length;i++){const r=document.createTextNode("");A(n,[r]);const c={anchor:r,state:null};V(c,e[i]),t.entries.push(c)}return}t&&x(t);const s=[];for(const o of e){const i=document.createTextNode("");A(n,[i]);const r={anchor:i,state:null};V(r,o),s.push(r)}n.state={shape:"array",entries:s}}function A(n,e){const t=n.anchor.parentNode;if(t)for(const s of e)t.insertBefore(s,n.anchor)}function x(n){if(n.shape==="text"){n.node.remove();return}if(n.shape==="template"){for(const e of n.parts)e.kind==="node"&&e.child.state&&(x(e.child.state),e.child.state=null);for(const e of n.nodes)e.parentNode&&e.parentNode.removeChild(e);return}if(n.shape==="node"){n.node.parentNode&&n.node.parentNode.removeChild(n.node);return}for(const e of n.entries)e.state&&x(e.state),e.anchor.remove()}function ee(n){return n==null||n===!1?"":String(n)}const C=class C extends HTMLElement{constructor(){super(),this._renderScheduled=!1,this._propValues={},this.constructor.shadow?(this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot):this._renderRoot=this,this._installPropAccessors()}static get observedAttributes(){return this.props.map(ne)}connectedCallback(){this._adoptStyles(),this.requestUpdate()}attributeChangedCallback(e,t,s){if(t===s)return;const o=ze(e);this._propValues[o]=s,this.requestUpdate()}get classNames(){return Array.from(this.classList)}set classNames(e){if(e==null){this.removeAttribute("class");return}const s=(Array.isArray(e)?e:String(e).split(/\s+/)).map(o=>String(o).trim()).filter(o=>o!=="");this.className=s.join(" ")}requestUpdate(){this._scheduleRender()}emit(e,t){return this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}_installPropAccessors(){const e=this.constructor;for(const t of e.props){if(Object.getOwnPropertyDescriptor(this,t))continue;const s=ne(t);Object.defineProperty(this,t,{get:()=>t in this._propValues?this._propValues[t]:this.getAttribute(s),set:o=>{let i;o==null||o===!1?i=null:o===!0?i="":i=String(o),this._propValues[t]=i,i===null?this.removeAttribute(s):this.setAttribute(s,i),this.requestUpdate()},enumerable:!0,configurable:!0})}}_scheduleRender(){this._renderScheduled||!this.isConnected||(this._renderScheduled=!0,queueMicrotask(()=>{this._renderScheduled=!1,this.isConnected&&J(this.render(),this._renderRoot)}))}_adoptStyles(){const e=this.constructor;if(e.styles.length!==0)if(e.shadow&&this.shadowRoot){const t=e.styles.map(s=>s.sheet).filter(s=>s!==null);if(this.shadowRoot.adoptedStyleSheets=t,t.length!==e.styles.length){for(const s of e.styles)if(!s.sheet){const o=document.createElement("style");o.textContent=s.cssText,this.shadowRoot.appendChild(o)}}}else this._adoptLightStyles(e)}_adoptLightStyles(e){if(!C._lightStylesAdopted.has(e)){C._lightStylesAdopted.add(e);for(const t of e.styles){const s=document.createElement("style");s.dataset.osUi=this.tagName.toLowerCase(),s.textContent=t.cssText,document.head.appendChild(s)}}}};C.props=[],C.styles=[],C.shadow=!0,C._lightStylesAdopted=new WeakSet;let R=C;function te(n,e){customElements.get(n)||customElements.define(n,e)}function ne(n){return n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ze(n){return n.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const Te=(()=>{try{return typeof new CSSStyleSheet().replaceSync=="function"}catch{return!1}})();function se(n,...e){let t=n[0];for(let s=1;s<n.length;s++){const o=e[s-1];if(typeof o=="string"||typeof o=="number")t+=String(o);else if(o&&o.__wpdCss)t+=o.cssText;else throw new TypeError("[os-ui] css`` interpolations must be strings, numbers, or other css`` results. Got: "+typeof o);t+=n[s]}if(Te){const s=new CSSStyleSheet;return s.replaceSync(t),{__wpdCss:!0,sheet:s,cssText:t}}return{__wpdCss:!0,sheet:null,cssText:t}}const Ee=se`:host{display:grid;grid-template-rows:auto auto minmax( 0,1fr ) auto;flex:1 1 auto;min-inline-size:0;min-block-size:0;block-size:100%;overflow:hidden}:host( [ hidden ] ){display:none}.content{min-inline-size:0;min-block-size:0;overflow:auto}:host( [ contained ] ) .content{display:flex;flex-direction:column;overflow:hidden}::slotted( * ){min-inline-size:0}:host( [ contained ] ) slot:not( [ name ] )::slotted( * ){flex:1 1 auto;min-block-size:0}`,E=class E extends R{render(){return h`<div><slot name="header"></slot></div>
2 2 <div><slot name="toolbar"></slot></div>
3 3 <div class="content" part="content"><slot></slot></div>
4 4 <div><slot name="footer"></slot></div>`}};E.props=["contained"],E.styles=[Ee],E.help=void 0;let Z=E;te("os-app-frame",Z);const Ne="desktop-mode";function oe(){return window.wp?.i18n}function l(n,e=Ne){return oe()?.__(n,e)??n}function U(n,...e){const t=oe()?.sprintf;if(t)return t(n,...e);let s=0;return n.replace(/%(?:(\d+)\$)?[sd]/g,(o,i)=>{const r=i?Number.parseInt(i,10)-1:s++;return String(e[r]??"")})}const Ie=se`:host{display:flex;flex:1 1 auto;min-inline-size:0;min-block-size:0;overflow:hidden}:host( [ hidden ] ){display:none}.layout{display:grid;flex:1;min-inline-size:0;min-block-size:0;grid-template-columns:minmax( 0,var( --_split-start,35% ) ) auto minmax( 0,1fr );grid-template-rows:minmax( 0,1fr )}.pane{display:flex;flex-direction:column;min-inline-size:0;min-block-size:0;overflow:auto}::slotted( * ){flex:1 1 auto;min-inline-size:0;min-block-size:0}.divider{inline-size:0;outline:none}.divider.enabled{position:relative;inline-size:8px;cursor:col-resize;touch-action:none;user-select:none}.divider.enabled::before,.divider.enabled::after{content:'';position:absolute;inset-inline:0;margin-inline:auto;inset-block-start:50%;transform:translateY( -50% );pointer-events:none;transition:background-color 120ms ease}.divider.enabled::before{inline-size:1px;block-size:100%;background:var( --os-ui-border,#dcdcde );opacity:0.65}.divider.enabled::after{inline-size:3px;block-size:28px;border-radius:999px;background:var( --os-ui-fg-faint,#787c82 )}.divider.enabled:hover::after,.divider.dragging::after,.divider:focus-visible::after{background:var( --os-ui-accent,#2271b1 )}.divider:focus-visible{outline:2px solid var( --os-ui-accent,#2271b1 );outline-offset:-2px;border-radius:4px}:host( [ direction='vertical' ] ) .layout{grid-template-columns:minmax( 0,1fr );grid-template-rows:minmax( 0,var( --_split-start,35% ) ) auto minmax( 0,1fr )}:host( [ direction='vertical' ] ) .divider.enabled{inline-size:auto;block-size:8px;cursor:row-resize}:host( [ direction='vertical' ] ) .divider.enabled::before{inline-size:100%;block-size:1px}:host( [ direction='vertical' ] ) .divider.enabled::after{inline-size:28px;block-size:3px}:host .layout.compact{grid-template-columns:minmax( 0,1fr );grid-template-rows:minmax( 0,1fr ) minmax( 0,1fr )}.layout.compact .divider{display:none}:host .layout.compact.start,:host .layout.compact.end{grid-template-rows:minmax( 0,1fr )}.layout.compact.start .end,.layout.compact.end .start{display:none}.shield{position:fixed;inset:0;z-index:2147483647;cursor:col-resize}:host( [ direction='vertical' ] ) .shield{cursor:row-resize}.shield[hidden]{display:none}@media ( prefers-reduced-motion:reduce ){.divider.enabled::before,.divider.enabled::after{transition:none}}`,N=class N extends R{constructor(){super(...arguments),this.observer=null,this.width=0,this.height=0,this.drag=null,this.onDown=e=>{if(!this.enabled()||e.button!==0||this.drag||this.extent()<=0)return;e.preventDefault();const t=e.currentTarget;t.focus(),this.drag={id:e.pointerId,origin:this.coordinate(e),last:this.coordinate(e),position:this.positionValue(),initial:this.positionValue(),target:t},t.setPointerCapture(e.pointerId),this.requestUpdate()},this.onMove=e=>{this.drag?.id===e.pointerId&&(this.drag.last=this.coordinate(e),this.setPosition(this.drag.position+(this.coordinate(e)-this.drag.origin)*this.sign()/Math.max(1,this.extent())*100))},this.cancelDrag=()=>this.finishDrag(!1),this.onCancel=e=>{this.drag?.id===e.pointerId&&this.cancelDrag()},this.onLostCapture=e=>{this.drag?.id===e.pointerId&&this.finishDrag(!0)},this.onUp=e=>{this.drag?.id===e.pointerId&&(this.onMove(e),this.finishDrag(!0))},this.onKey=e=>{if(!this.enabled())return;if(e.key==="Escape"&&this.drag){e.preventDefault(),this.cancelDrag();return}const[t,s]=this.bounds(),o=this.positionValue(),i=e.shiftKey?10:2,r=this.isVertical()?"ArrowDown":"ArrowRight",c=this.isVertical()?"ArrowUp":"ArrowLeft";let d=o;if(e.key==="Home")d=t;else if(e.key==="End")d=s;else if(e.key===r||e.key===c)d+=i*this.sign()*(e.key===r?1:-1);else return;e.preventDefault(),this.setPosition(d),o!==this.positionValue()&&this.emit("os-split-change",{position:this.positionValue()})}}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(this.observer=new ResizeObserver(e=>{const{width:t,height:s}=e[0].contentRect;if(t===this.width&&s===this.height)return;const o=this.positionValue();this.width=t,this.height=s,this.isCompact()?this.cancelDrag():this.drag&&(this.setPosition(o),this.drag.origin=this.drag.last,this.drag.position=this.positionValue()),this.requestUpdate()}),this.observer.observe(this))}disconnectedCallback(){this.observer?.disconnect(),this.observer=null,this.cancelDrag()}attributeChangedCallback(e,t,s){t!==s&&e==="direction"&&this.cancelDrag(),super.attributeChangedCallback(e,t,s)}number(e,t){const s=this.getAttribute(e),o=s===null||s.trim()===""?NaN:Number(s);return Number.isFinite(o)&&o>=0?o:t}isVertical(){return this.getAttribute("direction")==="vertical"}isCompact(){const e=this.number("collapse-at",600);return this.hasAttribute("compact")||!this.isVertical()&&e>0&&this.width>0&&this.width<=e}extent(){return Math.max(0,(this.isVertical()?this.height:this.width)-(this.hasAttribute("resizable")?8:0))}bounds(){const e=this.extent();if(e<=0)return[0,100];const t=this.number("min-start",160),s=this.number("min-end",160),o=t+s,i=o>e?e/o:1;return[t*i/e*100,100-s*i/e*100]}positionValue(){const[e,t]=this.bounds();return Math.min(t,Math.max(e,this.number("position",35)))}enabled(){return this.hasAttribute("resizable")&&!this.isCompact()}setPosition(e){const[t,s]=this.bounds();this.setAttribute("position",String(Math.min(s,Math.max(t,e))))}coordinate(e){return this.isVertical()?e.clientY:e.clientX}sign(){return!this.isVertical()&&getComputedStyle(this).direction==="rtl"?-1:1}finishDrag(e){const t=this.drag;t&&(this.drag=null,e||this.setPosition(t.initial),t.target.hasPointerCapture(t.id)&&t.target.releasePointerCapture(t.id),this.requestUpdate(),e&&this.positionValue()!==t.initial&&this.emit("os-split-change",{position:this.positionValue()}))}recoverFocus(e){const t=e==="end"?"start":"end",o=this.getRootNode().activeElement,i=e!=="stack"&&Array.from(this.children).some(c=>c.slot===t&&c.contains(o)),r=this.shadowRoot?.activeElement?.classList.contains("divider");!i&&!r||queueMicrotask(()=>{this.isConnected&&this.shadowRoot?.querySelector(e==="end"?".pane.end":".pane.start")?.focus()})}render(){!this.enabled()&&this.drag&&this.cancelDrag();const e=this.enabled(),t=this.positionValue(),[s,o]=this.bounds(),i=this.getAttribute("narrow"),r=i==="start"||i==="end"?i:"stack";return this.style.setProperty("--_split-start",`calc((100% - ${this.hasAttribute("resizable")?8:0}px) * ${t/100})`),this.isCompact()&&this.recoverFocus(r),h`<div class="layout ${this.isCompact()?"compact "+r:""}">
5 5 <div class="pane start" part="start" id="start" tabindex="-1"><slot name="start"></slot></div>
@@ -10,13 +10,13 @@
10 10 aria-valuemin=${String(s)} aria-valuemax=${String(o)} aria-valuenow=${String(t)}
11 11 @pointerdown=${this.onDown} @pointermove=${this.onMove} @pointerup=${this.onUp}
12 12 @pointercancel=${this.onCancel} @lostpointercapture=${this.onLostCapture} @keydown=${this.onKey}></div>
13 13 <div class="pane end" part="end" tabindex="-1"><slot name="end"></slot></div>
14 - </div><div class="shield" ?hidden=${!this.drag} aria-hidden="true"></div>`}};N.props=["position","min-start","min-end","resizable","direction","collapse-at","narrow","compact","label"],N.styles=[Ie],N.help=void 0;let j=N;te("os-split",j);function Ve(){let n="";const e=new Map;let t=0,s=1,o=0,i=!1,r=!0,c=null,d,u=async()=>{},m=()=>{};const f=()=>{const p=[],b=new Set;for(const g of Array.from(e.keys()).sort((y,k)=>y-k))for(const y of e.get(g)??[])b.has(y.id)||(b.add(y.id),p.push(y));return p},v=()=>s>Math.max(...Array.from(e.keys()),1),$=p=>{!p.some(b=>b.isIntersecting)||i||!r||(r=!1,i=!0,o=Math.max(1,...Array.from(e.keys()))+1,m(),u().finally(()=>{i=!1,o=0,m()}))};return{accumulate(p,b){return b?(n!==p&&(n=p,e.clear()),e.set(b.page,b.items),t=b.total,s=b.pages,f()):(n="",e.clear(),t=0,s=1,[])},items:f,get total(){return t},get pageCount(){return s},get loadingPage(){return o},hasMore:v,ghosts(p){return o===0||e.has(o)||!v()?0:Math.max(1,Math.min(p,t-f().length))},sync(p){u=p.load,m=p.repaint,!d&&typeof IntersectionObserver<"u"&&(d=new IntersectionObserver($)),d?.disconnect(),p.sentinel&&d?.observe(p.sentinel),p.canvas!==c&&(c=p.canvas,c?.addEventListener("scroll",()=>{r=!0},{passive:!0})),c&&c.scrollHeight<=c.clientHeight+4&&(r=!0)},dispose(){d?.disconnect(),d=void 0}}}function Re(n,e){const t=e.local??{},s={id:n,hasLocal:r=>Object.prototype.hasOwnProperty.call(t,r),runLocal:(r,c,d,u)=>{const m=t[r];if(!m)return c;const f={...c},v=m(f,d,u);return v===void 0?f:v},render:r=>{J(e.view(r),r.root),e.updated?.(r)},mounted:r=>e.mounted?.(r)},{placeholder:o}=e;o&&(s.placeholder=r=>o(r));const i=window;return(i.openStationApps??(i.openStationApps={}))[n]=s,s}const q=new Map;async function Le(n){if(!n)return null;let e;try{e=new URL(n,window.location.href)}catch{return n}if(!/gravatar\.com$/i.test(e.hostname))return n;e.searchParams.delete("d"),e.searchParams.delete("s");const t=e.toString(),s=q.get(t);if(s!==void 0)return s instanceof Promise,s;const o=new URL(n,window.location.href);o.searchParams.set("d","blank");const i=new Promise(r=>{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{try{const d=document.createElement("canvas");d.width=1,d.height=1;const u=d.getContext("2d",{willReadFrequently:!0});if(!u){r(n);return}u.drawImage(c,0,0,1,1);const m=u.getImageData(0,0,1,1).data;r(m[3]===0?null:n)}catch{r(n)}},c.onerror=()=>r(null),c.src=o.toString()}).then(r=>(q.set(t,r),r));return q.set(t,i),i}function ie(n){return n?.["48"]??n?.["96"]??n?.["24"]??""}function Pe(n,e){e&&Le(e).then(t=>{n.isConnected&&(t?n.setAttribute("src",t):n.removeAttribute("src"))})}function He(){return window.wp?.os?.config?.adminUrl||"/wp-admin/"}function A(n){const e=document.createElement("textarea");return e.innerHTML=n,e.value}const a="os-comments";function L(n){const e=String(n.status);return e==="approve"||e==="approved"||e==="1"?"approved":e==="hold"||e==="0"||e==="unapproved"?"hold":e}function re(n){switch(n){case"approved":return l("Approved");case"hold":return l("Pending");case"spam":return l("Spam");case"trash":return l("Trash");default:return n}}function O(n){switch(n){case"approved":return"success";case"hold":return"warning";case"spam":return"danger";default:return"neutral"}}function ae(n,e=!1){const t=re(n);return e?h`<os-badge class="${a}__status" tone=${O(n)} title=${t}>
14 + </div><div class="shield" ?hidden=${!this.drag} aria-hidden="true"></div>`}};N.props=["position","min-start","min-end","resizable","direction","collapse-at","narrow","compact","label"],N.styles=[Ie],N.help=void 0;let j=N;te("os-split",j);function Ve(){let n="";const e=new Map;let t=0,s=1,o=0,i=!1,r=!0,c=null,d,u=async()=>{},m=()=>{};const f=()=>{const p=[],b=new Set;for(const g of Array.from(e.keys()).sort((y,k)=>y-k))for(const y of e.get(g)??[])b.has(y.id)||(b.add(y.id),p.push(y));return p},v=()=>s>Math.max(...Array.from(e.keys()),1),$=p=>{!p.some(b=>b.isIntersecting)||i||!r||(r=!1,i=!0,o=Math.max(1,...Array.from(e.keys()))+1,m(),u().finally(()=>{i=!1,o=0,m()}))};return{accumulate(p,b){return b?(n!==p&&(n=p,e.clear()),e.set(b.page,b.items),t=b.total,s=b.pages,f()):(n="",e.clear(),t=0,s=1,[])},items:f,get total(){return t},get pageCount(){return s},get loadingPage(){return o},hasMore:v,ghosts(p){return o===0||e.has(o)||!v()?0:Math.max(1,Math.min(p,t-f().length))},sync(p){u=p.load,m=p.repaint,!d&&typeof IntersectionObserver<"u"&&(d=new IntersectionObserver($)),d?.disconnect(),p.sentinel&&d?.observe(p.sentinel),p.canvas!==c&&(c=p.canvas,c?.addEventListener("scroll",()=>{r=!0},{passive:!0})),c&&c.scrollHeight<=c.clientHeight+4&&(r=!0)},dispose(){d?.disconnect(),d=void 0}}}function Re(n,e){const t=e.local??{},s={id:n,hasLocal:r=>Object.prototype.hasOwnProperty.call(t,r),runLocal:(r,c,d,u)=>{const m=t[r];if(!m)return c;const f={...c},v=m(f,d,u);return v===void 0?f:v},render:r=>{J(e.view(r),r.root),e.updated?.(r)},mounted:r=>e.mounted?.(r)},{placeholder:o}=e;o&&(s.placeholder=r=>o(r));const i=window;return(i.openStationApps??(i.openStationApps={}))[n]=s,s}const q=new Map;async function Le(n){if(!n)return null;let e;try{e=new URL(n,window.location.href)}catch{return n}if(!/gravatar\.com$/i.test(e.hostname))return n;e.searchParams.delete("d"),e.searchParams.delete("s");const t=e.toString(),s=q.get(t);if(s!==void 0)return s instanceof Promise,s;const o=new URL(n,window.location.href);o.searchParams.set("d","blank");const i=new Promise(r=>{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{try{const d=document.createElement("canvas");d.width=1,d.height=1;const u=d.getContext("2d",{willReadFrequently:!0});if(!u){r(n);return}u.drawImage(c,0,0,1,1);const m=u.getImageData(0,0,1,1).data;r(m[3]===0?null:n)}catch{r(n)}},c.onerror=()=>r(null),c.src=o.toString()}).then(r=>(q.set(t,r),r));return q.set(t,i),i}function ie(n){return n?.["48"]??n?.["96"]??n?.["24"]??""}function Pe(n,e){e&&Le(e).then(t=>{n.isConnected&&(t?n.setAttribute("src",t):n.removeAttribute("src"))})}function He(){return window.wp?.os?.config?.adminUrl||"/wp-admin/"}function S(n){const e=document.createElement("textarea");return e.innerHTML=n,e.value}const a="os-comments";function L(n){const e=String(n.status);return e==="approve"||e==="approved"||e==="1"?"approved":e==="hold"||e==="0"||e==="unapproved"?"hold":e}function re(n){switch(n){case"approved":return l("Approved");case"hold":return l("Pending");case"spam":return l("Spam");case"trash":return l("Trash");default:return n}}function O(n){switch(n){case"approved":return"success";case"hold":return"warning";case"spam":return"danger";default:return"neutral"}}function ae(n,e=!1){const t=re(n);return e?h`<os-badge class="${a}__status" tone=${O(n)} title=${t}>
15 15 <span class="screen-reader-text">${t}</span>
16 - </os-badge>`:h`<os-badge class="${a}__msg-status" tone=${O(n)}>${t}</os-badge>`}function le(n,e,t=!1){return h`<os-relative-time class=${e} datetime=${n} ?compact=${t}></os-relative-time>`}function B(n){return typeof n.content?.raw=="string"?n.content.raw:A((n.content?.rendered??"").replace(/<[^>]*>/g," "))}function ce(n){return B(n).replace(/\s+/g," ").trim()}function F(n){return n?.author_name||l("Anonymous")}function de(n,e){const t=ie(n.author_avatar_urls);return h`<os-avatar
16 + </os-badge>`:h`<os-badge class="${a}__msg-status" tone=${O(n)}>${t}</os-badge>`}function le(n,e,t=!1){return h`<os-relative-time class=${e} datetime=${n} ?compact=${t}></os-relative-time>`}function B(n){return typeof n.content?.raw=="string"?n.content.raw:S((n.content?.rendered??"").replace(/<[^>]*>/g," "))}function ce(n){return B(n).replace(/\s+/g," ").trim()}function F(n){return S(n?.author_name??"")||l("Anonymous")}function de(n,e){const t=ie(n.author_avatar_urls);return h`<os-avatar
17 17 class="${a}__disc"
18 - name=${n.author_name||"?"}
18 + name=${S(n.author_name??"")||"?"}
19 19 size=${e}
20 20 alt=""
21 21 data-avatar-src=${t}
22 22 ></os-avatar>`}function De(){return h`<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false" class="${a}__ext-icon">
@@ -47,9 +47,9 @@
47 47 @os-pick=${o}
48 48 data-os-comments-tabselect
49 49 ></os-select>
50 50 `}function Fe(n,e,t){const s=t[0]?.openstation_post_title,o=()=>{e.pane="rail",n.dispatch("filter",{post:0})};return h`<div class="${a}__rail-filter">
51 - <span class="${a}__rail-filter-label">${s?U(l("On: %s"),A(s)):l("Comments on this post")}</span>
51 + <span class="${a}__rail-filter-label">${s?U(l("On: %s"),S(s)):l("Comments on this post")}</span>
52 52 <os-button class="${a}__rail-filter-clear" variant="link" @click=${o}>${l("Show all")}</os-button>
53 53 </div>`}function Ke(n,e,t){const s=n.state.selected===t.id,o=()=>{if(e.pane="convo",s&&e.thread){n.repaint();return}n.dispatch("select",{id:t.id})},i=t.openstation_replies_count??0;return h`<div role="listitem" class="${a}__thread-slot">
54 54 <button
55 55 type="button"
@@ -61,9 +61,9 @@
61 61 ${de(t,36)}
62 62 <div class="${a}__thread-main">
63 63 <div class="${a}__thread-name">${F(t)}${ae(L(t),!0)}</div>
64 64 <div class="${a}__thread-snip">${ce(t)}</div>
65 - <div class="${a}__thread-post">${A(t.openstation_post_title||"")}</div>
65 + <div class="${a}__thread-post">${S(t.openstation_post_title||"")}</div>
66 66 </div>
67 67 <div class="${a}__thread-meta">
68 68 ${le(t.date_gmt,`${a}__thread-time`,!0)}
69 69 ${i>0?h`<os-badge class="${a}__reply-count" tone="neutral" no-dot>${i}<span class="screen-reader-text">${U(l("%d replies"),i)}</span></os-badge>`:""}
@@ -133,9 +133,9 @@
133 133 ${ot(n,e,t)}
134 134 ${r?it(n,e,t):""}
135 135 ${o.length>0?h`<div class="${a}__nested">${o.map(d=>ge(n,e,d,s))}</div>`:""}
136 136 </div>
137 - </div>`}function rt(n,e,t){const s=A(t.openstation_post_title||l("(no title)")),o=()=>{e.pane="rail",n.repaint()},i=t.post>0?h`<a
137 + </div>`}function rt(n,e,t){const s=S(t.openstation_post_title||l("(no title)")),o=()=>{e.pane="rail",n.repaint()},i=t.post>0?h`<a
138 138 class="${a}__convo-post ${a}__convo-post--editable"
139 139 href="${He()}post.php?post=${t.post}&action=edit"
140 140 title=${l("Edit this post")}
141 141 >${s}<os-icon class="${a}__convo-post-pencil" name="edit" size="15"></os-icon><span class="screen-reader-text">${l("Edit this post")}</span></a>`:h`<div class="${a}__convo-post">${s}</div>`;return h`<div class="${a}__convo-head">
@@ -178,9 +178,9 @@
178 178 ${ge(n,e,i,o)}
179 179 ${e.thread?.truncated?h`<os-notice class="${a}__truncated" tone="info">${l("This conversation is longer than shown; open the post to read the rest.")}</os-notice>`:""}
180 180 </div>
181 181 ${at(n,e,i,s)}
182 - </section>`}const ct="desktop-mode-comments",D=()=>({pane:"rail",status:"",draft:"",replyTo:0,editing:0,editSeed:"",editDraft:"",busy:"",loadingMore:!1,list:Ve(),thread:null,tree:{rows:null,byParent:new Map},announcedPost:-1,draftFor:-1,bodies:new Map});function dt(n,e,t){const s=window.wp?.os?.relations;if(!s?.set)return;const o=e>0?{type:"comment",id:e,root:{type:"post",id:e},label:t?A(t):void 0}:null;try{s.set(n.windowId,o)}catch{}}const ut=Re(ct,{placeholder:()=>({}),view:n=>{const{state:e,data:t}=n,s=n.ui(D),o=t.rail&&t.railKey!==void 0?s.list.accumulate(t.railKey,t.rail):s.list.items();t.thread!==void 0&&(s.thread=t.thread);const i=o.find(c=>c.id===e.selected);s.draftFor!==e.selected&&(s.draftFor=e.selected,s.draft="",s.replyTo=0,s.editing=0);const r=i?s.pane:"rail";return h`
182 + </section>`}const ct="desktop-mode-comments",D=()=>({pane:"rail",status:"",draft:"",replyTo:0,editing:0,editSeed:"",editDraft:"",busy:"",loadingMore:!1,list:Ve(),thread:null,tree:{rows:null,byParent:new Map},announcedPost:-1,draftFor:-1,bodies:new Map});function dt(n,e,t){const s=window.wp?.os?.relations;if(!s?.set)return;const o=e>0?{type:"comment",id:e,root:{type:"post",id:e},label:t?S(t):void 0}:null;try{s.set(n.windowId,o)}catch{}}const ut=Re(ct,{placeholder:()=>({}),view:n=>{const{state:e,data:t}=n,s=n.ui(D),o=t.rail&&t.railKey!==void 0?s.list.accumulate(t.railKey,t.rail):s.list.items();t.thread!==void 0&&(s.thread=t.thread);const i=o.find(c=>c.id===e.selected);s.draftFor!==e.selected&&(s.draftFor=e.selected,s.draft="",s.replyTo=0,s.editing=0);const r=i?s.pane:"rail";return h`
183 183 <os-app-frame contained class="${a} ${a}--conversation" data-os-comments-root data-os-comments-pane=${r}>
184 184 <div slot="header">${Be(n,s)}</div>
185 185 <os-split class="${a}__split" resizable label=${l("Resize conversations")}
186 186 collapse-at="720" min-start="240" min-end="300"