@solibo/solibo-ui 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/_avatar/index.cjs +1 -1
- package/dist/components/_avatar/index.js +1 -1
- package/dist/components/_card/index.cjs +1 -1
- package/dist/components/_card/index.cjs.map +1 -1
- package/dist/components/_card/index.js +14 -13
- package/dist/components/_card/index.js.map +1 -1
- package/dist/components/_collapsible/index.cjs +1 -1
- package/dist/components/_collapsible/index.cjs.map +1 -1
- package/dist/components/_collapsible/index.js +14 -16
- package/dist/components/_collapsible/index.js.map +1 -1
- package/dist/components/_croppable/index.cjs +1 -1
- package/dist/components/_croppable/index.js +1 -1
- package/dist/components/_dropzone/index.cjs +1 -1
- package/dist/components/_dropzone/index.js +1 -1
- package/dist/components/_editor/index.cjs +2 -2
- package/dist/components/_editor/index.js +2 -2
- package/dist/components/_messages/index.cjs +1 -1
- package/dist/components/_messages/index.js +1 -1
- package/dist/components/_portal/index.cjs +1 -1
- package/dist/components/_portal/index.js +1 -1
- package/dist/components/_toasts/index.cjs +1 -1
- package/dist/components/_toasts/index.js +1 -1
- package/dist/components/_widget/index.cjs +1 -1
- package/dist/components/_widget/index.js +1 -1
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.cjs.map +1 -1
- package/dist/components/accordion/index.js +7 -7
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +8 -8
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +13 -13
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.cjs.map +1 -1
- package/dist/components/figure/index.js +10 -9
- package/dist/components/figure/index.js.map +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +1 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.js +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +10 -10
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +13 -13
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +1 -1
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.cjs.map +1 -1
- package/dist/components/sortable/index.js +25 -19
- package/dist/components/sortable/index.js.map +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.cjs.map +1 -1
- package/dist/components/table/index.js +37 -32
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/index.d.ts +13 -9
- package/dist/styles.module--qoz6wR5.cjs +2 -0
- package/dist/styles.module--qoz6wR5.cjs.map +1 -0
- package/dist/styles.module-y5zmJBcz.js +10 -0
- package/dist/styles.module-y5zmJBcz.js.map +1 -0
- package/package.json +1 -1
- package/dist/styles.module-BBfw-M3O.cjs +0 -2
- package/dist/styles.module-BBfw-M3O.cjs.map +0 -1
- package/dist/styles.module-BUHdj3im.js +0 -10
- package/dist/styles.module-BUHdj3im.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/index32.css');var p0=Object.defineProperty;var g0=(n,e,t)=>e in n?p0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var bn=(n,e,t)=>g0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),z=require("react"),js=require("react-dom"),dt=require("../../classix-5H4IWnMA.cjs"),Ke=require("../button/index.cjs"),Je=require("../icon/index.cjs"),qs=require("../input/index.cjs");function m0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Bu=m0(z);function dn(n){return{}}const hu={},b0={},Na={},Pt={},en={},Dn={},tn={},pu={},ti={},Mn={},Rn={},$e={},$i={},Hi={},y0={},ka={},_0={},Aa={},x0={},Oa={},Ia={},jr={},v0={},Pa={},La={},Da={},w0={},S0={},T0={},Us={},Ma={},C0={},Ra={},Ba={},E0={},gu={},Vi={},ni={},N0={},k0={},pr={},gr={},A0={},O0={},I0={},Fe=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,P0=Fe&&"documentMode"in document?document.documentMode:null,Le=Fe&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),xt=Fe&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),qr=!(!Fe||!("InputEvent"in window)||P0)&&"getTargetRanges"in new window.InputEvent("input"),mu=Fe&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Jn=Fe&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,L0=Fe&&/Android/.test(navigator.userAgent),Fa=Fe&&/^(?=.*Chrome).*/i.test(navigator.userAgent),D0=Fe&&L0&&Fa,Gi=Fe&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Fa,Xn=1,St=3,Dt=0,ja=1,un=2,M0=0,R0=1,B0=2,Ur=4,zr=8,Ki=128,F0=112|(3|Ur|zr)|Ki,Ji=1,Xi=2,Zi=3,Qi=4,Yi=5,es=6,bu=mu||Jn||Gi?" ":"",rt=`
|
|
2
2
|
|
|
3
3
|
`,j0=xt?" ":bu,qa="֑-߿יִ-﷽ﹰ-ﻼ",Ua="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",q0=new RegExp("^[^"+Ua+"]*["+qa+"]"),U0=new RegExp("^[^"+qa+"]*["+Ua+"]"),Mt={bold:1,code:16,highlight:Ki,italic:2,strikethrough:Ur,subscript:32,superscript:64,underline:zr},z0={directionless:1,unmergeable:2},zs={center:Xi,end:es,justify:Qi,left:Ji,right:Zi,start:Yi},W0={[Xi]:"center",[es]:"end",[Qi]:"justify",[Ji]:"left",[Zi]:"right",[Yi]:"start"},$0={normal:0,segmented:2,token:1},H0={[M0]:"normal",[B0]:"segmented",[R0]:"token"};function V0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=V0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Wr(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const G0=100;let ri=!1,ts=0;function K0(n){ts=n.timeStamp}function Fu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&_u(n,t)!==void 0}function J0(n,e,t){const r=Ae(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&ss(e,s,u,i,!1)}function X0(n,e,t){if(P(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===St&&t.isAttached()}function Z0(n,e,t,r){for(let u=n;u&&!df(u);u=Qn(u)){const i=_u(u,e);if(i!==void 0){const s=ae(i,t);if(s)return ne(s)?void 0:[u,s]}else if(u===r)return[r,Xa(t)]}}function za(n,e,t){ri=!0;const r=performance.now()-ts>G0;try{Te(n,()=>{const u=j()||function(c){return c.getEditorState().read(()=>{const d=j();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=Z0(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&D(b)&&X0(u,m,b)&&J0(m,b,n);else if(p==="childList"){l=!0;const _=d.addedNodes;for(let S=0;S<_.length;S++){const I=_[S],C=Ka(I),L=I.parentNode;if(L!=null&&I!==a&&C===null&&!Fu(I,L,n)){if(xt){const U=I.innerText||I.nodeValue;U&&(f+=U)}L.removeChild(I)}}const w=d.removedNodes,T=w.length;if(T>0){let S=0;for(let I=0;I<T;I++){const C=w[I];(Fu(C,m,n)||a===C)&&(m.appendChild(C),S++)}T!==S&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Fu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,ke(u)),xt&&el(n)&&u.insertRawText(f))})}finally{ri=!1}}function Wa(n){const e=n._observer;e!==null&&za(n,e.takeRecords(),e)}function $a(n){(function(e){ts===0&&vu(e).addEventListener("textInput",K0,!0)})(n),n._observer=new MutationObserver((e,t)=>{za(n,e,t)})}function Ws(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function $s(n,e){const t=n.mergeWithSibling(e),r=ue()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Hs(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&D(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Ws(e,r)){r=$s(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&D(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ws(r,t)){r=$s(r,t);break}break}t.remove()}}else r.remove()}function Ha(n){return Vs(n.anchor),Vs(n.focus),n}function Vs(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),D(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!E(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let Q0=1;const Y0=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ns(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return ne(sn(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&yu(e)==null)}function Zn(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!ns(e)&&Va(e)===n}catch{return!1}}function rs(n){return n instanceof Eu}function Va(n){let e=n;for(;e!=null;){const t=yu(e);if(rs(t))return t;e=Qn(e)}return null}function yu(n){return n?n.__lexicalEditor:null}function Ot(n){return n.isToken()||n.isSegmented()}function ef(n){return n.nodeType===St}function $r(n){let e=n;for(;e!=null;){if(ef(e))return e;e=e.firstChild}return null}function Hr(n,e,t){const r=Mt[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function Ga(n){return D(n)||vt(n)||ne(n)}function tf(n,e){if(e!=null)return void(n.__key=e);_e(),xl();const t=ue(),r=ot(),u=""+Q0++;r._nodeMap.set(u,n),E(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=ja,n.__key=u}function Lt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function Vr(n){xl();const e=n.getLatest(),t=e.__parent,r=ot(),u=ue(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=ja,E(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function de(n){_e();const e=ue(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ae(t);r!==null&&r.getWritable()}if(n!==null){const r=ae(n);r!==null&&r.getWritable()}}}function mt(){return rr()?null:ue()._compositionKey}function ae(n,e){const t=(e||ot())._nodeMap.get(n);return t===void 0?null:t}function Ka(n,e){const t=_u(n,ue());return t!==void 0?ae(t,e):null}function _u(n,e){return n[`__lexicalKey_${e._key}`]}function sn(n,e){let t=n;for(;t!=null;){const r=Ka(t,e);if(r!==null)return r;t=Qn(t)}return null}function Ja(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Gs(n){return n.read(()=>ie().getTextContent())}function ie(){return Xa(ot())}function Xa(n){return n._nodeMap.get("root")}function ke(n){_e();const e=ot();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Qt(n){const e=ue(),t=function(r,u){let i=r;for(;i!=null;){const s=_u(i,u);if(s!==void 0)return s;i=Qn(i)}return null}(n,e);return t===null?n===e.getRootElement()?ae("root"):null:ae(t)}function Ks(n,e){return e?n.getTextContentSize():0}function Za(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function us(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Qa(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ya(n){return n.nodeType===St?n.nodeValue:null}function is(n,e,t){const r=Ae(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=Ya(u);const a=sn(u);if(o!==null&&D(a)){if(o===bu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&ss(a,o,i,s,n)}}}function ss(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===bu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(de(null),mu||Jn||Gi)i.remove();else{const m=ue();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=nr(),h=i.getTextContentSize(),c=mt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||P(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=j();if(!P(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=se(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function nf(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(D(s)||E(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function Js(n){return n==="ArrowLeft"}function Xs(n){return n==="ArrowRight"}function Cn(n,e){return Le?n:e}function Zs(n){return n==="Enter"}function yn(n){return n==="Backspace"}function _n(n){return n==="Delete"}function Qs(n,e,t){return n.toLowerCase()==="a"&&Cn(e,t)}function rf(){const n=ie();ke(Ha(n.select(0,n.getChildrenSize())))}function Nn(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=Wr(u);return t[e]=i,i}return u}function os(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&M(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function Ys(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function Bn(n,e){const t=n.offset;if(n.type==="element")return Ys(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?Ys(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function el(n){const e=vu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function F(n,e,t){return Sl(n,e,t)}function xu(n){return!pe(n)&&!n.isLastChild()&&!n.isInline()}function Gr(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function Qn(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function kn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function vu(n){const e=n._window;return e===null&&M(78),e}function uf(n){let e=n.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(n){return pe(n)||E(n)&&n.isShadowRoot()}function Tt(n){const e=ue(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&M(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||M(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||M(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&M(203,n.constructor.name,t,o.name,o.getType()),s}return n}function ju(n,e){!pe(n.getParent())||E(e)||ne(e)||M(99)}function qu(n){return(ne(n)||E(n)&&!n.canBeEmpty())&&!n.isInline()}function as(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function sf(n,e,t){let r=n._blockCursorElement;if(P(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())qu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&qu(l)){const f=l.getPreviousSibling();(f===null||qu(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=Wr(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&as(r,n,e)}function Ae(n){return Fe?(n||window).getSelection():null}function of(n){return zt(n)&&n.tagName==="A"}function zt(n){return n.nodeType===1}function eo(n){return n.nodeType===11}function ui(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Kr(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function pt(n){if(ne(n)&&!n.isInline())return!0;if(!E(n)||ut(n))return!1;const e=n.getFirstChild(),t=e===null||vt(e)||D(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function xn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function af(){return ue()}const to=new WeakMap,lf=new Map;function cf(n){if(!n._readOnly&&n.isEmpty())return lf;n._readOnly||M(192);let e=to.get(n);if(!e){e=new Map,to.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function ls(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function ff(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function df(n){return n.__lexicalUnmanaged===!0}function tl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(E(s)&&tl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let wt,ge,Fn,wu,ii,si,Rt,Be,oi,jn,oe="",he="",Ue=null,De="",et="",nl=!1,qn=!1,Pr=null;function Jr(n,e){const t=Rt.get(n);if(e!==null){const r=ci(n);r.parentNode===e&&e.removeChild(r)}if(Be.has(n)||ge._keyToDOMMap.delete(n),E(t)){const r=Zr(t,Rt);ai(r,0,r.length-1,null)}t!==void 0&&os(jn,Fn,wu,t,"destroyed")}function ai(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&Jr(i,r)}}function At(n,e){n.setProperty("text-align",e)}const hf="40px";function rl(n,e){const t=wt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||hf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function ul(n,e){const t=n.style;e===0?At(t,""):e===Ji?At(t,"left"):e===Xi?At(t,"center"):e===Zi?At(t,"right"):e===Qi?At(t,"justify"):e===Yi?At(t,"start"):e===es&&At(t,"end")}function Xr(n,e){const t=Be.get(n);t===void 0&&M(60);const r=t.createDOM(wt,ge);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,ge),D(t)?r.setAttribute("data-lexical-text","true"):ne(t)&&r.setAttribute("data-lexical-decorator","true"),E(t)){const u=t.__indent,i=t.__size;if(u!==0&&rl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=he;he="",li(a,f,0,l,f.getDOMSlot(h)),sl(f,h),he=c})(Zr(t,Be),o,t,r)}const s=t.__format;s!==0&&ul(r,s),t.isInline()||il(null,t,r),xu(t)&&(oe+=rt,et+=rt)}else{const u=t.getTextContent();if(ne(t)){const i=t.decorate(ge,wt);i!==null&&ol(n,i),r.contentEditable="false"}else D(t)&&(t.isDirectionless()||(he+=u));oe+=u,et+=u}return e!==null&&e.insertChild(r),os(jn,Fn,wu,t,"created"),r}function li(n,e,t,r,u){const i=oe;oe="";let s=t;for(;s<=r;++s){Xr(n[s],u);const o=Be.get(n[s]);o!==null&&D(o)&&(Ue===null&&(Ue=o.getFormat()),De===""&&(De=o.getStyle()))}xu(e)&&(oe+=rt),u.element.__lexicalTextContent=oe,oe=i+oe}function no(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return vt(r)?"line-break":ne(r)&&r.isInline()?"decorator":null}return"empty"}return null}function il(n,e,t){const r=no(n,Rt),u=no(e,Be);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function sl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==he||r!==Pr){const i=he==="",s=i?Pr:(u=he,q0.test(u)?"rtl":U0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=wt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=Wr(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=Wr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}qn||(n.getWritable().__dir=s)}Pr=s,e.__lexicalDirTextContent=he,e.__lexicalDir=s}var u}function pf(n,e,t){const r=he;var u;he="",Ue=null,De="",function(i,s,o){const a=oe,l=i.__size,f=s.__size;oe="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)En(c,h);else{const m=ci(c),g=Xr(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}Jr(c,null)}const p=Be.get(d);D(p)&&(Ue===null&&(Ue=p.getFormat()),De===""&&(De=p.getStyle()))}else{const c=Zr(i,Rt),d=Zr(s,Be);if(c.length!==l&&M(227),d.length!==f&&M(228),l===0)f!==0&&li(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;ai(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,_){const w=y-1,T=b-1;let S,I,C=_.getFirstChild(),L=0,U=0;for(;L<=w&&U<=T;){const A=m[L],B=g[U];if(A===B)C=Uu(En(B,_.element)),L++,U++;else{S===void 0&&(S=new Set(m)),I===void 0&&(I=new Set(g));const O=I.has(A),k=S.has(B);if(O)if(k){const q=Gr(ge,B);q===C?C=Uu(En(B,_.element)):(_.withBefore(C).insertChild(q),En(B,_.element)),L++,U++}else Xr(B,_.withBefore(C)),U++;else C=Uu(ci(A)),Jr(A,_.element),L++}const v=Be.get(B);v!==null&&D(v)&&(Ue===null&&(Ue=v.getFormat()),De===""&&(De=v.getStyle()))}const x=L>w,N=U>T;if(x&&!N){const A=g[T+1],B=A===void 0?null:ge.getElementByKey(A);li(g,p,U,T,_.withBefore(B))}else N&&!x&&ai(m,L,w,_.element)})(s,c,d,l,f,o)}xu(s)&&(oe+=rt),h.__lexicalTextContent=oe,oe=a+oe}(n,e,e.getDOMSlot(t)),sl(e,t),Ft(u=e)&&Ue!=null&&Ue!==u.__textFormat&&!qn&&(u.setTextFormat(Ue),u.setTextStyle(De)),function(i){Ft(i)&&De!==""&&De!==i.__textStyle&&!qn&&i.setTextStyle(De)}(e),he=r}function Zr(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&M(101),t.push(r),r=u.__next}return t}function En(n,e){const t=Rt.get(n);let r=Be.get(n);t!==void 0&&r!==void 0||M(61);const u=nl||si.has(n)||ii.has(n),i=Gr(ge,n);if(t===r&&!u){if(E(t)){const s=i.__lexicalTextContent;s!==void 0&&(oe+=s,et+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(he+=o)}else{const s=t.getTextContent();D(t)&&!t.isDirectionless()&&(he+=s),et+=s,oe+=s}return i}if(t!==r&&u&&os(jn,Fn,wu,r,"updated"),r.updateDOM(t,i,wt)){const s=Xr(n,null);return e===null&&M(62),e.replaceChild(s,i),Jr(n,null),s}if(E(t)&&E(r)){const s=r.__indent;s!==t.__indent&&rl(i,s);const o=r.__format;o!==t.__format&&ul(i,o),u&&(pf(t,r,i),pe(r)||r.isInline()||il(t,r,i)),xu(r)&&(oe+=rt,et+=rt)}else{const s=r.getTextContent();if(ne(r)){const o=r.decorate(ge,wt);o!==null&&ol(n,o)}else D(r)&&!r.isDirectionless()&&(he+=s);oe+=s,et+=s}if(!qn&&pe(r)&&r.__cachedText!==et){const s=r.getWritable();s.__cachedText=et,r=s}return i}function ol(n,e){let t=ge._pendingDecorators;const r=ge._decorators;if(t===null){if(r[n]===e)return;t=Ja(ge)}t[n]=e}function Uu(n){let e=n.nextSibling;return e!==null&&e===ge._blockCursorElement&&(e=e.nextSibling),e}function gf(n,e,t,r,u,i){oe="",et="",he="",nl=r===un,Pr=null,ge=t,wt=t._config,Fn=t._nodes,wu=ge._listeners.mutation,ii=u,si=i,Rt=n._nodeMap,Be=e._nodeMap,qn=e._readOnly,oi=new Map(t._keyToDOMMap);const s=new Map;return jn=s,En("root",null),ge=void 0,Fn=void 0,ii=void 0,si=void 0,Rt=void 0,Be=void 0,wt=void 0,oi=void 0,jn=void 0,s}function ci(n){const e=oi.get(n);return e===void 0&&M(75,n),e}const Xe=Object.freeze({}),fi=30,di=[["keydown",function(n,e){if(An=n.timeStamp,al=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!F(e,y0,n)&&t!=null){if(function(o,a,l,f){return Xs(o)&&!a&&!f&&!l}(t,u,s,i))F(e,ka,n);else if(function(o,a,l,f,h){return Xs(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,_0,n);else if(function(o,a,l,f){return Js(o)&&!a&&!f&&!l}(t,u,s,i))F(e,Aa,n);else if(function(o,a,l,f,h){return Js(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,x0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))F(e,Oa,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))F(e,Ia,n);else if(function(o,a){return Zs(o)&&a}(t,r))On=!0,F(e,jr,n);else if(function(o){return o===" "}(t))F(e,v0,n);else if(function(o,a){return Le&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),On=!0,F(e,en,!0);else if(function(o,a){return Zs(o)&&!a}(t,r))On=!1,F(e,jr,n);else if(function(o,a,l,f){return Le?!a&&!l&&(yn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&yn(o)}(t,s,i,u))yn(t)?F(e,Pa,n):(n.preventDefault(),F(e,Pt,!0));else if(function(o){return o==="Escape"}(t))F(e,La,n);else if(function(o,a,l,f,h){return Le?!(l||f||h)&&(_n(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&_n(o)}(t,u,r,s,i))_n(t)?F(e,Da,n):(n.preventDefault(),F(e,Pt,!1));else if(function(o,a,l){return yn(o)&&(Le?a:l)}(t,s,u))n.preventDefault(),F(e,Mn,!0);else if(function(o,a,l){return _n(o)&&(Le?a:l)}(t,s,u))n.preventDefault(),F(e,Mn,!1);else if(function(o,a){return Le&&a&&yn(o)}(t,i))n.preventDefault(),F(e,Rn,!0);else if(function(o,a){return Le&&a&&_n(o)}(t,i))n.preventDefault(),F(e,Rn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Cn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))F(e,w0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Cn(l,f)}(t,r,i,u))n.preventDefault(),F(e,$i,void 0);else if(function(o,a,l,f){return Le?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),F(e,Hi,void 0);else{const o=e._editorState._selection;o===null||P(o)?!xt&&Qs(t,i,u)&&(n.preventDefault(),F(e,ni,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Le?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,gu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Le?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,Vi,n)):Qs(t,i,u)&&(n.preventDefault(),F(e,ni,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&F(e,I0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Te(e,()=>{ne(sn(t))||(pi=!0)})}],["compositionstart",function(n,e){Te(e,()=>{const t=j();if(P(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();de(r.key),(n.timeStamp<An+fi||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||D(u)&&u.getStyle()!==t.style)&&F(e,tn,j0)}})}],["compositionend",function(n,e){xt?vn=!0:Te(e,()=>{zu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Te(e,()=>{const t=j(),r=n.data,u=dl(n);if(r!=null&&P(t)&&fl(t,u,r,n.timeStamp,!1)){vn&&(zu(e,r),vn=!1);const i=t.anchor.getNode(),s=Ae(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;qr&&!t.isCollapsed()&&D(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===Ya(s.anchorNode)||F(e,tn,r);const f=r.length;xt&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),mu||Jn||Gi||!e.isComposing()||(An=0,de(null))}else is(!1,e,r!==null?r:void 0),vn&&(zu(e,r||void 0),vn=!1);_e(),Wa(ue())}),Jt=null}],["click",function(n,e){Te(e,()=>{const t=j(),r=Ae(e._window),u=nr();if(r){if(P(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!pe(s)&&ie().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(E(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===Xn||s===St)&&ke(fs(u,r,e,n))}}}F(e,Na,n)})}],["cut",Xe],["copy",Xe],["dragstart",Xe],["dragover",Xe],["dragend",Xe],["paste",Xe],["focus",Xe],["blur",Xe],["drop",Xe]];qr&&di.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=dl(t);u==="deleteCompositionText"||xt&&el(r)||u!=="insertCompositionText"&&Te(r,()=>{const s=j();if(u==="deleteContentBackward"){if(s===null){const d=nr();if(!P(d))return;ke(d.clone())}if(P(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,al==="MediaLast"&&o<An+fi&&r.isComposing()&&d){if(de(null),An=0,setTimeout(()=>{Te(r,()=>{de(null)})},fi),P(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),D(p)||M(142),s.style=p.getStyle()}}else{de(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;D0&&d&&!y&&g||F(r,Pt,!0)}return}}var o;if(!P(s))return;const a=t.data;Jt!==null&&is(!1,r,Jt),s.dirty&&Jt===null||!s.isCollapsed()||pe(s.anchor.getNode())||i===null||s.applyDOMRange(i),Jt=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":F(r,tn,t);break;case"insertFromComposition":de(null),F(r,tn,t);break;case"insertLineBreak":de(null),F(r,en,!1);break;case"insertParagraph":de(null),On&&!Jn?(On=!1,F(r,en,!1)):F(r,Dn,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":F(r,pu,t);break;case"deleteByComposition":(function(d,p){return d!==p||E(d)||E(p)||!d.isToken()||!p.isToken()})(h,c)&&F(r,ti,t);break;case"deleteByDrag":case"deleteByCut":F(r,ti,t);break;case"deleteContent":F(r,Pt,!1);break;case"deleteWordBackward":F(r,Mn,!0);break;case"deleteWordForward":F(r,Mn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":F(r,Rn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":F(r,Rn,!1);break;case"formatStrikeThrough":F(r,$e,"strikethrough");break;case"formatBold":F(r,$e,"bold");break;case"formatItalic":F(r,$e,"italic");break;case"formatUnderline":F(r,$e,"underline");break;case"historyUndo":F(r,$i,void 0);break;case"historyRedo":F(r,Hi,void 0)}else{if(a===`
|
|
4
4
|
`)t.preventDefault(),F(r,en,!1);else if(a===rt)t.preventDefault(),F(r,Dn,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&fl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),F(r,tn,a)):Jt=a;ll=t.timeStamp}})}(n,e)]);let An=0,al=null,ll=0,Jt=null;const Qr=new WeakMap;let hi=!1,pi=!1,On=!1,vn=!1,cl=[0,"",0,"root",0];function fl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ue(),l=Ae(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!D(o)||(!u&&(!qr||ll<r+50)||o.isDirty()&&d<2||Za(t))&&i.offset!==s.offset&&!o.isComposing()||Ot(o)||o.isDirty()&&d>1||(u||!qr)&&c!==null&&!o.isComposing()&&f!==$r(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||nf(n,o)}function ro(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===St&&e!==0&&e!==n.nodeValue.length}function uo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;hi&&(hi=!1,ro(r,u)&&ro(i,s))||Te(e,()=>{if(!t)return void ke(null);if(!Zn(e,r,i))return;const o=j();if(P(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=vu(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=cl,y=ie(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")D(l)||M(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const _=a.getNode();o.style="",_ instanceof hn&&_.getChildrenSize()===0?(o.format=_.getTextFormat(),o.style=_.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let _=F0,w=!1;for(let T=0;T<d;T++){const S=c[T],I=S.getTextContentSize();if(D(S)&&I!==0&&!(T===0&&S.__key===y&&m===I||T===d-1&&S.__key===b&&g===0)&&(w=!0,_&=S.getFormat(),_===0))break}o.format=w?_:0}}F(e,hu,void 0)})}function dl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function zu(n,e){const t=n._compositionKey;if(de(null),t!==null&&e!=null){if(e===""){const r=ae(t),u=$r(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&D(r)&&ss(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
@@ -54,5 +54,5 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
|
54
54
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
55
55
|
and ensure you are accounting for this risk.
|
|
56
56
|
|
|
57
|
-
`)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Zt(e.allowedAttributes,function(v,O){a[O]=[];const k=[];v.forEach(function(q){typeof q=="string"&&q.indexOf("*")>=0?k.push(Sa(q).replace(/\\\*/g,".*")):a[O].push(q)}),k.length&&(l[O]=new RegExp("^("+k.join("|")+")$"))}));const f={},h={},c={};Zt(e.allowedClasses,function(v,O){if(a&&(Ye(a,O)||(a[O]=[]),a[O].push("class")),f[O]=v,Array.isArray(v)){const k=[];f[O]=[],c[O]=[],v.forEach(function(q){typeof q=="string"&&q.indexOf("*")>=0?k.push(Sa(q).replace(/\\\*/g,".*")):q instanceof RegExp?c[O].push(q):f[O].push(q)}),k.length&&(h[O]=new RegExp("^("+k.join("|")+")$"))}});const d={};let p;Zt(e.transformTags,function(v,O){let k;typeof v=="function"?k=v:typeof v=="string"&&(k=Kn.simpleTransform(v)),O==="*"?p=k:d[O]=k});let m,g,y,b,_,w,T=!1;I();const S=new v1.Parser({onopentag:function(v,O){if(e.onOpenTag&&e.onOpenTag(v,O),e.enforceHtmlBoundary&&v==="html"&&I(),_){w++;return}const k=new i(v,O);g.push(k);let q=!1;const R=!!k.text;let V;if(Ye(d,v)&&(V=d[v](v,O),k.attribs=O=V.attribs,V.text!==void 0&&(k.innerText=V.text),v!==V.tagName&&(k.name=v=V.tagName,b[m]=V.tagName)),p&&(V=p(v,O),k.attribs=O=V.attribs,v!==V.tagName&&(k.name=v=V.tagName,b[m]=V.tagName)),(!s(v)||e.disallowedTagsMode==="recursiveEscape"&&!N1(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(q=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(v)!==-1&&(_=!0,w=1)),m++,q){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!R){const K=C(k.innerText);e.textFilter?r+=e.textFilter(K,v):r+=K,T=!0}return}u=r,r=""}r+="<"+v,v==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(k.innerText=""),q&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Zt(O,function(K,J){r+=" "+J+'="'+C(K||"",!0)+'"'}):(!a||Ye(a,v)||a["*"])&&Zt(O,function(K,J){if(!O1.test(J)){delete k.attribs[J];return}if(K===""&&!e.allowedEmptyAttributes.includes(J)&&(e.nonBooleanAttributes.includes(J)||e.nonBooleanAttributes.includes("*"))){delete k.attribs[J];return}let Pe=!1;if(!a||Ye(a,v)&&a[v].indexOf(J)!==-1||a["*"]&&a["*"].indexOf(J)!==-1||Ye(l,v)&&l[v].test(J)||l["*"]&&l["*"].test(J))Pe=!0;else if(a&&a[v]){for(const H of a[v])if(w1(H)&&H.name&&H.name===J){Pe=!0;let Q="";if(H.multiple===!0){const Se=K.split(" ");for(const me of Se)H.values.indexOf(me)!==-1&&(Q===""?Q=me:Q+=" "+me)}else H.values.indexOf(K)>=0&&(Q=K);K=Q}}if(Pe){if(e.allowedSchemesAppliedToAttributes.indexOf(J)!==-1&&L(v,K)){delete k.attribs[J];return}if(v==="script"&&J==="src"){let H=!0;try{const Q=U(K);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Se=(e.allowedScriptHostnames||[]).find(function(be){return be===Q.url.hostname}),me=(e.allowedScriptDomains||[]).find(function(be){return Q.url.hostname===be||Q.url.hostname.endsWith(`.${be}`)});H=Se||me}}catch{H=!1}if(!H){delete k.attribs[J];return}}if(v==="iframe"&&J==="src"){let H=!0;try{const Q=U(K);if(Q.isRelativeUrl)H=Ye(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Se=(e.allowedIframeHostnames||[]).find(function(be){return be===Q.url.hostname}),me=(e.allowedIframeDomains||[]).find(function(be){return Q.url.hostname===be||Q.url.hostname.endsWith(`.${be}`)});H=Se||me}}catch{H=!1}if(!H){delete k.attribs[J];return}}if(J==="srcset")try{let H=S1(K);if(H.forEach(function(Q){L("srcset",Q.url)&&(Q.evil=!0)}),H=Ca(H,function(Q){return!Q.evil}),H.length)K=k1(Ca(H,function(Q){return!Q.evil})),k.attribs[J]=K;else{delete k.attribs[J];return}}catch{delete k.attribs[J];return}if(J==="class"){const H=f[v],Q=f["*"],Se=h[v],me=c[v],be=c["*"],d0=h["*"],Fs=[Se,d0].concat(me,be).filter(function(h0){return h0});if(H&&Q?K=B(K,Ta(H,Q),Fs):K=B(K,H||Q,Fs),!K.length){delete k.attribs[J];return}}if(J==="style"){if(e.parseStyleAttributes)try{const H=T1(v+" {"+K+"}",{map:!1}),Q=x(H,e.allowedStyles);if(K=N(Q),K.length===0){delete k.attribs[J];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+v+" {"+K+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete k.attribs[J];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+J,K&&K.length?r+='="'+C(K,!0)+'"':e.allowedEmptyAttributes.includes(J)&&(r+='=""')}else delete k.attribs[J]}),e.selfClosing.indexOf(v)!==-1?r+=" />":(r+=">",k.innerText&&!R&&!e.textFilter&&(r+=C(k.innerText),T=!0)),q&&(r=u+C(r),u=""),k.openingTagLength=r.length-k.tagPosition},ontext:function(v){if(_)return;const O=g[g.length-1];let k;if(O&&(k=O.tag,v=O.innerText!==void 0?O.innerText:v),e.disallowedTagsMode==="completelyDiscard"&&!s(k))v="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))r+=v;else if(!T){const q=C(v,!1);e.textFilter?r+=e.textFilter(q,k):r+=q}if(g.length){const q=g[g.length-1];q.text+=v}},onclosetag:function(v,O){if(e.onCloseTag&&e.onCloseTag(v,O),_)if(w--,!w)_=!1;else return;const k=g.pop();if(!k)return;if(k.tag!==v){g.push(k);return}_=e.enforceHtmlBoundary?v==="html":!1,m--;const q=y[m];if(q){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}u=r,r=""}if(b[m]&&(v=b[m],delete b[m]),e.exclusiveFilter){const R=e.exclusiveFilter(k);if(R==="excludeTag"){q&&(r=u,u=""),r=r.substring(0,k.tagPosition)+r.substring(k.tagPosition+k.openingTagLength);return}else if(R){r=r.substring(0,k.tagPosition);return}}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),e.selfClosing.indexOf(v)!==-1||O&&!s(v)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){q&&(r=u,u="");return}r+="</"+v+">",q&&(r=u+C(r),u=""),T=!1}},e.parser);return S.write(n),S.end(),r;function I(){r="",m=0,g=[],y={},b={},_=!1,w=0}function C(v,O){return typeof v!="string"&&(v=v+""),e.parser.decodeEntities&&(v=v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(v=v.replace(/"/g,"""))),v=v.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(v=v.replace(/"/g,""")),v}function L(v,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const R=O.indexOf("<!--");if(R===-1)break;const V=O.indexOf("-->",R+4);if(V===-1)break;O=O.substring(0,R)+O.substring(V+3)}const k=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const q=k[1].toLowerCase();return Ye(e.allowedSchemesByTag,v)?e.allowedSchemesByTag[v].indexOf(q)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(q)===-1}function U(v){if(v=v.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),v.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let R=0;R<100;R++)O+=`/${R}`;const k=new URL(v,O);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function x(v,O){if(!O)return v;const k=v.nodes[0];let q;return O[k.selector]&&O["*"]?q=Ta(O[k.selector],O["*"]):q=O[k.selector]||O["*"],q&&(v.nodes[0].nodes=k.nodes.reduce(A(q),[])),v}function N(v){return v.nodes[0].nodes.reduce(function(O,k){return O.push(`${k.prop}:${k.value}${k.important?" !important":""}`),O},[]).join(";")}function A(v){return function(O,k){return Ye(v,k.prop)&&v[k.prop].some(function(R){return R.test(k.value)})&&O.push(k),O}}function B(v,O,k){return O?(v=v.split(/\s+/),v.filter(function(q){return O.indexOf(q)!==-1||k.some(function(R){return R.test(q)})}).join(" ")):v}}const I1={decodeEntities:!0};Kn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Kn.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const P1=oh(A1),f0=dn();class hr extends Cl{constructor(t,r,u,i,s){super(s);bn(this,"__src");bn(this,"__altText");bn(this,"__width");bn(this,"__height");this.__src=t,this.__altText=r,this.__width=u,this.__height=i}static getType(){return"image"}static clone(t){return new hr(t.__src,t.__altText,t.__width,t.__height,t.__key)}static importJSON(t){return Wi({altText:t.altText,height:t.height,src:t.src,width:t.width})}exportJSON(){return{altText:this.__altText,height:this.__height,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const u=r.getAttribute("src")??"";if(!u)return null;const i=r.getAttribute("width"),s=r.getAttribute("height");return{node:Wi({altText:r.getAttribute("alt")??"",height:s?Number(s):void 0,src:u,width:i?Number(i):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.__src),this.__altText&&t.setAttribute("alt",this.__altText),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}decorate(t){return W.jsx("img",{alt:this.__altText,height:this.__height,onClick:r=>{r.preventDefault(),t.dispatchCommand(f0,{key:this.getKey(),src:this.__src})},src:this.__src,width:this.__width})}}function Wi({altText:n="",height:e,src:t,width:r}){return new hr(t,n,r,e)}function Ea(n){return n instanceof hr}const L1="_editor_1s3i8_1",D1="_meta_1s3i8_17",M1="_active_1s3i8_23",R1="_toolbar_1s3i8_34",B1="_bold_1s3i8_55",F1="_italic_1s3i8_59",j1="_link_1s3i8_63",q1="_list_1s3i8_69",U1="_paragraph_1s3i8_70",fe={editor:L1,meta:D1,active:M1,toolbar:R1,bold:B1,italic:F1,link:j1,list:q1,paragraph:U1},z1=()=>{const[n]=Oe(),[e,t]=z.useState(!1),[r,u]=z.useState(!1),[i,s]=z.useState(!1),[o,a]=z.useState(!1),[l,f]=z.useState(!1),[h,c]=z.useState(""),[d,p]=z.useState(null),[m,g]=z.useState(""),y=z.useRef(null),b=z.useRef(null),_=z.useRef(null),w=z.useRef(!1),T=R=>R.preventDefault(),S=z.useCallback(R=>{_.current=P(R)?R.clone():null},[]),I=z.useCallback(R=>{n.update(()=>{_.current&&ke(_.current)}),R(),_.current=null},[n]),C=R=>{w.current=!0,R.preventDefault()},L=()=>{if(w.current){w.current=!1;return}v()},U=z.useCallback(()=>{u(!1),c(""),p(null)},[]),x=z.useCallback(()=>{a(!1),g("")},[]),N=z.useCallback(R=>{u(!0),c((R==null?void 0:R.src)??""),p((R==null?void 0:R.key)??null),x(),setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},0)},[x]),A=z.useCallback(R=>{n.getEditorState().read(()=>{S(j())}),a(!0),g(R),U(),setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},0)},[U,n,S]),B=z.useCallback(()=>{I(()=>{n.dispatchCommand(rn,{url:m,target:"_blank"})}),x()},[x,n,m,I]),v=z.useCallback(()=>{const R=h.trim();if(!R){U();return}n.update(()=>{if(d){const V=ae(d);Ea(V)&&V.setSrc(R);return}ds([Wi({src:R})])}),U()},[U,n,d,h]),O=z.useCallback(()=>{if(!d){U();return}n.update(()=>{const R=ae(d);if(Ea(R)){const V=R.getParent();Ft(V)&&V.getChildrenSize()===1?V.remove():R.remove()}}),U()},[U,n,d]),k=z.useCallback(()=>{I(()=>{n.dispatchCommand(rn,null)}),x()},[x,n,I]),q=z.useCallback(()=>{const R=j();if(!P(R)){if(Ne(R)){const ft=R.getNodes(),K=ft[0]??null,J=(K==null?void 0:K.getParent())??null;t(ft.some(H=>D(H)&&H.hasFormat("bold"))),s(ft.some(H=>D(H)&&H.hasFormat("italic"))),f(Z(J)||re(J)||Z(K)||re(K));const Pe=tt(K)?K:tt(J)?J:null;if(Pe){a(!0),g(Pe.getURL());return}a(!1),g(""),_.current=null;return}t(!1),s(!1),f(!1),a(!1),g(""),_.current=null;return}const[V]=R.getNodes(),Ie=(V==null?void 0:V.getParent())??null;if(t(R.hasFormat("bold")),s(R.hasFormat("italic")),f(Z(Ie)||re(Ie)),tt(Ie)){a(!0),g(Ie.getURL()),S(R);return}a(!1),g(""),_.current=null},[S]);return z.useEffect(()=>at(n.registerUpdateListener(({editorState:R})=>{R.read(()=>{q()})}),n.registerCommand(f0,R=>(N(R),!0),nt),n.registerCommand(hu,()=>(n.getEditorState().read(()=>{q()}),!1),nt)),[n,N,q]),W.jsxs("div",{className:fe.toolbar,"data-cy":"Toolbar",children:[W.jsx(Ke.Button,{className:dt.t(e&&fe.active),onClick:()=>{n.dispatchCommand($e,"bold")},title:"Bold",variant:"minimal",children:W.jsx(Je.Icon,{name:"bold"})}),W.jsx(Ke.Button,{className:dt.t(i&&fe.active),onClick:()=>{n.dispatchCommand($e,"italic")},title:"Italic",variant:"minimal",children:W.jsx(Je.Icon,{name:"italic"})}),W.jsx(Ke.Button,{className:dt.t(l&&fe.active),onClick:()=>{l?n.dispatchCommand($l,void 0):n.dispatchCommand(Wl,void 0)},title:"List",variant:"minimal",children:W.jsx(Je.Icon,{name:"list"})}),W.jsx(Ke.Button,{className:dt.t(o&&fe.active),onClick:()=>{o?k():(n.dispatchCommand(rn,{url:"https://"}),A("https://"))},title:"Link",variant:"minimal",children:W.jsx(Je.Icon,{name:"link"})}),W.jsx(Ke.Button,{className:dt.t(r&&fe.active),onClick:()=>{r?U():N()},title:"Image",variant:"minimal",children:W.jsx(Je.Icon,{name:"image"})}),W.jsxs("div",{className:dt.t(fe.meta,o||r?fe.active:""),children:[o&&W.jsxs(W.Fragment,{children:[W.jsx(qs.Input,{className:dt.t(fe.active),onBlur:()=>{B()},onChange:R=>g(R.target.value),onKeyDown:R=>{R.key==="Enter"&&(R.preventDefault(),B())},ref:b,value:m}),W.jsx(Ke.Button,{onClick:()=>{B()},onMouseDown:T,variant:"minimal",children:W.jsx(Je.Icon,{name:"check",variant:"primary"})}),W.jsx(Ke.Button,{onClick:()=>k(),onMouseDown:T,variant:"minimal",children:W.jsx(Je.Icon,{name:"trash",variant:"danger"})})]}),r&&W.jsxs(W.Fragment,{children:[W.jsx(qs.Input,{className:dt.t(fe.active),onBlur:L,onChange:R=>c(R.target.value),onKeyDown:R=>{R.key==="Enter"&&(R.preventDefault(),w.current=!0,v())},ref:y,value:h}),W.jsx(Ke.Button,{onClick:()=>v(),onMouseDown:C,variant:"minimal",children:W.jsx(Je.Icon,{name:"check",variant:"primary"})}),W.jsx(Ke.Button,{onClick:()=>O(),onMouseDown:C,variant:"minimal",children:W.jsx(Je.Icon,{name:"trash",variant:"danger"})})]})]})]})},W1=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,$1=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,H1=[n=>{const e=W1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=$1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function V1(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}function G1({content:n=""}){const[e]=Oe();return z.useEffect(()=>{e.update(()=>{const r=new DOMParser().parseFromString(n,"text/html"),u=Ll(e,r);ie().clear().select(),ds(u),ke(null)})},[e,n]),null}const K1=({autofocus:n=!1,autolink:e=!1,content:t,inline:r=!1,onChange:u})=>{const i={namespace:"Editor",theme:{link:fe.link,list:{ol:fe.list,ul:fe.list},paragraph:fe.paragraph,text:{bold:fe.bold,italic:fe.italic}},onError(s){throw s},nodes:[ku,ir,pn,sr,hr]};return W.jsx("div",{className:fe.editor,"data-cy":"Editor",children:W.jsxs(bd,{initialConfig:i,children:[!r&&W.jsx(z1,{}),W.jsx(ih,{contentEditable:W.jsx(Td,{}),ErrorBoundary:kd}),n&&W.jsx(od,{}),e&&W.jsx(gd,{matchers:H1}),W.jsx(Rd,{}),t&&W.jsx(G1,{content:t}),W.jsx(Bd,{validateUrl:V1}),W.jsx(Fd,{}),u&&W.jsx(qd,{onChange:(s,o)=>{s.read(()=>{const a=Dl(o,null),l=P1(a,{allowedTags:["a","b","br","i","img","li","ol","p","ul"]});u(l)})}})]})})};exports.Editor=K1;
|
|
57
|
+
`)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Zt(e.allowedAttributes,function(v,O){a[O]=[];const k=[];v.forEach(function(q){typeof q=="string"&&q.indexOf("*")>=0?k.push(Sa(q).replace(/\\\*/g,".*")):a[O].push(q)}),k.length&&(l[O]=new RegExp("^("+k.join("|")+")$"))}));const f={},h={},c={};Zt(e.allowedClasses,function(v,O){if(a&&(Ye(a,O)||(a[O]=[]),a[O].push("class")),f[O]=v,Array.isArray(v)){const k=[];f[O]=[],c[O]=[],v.forEach(function(q){typeof q=="string"&&q.indexOf("*")>=0?k.push(Sa(q).replace(/\\\*/g,".*")):q instanceof RegExp?c[O].push(q):f[O].push(q)}),k.length&&(h[O]=new RegExp("^("+k.join("|")+")$"))}});const d={};let p;Zt(e.transformTags,function(v,O){let k;typeof v=="function"?k=v:typeof v=="string"&&(k=Kn.simpleTransform(v)),O==="*"?p=k:d[O]=k});let m,g,y,b,_,w,T=!1;I();const S=new v1.Parser({onopentag:function(v,O){if(e.onOpenTag&&e.onOpenTag(v,O),e.enforceHtmlBoundary&&v==="html"&&I(),_){w++;return}const k=new i(v,O);g.push(k);let q=!1;const R=!!k.text;let V;if(Ye(d,v)&&(V=d[v](v,O),k.attribs=O=V.attribs,V.text!==void 0&&(k.innerText=V.text),v!==V.tagName&&(k.name=v=V.tagName,b[m]=V.tagName)),p&&(V=p(v,O),k.attribs=O=V.attribs,v!==V.tagName&&(k.name=v=V.tagName,b[m]=V.tagName)),(!s(v)||e.disallowedTagsMode==="recursiveEscape"&&!N1(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(q=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(v)!==-1&&(_=!0,w=1)),m++,q){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!R){const K=C(k.innerText);e.textFilter?r+=e.textFilter(K,v):r+=K,T=!0}return}u=r,r=""}r+="<"+v,v==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(k.innerText=""),q&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Zt(O,function(K,J){r+=" "+J+'="'+C(K||"",!0)+'"'}):(!a||Ye(a,v)||a["*"])&&Zt(O,function(K,J){if(!O1.test(J)){delete k.attribs[J];return}if(K===""&&!e.allowedEmptyAttributes.includes(J)&&(e.nonBooleanAttributes.includes(J)||e.nonBooleanAttributes.includes("*"))){delete k.attribs[J];return}let Pe=!1;if(!a||Ye(a,v)&&a[v].indexOf(J)!==-1||a["*"]&&a["*"].indexOf(J)!==-1||Ye(l,v)&&l[v].test(J)||l["*"]&&l["*"].test(J))Pe=!0;else if(a&&a[v]){for(const H of a[v])if(w1(H)&&H.name&&H.name===J){Pe=!0;let Q="";if(H.multiple===!0){const Se=K.split(" ");for(const me of Se)H.values.indexOf(me)!==-1&&(Q===""?Q=me:Q+=" "+me)}else H.values.indexOf(K)>=0&&(Q=K);K=Q}}if(Pe){if(e.allowedSchemesAppliedToAttributes.indexOf(J)!==-1&&L(v,K)){delete k.attribs[J];return}if(v==="script"&&J==="src"){let H=!0;try{const Q=U(K);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Se=(e.allowedScriptHostnames||[]).find(function(be){return be===Q.url.hostname}),me=(e.allowedScriptDomains||[]).find(function(be){return Q.url.hostname===be||Q.url.hostname.endsWith(`.${be}`)});H=Se||me}}catch{H=!1}if(!H){delete k.attribs[J];return}}if(v==="iframe"&&J==="src"){let H=!0;try{const Q=U(K);if(Q.isRelativeUrl)H=Ye(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Se=(e.allowedIframeHostnames||[]).find(function(be){return be===Q.url.hostname}),me=(e.allowedIframeDomains||[]).find(function(be){return Q.url.hostname===be||Q.url.hostname.endsWith(`.${be}`)});H=Se||me}}catch{H=!1}if(!H){delete k.attribs[J];return}}if(J==="srcset")try{let H=S1(K);if(H.forEach(function(Q){L("srcset",Q.url)&&(Q.evil=!0)}),H=Ca(H,function(Q){return!Q.evil}),H.length)K=k1(Ca(H,function(Q){return!Q.evil})),k.attribs[J]=K;else{delete k.attribs[J];return}}catch{delete k.attribs[J];return}if(J==="class"){const H=f[v],Q=f["*"],Se=h[v],me=c[v],be=c["*"],d0=h["*"],Fs=[Se,d0].concat(me,be).filter(function(h0){return h0});if(H&&Q?K=B(K,Ta(H,Q),Fs):K=B(K,H||Q,Fs),!K.length){delete k.attribs[J];return}}if(J==="style"){if(e.parseStyleAttributes)try{const H=T1(v+" {"+K+"}",{map:!1}),Q=x(H,e.allowedStyles);if(K=N(Q),K.length===0){delete k.attribs[J];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+v+" {"+K+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete k.attribs[J];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+J,K&&K.length?r+='="'+C(K,!0)+'"':e.allowedEmptyAttributes.includes(J)&&(r+='=""')}else delete k.attribs[J]}),e.selfClosing.indexOf(v)!==-1?r+=" />":(r+=">",k.innerText&&!R&&!e.textFilter&&(r+=C(k.innerText),T=!0)),q&&(r=u+C(r),u=""),k.openingTagLength=r.length-k.tagPosition},ontext:function(v){if(_)return;const O=g[g.length-1];let k;if(O&&(k=O.tag,v=O.innerText!==void 0?O.innerText:v),e.disallowedTagsMode==="completelyDiscard"&&!s(k))v="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))r+=v;else if(!T){const q=C(v,!1);e.textFilter?r+=e.textFilter(q,k):r+=q}if(g.length){const q=g[g.length-1];q.text+=v}},onclosetag:function(v,O){if(e.onCloseTag&&e.onCloseTag(v,O),_)if(w--,!w)_=!1;else return;const k=g.pop();if(!k)return;if(k.tag!==v){g.push(k);return}_=e.enforceHtmlBoundary?v==="html":!1,m--;const q=y[m];if(q){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}u=r,r=""}if(b[m]&&(v=b[m],delete b[m]),e.exclusiveFilter){const R=e.exclusiveFilter(k);if(R==="excludeTag"){q&&(r=u,u=""),r=r.substring(0,k.tagPosition)+r.substring(k.tagPosition+k.openingTagLength);return}else if(R){r=r.substring(0,k.tagPosition);return}}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),e.selfClosing.indexOf(v)!==-1||O&&!s(v)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){q&&(r=u,u="");return}r+="</"+v+">",q&&(r=u+C(r),u=""),T=!1}},e.parser);return S.write(n),S.end(),r;function I(){r="",m=0,g=[],y={},b={},_=!1,w=0}function C(v,O){return typeof v!="string"&&(v=v+""),e.parser.decodeEntities&&(v=v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(v=v.replace(/"/g,"""))),v=v.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(v=v.replace(/"/g,""")),v}function L(v,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const R=O.indexOf("<!--");if(R===-1)break;const V=O.indexOf("-->",R+4);if(V===-1)break;O=O.substring(0,R)+O.substring(V+3)}const k=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const q=k[1].toLowerCase();return Ye(e.allowedSchemesByTag,v)?e.allowedSchemesByTag[v].indexOf(q)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(q)===-1}function U(v){if(v=v.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),v.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let R=0;R<100;R++)O+=`/${R}`;const k=new URL(v,O);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function x(v,O){if(!O)return v;const k=v.nodes[0];let q;return O[k.selector]&&O["*"]?q=Ta(O[k.selector],O["*"]):q=O[k.selector]||O["*"],q&&(v.nodes[0].nodes=k.nodes.reduce(A(q),[])),v}function N(v){return v.nodes[0].nodes.reduce(function(O,k){return O.push(`${k.prop}:${k.value}${k.important?" !important":""}`),O},[]).join(";")}function A(v){return function(O,k){return Ye(v,k.prop)&&v[k.prop].some(function(R){return R.test(k.value)})&&O.push(k),O}}function B(v,O,k){return O?(v=v.split(/\s+/),v.filter(function(q){return O.indexOf(q)!==-1||k.some(function(R){return R.test(q)})}).join(" ")):v}}const I1={decodeEntities:!0};Kn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Kn.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const P1=oh(A1),f0=dn();class hr extends Cl{constructor(t,r,u,i,s){super(s);bn(this,"__src");bn(this,"__altText");bn(this,"__width");bn(this,"__height");this.__src=t,this.__altText=r,this.__width=u,this.__height=i}static getType(){return"image"}static clone(t){return new hr(t.__src,t.__altText,t.__width,t.__height,t.__key)}static importJSON(t){return Wi({altText:t.altText,height:t.height,src:t.src,width:t.width})}exportJSON(){return{altText:this.__altText,height:this.__height,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const u=r.getAttribute("src")??"";if(!u)return null;const i=r.getAttribute("width"),s=r.getAttribute("height");return{node:Wi({altText:r.getAttribute("alt")??"",height:s?Number(s):void 0,src:u,width:i?Number(i):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.__src),this.__altText&&t.setAttribute("alt",this.__altText),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}decorate(t){return W.jsx("img",{alt:this.__altText,height:this.__height,onClick:r=>{r.preventDefault(),t.dispatchCommand(f0,{key:this.getKey(),src:this.__src})},src:this.__src,width:this.__width})}}function Wi({altText:n="",height:e,src:t,width:r}){return new hr(t,n,r,e)}function Ea(n){return n instanceof hr}const L1="_editor_1vazb_1",D1="_meta_1vazb_17",M1="_active_1vazb_25",R1="_toolbar_1vazb_36",B1="_bold_1vazb_55",F1="_italic_1vazb_59",j1="_link_1vazb_63",q1="_list_1vazb_69",U1="_paragraph_1vazb_70",fe={editor:L1,meta:D1,active:M1,toolbar:R1,bold:B1,italic:F1,link:j1,list:q1,paragraph:U1},z1=()=>{const[n]=Oe(),[e,t]=z.useState(!1),[r,u]=z.useState(!1),[i,s]=z.useState(!1),[o,a]=z.useState(!1),[l,f]=z.useState(!1),[h,c]=z.useState(""),[d,p]=z.useState(null),[m,g]=z.useState(""),y=z.useRef(null),b=z.useRef(null),_=z.useRef(null),w=z.useRef(!1),T=R=>R.preventDefault(),S=z.useCallback(R=>{_.current=P(R)?R.clone():null},[]),I=z.useCallback(R=>{n.update(()=>{_.current&&ke(_.current)}),R(),_.current=null},[n]),C=R=>{w.current=!0,R.preventDefault()},L=()=>{if(w.current){w.current=!1;return}v()},U=z.useCallback(()=>{u(!1),c(""),p(null)},[]),x=z.useCallback(()=>{a(!1),g("")},[]),N=z.useCallback(R=>{u(!0),c((R==null?void 0:R.src)??""),p((R==null?void 0:R.key)??null),x(),setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},0)},[x]),A=z.useCallback(R=>{n.getEditorState().read(()=>{S(j())}),a(!0),g(R),U(),setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},0)},[U,n,S]),B=z.useCallback(()=>{I(()=>{n.dispatchCommand(rn,{url:m,target:"_blank"})}),x()},[x,n,m,I]),v=z.useCallback(()=>{const R=h.trim();if(!R){U();return}n.update(()=>{if(d){const V=ae(d);Ea(V)&&V.setSrc(R);return}ds([Wi({src:R})])}),U()},[U,n,d,h]),O=z.useCallback(()=>{if(!d){U();return}n.update(()=>{const R=ae(d);if(Ea(R)){const V=R.getParent();Ft(V)&&V.getChildrenSize()===1?V.remove():R.remove()}}),U()},[U,n,d]),k=z.useCallback(()=>{I(()=>{n.dispatchCommand(rn,null)}),x()},[x,n,I]),q=z.useCallback(()=>{const R=j();if(!P(R)){if(Ne(R)){const ft=R.getNodes(),K=ft[0]??null,J=(K==null?void 0:K.getParent())??null;t(ft.some(H=>D(H)&&H.hasFormat("bold"))),s(ft.some(H=>D(H)&&H.hasFormat("italic"))),f(Z(J)||re(J)||Z(K)||re(K));const Pe=tt(K)?K:tt(J)?J:null;if(Pe){a(!0),g(Pe.getURL());return}a(!1),g(""),_.current=null;return}t(!1),s(!1),f(!1),a(!1),g(""),_.current=null;return}const[V]=R.getNodes(),Ie=(V==null?void 0:V.getParent())??null;if(t(R.hasFormat("bold")),s(R.hasFormat("italic")),f(Z(Ie)||re(Ie)),tt(Ie)){a(!0),g(Ie.getURL()),S(R);return}a(!1),g(""),_.current=null},[S]);return z.useEffect(()=>at(n.registerUpdateListener(({editorState:R})=>{R.read(()=>{q()})}),n.registerCommand(f0,R=>(N(R),!0),nt),n.registerCommand(hu,()=>(n.getEditorState().read(()=>{q()}),!1),nt)),[n,N,q]),W.jsxs("div",{className:fe.toolbar,"data-cy":"Toolbar",children:[W.jsx(Ke.Button,{className:dt.t(e&&fe.active),onClick:()=>{n.dispatchCommand($e,"bold")},title:"Bold",variant:"minimal",children:W.jsx(Je.Icon,{name:"bold"})}),W.jsx(Ke.Button,{className:dt.t(i&&fe.active),onClick:()=>{n.dispatchCommand($e,"italic")},title:"Italic",variant:"minimal",children:W.jsx(Je.Icon,{name:"italic"})}),W.jsx(Ke.Button,{className:dt.t(l&&fe.active),onClick:()=>{l?n.dispatchCommand($l,void 0):n.dispatchCommand(Wl,void 0)},title:"List",variant:"minimal",children:W.jsx(Je.Icon,{name:"list"})}),W.jsx(Ke.Button,{className:dt.t(o&&fe.active),onClick:()=>{o?k():(n.dispatchCommand(rn,{url:"https://"}),A("https://"))},title:"Link",variant:"minimal",children:W.jsx(Je.Icon,{name:"link"})}),W.jsx(Ke.Button,{className:dt.t(r&&fe.active),onClick:()=>{r?U():N()},title:"Image",variant:"minimal",children:W.jsx(Je.Icon,{name:"image"})}),W.jsxs("div",{className:dt.t(fe.meta,o||r?fe.active:""),children:[o&&W.jsxs(W.Fragment,{children:[W.jsx(qs.Input,{className:dt.t(fe.active),onBlur:()=>{B()},onChange:R=>g(R.target.value),onKeyDown:R=>{R.key==="Enter"&&(R.preventDefault(),B())},ref:b,value:m}),W.jsx(Ke.Button,{onClick:()=>{B()},onMouseDown:T,variant:"minimal",children:W.jsx(Je.Icon,{name:"check",variant:"primary"})}),W.jsx(Ke.Button,{onClick:()=>k(),onMouseDown:T,variant:"minimal",children:W.jsx(Je.Icon,{name:"trash",variant:"danger"})})]}),r&&W.jsxs(W.Fragment,{children:[W.jsx(qs.Input,{className:dt.t(fe.active),onBlur:L,onChange:R=>c(R.target.value),onKeyDown:R=>{R.key==="Enter"&&(R.preventDefault(),w.current=!0,v())},ref:y,value:h}),W.jsx(Ke.Button,{onClick:()=>v(),onMouseDown:C,variant:"minimal",children:W.jsx(Je.Icon,{name:"check",variant:"primary"})}),W.jsx(Ke.Button,{onClick:()=>O(),onMouseDown:C,variant:"minimal",children:W.jsx(Je.Icon,{name:"trash",variant:"danger"})})]})]})]})},W1=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,$1=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,H1=[n=>{const e=W1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=$1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function V1(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}function G1({content:n=""}){const[e]=Oe();return z.useEffect(()=>{e.update(()=>{const r=new DOMParser().parseFromString(n,"text/html"),u=Ll(e,r);ie().clear().select(),ds(u),ke(null)})},[e,n]),null}const K1=({autofocus:n=!1,autolink:e=!1,content:t,inline:r=!1,onChange:u})=>{const i={namespace:"Editor",theme:{link:fe.link,list:{ol:fe.list,ul:fe.list},paragraph:fe.paragraph,text:{bold:fe.bold,italic:fe.italic}},onError(s){throw s},nodes:[ku,ir,pn,sr,hr]};return W.jsx("div",{className:fe.editor,"data-cy":"Editor",children:W.jsxs(bd,{initialConfig:i,children:[!r&&W.jsx(z1,{}),W.jsx(ih,{contentEditable:W.jsx(Td,{}),ErrorBoundary:kd}),n&&W.jsx(od,{}),e&&W.jsx(gd,{matchers:H1}),W.jsx(Rd,{}),t&&W.jsx(G1,{content:t}),W.jsx(Bd,{validateUrl:V1}),W.jsx(Fd,{}),u&&W.jsx(qd,{onChange:(s,o)=>{s.read(()=>{const a=Dl(o,null),l=P1(a,{allowedTags:["a","b","br","i","img","li","ol","p","ul"]});u(l)})}})]})})};exports.Editor=K1;
|
|
58
58
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../assets/
|
|
1
|
+
import '../../assets/index32.css';var v0 = Object.defineProperty;
|
|
2
2
|
var w0 = (n, e, t) => e in n ? v0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var vn = (n, e, t) => w0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as H, jsxs as Dt, Fragment as Hr } from "react/jsx-runtime";
|
|
@@ -11351,7 +11351,7 @@ function Xi({
|
|
|
11351
11351
|
function Ia(n) {
|
|
11352
11352
|
return n instanceof _r;
|
|
11353
11353
|
}
|
|
11354
|
-
const W1 = "
|
|
11354
|
+
const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1 = "_toolbar_1vazb_36", K1 = "_bold_1vazb_55", J1 = "_italic_1vazb_59", X1 = "_link_1vazb_63", Z1 = "_list_1vazb_69", Q1 = "_paragraph_1vazb_70", ce = {
|
|
11355
11355
|
editor: W1,
|
|
11356
11356
|
meta: H1,
|
|
11357
11357
|
active: V1,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index33.css');const t=require("react/jsx-runtime"),n=require("../message/index.cjs"),a="_messages_1ec74_1",r={messages:a},c=({messages:e})=>e.length?t.jsx("div",{className:r.messages,"data-cy":"Messages",children:e.map(s=>t.jsx(n.Message,{...s},s.id))}):null;exports.Messages=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Message as a } from "../message/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index33.css';const r = "_messages_1ec74_1", m = {
|
|
4
4
|
messages: r
|
|
5
5
|
}, c = ({
|
|
6
6
|
messages: s
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index23.css');const e=require("react/jsx-runtime"),t=require("../aside/index.cjs"),i=require("../branding/index.cjs"),a=require("../figure/index.cjs"),c=require("../icon/index.cjs"),l=require("../nav/index.cjs"),u="_menu_gakcc_29",m="_portal_gakcc_54",o={menu:u,portal:m},d=({children:n,portals:r,open:s=!0})=>e.jsxs("details",{className:o.menu,open:s||void 0,"data-cy":"Portal",children:[e.jsx("summary",{"aria-label":"Show menu",children:e.jsx(c.Icon,{name:"menu",size:"large",variant:"primary"})}),e.jsxs(t.Aside,{className:o.portal,children:[e.jsx(a.Figure,{children:e.jsx(i.Branding,{name:"logo",size:86,variant:"white"})}),r&&e.jsx(l.Nav,{horizontal:!0,children:r}),n&&n]})]});exports.Portal=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,7 +4,7 @@ import { Branding as i } from "../branding/index.js";
|
|
|
4
4
|
import { Figure as l } from "../figure/index.js";
|
|
5
5
|
import { Icon as s } from "../icon/index.js";
|
|
6
6
|
import { Nav as c } from "../nav/index.js";
|
|
7
|
-
import '../../assets/
|
|
7
|
+
import '../../assets/index23.css';const p = "_menu_gakcc_29", u = "_portal_gakcc_54", t = {
|
|
8
8
|
menu: p,
|
|
9
9
|
portal: u
|
|
10
10
|
}, y = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const u=require("react/jsx-runtime"),i=require("react"),w=require("../toast/index.cjs"),T="_toasts_m9a8k_1",h={toasts:T},p=({defaultDurationMs:r=5e3,onRemove:m,toasts:n})=>{const d=i.useRef(new Map),[a,l]=i.useState(new Set),c=i.useCallback(e=>{l(t=>t.has(e)?t:new Set(t).add(e))},[]);return i.useEffect(()=>{const e=d.current,t=new Set(n.map(s=>s.id));l(s=>{const o=new Set([...s].filter(f=>t.has(f)));return o.size===s.size?s:o});for(const s of n){if(a.has(s.id)||e.has(s.id))continue;const o=s.durationMs??r;e.set(s.id,window.setTimeout(()=>{c(s.id)},o))}for(const[s,o]of e)t.has(s)&&!a.has(s)||(window.clearTimeout(o),e.delete(s))},[a,r,c,n]),i.useEffect(()=>{const e=d.current;return()=>{for(const t of e.values())window.clearTimeout(t);e.clear()}},[]),n.length?u.jsx("div",{className:h.toasts,"data-cy":"Toasts",children:n.map(e=>u.jsx(w.Toast,{label:e.label,onClick:()=>c(e.id),onExitComplete:()=>m(e.id),open:!a.has(e.id),type:e.type},e.id))}):null};exports.Toasts=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as p, useState as w, useCallback as h, useEffect as m } from "react";
|
|
3
3
|
import { Toast as T } from "../toast/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index21.css';const v = "_toasts_m9a8k_1", S = {
|
|
5
5
|
toasts: v
|
|
6
6
|
}, b = ({
|
|
7
7
|
defaultDurationMs: c = 5e3,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index20.css');const e=require("react/jsx-runtime"),i=require("../_card/index.cjs"),d="_widget_36ox2_1",s={widget:d},n=({children:t})=>e.jsx("div",{className:s.widget,"data-cy":"Widget",children:e.jsx(i.Card,{children:t})});exports.Widget=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Card as d } from "../_card/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index20.css';const i = "_widget_36ox2_1", o = {
|
|
4
4
|
widget: i
|
|
5
5
|
}, c = ({
|
|
6
6
|
children: e
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const o=require("react/jsx-runtime"),s=require("../icon/index.cjs"),i="_accordion_1mzhl_1",t={accordion:i},d=({children:e,icon:c,label:n,open:r})=>o.jsxs("details",{className:t.accordion,open:r||void 0,"data-cy":"Accordion",children:[o.jsxs("summary",{children:[c&&o.jsx(s.Icon,{name:c}),n&&n]}),e]});exports.Accordion=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport type { IconName } from '../icon/icons';\nimport styles from './styles.module.css';\n\nexport type AccordionProps = {\n children: React.ReactNode;\n icon?: IconName;\n label?: string;\n open?: boolean;\n};\n\nexport const Accordion = ({ children, icon, label, open
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport type { IconName } from '../icon/icons';\nimport styles from './styles.module.css';\n\nexport type AccordionProps = {\n children: React.ReactNode;\n icon?: IconName;\n label?: string;\n open?: boolean;\n};\n\nexport const Accordion = ({ children, icon, label, open }: AccordionProps) => {\n return (\n <details\n className={styles.accordion}\n open={open || undefined}\n >\n <summary>\n {icon && <Icon name={icon} />}\n {label && label}\n </summary>\n {children}\n </details>\n );\n};\n"],"names":["Accordion","children","icon","label","open","jsxs","styles","accordion","undefined","jsx","Icon"],"mappings":"2LAWaA,EAAYA,CAAC,CAAEC,SAAAA,EAAUC,KAAAA,EAAMC,MAAAA,EAAOC,KAAAA,CAAqB,IAEpEC,OAAC,WACC,UAAWC,EAAOC,UAClB,KAAMH,GAAQI,OAAU,UAAA,YAExB,SAAA,CAAAH,OAAC,UAAA,CACEH,SAAAA,CAAAA,GAAQO,EAAAA,IAACC,EAAAA,KAAA,CAAK,KAAMR,CAAAA,CAAK,EACzBC,GAASA,CAAAA,EACZ,EACCF,CAAAA,EACH"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import '../../assets/
|
|
4
|
-
accordion:
|
|
1
|
+
import { jsxs as r, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as i } from "../icon/index.js";
|
|
3
|
+
import '../../assets/index19.css';const a = "_accordion_1mzhl_1", t = {
|
|
4
|
+
accordion: a
|
|
5
5
|
}, l = ({
|
|
6
6
|
children: n,
|
|
7
7
|
icon: o,
|
|
8
8
|
label: c,
|
|
9
|
-
open: s
|
|
10
|
-
}) => /* @__PURE__ */ r("details", { className: t.accordion, open: s, "data-cy": "Accordion", children: [
|
|
9
|
+
open: s
|
|
10
|
+
}) => /* @__PURE__ */ r("details", { className: t.accordion, open: s || void 0, "data-cy": "Accordion", children: [
|
|
11
11
|
/* @__PURE__ */ r("summary", { children: [
|
|
12
|
-
o && /* @__PURE__ */
|
|
12
|
+
o && /* @__PURE__ */ d(i, { name: o }),
|
|
13
13
|
c && c
|
|
14
14
|
] }),
|
|
15
15
|
n
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport type { IconName } from '../icon/icons';\nimport styles from './styles.module.css';\n\nexport type AccordionProps = {\n children: React.ReactNode;\n icon?: IconName;\n label?: string;\n open?: boolean;\n};\n\nexport const Accordion = ({ children, icon, label, open
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/accordion/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport type { IconName } from '../icon/icons';\nimport styles from './styles.module.css';\n\nexport type AccordionProps = {\n children: React.ReactNode;\n icon?: IconName;\n label?: string;\n open?: boolean;\n};\n\nexport const Accordion = ({ children, icon, label, open }: AccordionProps) => {\n return (\n <details\n className={styles.accordion}\n open={open || undefined}\n >\n <summary>\n {icon && <Icon name={icon} />}\n {label && label}\n </summary>\n {children}\n </details>\n );\n};\n"],"names":["Accordion","children","icon","label","open","jsxs","styles","accordion","undefined","jsx","Icon"],"mappings":";;;;GAWaA,IAAYA,CAAC;AAAA,EAAEC,UAAAA;AAAAA,EAAUC,MAAAA;AAAAA,EAAMC,OAAAA;AAAAA,EAAOC,MAAAA;AAAqB,MAEpE,gBAAAC,EAAC,aACC,WAAWC,EAAOC,WAClB,MAAMH,KAAQI,QAAU,WAAA,aAExB,UAAA;AAAA,EAAA,gBAAAH,EAAC,WAAA,EACEH,UAAAA;AAAAA,IAAAA,KAAQ,gBAAAO,EAACC,GAAA,EAAK,MAAMR,EAAAA,CAAK;AAAA,IACzBC,KAASA;AAAAA,EAAAA,GACZ;AAAA,EACCF;AAAAA,GACH;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const C=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),t=require("../link/index.cjs"),p="data:image/svg+xml,%3csvg%20width='20'%20height='24'%20viewBox='0%200%2020%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.7045%2012.7631C16.7166%2011.8432%2016.9669%2010.9413%2017.4321%2010.1412C17.8972%209.34108%2018.5621%208.66885%2019.3648%208.18702C18.8548%207.47597%2018.1821%206.89081%2017.4%206.478C16.6178%206.0652%2015.7479%205.83613%2014.8592%205.80898C12.9635%205.61471%2011.1258%206.91644%2010.1598%206.91644C9.17506%206.91644%207.68776%205.82827%206.08616%205.86044C5.05021%205.89311%204.04059%206.18722%203.15568%206.7141C2.27077%207.24099%201.54075%207.98268%201.03674%208.86691C-1.14648%2012.5573%200.482005%2017.9809%202.57338%2020.964C3.61975%2022.4247%204.84264%2024.0564%206.44279%2023.9985C8.00863%2023.9351%208.59344%2023.0237%2010.4835%2023.0237C12.3561%2023.0237%2012.9048%2023.9985%2014.5374%2023.9617C16.2176%2023.9351%2017.2762%2022.4945%2018.2859%2021.02C19.0377%2019.9792%2019.6162%2018.8288%2020%2017.6116C19.0238%2017.2085%2018.1908%2016.5338%2017.6048%2015.6716C17.0187%2014.8094%2016.7056%2013.7979%2016.7045%2012.7631Z'%20fill='black'/%3e%3cpath%20d='M13.6208%203.84713C14.5369%202.77343%2014.9883%201.39335%2014.879%200C13.4793%200.143519%2012.1865%200.796596%2011.258%201.82911C10.804%202.33351%2010.4563%202.92033%2010.2348%203.55601C10.0132%204.19168%209.92219%204.86375%209.96686%205.5338C10.6669%205.54084%2011.3595%205.3927%2011.9924%205.10054C12.6253%204.80838%2013.1821%204.37982%2013.6208%203.84713Z'%20fill='black'/%3e%3c/svg%3e",i="data:image/svg+xml,%3csvg%20height='15'%20viewBox='0%200%2074%2015'%20width='74'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M57.5181%2011.4097H59.1469V0.398144H57.5181V11.4097ZM72.1888%204.36461L70.3217%209.13882H70.2658L68.328%204.36461H66.5735L69.4793%2011.0371L67.8234%2014.749H69.5212L74%204.36461H72.1888ZM62.9519%2010.1588C62.4176%2010.1588%2061.6739%209.89019%2061.6739%209.22338C61.6739%208.37424%2062.6001%208.04833%2063.4005%208.04833C64.1163%208.04833%2064.4541%208.20424%2064.8888%208.41652C64.7622%209.43655%2063.892%2010.1588%2062.9519%2010.1588ZM63.1483%204.12414C61.969%204.12414%2060.7469%204.64825%2060.2424%205.81009L61.6879%206.41876C61.9969%205.81009%2062.5721%205.61102%2063.1762%205.61102C64.0185%205.61102%2064.8748%206.12103%2064.8888%207.0283V7.14105C64.5938%206.97105%2063.9627%206.71648%2063.1902%206.71648C61.632%206.71648%2060.0451%207.5806%2060.0451%209.1952C60.0451%2010.6689%2061.323%2011.6184%2062.7546%2011.6184C63.8501%2011.6184%2064.4541%2011.1225%2064.8329%2010.5411H64.8888V11.3912H66.4609V7.16924C66.4609%205.21463%2065.0154%204.12414%2063.1483%204.12414ZM53.0821%205.70527H50.7655V1.93082H53.0821C54.2998%201.93082%2054.9911%202.9482%2054.9911%203.81761C54.9911%204.67115%2054.2998%205.70527%2053.0821%205.70527ZM53.0402%200.398144H49.1375V11.4097H50.7655V7.23795H53.0402C54.8453%207.23795%2056.6199%205.91843%2056.6199%203.81761C56.6199%201.71678%2054.8453%200.398144%2053.0402%200.398144ZM31.7583%2010.1606C30.6332%2010.1606%2029.6913%209.21017%2029.6913%207.90475C29.6913%206.58524%2030.6332%205.61982%2031.7583%205.61982C32.8695%205.61982%2033.7406%206.58524%2033.7406%207.90475C33.7406%209.21017%2032.8695%2010.1606%2031.7583%2010.1606ZM33.6289%204.98121H33.5722C33.2064%204.54166%2032.5038%204.1444%2031.6178%204.1444C29.7611%204.1444%2028.0599%205.78983%2028.0599%207.90475C28.0599%2010.0047%2029.7611%2011.6369%2031.6178%2011.6369C32.5038%2011.6369%2033.2064%2011.2396%2033.5722%2010.7851H33.6289V11.3251C33.6289%2012.7582%2032.8695%2013.5246%2031.6457%2013.5246C30.6471%2013.5246%2030.0282%2012.8005%2029.7751%2012.1901L28.3549%2012.7864C28.7626%2013.78%2029.8458%2015%2031.6457%2015C33.5582%2015%2035.1757%2013.8646%2035.1757%2011.0978V4.37078H33.6289V4.98121ZM36.3008%2011.4097H37.9323V0.397264H36.3008V11.4097ZM40.3362%207.77703C40.2943%206.32979%2041.4474%205.59164%2042.2766%205.59164C42.9243%205.59164%2043.4725%205.91755%2043.6549%206.38616L40.3362%207.77703ZM45.3989%206.52798C45.0899%205.69117%2044.1472%204.1444%2042.2208%204.1444C40.3083%204.1444%2038.7196%205.6621%2038.7196%207.89066C38.7196%209.9906%2040.2943%2011.6369%2042.4032%2011.6369C44.1053%2011.6369%2045.0899%2010.5869%2045.4976%209.97651L44.2319%209.12473C43.8103%209.74925%2043.2333%2010.1606%2042.4032%2010.1606C41.5739%2010.1606%2040.983%209.77744%2040.6033%209.02607L45.5674%206.95343L45.3989%206.52798ZM5.8501%205.29391V6.88296H9.61836C9.50576%207.77703%209.21072%208.42974%208.76118%208.88337C8.21214%209.43743%207.35409%2010.0479%205.8501%2010.0479C3.52909%2010.0479%201.71523%208.1602%201.71523%205.8189C1.71523%203.47672%203.52909%201.58993%205.8501%201.58993C7.10182%201.58993%208.01574%202.08673%208.69048%202.72535L9.80167%201.60403C8.85895%200.69587%207.6081%200%205.8501%200C2.67191%200%200%202.61172%200%205.8189C0%209.02607%202.67191%2011.6369%205.8501%2011.6369C7.56533%2011.6369%208.85895%2011.0688%209.8715%2010.0047C10.9129%208.95472%2011.2358%207.4793%2011.2358%206.28663C11.2358%205.91755%2011.2079%205.57754%2011.1512%205.29391H5.8501ZM15.5208%2010.1606C14.3957%2010.1606%2013.425%209.22426%2013.425%207.89066C13.425%206.54207%2014.3957%205.61982%2015.5208%205.61982C16.6451%205.61982%2017.6158%206.54207%2017.6158%207.89066C17.6158%209.22426%2016.6451%2010.1606%2015.5208%2010.1606ZM15.5208%204.1444C13.4669%204.1444%2011.7936%205.71936%2011.7936%207.89066C11.7936%2010.0479%2013.4669%2011.6369%2015.5208%2011.6369C17.5739%2011.6369%2019.2472%2010.0479%2019.2472%207.89066C19.2472%205.71936%2017.5739%204.1444%2015.5208%204.1444ZM23.65%2010.1606C22.5249%2010.1606%2021.5542%209.22426%2021.5542%207.89066C21.5542%206.54207%2022.5249%205.61982%2023.65%205.61982C24.7752%205.61982%2025.745%206.54207%2025.745%207.89066C25.745%209.22426%2024.7752%2010.1606%2023.65%2010.1606ZM23.65%204.1444C21.597%204.1444%2019.9237%205.71936%2019.9237%207.89066C19.9237%2010.0479%2021.597%2011.6369%2023.65%2011.6369C25.7031%2011.6369%2027.3764%2010.0479%2027.3764%207.89066C27.3764%205.71936%2025.7031%204.1444%2023.65%204.1444Z'%20/%3e%3c/svg%3e",a="data:image/svg+xml,%3csvg%20width='21'%20height='24'%20viewBox='0%200%2021%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.80482%2011.4617L0.0895996%2022.0059C0.0905121%2022.0078%200.090512%2022.0106%200.0914244%2022.0125C0.389807%2023.1574%201.41179%2024%202.62539%2024C3.11083%2024%203.56616%2023.8656%203.95671%2023.6305L3.98773%2023.6118L14.9229%2017.1593L9.80482%2011.4617Z'%20fill='%23EA4335'/%3e%3cpath%20d='M19.6331%209.66619L19.624%209.65966L14.9028%206.86123L9.58392%2011.7013L14.9219%2017.1582L19.6176%2014.3878C20.4406%2013.9324%2021%2013.045%2021%2012.0223C21%2011.0052%2020.4489%2010.1225%2019.6331%209.66619Z'%20fill='%23FBBC04'/%3e%3cpath%20d='M0.0894234%201.99331C0.0310244%202.21353%200%202.44494%200%202.68382V21.3163C0%2021.5552%200.0310245%2021.7866%200.0903359%2022.0059L10.1386%2011.7313L0.0894234%201.99331Z'%20fill='%234285F4'/%3e%3cpath%20d='M9.87657%2011.9999L14.9044%206.85935L3.98192%200.383507C3.58499%200.139962%203.12145%20-4.76837e-06%202.62597%20-4.76837e-06C1.41237%20-4.76837e-06%200.388558%200.844468%200.0901759%201.99034C0.0901759%201.99127%200.0892639%201.9922%200.0892639%201.99314L9.87657%2011.9999Z'%20fill='%2334A853'/%3e%3c/svg%3e",g="_apple_1m7d3_17",c="_google_1m7d3_49",l={"app-link":"_app-link_1m7d3_1",apple:g,google:c},n=({label:o,type:e})=>C.jsxs(t.Link,{to:e==="apple"?"https://apps.apple.com/app/6478964287":"https://play.google.com/store/apps/details?id=no.solibo.mobile.home",className:s.t(l["app-link"],l[e]),"data-cy":"AppLink",children:[e==="apple"?C.jsx("img",{src:p,alt:"App Store logo"}):C.jsx("img",{src:a,alt:"Google Play logo"}),C.jsxs("div",{children:[C.jsx("span",{children:o}),C.jsx("span",{children:e==="google"?C.jsx("img",{src:i,alt:"Google Play"}):"App Store"})]})]});exports.AppLink=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { t } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Link as a } from "../link/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index18.css';const g = "data:image/svg+xml,%3csvg%20width='20'%20height='24'%20viewBox='0%200%2020%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.7045%2012.7631C16.7166%2011.8432%2016.9669%2010.9413%2017.4321%2010.1412C17.8972%209.34108%2018.5621%208.66885%2019.3648%208.18702C18.8548%207.47597%2018.1821%206.89081%2017.4%206.478C16.6178%206.0652%2015.7479%205.83613%2014.8592%205.80898C12.9635%205.61471%2011.1258%206.91644%2010.1598%206.91644C9.17506%206.91644%207.68776%205.82827%206.08616%205.86044C5.05021%205.89311%204.04059%206.18722%203.15568%206.7141C2.27077%207.24099%201.54075%207.98268%201.03674%208.86691C-1.14648%2012.5573%200.482005%2017.9809%202.57338%2020.964C3.61975%2022.4247%204.84264%2024.0564%206.44279%2023.9985C8.00863%2023.9351%208.59344%2023.0237%2010.4835%2023.0237C12.3561%2023.0237%2012.9048%2023.9985%2014.5374%2023.9617C16.2176%2023.9351%2017.2762%2022.4945%2018.2859%2021.02C19.0377%2019.9792%2019.6162%2018.8288%2020%2017.6116C19.0238%2017.2085%2018.1908%2016.5338%2017.6048%2015.6716C17.0187%2014.8094%2016.7056%2013.7979%2016.7045%2012.7631Z'%20fill='black'/%3e%3cpath%20d='M13.6208%203.84713C14.5369%202.77343%2014.9883%201.39335%2014.879%200C13.4793%200.143519%2012.1865%200.796596%2011.258%201.82911C10.804%202.33351%2010.4563%202.92033%2010.2348%203.55601C10.0132%204.19168%209.92219%204.86375%209.96686%205.5338C10.6669%205.54084%2011.3595%205.3927%2011.9924%205.10054C12.6253%204.80838%2013.1821%204.37982%2013.6208%203.84713Z'%20fill='black'/%3e%3c/svg%3e", i = "data:image/svg+xml,%3csvg%20height='15'%20viewBox='0%200%2074%2015'%20width='74'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M57.5181%2011.4097H59.1469V0.398144H57.5181V11.4097ZM72.1888%204.36461L70.3217%209.13882H70.2658L68.328%204.36461H66.5735L69.4793%2011.0371L67.8234%2014.749H69.5212L74%204.36461H72.1888ZM62.9519%2010.1588C62.4176%2010.1588%2061.6739%209.89019%2061.6739%209.22338C61.6739%208.37424%2062.6001%208.04833%2063.4005%208.04833C64.1163%208.04833%2064.4541%208.20424%2064.8888%208.41652C64.7622%209.43655%2063.892%2010.1588%2062.9519%2010.1588ZM63.1483%204.12414C61.969%204.12414%2060.7469%204.64825%2060.2424%205.81009L61.6879%206.41876C61.9969%205.81009%2062.5721%205.61102%2063.1762%205.61102C64.0185%205.61102%2064.8748%206.12103%2064.8888%207.0283V7.14105C64.5938%206.97105%2063.9627%206.71648%2063.1902%206.71648C61.632%206.71648%2060.0451%207.5806%2060.0451%209.1952C60.0451%2010.6689%2061.323%2011.6184%2062.7546%2011.6184C63.8501%2011.6184%2064.4541%2011.1225%2064.8329%2010.5411H64.8888V11.3912H66.4609V7.16924C66.4609%205.21463%2065.0154%204.12414%2063.1483%204.12414ZM53.0821%205.70527H50.7655V1.93082H53.0821C54.2998%201.93082%2054.9911%202.9482%2054.9911%203.81761C54.9911%204.67115%2054.2998%205.70527%2053.0821%205.70527ZM53.0402%200.398144H49.1375V11.4097H50.7655V7.23795H53.0402C54.8453%207.23795%2056.6199%205.91843%2056.6199%203.81761C56.6199%201.71678%2054.8453%200.398144%2053.0402%200.398144ZM31.7583%2010.1606C30.6332%2010.1606%2029.6913%209.21017%2029.6913%207.90475C29.6913%206.58524%2030.6332%205.61982%2031.7583%205.61982C32.8695%205.61982%2033.7406%206.58524%2033.7406%207.90475C33.7406%209.21017%2032.8695%2010.1606%2031.7583%2010.1606ZM33.6289%204.98121H33.5722C33.2064%204.54166%2032.5038%204.1444%2031.6178%204.1444C29.7611%204.1444%2028.0599%205.78983%2028.0599%207.90475C28.0599%2010.0047%2029.7611%2011.6369%2031.6178%2011.6369C32.5038%2011.6369%2033.2064%2011.2396%2033.5722%2010.7851H33.6289V11.3251C33.6289%2012.7582%2032.8695%2013.5246%2031.6457%2013.5246C30.6471%2013.5246%2030.0282%2012.8005%2029.7751%2012.1901L28.3549%2012.7864C28.7626%2013.78%2029.8458%2015%2031.6457%2015C33.5582%2015%2035.1757%2013.8646%2035.1757%2011.0978V4.37078H33.6289V4.98121ZM36.3008%2011.4097H37.9323V0.397264H36.3008V11.4097ZM40.3362%207.77703C40.2943%206.32979%2041.4474%205.59164%2042.2766%205.59164C42.9243%205.59164%2043.4725%205.91755%2043.6549%206.38616L40.3362%207.77703ZM45.3989%206.52798C45.0899%205.69117%2044.1472%204.1444%2042.2208%204.1444C40.3083%204.1444%2038.7196%205.6621%2038.7196%207.89066C38.7196%209.9906%2040.2943%2011.6369%2042.4032%2011.6369C44.1053%2011.6369%2045.0899%2010.5869%2045.4976%209.97651L44.2319%209.12473C43.8103%209.74925%2043.2333%2010.1606%2042.4032%2010.1606C41.5739%2010.1606%2040.983%209.77744%2040.6033%209.02607L45.5674%206.95343L45.3989%206.52798ZM5.8501%205.29391V6.88296H9.61836C9.50576%207.77703%209.21072%208.42974%208.76118%208.88337C8.21214%209.43743%207.35409%2010.0479%205.8501%2010.0479C3.52909%2010.0479%201.71523%208.1602%201.71523%205.8189C1.71523%203.47672%203.52909%201.58993%205.8501%201.58993C7.10182%201.58993%208.01574%202.08673%208.69048%202.72535L9.80167%201.60403C8.85895%200.69587%207.6081%200%205.8501%200C2.67191%200%200%202.61172%200%205.8189C0%209.02607%202.67191%2011.6369%205.8501%2011.6369C7.56533%2011.6369%208.85895%2011.0688%209.8715%2010.0047C10.9129%208.95472%2011.2358%207.4793%2011.2358%206.28663C11.2358%205.91755%2011.2079%205.57754%2011.1512%205.29391H5.8501ZM15.5208%2010.1606C14.3957%2010.1606%2013.425%209.22426%2013.425%207.89066C13.425%206.54207%2014.3957%205.61982%2015.5208%205.61982C16.6451%205.61982%2017.6158%206.54207%2017.6158%207.89066C17.6158%209.22426%2016.6451%2010.1606%2015.5208%2010.1606ZM15.5208%204.1444C13.4669%204.1444%2011.7936%205.71936%2011.7936%207.89066C11.7936%2010.0479%2013.4669%2011.6369%2015.5208%2011.6369C17.5739%2011.6369%2019.2472%2010.0479%2019.2472%207.89066C19.2472%205.71936%2017.5739%204.1444%2015.5208%204.1444ZM23.65%2010.1606C22.5249%2010.1606%2021.5542%209.22426%2021.5542%207.89066C21.5542%206.54207%2022.5249%205.61982%2023.65%205.61982C24.7752%205.61982%2025.745%206.54207%2025.745%207.89066C25.745%209.22426%2024.7752%2010.1606%2023.65%2010.1606ZM23.65%204.1444C21.597%204.1444%2019.9237%205.71936%2019.9237%207.89066C19.9237%2010.0479%2021.597%2011.6369%2023.65%2011.6369C25.7031%2011.6369%2027.3764%2010.0479%2027.3764%207.89066C27.3764%205.71936%2025.7031%204.1444%2023.65%204.1444Z'%20/%3e%3c/svg%3e", s = "data:image/svg+xml,%3csvg%20width='21'%20height='24'%20viewBox='0%200%2021%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.80482%2011.4617L0.0895996%2022.0059C0.0905121%2022.0078%200.090512%2022.0106%200.0914244%2022.0125C0.389807%2023.1574%201.41179%2024%202.62539%2024C3.11083%2024%203.56616%2023.8656%203.95671%2023.6305L3.98773%2023.6118L14.9229%2017.1593L9.80482%2011.4617Z'%20fill='%23EA4335'/%3e%3cpath%20d='M19.6331%209.66619L19.624%209.65966L14.9028%206.86123L9.58392%2011.7013L14.9219%2017.1582L19.6176%2014.3878C20.4406%2013.9324%2021%2013.045%2021%2012.0223C21%2011.0052%2020.4489%2010.1225%2019.6331%209.66619Z'%20fill='%23FBBC04'/%3e%3cpath%20d='M0.0894234%201.99331C0.0310244%202.21353%200%202.44494%200%202.68382V21.3163C0%2021.5552%200.0310245%2021.7866%200.0903359%2022.0059L10.1386%2011.7313L0.0894234%201.99331Z'%20fill='%234285F4'/%3e%3cpath%20d='M9.87657%2011.9999L14.9044%206.85935L3.98192%200.383507C3.58499%200.139962%203.12145%20-4.76837e-06%202.62597%20-4.76837e-06C1.41237%20-4.76837e-06%200.388558%200.844468%200.0901759%201.99034C0.0901759%201.99127%200.0892639%201.9922%200.0892639%201.99314L9.87657%2011.9999Z'%20fill='%2334A853'/%3e%3c/svg%3e", c = "_apple_1m7d3_17", L = "_google_1m7d3_49", e = {
|
|
5
5
|
"app-link": "_app-link_1m7d3_1",
|
|
6
6
|
apple: c,
|
|
7
7
|
google: L
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const c=require("react/jsx-runtime"),d=require("../../classix-5H4IWnMA.cjs"),n="_aside_9cfhj_1",o="_meta_9cfhj_9",r="_sticky_9cfhj_27",t={aside:n,meta:o,sticky:r},u={default:t.default,meta:t.meta},l=({children:s,className:e,sticky:a=!1,variant:i="default"})=>c.jsx("aside",{className:d.t(e&&e,t.aside,a&&t.sticky,u[i]),"data-cy":"Aside",children:s});exports.Aside=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { t as d } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index26.css';const o = "_aside_9cfhj_1", f = "_meta_9cfhj_9", m = "_sticky_9cfhj_27", t = {
|
|
4
4
|
aside: o,
|
|
5
5
|
meta: f,
|
|
6
6
|
sticky: m
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const n=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),s="_badge_7j4yg_1",o="_primary_7j4yg_8",i="_info_7j4yg_13",a={badge:s,primary:o,info:i},d={default:a.default,primary:a.primary,info:a.info},c=({children:e,variant:t="default"})=>n.jsx("span",{className:r.t(a.badge,d[t]),"data-component":"badge","data-cy":"Badge",children:e});exports.Badge=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import '../../assets/
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
+
import '../../assets/index17.css';const e = "_badge_7j4yg_1", i = "_primary_7j4yg_8", s = "_info_7j4yg_13", a = {
|
|
4
4
|
badge: e,
|
|
5
5
|
primary: i,
|
|
6
6
|
info: s
|
|
@@ -8,11 +8,11 @@ import '../../assets/index16.css';const e = "_badge_knark_1", i = "_primary_knar
|
|
|
8
8
|
default: a.default,
|
|
9
9
|
primary: a.primary,
|
|
10
10
|
info: a.info
|
|
11
|
-
},
|
|
12
|
-
children:
|
|
13
|
-
variant:
|
|
14
|
-
}) => /* @__PURE__ */
|
|
11
|
+
}, g = ({
|
|
12
|
+
children: t,
|
|
13
|
+
variant: o = "default"
|
|
14
|
+
}) => /* @__PURE__ */ r("span", { className: n(a.badge, d[o]), "data-component": "badge", "data-cy": "Badge", children: t });
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
g as Badge
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),u=require("../button/index.cjs"),b="_banner_vu5j6_13",v="_visible_vu5j6_34",r={banner:b,visible:v},o=({button:a,message:s,onClick:e,onDismiss:n,visible:c=!1})=>{const i=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:l.t(r.banner,c&&r.visible),"data-cy":"Banner",children:[s,t.jsx(u.Button,{onClick:i,children:a})]})};exports.Banner=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { t as i } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Button as s } from "../button/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index16.css';const o = "_banner_vu5j6_13", _ = "_visible_vu5j6_34", t = {
|
|
5
5
|
banner: o,
|
|
6
6
|
visible: _
|
|
7
7
|
}, p = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index25.css');const e=require("react/jsx-runtime"),h=require("../../classix-5H4IWnMA.cjs");function l(c){return`url("data:image/svg+xml, ${encodeURI(c)}")`}const v={logo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="212.84 265.6 645.02 573.4"><g><path d="m212.84 681.26 8.86-19.64c9.5 6.92 23.67 11.75 37.19 11.75 15.46 0 21.74-5.15 21.74-12.07 0-21.1-65.54-6.6-65.54-48.47 0-19.16 15.46-35.11 47.51-35.11 14.17 0 28.66 3.39 39.13 10l-8.06 19.81c-10.46-6-21.25-8.86-31.24-8.86-15.45 0-21.41 5.8-21.41 12.88 0 20.77 65.54 6.44 65.54 47.82 0 18.84-15.62 34.95-47.83 34.95-17.87 0-35.91-5.32-45.89-13M317.33 636c0-33.5 26.09-58.3 61.68-58.3 35.42 0 61.67 24.64 61.67 58.3s-26.25 58.31-61.68 58.31c-35.59 0-61.68-24.8-61.68-58.29m96.94 0C414.27 614.6 399.14 600 379 600s-35.26 14.6-35.26 36 15.14 36.07 35.27 36.07 35.26-14.66 35.26-36.07m46.04-56.34h26.09v91.46h56.52v21.26h-82.61zm105.3 0h26.09v112.72h-26.09zm156.19 81.96c0 19.48-15.46 30.75-45.08 30.75h-58.3V579.65h55.08c28.18 0 42.67 11.76 42.67 29.31a27.1 27.1 0 0 1-15 24.8c12.56 4 20.61 13.69 20.61 27.86m-77.43-62.32v26.57h25.93c12.72 0 19.64-4.51 19.64-13.36S683 599.3 670.28 599.3Zm51.21 59.58c0-9.5-7.25-14-20.78-14h-30.43v27.86h30.43c13.53 0 20.78-4.19 20.78-13.85M734.51 636c0-33.5 26.09-58.3 61.68-58.3 35.43 0 61.67 24.64 61.67 58.3s-26.24 58.29-61.67 58.29c-35.59 0-61.68-24.8-61.68-58.29m96.94 0c0-21.42-15.13-36.07-35.26-36.07S760.92 614.6 760.92 636s15.14 36.07 35.27 36.07 35.26-14.66 35.26-36.07M535.93 406.9a30.06 30.06 0 1 0-30-30 30.05 30.05 0 0 0 30 30m41.29 72.66v-24.08a41.29 41.29 0 0 0-82.58 0v94.22l28.83-42.58h53.78Z" class="cls-1"/><path d="M675.26 507.22H519.83c-4.07 0 2.55-3.3 2.55-7.36l20-16.14a7.36 7.36 0 0 1 7.36-7.36h94.66a7.37 7.37 0 0 0 7.36-7.36V363.24a7.36 7.36 0 0 0-4-6.55L539 301.09a7.34 7.34 0 0 0-6.72 0L423.74 357a7.37 7.37 0 0 0-4 6.54V469a7.37 7.37 0 0 0 7.37 7.36h29.22v30.86h-60.09a7.37 7.37 0 0 1-7.36-7.36V344.68a7.38 7.38 0 0 1 4-6.55l139.35-71.72a7.37 7.37 0 0 1 6.72 0l139.67 71.4a7.37 7.37 0 0 1 4 6.56v155.5a7.37 7.37 0 0 1-7.36 7.36M380.2 789.7h-53.93v42.19c0 4.76-3.35 5.59-5 5.59s-5-.83-5-5.59v-89.7c0-4.75 3.35-5.59 5-5.59s5 .84 5 5.59v38.29h53.93v-38.29c0-4.75 3.36-5.59 5-5.59s5 .84 5 5.59v89.7c0 4.76-3.35 5.59-5 5.59s-5-.83-5-5.59Zm82.58 49.3c-29.48 0-51.56-21.94-51.56-52s22.08-52 51.56-52 51.56 21.93 51.56 52-22.08 52-51.56 52m0-95.15c-25.43 0-40.94 20.12-40.94 43.17s15.51 43 40.94 43 40.94-20 40.94-43-15.51-43.15-40.94-43.15Zm165.01 93.63c-1.67 0-5-.83-5-5.59v-72.51h-.28l-32.27 73.77a6.53 6.53 0 0 1-12.3 0l-32.3-73.35h-.28v72.09c0 4.76-3.36 5.59-5 5.59s-5-.83-5-5.59v-88.44c0-5.73 4.05-6.85 6.14-6.85s4.75.7 6.85 5.45l35.91 82h.14l35.49-82c2.1-4.75 4.75-5.45 6.85-5.45s6.14 1.12 6.14 6.85v88.44c-.06 4.76-3.41 5.59-5.09 5.59m41.36-48.06v38.14h49c4.2 0 4.89 3.08 4.89 4.48s-.69 4.47-4.89 4.47H665.1c-4.05 0-6-2-6-6v-86.92c0-4.05 2-6 6-6h51.42c4.19 0 4.89 3.07 4.89 4.47s-.7 4.47-4.89 4.47h-47.37v34.1h44c4.2 0 4.89 3.07 4.89 4.33s-.69 4.47-4.89 4.47Z"/></g></svg>'},g="_branding_gm1tj_1",i="_white_gm1tj_11",a={branding:g,default:"_default_gm1tj_7",white:i},m={default:a.default,white:a.white},r=({name:c="logo",size:t=128,variant:s="default"})=>{const n={height:t,maskImage:l(v[c].toString()),width:t};return e.jsx("span",{className:h.t(a.branding,m[s]),style:n,"data-cy":"Branding"})};exports.Branding=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { t as m } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index25.css';function v(a) {
|
|
4
4
|
return `url("data:image/svg+xml, ${encodeURI(a)}")`;
|
|
5
5
|
}
|
|
6
6
|
const l = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index34.css');const s=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),u="_button_1clt4_1",c="_danger_1clt4_22",m="_minimal_1clt4_35",_="_primary_1clt4_47",t={button:u,danger:c,minimal:m,primary:_},d={danger:t.danger,default:t.default,minimal:t.minimal,primary:t.primary},y=({children:n,className:a,disabled:r=!1,onClick:e,variant:i="default",...o})=>s.jsx("button",{className:l.t(a,t.button,d[i]),disabled:r,onClick:e,type:"button",...o,"data-cy":"Button",children:n});exports.Button=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|