@webority/ui-elements 0.191.3 → 0.193.0
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/{WuiCodeBlock-C4GqrGyO.js → WuiCodeBlock-BnRpTBm_.js} +1 -1
- package/dist/{WuiCommandPalette-CNwakljH.js → WuiCommandPalette-BSWDxEPw.js} +1 -1
- package/dist/{WuiDataTable-DKfTPdsn.js → WuiDataTable-D_9TWU-r.js} +1 -1
- package/dist/{WuiDatePicker-gZUfaTkZ.js → WuiDatePicker-B77M2_E7.js} +1 -1
- package/dist/{WuiDateRange-CNDyrPUT.js → WuiDateRange-BQ1GH9Mu.js} +1 -1
- package/dist/{WuiGantt-iEbrAdTQ.js → WuiGantt-wx8VSXiZ.js} +1 -1
- package/dist/WuiImageCrop-Cl97BHN4.js +1 -0
- package/dist/{WuiLightbox-DqAm2n8s.js → WuiLightbox-DFaHN2Fb.js} +1 -1
- package/dist/{WuiPhone-9dBrkfZf.js → WuiPhone-qw_6W3Q2.js} +1 -1
- package/dist/{WuiSelect-bvcpSY50.js → WuiSelect-DqHu2OW_.js} +1 -1
- package/dist/{WuiTimePicker-BIuLkZqU.js → WuiTimePicker-Bl3GcIS_.js} +1 -1
- package/dist/{WuiTour-CFRs1xE-.js → WuiTour-BS7Jd1Tt.js} +1 -1
- package/dist/{WuiTree-MMiIcWOJ.js → WuiTree-Qno7SM6z.js} +1 -1
- package/dist/{WuiTreePicker-CCkoPctd.js → WuiTreePicker-DWCLntLz.js} +1 -1
- package/dist/{WuiWizardStep-Cnc0DYg1.js → WuiWizardStep-CSS4B8g4.js} +1 -1
- package/dist/a.g-BUrXZ0Qj.js +1 -0
- package/dist/b.g-c7AZ9uVu.js +1 -0
- package/dist/c.g-1tKnlc4e.js +1 -0
- package/dist/{chips-DZpPt2SC.js → chips-DCkeuEvb.js} +1 -1
- package/dist/d.g-Cl1m1hN-.js +1 -0
- package/dist/{drawerDiscard-BsVbaCgB.js → drawerDiscard-mFYviRfI.js} +1 -1
- package/dist/e.g-BvqbeKNX.js +1 -0
- package/dist/elements/code-block.js +1 -1
- package/dist/elements/command-palette.js +1 -1
- package/dist/elements/data-table.js +1 -1
- package/dist/elements/date-range.js +1 -1
- package/dist/elements/datepicker.js +1 -1
- package/dist/elements/gantt.js +1 -1
- package/dist/elements/image-crop.js +1 -1
- package/dist/elements/lightbox.js +1 -1
- package/dist/elements/phone.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/status-icon.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tour.js +1 -1
- package/dist/elements/tree-picker.js +1 -1
- package/dist/elements/tree.js +1 -1
- package/dist/elements/wizard.js +1 -1
- package/dist/f.g-CNmxMCET.js +1 -0
- package/dist/fileViewer.g-DnuE1_o9.js +1 -0
- package/dist/{fileViewerImage-DnzDd-rQ.js → fileViewerImage-BxvHyZ4w.js} +1 -1
- package/dist/{fileViewerMedia-Dm99qAjY.js → fileViewerMedia-I9wn32xJ.js} +1 -1
- package/dist/{fileViewerPdf-BET_tiP6.js → fileViewerPdf-COm4n8i7.js} +1 -1
- package/dist/g.g-B-tbDuHa.js +1 -0
- package/dist/h.g-D63tQoPL.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/i.g-DRCcFvgj.js +1 -0
- package/dist/iconGlyphs.g-DRNDTVOs.js +1 -0
- package/dist/j.g-6OVN_siI.js +1 -0
- package/dist/k.g-BWqvhE7s.js +1 -0
- package/dist/l.g-BHoPnVck.js +1 -0
- package/dist/loader-sSdQNOg6.js +1 -0
- package/dist/m.g-BVQq45TF.js +1 -0
- package/dist/n.g-CFb-ps6H.js +1 -0
- package/dist/o.g-CGJASwcf.js +1 -0
- package/dist/{optionLabel-wbpl8OTJ.js → optionLabel-CuShfg_A.js} +1 -1
- package/dist/p.g-DRXC-OFe.js +1 -0
- package/dist/q.g-CIah8JGo.js +1 -0
- package/dist/r.g-BlQw7Aox.js +1 -0
- package/dist/s.g-DwIkkKgS.js +1 -0
- package/dist/{search-BtwgxJ0e.js → search-OPWGeniZ.js} +1 -1
- package/dist/server.js +1 -1
- package/dist/statusIcons-DISKRFbg.js +1 -0
- package/dist/{svgNodes-CyPS2oFH.js → svgNodes-CaPMDvv7.js} +1 -1
- package/dist/t.g-045-l40U.js +1 -0
- package/dist/u.g-CK8fmXKY.js +1 -0
- package/dist/ui-elements/calendar-views.global.js +1 -1
- package/dist/ui-elements/carousel.global.js +1 -1
- package/dist/ui-elements/code-block.global.js +1 -1
- package/dist/ui-elements/command-palette.global.js +2 -2
- package/dist/ui-elements/comment-thread.global.js +1 -1
- package/dist/ui-elements/consent-banner.global.js +1 -1
- package/dist/ui-elements/context-menu.global.js +1 -1
- package/dist/ui-elements/dashboard-grid.global.js +1 -1
- package/dist/ui-elements/data-table.global.js +1 -1
- package/dist/ui-elements/date-range.global.js +1 -1
- package/dist/ui-elements/date-time.global.js +1 -1
- package/dist/ui-elements/datepicker.global.js +1 -1
- package/dist/ui-elements/dock.global.js +1 -1
- package/dist/ui-elements/drawer.global.js +1 -1
- package/dist/ui-elements/dropdown.global.js +1 -1
- package/dist/ui-elements/entry-grid.global.js +1 -1
- package/dist/ui-elements/gantt.global.js +1 -1
- package/dist/ui-elements/glyphs-a.global.js +1 -0
- package/dist/ui-elements/glyphs-b.global.js +1 -0
- package/dist/ui-elements/glyphs-c.global.js +1 -0
- package/dist/ui-elements/glyphs-d.global.js +1 -0
- package/dist/ui-elements/glyphs-e.global.js +1 -0
- package/dist/ui-elements/glyphs-f.global.js +1 -0
- package/dist/ui-elements/glyphs-g.global.js +1 -0
- package/dist/ui-elements/glyphs-h.global.js +1 -0
- package/dist/ui-elements/glyphs-i.global.js +1 -0
- package/dist/ui-elements/glyphs-j.global.js +1 -0
- package/dist/ui-elements/glyphs-k.global.js +1 -0
- package/dist/ui-elements/glyphs-l.global.js +1 -0
- package/dist/ui-elements/glyphs-m.global.js +1 -0
- package/dist/ui-elements/glyphs-n.global.js +1 -0
- package/dist/ui-elements/glyphs-o.global.js +1 -0
- package/dist/ui-elements/glyphs-p.global.js +1 -0
- package/dist/ui-elements/glyphs-q.global.js +1 -0
- package/dist/ui-elements/glyphs-r.global.js +1 -0
- package/dist/ui-elements/glyphs-s.global.js +1 -0
- package/dist/ui-elements/glyphs-t.global.js +1 -0
- package/dist/ui-elements/glyphs-u.global.js +1 -0
- package/dist/ui-elements/glyphs-v.global.js +1 -0
- package/dist/ui-elements/glyphs-w.global.js +1 -0
- package/dist/ui-elements/glyphs-x.global.js +1 -0
- package/dist/ui-elements/glyphs-z.global.js +1 -0
- package/dist/ui-elements/glyphs.global.js +1 -1
- package/dist/ui-elements/hover-card.global.js +1 -1
- package/dist/ui-elements/image-crop.global.js +1 -1
- package/dist/ui-elements/inline-edit.global.js +1 -1
- package/dist/ui-elements/kanban.global.js +1 -1
- package/dist/ui-elements/lead-popup.global.js +1 -1
- package/dist/ui-elements/lightbox.global.js +1 -1
- package/dist/ui-elements/markdown.global.js +1 -1
- package/dist/ui-elements/mini-calendar.global.js +1 -1
- package/dist/ui-elements/navigation-menu.global.js +1 -1
- package/dist/ui-elements/notification-center.global.js +1 -1
- package/dist/ui-elements/offline-banner.global.js +1 -1
- package/dist/ui-elements/onboarding-checklist.global.js +1 -1
- package/dist/ui-elements/org-tree.global.js +1 -1
- package/dist/ui-elements/otp.global.js +1 -1
- package/dist/ui-elements/overflow.global.js +1 -1
- package/dist/ui-elements/phone.global.js +1 -1
- package/dist/ui-elements/popover.global.js +1 -1
- package/dist/ui-elements/rating.global.js +1 -1
- package/dist/ui-elements/record-pager.global.js +1 -1
- package/dist/ui-elements/relative-time.global.js +1 -1
- package/dist/ui-elements/saved-views.global.js +1 -1
- package/dist/ui-elements/select-chips.global.js +1 -1
- package/dist/ui-elements/select-recents.global.js +1 -1
- package/dist/ui-elements/select-search.global.js +1 -1
- package/dist/ui-elements/select-window.global.js +1 -1
- package/dist/ui-elements/server.global.js +1 -1
- package/dist/ui-elements/shell.global.js +1 -1
- package/dist/ui-elements/shortcuts.global.js +1 -1
- package/dist/ui-elements/show-more.global.js +1 -1
- package/dist/ui-elements/slider.global.js +1 -1
- package/dist/ui-elements/sortable.global.js +1 -1
- package/dist/ui-elements/status-icon.global.js +1 -1
- package/dist/ui-elements/table-export.global.js +1 -1
- package/dist/ui-elements/timepicker.global.js +1 -1
- package/dist/ui-elements/tour.global.js +1 -1
- package/dist/ui-elements/tree-picker.global.js +1 -1
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/truncate.global.js +1 -1
- package/dist/ui-elements/whats-new.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +1 -1
- package/dist/ui-elements.js +1 -1
- package/dist/ui-file-viewer.global.js +10 -10
- package/dist/ui-file-viewer.js +1 -1
- package/dist/v.g-BpLD1c9M.js +1 -0
- package/dist/w.g-CDqV9dT6.js +1 -0
- package/dist/x.g-T5k9qAoo.js +1 -0
- package/dist/z.g-B8smtOck.js +1 -0
- package/package.json +5 -5
- package/types/global/glyphChunks.g.d.ts +1 -0
- package/types/global/glyphs.d.ts +9 -12
- package/types/global/parts/glyphs-a.g.d.ts +1 -0
- package/types/global/parts/glyphs-b.g.d.ts +1 -0
- package/types/global/parts/glyphs-c.g.d.ts +1 -0
- package/types/global/parts/glyphs-d.g.d.ts +1 -0
- package/types/global/parts/glyphs-e.g.d.ts +1 -0
- package/types/global/parts/glyphs-f.g.d.ts +1 -0
- package/types/global/parts/glyphs-g.g.d.ts +1 -0
- package/types/global/parts/glyphs-h.g.d.ts +1 -0
- package/types/global/parts/glyphs-i.g.d.ts +1 -0
- package/types/global/parts/glyphs-j.g.d.ts +1 -0
- package/types/global/parts/glyphs-k.g.d.ts +1 -0
- package/types/global/parts/glyphs-l.g.d.ts +1 -0
- package/types/global/parts/glyphs-m.g.d.ts +1 -0
- package/types/global/parts/glyphs-n.g.d.ts +1 -0
- package/types/global/parts/glyphs-o.g.d.ts +1 -0
- package/types/global/parts/glyphs-p.g.d.ts +1 -0
- package/types/global/parts/glyphs-q.g.d.ts +1 -0
- package/types/global/parts/glyphs-r.g.d.ts +1 -0
- package/types/global/parts/glyphs-s.g.d.ts +1 -0
- package/types/global/parts/glyphs-t.g.d.ts +1 -0
- package/types/global/parts/glyphs-u.g.d.ts +1 -0
- package/types/global/parts/glyphs-v.g.d.ts +1 -0
- package/types/global/parts/glyphs-w.g.d.ts +1 -0
- package/types/global/parts/glyphs-x.g.d.ts +1 -0
- package/types/global/parts/glyphs-z.g.d.ts +1 -0
- package/types/glyphTable.d.ts +23 -0
- package/types/iconCatalog/a.g.d.ts +2 -0
- package/types/iconCatalog/b.g.d.ts +2 -0
- package/types/iconCatalog/c.g.d.ts +2 -0
- package/types/iconCatalog/d.g.d.ts +2 -0
- package/types/iconCatalog/e.g.d.ts +2 -0
- package/types/iconCatalog/f.g.d.ts +2 -0
- package/types/iconCatalog/g.g.d.ts +2 -0
- package/types/iconCatalog/h.g.d.ts +2 -0
- package/types/iconCatalog/i.g.d.ts +2 -0
- package/types/iconCatalog/j.g.d.ts +2 -0
- package/types/iconCatalog/k.g.d.ts +2 -0
- package/types/iconCatalog/l.g.d.ts +2 -0
- package/types/iconCatalog/m.g.d.ts +2 -0
- package/types/iconCatalog/n.g.d.ts +2 -0
- package/types/iconCatalog/o.g.d.ts +2 -0
- package/types/iconCatalog/p.g.d.ts +2 -0
- package/types/iconCatalog/q.g.d.ts +2 -0
- package/types/iconCatalog/r.g.d.ts +2 -0
- package/types/iconCatalog/s.g.d.ts +2 -0
- package/types/iconCatalog/t.g.d.ts +2 -0
- package/types/iconCatalog/u.g.d.ts +2 -0
- package/types/iconCatalog/v.g.d.ts +2 -0
- package/types/iconCatalog/w.g.d.ts +2 -0
- package/types/iconCatalog/x.g.d.ts +2 -0
- package/types/iconCatalog/z.g.d.ts +2 -0
- package/types/iconCatalogNames.g.d.ts +1 -0
- package/types/iconGlyphs.g.d.ts +3 -6
- package/dist/WuiImageCrop-97d50aEw.js +0 -1
- package/dist/fileViewer.g-D_zLw_p-.js +0 -1
- package/dist/iconGlyphs.g-a9FtjPXh.js +0 -1
- package/dist/loader-X2uBXCDm.js +0 -1
- package/dist/statusIcons-Cd3GJcBR.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./dom-DMQu--xV.js";import{n as t,t as n}from"./fieldState-D-zQcXUS.js";import{t as r}from"./iconGlyphs.g-
|
|
1
|
+
import{r as e}from"./dom-DMQu--xV.js";import{n as t,t as n}from"./fieldState-D-zQcXUS.js";import{t as r}from"./iconGlyphs.g-DRNDTVOs.js";import{n as i}from"./imeSafeEnter-DeO_3lXy.js";import{s as a}from"./nativeOverlay-BHD2QV02.js";import{n as o,r as s,t as c}from"./optionLabel-CuShfg_A.js";import{r as l,t as u}from"./textStore-Dh5iyZSR.js";import{r as d}from"./search.g-chn0itlW.js";import{t as ee}from"./customRule-vAOiOqYH.js";import{r as f}from"./WuiSelect-DqHu2OW_.js";var p={enter:`Enter`,comma:`,`,space:` `,tab:`Tab`},m={enter:`
|
|
2
2
|
`,comma:`,`,space:` `,tab:` `},te=e=>p[e],h=e=>m[e];function ne(e,t){let n=[String(e??``)];for(let e of t)n=n.flatMap(t=>t.split(e));return n.map(e=>e.trim()).filter(Boolean)}var re=(e,t)=>t.some(t=>String(e??``).includes(t)),g=()=>l(`select`,d),_=/* @__PURE__ */ new WeakMap;function v(e,t){if(e===null)throw TypeError(`The chip row needs ${t}, and it is not mounted.`);return e}function y(){let l,d,p=null,m=null,y=null,b=null,x=null,S=null,C=null,w=!1,T=()=>v(m,`the draft input`),E=()=>l.mode===`tag`,D=()=>Array.isArray(l.value)?l.value.slice():[],O=()=>(l.getAttribute(`separators`)||`enter,comma`).split(`,`).map(e=>e.trim()).filter(Boolean),ie=()=>new Set(O().map(te).filter(Boolean)),k=()=>{let e=parseInt(l.getAttribute(`max-tags`)??``,10)||0;return Math.max(e,0)},A=()=>{let e=k();return e>0&&D().length>=e},j=(e,t)=>!l.hasAttribute(`allow-duplicates`)&&e.some(e=>e.toLowerCase()===t.toLowerCase()),M=()=>{let e=_.get(l);return e||(e=/* @__PURE__ */ new Map,_.set(l,e)),e},N=e=>(l.options||[]).find(t=>String(t.value)===String(e))??M().get(String(e)),P=e=>{let t=M();for(let n of l.options||[])e.includes(String(n.value))&&t.set(String(n.value),n);for(let n of t.keys())e.includes(n)||t.delete(n)},F=e=>{let t=e.trim().toLowerCase();return(l.options||[]).find(e=>String(e.value??``).toLowerCase()===t||o(e).trim().toLowerCase()===t)},ae=e=>{for(let t of O()){let n=h(t)??t;if(re(e,[n]))return ne(e,[n])}return[e.trim()]},I=()=>m?m.value:l._query||``,oe=()=>E()||l.hasAttribute(`allow-custom`),se=()=>l.getAttribute(`placeholder`)||(E()?g().tagPlaceholder:g().placeholder),ce=()=>{let e=l.getAttribute(`aria-label`);if(e)return e;let t=l.closest(`label`)?.textContent?.trim();if(t)return t;let n=l.id;return(n?[...document.querySelectorAll(`label[for]`)].find(e=>e instanceof HTMLLabelElement&&e.htmlFor===n):void 0)?.textContent?.trim()||(E()?g().addTagsLabel:g().fallbackName)},L=()=>{m&&(m.setAttribute(`aria-expanded`,String(a(d.menu))),d.list.id&&m.setAttribute(`aria-controls`,d.list.id),m.setAttribute(`aria-label`,ce()))},le=()=>!t(l)&&!l.hasAttribute(`loading`),ue=e=>{w=!0,T().setAttribute(`aria-invalid`,`true`),l.setError(e)},R=()=>{w&&(w=!1,T().removeAttribute(`aria-invalid`),l.setError(null))},z=(e,{quiet:t=!1,strip:n=!1}={})=>{let r=D(),i=r.slice(),a=k(),o=[],s=``,c=!1;for(let t of e){let e=(n?t.trim().replace(/,+$/,``):t).trim();if(!e)continue;if(a&&i.length>=a)break;let r=F(e);if(r){if(r.disabled){o.push(e),s||=r.disabledHint||l.getAttribute(`invalid-message`)||g().invalidMessage;continue}j(i,String(r.value))||i.push(String(r.value));continue}let u=ee(l,e);u?(o.push(e),s||=u):j(i,e)||(i.push(e),c=!0)}i.length!==r.length&&(c?l.commit(i,{isCustom:!0}):l.commit(i)),T().value=o.join(`, `),s?t||ue(s):R()},B=e=>{n(l)||z([T().value],e)},V=e=>l.commit(D().filter(t=>t!==e)),H=()=>e(`span`,{class:`wui-select-placeholder`},l.getAttribute(`placeholder`)||g().placeholder),de=t=>{let n=N(t),i=e(`span`,{class:`chip chip-sm`}),a=e(`span`,{class:`chip-label`});if(a.replaceChildren(...n?c(n):[t]),i.append(a),le()){let a=n?o(n):s(t),c=e(`button`,{class:`chip-remove`,type:`button`,"data-remove":t,"aria-label":u(g().removeText,{text:a})}),l=r(`x`);l&&c.replaceChildren(l),i.append(c)}return i};function U(){if(!p)return;p.querySelector(`:scope > .chip-more`)?.remove();let t=[...p.querySelectorAll(`:scope > .chip`)].map(e=>{if(!(e instanceof HTMLElement))throw Error(`The chip row holds a node that is not an element.`);return e});for(let e of t)e.style.display=``;let n=t[t.length-1];if(!l.hasAttribute(`collapse-chips`)||!n)return;let r=p.clientWidth,i=e=>e.offsetLeft+e.offsetWidth;if(i(n)<=r)return;let a=e(`span`,{class:`chip chip-sm chip-more`});a.textContent=`+${t.length}`,n.after(a);let o=a.offsetWidth+6,s=0;for(let e of t)if(i(e)<=r-o)s+=1;else break;s<1&&(s=1);for(let e of t.slice(s))e.style.display=`none`;a.textContent=`+${t.length-s}`}function W(){if(!p)return!1;p.parentNode!==d.value&&d.value.append(p);for(let e of p.querySelectorAll(`:scope > .chip, :scope > .wui-select-placeholder`))e.remove();let e=D();P(e);let t=p,r=e=>{m?t.insertBefore(e,m):t.append(e)};E()||m||e.length||r(H());for(let t of e)r(de(t));return m&&(m.placeholder=E()||!e.length?se():``,m.disabled=l.hasAttribute(`disabled`),m.readOnly=n(l),L()),E()||(v(b,`the footer text`).textContent=(()=>{let t=l.getAttribute(`selected-text`);return t?t.replace(`{n}`,()=>String(e.length)):u(g().selectedText,{count:e.length})})(),v(x,`the clear-all button`).textContent=l.getAttribute(`clear-all-label`)||g().clearAllLabel),U(),!0}function fe(e){if(e.key===`Backspace`){let t=m?!I():!I()&&a(d.menu),n=D(),r=n[n.length-1];return!t||r===void 0?!1:(e.preventDefault(),V(r),!0)}if(!m)return!1;let t=m.value;if(e.key===`Escape`){if(!E())return!1;let n=a(d.menu);return!n&&!t?!1:(e.preventDefault(),n&&e.stopPropagation(),m.value=``,R(),l.closeMenu({focusControl:!1}),!0)}let n=!E()&&!t.trim(),r=ie();return i(e)&&r.has(`Enter`)?n||d.list.querySelector(`.is-active`)?!1:(e.preventDefault(),B(),!0):e.key===`,`&&r.has(`,`)?!n&&(e.preventDefault(),B({strip:!0}),!0):e.key===` `&&r.has(` `)&&t.trim()||e.key===`Tab`&&r.has(`Tab`)&&!n?(e.preventDefault(),B(),!0):!1}function pe(e){let t=String(e.value);if(E()||m&&!N(t))return z([t]),!0;let n=D();return n.includes(t)?l.commit(n.filter(e=>e!==t)):m?z([t]):l.commit([...n,t]),m?.value&&(m.value=``,R()),!0}function G(e){if(!m)return null;let t=String(e??``).trim().replace(/,+$/,``).trim();if(!t||A()||F(t)||j(D(),t))return null;let n=l.getAttribute(`create-label`)||g().createLabel;return{position:E()?`top`:`bottom`,label:n.replace(`{text}`,()=>t),value:t}}function K(e){let t=e.target,r=t instanceof Element?t.closest(`[data-remove]`):null;if(r instanceof HTMLElement){if(n(l))return;e.stopPropagation(),V(r.dataset.remove??``),m?.focus()}else m&&!n(l)&&m.focus()}function q(){R();let e=T().value.trim();E()||!e||a(d.menu)||(G(e)||f(l.options||[],e).length)&&l.openMenu()}function J(e){e.preventDefault(),n(l)||z(ae(e.clipboardData?.getData(`text/plain`)??``))}function Y(){T().value.trim()&&B({quiet:!0,strip:!0}),l.closeMenu({focusControl:!1})}function X(e){e.relatedTarget instanceof Node&&l.contains(e.relatedTarget)||Y()}function me(){return m?(Y(),!0):!1}function Z(){T().value.trim()&&B({strip:!0})}function Q(){n(l)||l.commit([])}function $(e){e.target!==m&&e.preventDefault()}function he(t,n,r={}){l=t,d=n,p=e(`div`,{class:`wui-select-chips`}),p.addEventListener(`click`,K),d.value.append(p),oe()&&(m=e(`input`,{class:`wui-select-draft`,type:`text`,autocomplete:`off`,role:`combobox`,"aria-autocomplete":`list`}),l.hasAttribute(`required`)&&m.setAttribute(`aria-required`,`true`),d.menu.addEventListener(`toggle`,L),p.append(m),m.value=r.carry?.draft??``,d.input=m,m.addEventListener(`input`,q),m.addEventListener(`paste`,J),m.addEventListener(`blur`,X),p.addEventListener(`mousedown`,$),S=l.closest(`form`),S?.addEventListener(`submit`,Z,!0)),E()||(y=e(`div`,{class:`wui-select-footer`}),b=document.createElement(`span`),x=e(`button`,{class:`wui-select-clear-all`,type:`button`}),x.addEventListener(`click`,Q),y.append(b,x),d.menu.append(y)),typeof ResizeObserver<`u`&&(C=new ResizeObserver(U),C.observe(p)),W()}function ge(){p?.removeEventListener(`click`,K),p?.removeEventListener(`mousedown`,$),m&&(m.removeEventListener(`input`,q),m.removeEventListener(`paste`,J),m.removeEventListener(`blur`,X),d.input=null),x&&x.removeEventListener(`click`,Q),S?.removeEventListener(`submit`,Z,!0),S=null,C?.disconnect(),C=null,d.menu.removeEventListener(`toggle`,L),y?.remove(),p?.remove(),p=null,m=null,y=null,w=!1}return{mount:he,onKey:fe,onPick:pe,renderValue:W,actionRow:G,onQuery:()=>!1,onBlur:me,teardown:ge}}export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={dai:[[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M8 7v10h4c2.8 0 5-2.2 5-5s-2.2-5-5-5H8ZM6.5 10h12M6.5 14h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],dash:[[`path`,{d:`M7.1 3.5H16c4 0 6 2.5 6 6V12c0 5-3 8.5-8.5 8.5H3.9L5 16.2h7.4c3.6 0 5.3-2.2 5.3-5.3v-.2c0-1.8-.8-3-3-3H6.1l1-4.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.5 10.5H4.3c-.9 0-1.7.6-1.9 1.5L2 13.5h7.2c.9 0 1.7-.6 1.9-1.5l.4-1.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],data:[[`path`,{d:`M20 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM20 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM20 22a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM4 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18 4h-4c-2 0-3 1-3 3v10c0 2 1 3 3 3h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"data-2":[[`path`,{d:`M7 8H4c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v2c0 1.1-.9 2-2 2ZM20.8 7h-3.6c-.66 0-1.2-.54-1.2-1.2V4.2c0-.66.54-1.2 1.2-1.2h3.6c.66 0 1.2.54 1.2 1.2v1.6c0 .66-.54 1.2-1.2 1.2ZM20.8 14.5h-3.6c-.66 0-1.2-.54-1.2-1.2v-1.6c0-.66.54-1.2 1.2-1.2h3.6c.66 0 1.2.54 1.2 1.2v1.6c0 .66-.54 1.2-1.2 1.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 5h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12.5 5v13c0 1.1.9 2 2 2H16`,fill:`#fff`}],[`path`,{d:`M12.5 5v13c0 1.1.9 2 2 2H16M12.5 12.5H16`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.8 22h-3.6c-.66 0-1.2-.54-1.2-1.2v-1.6c0-.66.54-1.2 1.2-1.2h3.6c.66 0 1.2.54 1.2 1.2v1.6c0 .66-.54 1.2-1.2 1.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],decred:[[`path`,{d:`M5.7 7.7 2 4h5l6 6H8.5C6.6 10 5 11.6 5 13.5S6.6 17 8.5 17H10l3 3H8.5C4.9 20 2 17.1 2 13.5 2 11 3.4 8.8 5.5 7.7h.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.3 16.3 22 20h-5l-6-6h4.5c1.9 0 3.5-1.6 3.5-3.5S17.4 7 15.5 7H14l-3-3h4.5c3.6 0 6.5 2.9 6.5 6.5 0 2.5-1.4 4.7-3.5 5.8h-.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],dent:[[`path`,{d:`M12 18.1c-.7 0-1.3-.6-1.3-1.3V7.2c0-.7.6-1.3 1.3-1.3.7 0 1.3.6 1.3 1.3v9.7c0 .7-.6 1.2-1.3 1.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M6.7 8.9c.3-.6 1.1-.8 1.8-.5l8.4 4.8c.6.4.8 1.2.5 1.8-.4.6-1.2.8-1.8.5l-8.4-4.8c-.7-.3-.9-1.1-.5-1.8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M6.7 15.1c-.4-.6-.1-1.4.5-1.8l8.4-4.8c.6-.4 1.4-.1 1.8.5.4.6.1 1.4-.5 1.8l-8.4 4.8c-.7.3-1.5.1-1.8-.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],designtools:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M21.81 3.94c-1.54 3.84-5.4 9.06-8.63 11.65l-1.97 1.58c-.25.18-.5.34-.78.45 0-.18-.01-.38-.04-.57-.11-.84-.49-1.62-1.16-2.29-.68-.68-1.51-1.08-2.36-1.19-.2-.01-.4-.03-.6-.01.11-.31.28-.6.49-.84l1.56-1.97c2.58-3.23 7.82-7.11 11.65-8.64.59-.22 1.16-.06 1.52.31.38.37.56.94.32 1.52z`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M10.43 17.62c0 1.1-.42 2.15-1.21 2.95-.61.61-1.44 1.03-2.43 1.16L4.33 22c-1.34.15-2.49-.99-2.33-2.35l.27-2.46c.24-2.19 2.07-3.59 4.01-3.63.2-.01.41 0 .6.01.85.11 1.68.5 2.36 1.19.67.67 1.05 1.45 1.16 2.29.01.19.03.38.03.57zM14.24 14.47c0-2.61-2.12-4.73-4.73-4.73`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-width":`1.5`,d:`M20.12 12.73l.74.73c1.49 1.49 1.49 2.96 0 4.45l-2.96 2.96c-1.47 1.47-2.96 1.47-4.43 0M3.11 10.51c-1.47-1.49-1.47-2.96 0-4.45L6.07 3.1c1.47-1.47 2.96-1.47 4.43 0l.74.74M11.25 3.85l-3.7 3.7M20.12 12.73l-2.96 2.95`}]],"device-message":[[`path`,{d:`M20 12.2v1.7c0 3.15-1.8 4.5-4.5 4.5h-9c-2.7 0-4.5-1.35-4.5-4.5V8.5C2 5.35 3.8 4 6.5 4h2.7c-.13.38-.2.8-.2 1.25v3.9c0 .97.32 1.79.89 2.36.57.57 1.39.89 2.36.89v1.39c0 .51.58.82 1.01.54l2.89-1.93h2.6c.45 0 .87-.07 1.25-.2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 5.25v3.9c0 1.49-.76 2.61-2 3.05-.38.13-.8.2-1.25.2h-2.6l-2.89 1.93c-.43.28-1.01-.03-1.01-.54V12.4c-.97 0-1.79-.32-2.36-.89-.57-.57-.89-1.39-.89-2.36v-3.9c0-.45.07-.87.2-1.25.44-1.24 1.56-2 3.05-2h6.5C20.7 2 22 3.3 22 5.25ZM7.4 22h7.2M11 18.4V22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.495 7.25h.01M15.696 7.25h.009M12.895 7.25h.01`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],devices:[[`path`,{d:`M17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20 6v1.79c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v5.11H6c-3.2 0-4-.8-4-4V6c0-3.2.8-4 4-4h10c3.2 0 4 .8 4 4ZM9 15.7V20M2 11.9h10M5.95 20H12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20 7.79c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v8.56c0 2.14.71 2.85 2.85 2.85h4.28c2.14 0 2.85-.71 2.85-2.85v-8.56c0-1.83-.52-2.61-2-2.8Zm-2.99 2.8a1.071 1.071 0 0 1 0 2.14 1.071 1.071 0 0 1 0-2.14Zm0 8.56c-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62 0 1.18-.96 2.14-2.14 2.14Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19.15 17.01c0 1.18-.96 2.14-2.14 2.14-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62ZM17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],diagram:[[`path`,{d:`M2 2v17c0 1.66 1.34 3 3 3h17`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m5 17 4.59-5.36c.76-.88 2.11-.94 2.93-.11l.95.95c.82.82 2.17.77 2.93-.11L21 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],diamonds:[[`path`,{d:`M16.29 2.15H7.7C6 2.15 5.25 3 4.79 4.04L2.23 9.8c-.46 1.04-.21 2.59.56 3.43l6.86 7.54c1.3 1.42 3.42 1.42 4.71 0l6.85-7.55c.77-.85 1.02-2.39.55-3.43L19.2 4.03c-.46-1.03-1.21-1.88-2.91-1.88ZM3.5 8h17`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],direct:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2 13h3.76a2 2 0 0 1 1.79 1.11l.89 1.79C9 17 10 17 10.24 17h3.53a2 2 0 0 0 1.79-1.11l.89-1.79a2 2 0 0 1 1.79-1.11h3.74M10.34 7h3.33M9.5 10h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-down":[[`path`,{d:`M9.17 19.29 3.07 7.7C1.62 4.95 4.55 1.96 7.33 3.35l3.24 1.62c.9.45 1.96.45 2.86 0l3.24-1.62c2.78-1.39 5.7 1.6 4.26 4.35l-6.1 11.59c-1.2 2.28-4.46 2.28-5.66 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-inbox":[[`path`,{d:`M12 2v7l2-2M12 9l-2-2M1.98 13h4.41c.38 0 .72.21.89.55l1.17 2.34A2 2 0 0 0 10.24 17h3.53a2 2 0 0 0 1.79-1.11l1.17-2.34a1 1 0 0 1 .89-.55h4.36`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 4.13c-3.54.52-5 2.6-5 6.87v4c0 5 2 7 7 7h6c5 0 7-2 7-7v-4c0-4.27-1.46-6.35-5-6.87`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-left":[[`path`,{d:`m4.71 9.17 11.59-6.1c2.75-1.45 5.74 1.48 4.35 4.26l-1.62 3.24c-.45.9-.45 1.96 0 2.86l1.62 3.24c1.39 2.78-1.6 5.7-4.35 4.26l-11.59-6.1c-2.28-1.2-2.28-4.46 0-5.66Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-normal":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2 13h3.76a2 2 0 0 1 1.79 1.11l.89 1.79C9 17 10 17 10.24 17h3.53a2 2 0 0 0 1.79-1.11l.89-1.79a2 2 0 0 1 1.79-1.11h3.74`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-notification":[[`path`,{d:`M1.98 13h3.79a2 2 0 0 1 1.79 1.11l.89 1.79C9 17 10 17 10.24 17h3.53a2 2 0 0 0 1.79-1.11l.89-1.79a2 2 0 0 1 1.79-1.11h3.74M19 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-right":[[`path`,{d:`M19.29 9.17 7.7 3.07C4.95 1.62 1.96 4.55 3.35 7.33l1.62 3.24c.45.9.45 1.96 0 2.86l-1.62 3.24c-1.39 2.78 1.6 5.7 4.35 4.26l11.59-6.1c2.28-1.2 2.28-4.46 0-5.66Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-send":[[`path`,{d:`M12 9V2l-2 2M12 2l2 2M1.98 13h4.41c.38 0 .72.21.89.55l1.17 2.34A2 2 0 0 0 10.24 17h3.53a2 2 0 0 0 1.79-1.11l1.17-2.34a1 1 0 0 1 .89-.55h4.36`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 5.13c-3.54.52-5 2.6-5 6.87v3c0 5 2 7 7 7h6c5 0 7-2 7-7v-3c0-4.27-1.46-6.35-5-6.87`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"direct-up":[[`path`,{d:`M9.17 4.71 3.07 16.3c-1.45 2.75 1.48 5.74 4.26 4.35l3.24-1.62c.9-.45 1.96-.45 2.86 0l3.24 1.62c2.78 1.39 5.7-1.6 4.26-4.35l-6.1-11.59c-1.2-2.28-4.46-2.28-5.66 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"directbox-default":[[`path`,{d:`M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM19 12V6c0-2.21 0-4-4-4H9C5 2 5 3.79 5 6v6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"directbox-notif":[[`path`,{d:`M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM19 12V6c0-2.21 0-4-4-4H9C5 2 5 3.79 5 6v6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M10.55 9.23h3.33M9.72 6.23h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"directbox-receive":[[`path`,{d:`M12 2v6l2-2M12 8l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM5 12V8c0-2.01 0-3.67 3-3.96M19 12V8c0-2.01 0-3.67-3-3.96`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"directbox-send":[[`path`,{d:`M12 8V2l-2 2M12 2l2 2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM5 12v-2c0-2.01 0-3.67 3-3.96M19 12v-2c0-2.01 0-3.67-3-3.96`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"discount-circle":[[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM9 15l6-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.495 14.5h.009M9.495 9.5h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"discount-shape":[[`path`,{d:`m3.989 14.66-1.52-1.52c-.62-.62-.62-1.64 0-2.26l1.52-1.52c.26-.26.47-.77.47-1.13V6.08c0-.88.72-1.6 1.6-1.6h2.15c.36 0 .87-.21 1.13-.47l1.52-1.52c.62-.62 1.64-.62 2.26 0l1.52 1.52c.26.26.77.47 1.13.47h2.15c.88 0 1.6.72 1.6 1.6v2.15c0 .36.21.87.47 1.13l1.52 1.52c.62.62.62 1.64 0 2.26l-1.52 1.52c-.26.26-.47.77-.47 1.13v2.15c0 .88-.72 1.6-1.6 1.6h-2.15c-.36 0-.87.21-1.13.47l-1.52 1.52c-.62.62-1.64.62-2.26 0l-1.52-1.52c-.26-.26-.77-.47-1.13-.47h-2.15c-.88 0-1.6-.72-1.6-1.6v-2.15c0-.37-.21-.88-.47-1.13ZM9 15l6-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.495 14.5h.009M9.495 9.5h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],discover:[[`path`,{d:`M17.8 2.1 7.87 4.59c-1.45.36-2.92 1.83-3.28 3.28L2.1 17.8c-.75 3 1.09 4.85 4.1 4.1l9.93-2.48c1.44-.36 2.92-1.84 3.28-3.28L21.9 6.2c.75-3-1.1-4.85-4.1-4.1Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],dislike:[[`path`,{d:`m16.52 5.65-3.1-2.4c-.4-.4-1.3-.6-1.9-.6h-3.8c-1.2 0-2.5.9-2.8 2.1l-2.4 7.3c-.5 1.4.4 2.6 1.9 2.6h4c.6 0 1.1.5 1 1.2l-.5 3.2c-.2.9.4 1.9 1.3 2.2.8.3 1.8-.1 2.2-.7l4.1-6.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M21.62 5.65v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-cloud":[[`path`,{d:`M14 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7M22 10v3M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M13.76 18.26c-2.35.17-2.35 3.57 0 3.74h5.56c.67 0 1.33-.25 1.82-.7 1.65-1.44.77-4.32-1.4-4.59-.78-4.69-7.56-2.91-5.96 1.56`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-code":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M10 13l-2 2 2 2M14 13l2 2-2 2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-code-2":[[`path`,{d:`M11 22h5c3.5 0 5-2 5-5V7c0-3-1.5-5-5-5H8C4.5 2 3 4 3 7v7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M4 17l-2 2 2 2M7 17l2 2-2 2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-copy":[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-favorite":[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8ZM6.62 15.73c-.33-1.03.06-2.3 1.13-2.65.57-.18 1.27-.03 1.66.52.37-.57 1.1-.7 1.66-.52 1.08.35 1.46 1.62 1.14 2.65-.51 1.63-2.3 2.48-2.8 2.48-.49-.01-2.26-.84-2.79-2.48Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-filter":[[`path`,{d:`M3.35 2h8.9c.74 0 1.35.61 1.35 1.35v1.48c0 .54-.34 1.21-.67 1.55l-2.9 2.56c-.4.34-.67 1.01-.67 1.55v2.9c0 .4-.27.94-.61 1.15l-.94.61c-.88.54-2.09-.07-2.09-1.15v-3.57c0-.47-.27-1.08-.54-1.42l-2.56-2.7c-.34-.34-.61-.94-.61-1.35V3.41C2 2.61 2.61 2 3.35 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2 12v3c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-3.12-.78-5.08-2.59-6.1-.51-.29-1.53-.51-2.46-.66M13 13h5M11 17h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-forward":[[`path`,{d:`m11 17 2-2-2-2 2 2H7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-like":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7.48 15.49c-.33-1.03.06-2.3 1.13-2.65.57-.18 1.27-.03 1.66.52.37-.57 1.1-.7 1.66-.52 1.08.35 1.46 1.62 1.14 2.65-.51 1.63-2.3 2.48-2.8 2.48-.49-.01-2.26-.84-2.79-2.48Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-previous":[[`path`,{d:`M13 15H7l2 2M7 15l2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l4 4 4 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-sketch":[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{"clip-rule":`evenodd`,d:`M8.32 12h2.65c.27 0 .61.18.75.4l1.13 1.7c.23.34.18.85-.11 1.14l-2.46 2.46c-.35.35-.93.35-1.28 0l-2.46-2.46a.935.935 0 0 1-.11-1.14l1.13-1.7c.16-.22.5-.4.76-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-text-1":[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8ZM7 13h6M7 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"document-upload":[[`path`,{d:`M9 17v-6l-2 2M9 11l2 2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"dollar-circle":[[`path`,{d:`M8.672 14.33c0 1.29.99 2.33 2.22 2.33h2.51c1.07 0 1.94-.91 1.94-2.03 0-1.22-.53-1.65-1.32-1.93l-4.03-1.4c-.79-.28-1.32-.71-1.32-1.93 0-1.12.87-2.03 1.94-2.03h2.51c1.23 0 2.22 1.04 2.22 2.33M12 6v12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"dollar-square":[[`path`,{d:`M8.672 14.33c0 1.29.99 2.33 2.22 2.33h2.51c1.07 0 1.94-.91 1.94-2.03 0-1.22-.53-1.65-1.32-1.93l-4.03-1.4c-.79-.28-1.32-.71-1.32-1.93 0-1.12.87-2.03 1.94-2.03h2.51c1.23 0 2.22 1.04 2.22 2.33M12 6v12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15 22H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h6c5 0 7 2 7 7v6c0 5-2 7-7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],dribbble:[[`path`,{d:`M18.5 4.79c-2.6 4.55-7.61 7.16-12.83 6.69l-3.17-.29M5.5 19.37c2.6-4.55 7.61-7.16 12.83-6.69l3.17.29`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.63 3 3.18 3.95c2.13 2.64 3.64 5.71 4.44 9l1.21 4.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],driver:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"driver-2":[[`path`,{d:`M6 6.25v2M10 6.25v2M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM6 16v2M10 16v2M14 7.25h4M14 17h4M2 12h20`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"driver-refresh":[[`path`,{d:`M6 6.25v2M22 12V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7h3M10 6.25v2M6 16v2M10 16v2M14 7.25h4M2 12h20`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21.56 20.33a3.24 3.24 0 0 1-2.81 1.62c-1.79 0-2.89-1.8-2.89-1.8m.07-3.06c.56-.98 1.61-1.63 2.82-1.63 2.17 0 3.25 1.8 3.25 1.8m0-2.01v2h-2m-2.14 2.89h-2V22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],driving:[[`path`,{d:`M14.55 2h-5.1c-1.8 0-2.2.9-2.43 2.01L6.2 7.93h11.6l-.82-3.92C16.75 2.9 16.35 2 14.55 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19.24 14.32c.08.85-.6 1.58-1.47 1.58h-1.36c-.78 0-.89-.33-1.03-.75l-.15-.43c-.2-.59-.33-.99-1.38-.99h-3.71c-1.04 0-1.2.45-1.38.99l-.15.43c-.14.41-.25.75-1.03.75H6.22c-.87 0-1.55-.73-1.47-1.58l.41-4.42c.1-1.09.31-1.98 2.21-1.98h9.25c1.9 0 2.11.89 2.21 1.98l.41 4.42ZM6.2 5.75h-.73M18.53 5.75h-.73M7.65 10.83h2.17M14.18 10.83h2.17M12 17v1M12 21v1M3 18l-1 4M21 18l1 4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],drop:[[`path`,{d:`M12.61 2.21a.991.991 0 0 0-1.22 0C9.49 3.66 3.88 8.39 3.91 13.9c0 4.46 3.63 8.1 8.1 8.1s8.1-3.63 8.1-8.09c.01-5.43-5.61-10.24-7.5-11.7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],dropbox:[[`path`,{d:`M12 5 7.6 2 2 6l4.4 3L12 5ZM12 5l4.4-3L22 6l-4.4 3L12 5ZM12 14l-4.4 3L2 13l4.4-3 5.6 4ZM12 14l4.4 3 5.6-4-4.4-3-5.6 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19 15.5v3.3l-6.6 3c-.3.1-.6.1-.8 0l-6.6-3v-3.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]};export{e as GLYPHS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./buttonClass-C8BRtTk8.js";import{i as n,n as r,r as i,t as a}from"./dom-DMQu--xV.js";import{t as o}from"./loader-X2uBXCDm.js";import{r as s}from"./textStore-Dh5iyZSR.js";import{t as c}from"./drawer.g-B-zYKBfQ.js";import{i as l,n as u,r as d,t as f}from"./toast.g-CJ8c0BNZ.js";import{N as p}from"./dataTable-D48Rwq1a.js";import{n as ee,t as m}from"./devWarn-DXdRWZs3.js";import{t as te}from"./httpFailure.g-DjZzGxPj.js";import{_ as h,a as ne,b as re,c as ie,d as ae,f as oe,i as se,l as ce,o as le,r as ue,s as de,t as fe,u as pe,x as g,y as me}from"./refreshAfter-DhYgWXmQ.js";import{t as he}from"./hasOwn-CJsplJ62.js";import{t as ge}from"./svgNodes-CyPS2oFH.js";import{t as _e}from"./serverHtml-BC6tAyAl.js";import{a as ve,d as ye,f as be,h as xe,l as Se,m as _,o as Ce,p as we,s as Te,u as Ee}from"./wuiHttp-8CYWEbRz.js";var v=class extends Error{code;status;html;body;kind;constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},De=/* @__PURE__ */ new Set(/* @__PURE__ */ `bad request.unauthorized.payment required.forbidden.not found.method not allowed.not acceptable.proxy authentication required.request timeout.conflict.gone.length required.precondition failed.payload too large.uri too long.unsupported media type.range not satisfiable.expectation failed.misdirected request.unprocessable content.unprocessable entity.locked.failed dependency.too early.upgrade required.precondition required.too many requests.request header fields too large.unavailable for legal reasons`.split(`.`)),Oe=e=>typeof e!=`object`||!e?{message:void 0,detail:void 0,title:void 0}:{message:`message`in e?e.message:void 0,detail:`detail`in e?e.detail:void 0,title:`title`in e?e.title:void 0};async function ke(e){return e.html===``?e.response===null?``:e.response.text():e.html}function Ae(e,t){let n=e=>typeof e==`string`?e.trim():``,r=Oe(e),i=n(r.message);if(i)return i;let a=n(r.detail);if(a)return a;let o=n(r.title);if(!o)return null;let s=o.toLowerCase();return De.has(s)||s===t.trim().toLowerCase()?null:o}var je=`wui-remote-modal`,Me=`wui-remote-drawer`,Ne=Object.freeze({sm:360,md:480,lg:640,xl:720}),Pe=`wui-modal-fullscreen`,Fe=`wui-modal-wide`,y=Object.freeze({sm:380,md:440,lg:640,xl:880,wide:1080}),b=()=>s(`modal`,u),Ie=e=>we(e?.getAttribute(`data-wui-timeout`)??null)??3e4,Le=`a[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,Re=`input:not([type="hidden"]):not([disabled]),select:not([disabled]),textarea:not([disabled]),[contenteditable="true"]`,ze=`[aria-invalid="true"], .is-invalid, .input-validation-error`,Be=`invalid`,Ve=`.wui-error-summary, [data-wui-form-errors], .validation-summary-errors, [data-valmsg-summary]`,He=`[data-wui-modal-content]`,Ue=`[data-wui-pane-close], [data-wui-dismiss]`,We=()=>i(`button`,{type:`button`,class:`wui-modal-close`,"data-wui-dismiss":!0,"aria-label":b().closeLabel},ge({width:18,height:18,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[[`path`,{d:`M18 6 6 18M6 6l12 12`}]])),x=/* @__PURE__ */ new WeakMap,Ge=/* @__PURE__ */ new WeakSet;function S(e,t){if(e==null)throw TypeError(`The remote modal needs ${t}, and the page does not have it.`);return e}var C=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},w=(e,t,n)=>S(C(e,t),n),Ke=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),T=()=>Object.assign(/* @__PURE__ */ Error(`The remote modal load was aborted.`),{name:`AbortError`}),qe=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,E=(e,t)=>{let n=e instanceof Element?e.closest(t):null;return n instanceof HTMLElement?n:null},Je=e=>he(y,e),Ye=e=>he(Ne,e);function Xe(e){if(e==null||e===``)return null;if(e===`fullscreen`)return{fullscreen:!0};if(Je(e))return e===`wide`?{px:y.wide,wide:!0}:{px:y[e]};let t=typeof e==`number`?e:/^\d+$/.test(String(e))?Number(e):NaN;if(Number.isInteger(t)&&t>0)return{px:t};throw TypeError(`Unsupported modal size "${String(e)}". Use sm, md, lg, xl, wide, fullscreen or a px number.`)}var Ze=e=>{if(e.classList.contains(`wui-modal-fullscreen`))return{fullscreen:!0};if(e.classList.contains(`wui-modal-wide`))return{px:y.wide,wide:!0};let t=Number.parseInt(e.style.getPropertyValue(`--wui-modal-max-width`),10);return{px:t>0?t:y.md}},D=(e,t)=>{e.classList.toggle(Pe,!!t.fullscreen),e.classList.toggle(Fe,!t.fullscreen&&!!t.wide),t.fullscreen?e.style.removeProperty(`--wui-modal-max-width`):e.style.setProperty(`--wui-modal-max-width`,`${t.px}px`)},Qe=[`center`,`top`];function $e(e){if(e==null||e===``)return null;if(Ye(e))return{px:Ne[e]};let t=typeof e==`number`?e:/^\d+$/.test(String(e))?Number(e):NaN;if(Number.isInteger(t)&&t>0)return{px:t};throw TypeError(`Unsupported drawer size "${String(e)}". Use sm, md, lg, xl or a px number.`)}var et=e=>e.container===`drawer`,O=e=>e.container===`pane`,tt=e=>e.container!==`modal`,nt=(e,t)=>et(e)?$e(t):Xe(t),rt=e=>{let t=typeof e==`string`?document.querySelector(e):e,n=t instanceof HTMLElement?t:null;return n?.matches(`[data-wui-pane-host]`)?n:null},it=e=>O(e)?e.shell:w(e.shell,`.modal-dialog`,`a dialog frame`);function at(e=`modal`){let t=e===`drawer`,n=t?Me:je,r=document.getElementById(n);if(r)return r;let a=document.createElement(`wui-modal`);a.id=n,a.setAttribute(`data-wui`,`AppModal`);let o=document.createElement(`dialog`);return o.className=t?`modal wui-modal-shell wui-remote-drawer`:`modal wui-modal-shell`,o.style.setProperty(`--wui-modal-max-width`,`${t?Ne.md:y.md}px`),o.replaceChildren(i(`div`,{class:t?`modal-dialog wui-remote-drawer-dialog`:`modal-dialog modal-dialog-centered wui-rb-dialog`},i(`div`,{class:`modal-content wui-modal`}))),a.append(o),document.body.appendChild(a),a}var ot=e=>i(`div`,{class:`wui-modal-header`},i(`div`,{class:`wui-modal-heading`},i(`div`,{class:`wui-modal-headtext`},i(`div`,{class:`wui-modal-title`},e))),We()),st=e=>i(`div`,{class:`modal-content wui-modal`,"aria-busy":`true`},ot(e),i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-modal-loading`,role:`status`},i(`span`,{class:`visually-hidden`},b().loadingLabel),i(`div`,{class:`skeleton wui-modal-skeleton`}),i(`div`,{class:`skeleton wui-modal-skeleton`}),i(`div`,{class:`skeleton wui-modal-skeleton wui-modal-skeleton--short`})))),ct=(n,r)=>{let a={forbidden:b().forbiddenMessage,networkCheck:s(`httpFailure`,te).networkCheckText,client:b().clientMessage,server:b().serverMessage,network:b().networkMessage,timeout:b().timeoutMessage};return i(`div`,{class:`modal-content wui-modal`,"data-wui-modal-error":r},ot(n),i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-modal-state`,role:`alert`},i(`p`,{class:`wui-modal-state-title`},b().errorTitle),i(`p`,{class:`wui-modal-state-text`},a[r]||b().serverMessage),i(`div`,{class:`wui-modal-state-actions`},i(`button`,{type:`button`,class:e(`primary`,`soft`,`md`),"data-wui-dismiss":!0,"data-wui":t},b().closeLabel),i(`button`,{type:`button`,class:e(`primary`,`solid`,`md`),"data-wui-modal-retry":!0,"data-wui":t},b().retryLabel)))))},k=e=>C(e.shell,`.modal-content`),lt=e=>r(e.cloneNode(!0),HTMLElement,`a card copy is not an element`);function ut(e){e&&e.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}))}function A(e,t){let n=k(e),r=n?ft(n):/* @__PURE__ */ new Map;ut(n),n?n.replaceWith(t):it(e).appendChild(t),pt(t,r),h().refresh()}var dt=`input[type="file"][name]`;function ft(e){let t=/* @__PURE__ */ new Map;for(let n of e.querySelectorAll(dt)){if(!(n instanceof HTMLInputElement))continue;let e=n.files;e&&e.length>0&&t.set(n.name,[...e])}return t}function pt(e,t){if(t.size!==0&&typeof DataTransfer<`u`)for(let n of e.querySelectorAll(dt)){if(!(n instanceof HTMLInputElement))continue;let e=t.get(n.name);if(!e)continue;let r=new DataTransfer;for(let t of e)r.items.add(t);n.files=r.files,n.dispatchEvent(new Event(`change`,{bubbles:!0}))}}var mt=e=>O(e)?!e.shell.hidden:e.host.hasAttribute(`open`);function ht(e,t,n=!1){let r=t?C(e,ze):null,i=r?r.matches(Le)?r:C(r,Le)||r:null;if(!i&&n)i=C(e,`[data-autofocus]`)||C(e,Re)||C(e,`.wui-modal-close`);else if(!i){let t=Ke(e,Le);i=C(e,`[data-autofocus]`)||t.find(e=>!e.classList.contains(`wui-modal-close`))||t[0]||e}r?i?.focus?.():i?.focus?.({preventScroll:!0})}function gt(e,t){let n=C(e.shell,`[data-wui-modal-live]`);n||(n=document.createElement(`div`),n.className=`visually-hidden`,n.setAttribute(`aria-live`,`assertive`),n.setAttribute(`data-wui-modal-live`,``),it(e).appendChild(n)),n.textContent=``,n.textContent=t}var _t=e=>{let t=C(e.shell,`[data-wui-modal-live]`);t&&(t.textContent=``)},vt=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};function j(e,t,n,r){let i={...r,container:e.container};vt(t,`wui:modal:${n}`,i),et(e)&&vt(t,`wui:drawer:${n}`,i),O(e)&&vt(t,`wui:pane:${n}`,i)}var yt=e=>e.matches(`[data-wui-pane-host]`)?`pane`:w(e,`dialog`,`a dialog`).classList.contains(`wui-remote-drawer`)?`drawer`:`modal`,bt=e=>S(e.host.closest(`wui-modal`),`a wui-modal host`);function xt(e){let t=x.get(e);if(t)return t;let n=yt(e),r=n===`pane`?e:w(e,`dialog`,`a dialog`),a=k({shell:r}),o={host:e,shell:r,container:n,queue:Se(),defaultSize:Ze(r),defaultLabel:r.getAttribute(`aria-label`),placeholder:a?lt(a):i(`div`,{class:`modal-content wui-modal`}),remoteUrl:e.getAttribute(`data-wui-remote-url`),cache:e.getAttribute(`data-wui-remote-cache`)===`true`,loadedUrl:null,session:null};return x.set(e,o),e.addEventListener(`submit`,e=>Ht(o,e)),e.addEventListener(`click`,e=>{E(e.target,`[data-wui-modal-retry]`)&&o.session&&(e.preventDefault(),N(o,o.session))}),O(o)&&e.addEventListener(`click`,t=>{let n=E(t.target,Ue);n&&e.contains(n)&&o.session&&M(o,o.session,`dismissed`,null)}),e.addEventListener(`wui-modal-close`,t=>{t.target===e&&t instanceof CustomEvent&&Rt(t.detail,`reason`)===`escape`&&e.querySelector(`form[data-wui-submitting]`)&&t.preventDefault()}),e.addEventListener(`wui-modal-closed`,t=>{t.target===e&&Dt(o)}),e.addEventListener(`wui-modal-opened`,t=>{if(t.target!==e)return;let n=k(o);o.session&&n?.matches(He)&&!n.contains(document.activeElement)&&ht(n,!1,tt(o))}),o.remoteUrl&&e.addEventListener(`wui-modal-open`,t=>{t.target===e&&Ot(o,t)}),o}function St(e,t,n){let r=null;e.session&&(r=e.session.pendingRefresh,e.session.pendingRefresh=null,e.queue.abort(),e.session.resolveClosed({status:`dismissed`,detail:{replaced:!0}}));let i=()=>void 0,a=new Promise(e=>{i=e}),o={url:t,method:(n.method||`GET`).toUpperCase(),body:n.body,options:n,trigger:n.trigger||null,explicitSize:null,closing:null,resolveClosed:i,handle:{el:e.shell,closed:a,close:()=>M(e,o,`dismissed`,null),reload:()=>N(e,o)},pendingRefresh:r};return e.session=o,o}function M(e,t,n,r){e.session===t&&(t.closing={status:n,detail:r},O(e)?wt(e,t):Ct(e))}function Ct(e){let t=bt(e);t.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:`dismiss`}}))&&t.hide()}function wt(e,t){let n=e.shell,{status:r,detail:i}=S(t.closing,`the closing state`),a=n.contains(document.activeElement);e.queue.abort(),e.session=null,ut(k(e)),n.replaceChildren(),n.hidden=!0,n.removeAttribute(`data-open`),t.resolveClosed({status:r,detail:i}),j(e,n,`closed`,{status:r,url:t.url}),Tt(t),a&&t.trigger?.isConnected&&t.trigger.focus?.()}function Tt(e){let t=e.pendingRefresh;e.pendingRefresh=null,t&&fe(t).catch(m)}function Et(e,t){for(let n=e;n!==null;n=n.parentElement){let e=n instanceof HTMLElement?x.get(n):void 0;if(e?.session){let n=de(t);return e.session.pendingRefresh=ne(e.session.pendingRefresh,{...t,message:n?t.message:null,action:n?t.action:null}),!0}}return!1}oe(Et);function Dt(e){let t=e.session;if(e.queue.abort(),e.session=null,_t(e),t){let n=t.closing||{status:`dismissed`,detail:null};t.resolveClosed({status:n.status,detail:n.detail}),j(e,e.shell,`closed`,{status:n.status,url:t.url}),Tt(t);let r=document.activeElement;t.trigger?.isConnected&&(!r||r===document.body||e.shell.contains(r))&&t.trigger.focus?.()}e.cache||(A(e,lt(e.placeholder)),e.loadedUrl=null,D(e.shell,e.defaultSize),e.defaultLabel?e.shell.setAttribute(`aria-label`,e.defaultLabel):e.shell.removeAttribute(`aria-label`))}function Ot(e,t){let n=Rt(t instanceof CustomEvent?t.detail:null,`trigger`),r=n instanceof HTMLElement?n:null,i=r?.getAttribute(`data-wui-url`)||e.remoteUrl||``,a=St(e,i,{trigger:r});a.explicitSize=kt(e,r?.getAttribute(`data-wui-size`)),a.explicitSize&&D(e.shell,a.explicitSize),e.cache&&e.loadedUrl===i||(e.loadedUrl&&A(e,lt(e.placeholder)),N(e,a,{keepPlaceholder:!0}))}function kt(e,t){try{return nt(e,t)}catch(e){return m(e),null}}async function N(e,t,{keepPlaceholder:n=!1}={}){n||A(e,st(t.options.title||At(e)));let r=await e.queue.run(t.url,{method:t.method,body:t.body,navigate:t.options.navigate,timeoutMs:Ie(t.trigger)});if(e.session!==t||r.kind===`aborted`||r.kind===`stale`)return`aborted`;if(r.kind===`session`)return`session`;if(r.kind===`ok`&&Pt(e,t,r.html,!1))return e.loadedUrl=t.url,j(e,e.shell,`loaded`,{url:t.url,handle:t.handle}),`loaded`;let i=r.kind===`ok`||r.kind===`validation`?`server`:r.kind;return A(e,ct(t.options.title||At(e),i)),mt(e)&&ht(S(k(e),`a card`),!1,tt(e)),j(e,e.shell,`error`,{url:t.url,kind:i,status:r.status}),`error`}var At=e=>k(e)?.querySelector(`.wui-modal-title`)?.textContent||e.shell.getAttribute(`aria-label`)||``,jt=`/_content/Webority.Ui.Razor/js/`,Mt=e=>new URL(e,window.location.href).pathname.includes(jt);function Nt(e){if([...document.scripts].some(t=>t.getAttribute(`src`)===e))return;let t=document.createElement(`script`);t.src=e,document.head.appendChild(t)}function Pt(e,t,n,r){let i=_e(n),a=!1;for(let e of i.querySelectorAll(`script`)){if(e.getAttribute(`type`)===`application/json`)continue;let t=e.getAttribute(`src`);e.remove(),t&&Mt(t)?Nt(t):a=!0}a&&ee(`WUI.modal: ${t.url} returned a fragment with script; it was removed. Keep page behaviour in the page.`);let o=C(i,He);if(!o)return m(`WUI.modal: ${t.url} did not answer with an <app-modal-content> fragment.`),!1;if(A(e,o),r||_t(e),!O(e)){D(e.shell,t.explicitSize||kt(e,o.getAttribute(`data-wui-size`))||e.defaultSize);let n=o.getAttribute(`data-wui-title`);n&&e.shell.setAttribute(`aria-label`,n)}return mt(e)&&ht(o,r,tt(e)),!0}var Ft=`button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]`;function It(e,t,n){let r=[...e.elements].filter(e=>e.matches(Ft));if(n){e.setAttribute(`data-wui-submitting`,``);let n=t&&r.includes(t)?t:r[0];for(let e of r)e.toggleAttribute(`data-wui-was-disabled`,e.disabled),e.disabled=!0;n&&(n.classList.add(`is-loading`),n.setAttribute(`aria-busy`,`true`),n.tagName===`BUTTON`&&n.prepend(i(`span`,{class:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`,"data-wui-submit-spinner":!0})))}else{e.removeAttribute(`data-wui-submitting`);for(let e of r)e.disabled=e.hasAttribute(`data-wui-was-disabled`),e.removeAttribute(`data-wui-was-disabled`),e.classList.remove(`is-loading`),e.removeAttribute(`aria-busy`),e.querySelector(`[data-wui-submit-spinner]`)?.remove()}}function Lt(e){for(let t of e.querySelectorAll(Ve))t.remove();for(let t of e.querySelectorAll(ze))t.removeAttribute(`aria-invalid`),t.classList.remove(`is-invalid`,`input-validation-error`);for(let t of e.querySelectorAll(`.field-error`))t.textContent=``}var Rt=(e,t)=>{if(typeof e==`object`&&e&&t in e)return Reflect.get(e,t)};async function zt(e){if(e.status<400||e.status>499||!e.response?.headers.get(`content-type`)?.toLowerCase().includes(`json`))return null;let t;try{t=JSON.parse(await ke(e))}catch{return null}return Ae(t,e.response.statusText)}function Bt(e,t,n,r){let i={forbidden:b().forbiddenMessage,networkCheck:s(`httpFailure`,te).networkCheckText,client:b().clientMessage,server:b().serverMessage,network:b().networkMessage,timeout:b().timeoutMessage},a=t.closest(`.wui-modal-body`)||t;a.querySelector(`[data-wui-modal-submit-error]`)?.remove(),Lt(a);let o=document.createElement(`div`);o.className=`alert alert-danger wui-modal-submit-error`,o.setAttribute(`role`,`alert`),o.setAttribute(`data-wui-modal-submit-error`,``),o.textContent=`${b().submitFailedMessage} ${r||i[n]||b().serverMessage}`,a.prepend(o),gt(e,o.textContent)}var Vt=(e,t)=>{let n=new URL(e,window.location.href);for(let[e,r]of t)typeof r==`string`&&n.searchParams.append(e,r);return n.origin===window.location.origin?n.pathname+n.search:n.href};async function Ht(e,t){let n=t.target,r=e.session;if(!(n instanceof HTMLFormElement)||!r||n.hasAttribute(`data-wui-native`)||!n.closest(He)||(t.preventDefault(),n.hasAttribute(`data-wui-submitting`)))return;let i=`submitter`in t&&(t.submitter instanceof HTMLButtonElement||t.submitter instanceof HTMLInputElement)?t.submitter:null,a=i?.getAttribute(`formaction`)||n.getAttribute(`action`)||r.url,o=(i?.getAttribute(`formmethod`)||n.getAttribute(`method`)||`GET`).toUpperCase(),s=new FormData(n);i?.name&&!s.has(i.name)&&s.append(i.name,i.value);let c=o===`GET`;It(n,i,!0);let l;try{l=await e.queue.run(c?Vt(a,s):a,{method:o,body:c?void 0:s,navigate:r.options.navigate,timeoutMs:Ie(r.trigger)})}catch(t){m(t),e.session===r&&n.isConnected&&(It(n,i,!1),Bt(e,n,`server`,null));return}if(e.session!==r)return;if(n.isConnected&&It(n,i,!1),l.kind===`ok`&&l.result===`success`){Ut(e,r,l);return}if(l.kind===`aborted`||l.kind===`stale`||l.kind===`session`)return;if(l.kind===`ok`&&l.html){let t=l.result===Be;if(Pt(e,r,l.html,t)){if(t){let t=S(k(e),`a card`).querySelector(Ve)?.textContent?.replace(/\s+/g,` `).trim();gt(e,t||b().invalidMessage)}return}}let u=l.kind===`ok`||l.kind===`validation`?`server`:l.kind,d=await zt(l);e.session===r&&Bt(e,n,u,d)}function Ut(e,t,n){let r=n.message,i=n.redirect||null,a=n.toastVariant||`success`;if(!re(a))throw TypeError(`Unknown toast variant "${a}". Use ${me.join(`, `)}.`);let o={url:t.url,trigger:t.trigger,handle:t.handle,message:r,redirect:i,data:n.data??null,container:e.container},s=i||se(t.trigger)?null:le(n),c=!(n.next&&!i)&&!n.keepOpen,l=s!==null&&c&&de(s);i&&!t.options.navigate?g(r,a):r&&!l&&h().toast(r,{variant:a}),j(e,t.trigger?.isConnected?t.trigger:document,`success`,o),t.options.onSuccess?.(o,t.handle),i&&(t.options.navigate||(e=>window.location.assign(e)))(i),s&&(t.pendingRefresh=ne(t.pendingRefresh,{...s,action:null,message:l?s.message:null}));let u=n.next;u&&!i?(t.url=u,t.method=`GET`,t.body=void 0,N(e,t)):n.keepOpen?n.html&&n.data===null&&Pt(e,t,n.html,!1):M(e,t,`success`,o)}function Wt(e){let t=E(e.target,`[data-wui-modal], [data-wui-drawer], [data-wui-pane]`);t&&(t.matches(`a[href]`)&&(e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)||(e.preventDefault(),t.hasAttribute(`data-wui-pane`)?Zt(t.getAttribute(`data-wui-pane`)??``,{target:t.getAttribute(`data-wui-pane-target`),trigger:t}).catch(e=>{qe(e)||m(e)}):t.hasAttribute(`data-wui-modal`)?qt(t.getAttribute(`data-wui-modal`)??``,{size:t.getAttribute(`data-wui-size`)||void 0,title:t.getAttribute(`data-wui-title`)||void 0,trigger:t}).catch(e=>{qe(e)||m(e)}):Yt(t.getAttribute(`data-wui-drawer`)??``,{size:t.getAttribute(`data-wui-drawer-size`)||void 0,title:t.getAttribute(`data-wui-title`)||void 0,trigger:t}).catch(e=>{qe(e)||m(e)})))}function Gt(e){if(e.key!==`Escape`||e.defaultPrevented)return;let t=E(e.target,Xt);if(!t)return;let n=x.get(t),r=e.currentTarget;n?.session&&r instanceof Document&&!r.querySelector(`wui-modal[open]`)&&(t.querySelector(`form[data-wui-submitting]`)||(e.preventDefault(),M(n,n.session,`dismissed`,null)))}function Kt(e=document){let t=e instanceof Document?e:S(e.ownerDocument,`an owner document`);Ge.has(t)||(Ge.add(t),t.addEventListener(`click`,Wt),t.addEventListener(`keydown`,Gt));let n=Ke(e,`wui-modal[data-wui-remote-url]`);e instanceof HTMLElement&&e.matches(`wui-modal[data-wui-remote-url]`)&&n.unshift(e);for(let e of n)xt(e)}function qt(e,t={}){try{if(!e)throw TypeError(`WUI.modal.load: a fragment url is required.`);let n=t.container===`drawer`,r=n?$e(t.size):Xe(t.size),i=t.placement||`center`;if(!Qe.includes(i))throw TypeError(`WUI.modal.load: unsupported placement "${i}". Use center or top.`);if(t.signal?.aborted)return Promise.reject(T());let a=at(n?`drawer`:`modal`);Kt(document);let o=xt(a),s=mt(o),c=St(o,e,t);c.explicitSize=r,D(o.shell,r||o.defaultSize),n||w(o.shell,`.modal-dialog`,`a dialog frame`).classList.toggle(`modal-dialog-centered`,i===`center`),t.title&&o.shell.setAttribute(`aria-label`,t.title),s||(a.toggleAttribute(`static`,t.staticBackdrop!==!1),a.toggleAttribute(`no-escape`,t.closeOnEscape===!1));let l=s?Promise.resolve():new Promise(e=>a.addEventListener(`wui-modal-opened`,()=>e(),{once:!0})),u=N(o,c);return s||bt(o).show(),Jt(o,c,t,l,u,`WUI.modal.load`)}catch(e){return Promise.reject(e)}}function Jt(e,t,n,r,i,a){let o=new Promise((r,i)=>{n.signal?.addEventListener(`abort`,()=>{e.session===t&&(e.queue.abort(),M(e,t,`dismissed`,{aborted:!0})),i(T())},{once:!0})}),s=Promise.all([r,i]).then(([,e])=>{if(e===`aborted`)throw T();if(e===`session`)throw Error(`${a}(${t.url}): the session expired; the browser is signing in again.`);return t.handle});return Promise.race([s,o])}function Yt(e,t={}){return qt(e,{...t,container:`drawer`,placement:void 0})}var Xt=`[data-wui-pane-host]`;function Zt(e,t={}){try{if(!e)throw TypeError(`WUI.pane.load: a fragment url is required.`);let n=rt(t.target);if(!n)throw TypeError(`WUI.pane.load: the target is not an <app-detail-pane>.`);if(t.signal?.aborted)return Promise.reject(T());Kt(document);let r=xt(n),i=St(r,e,t);n.hidden=!1,n.setAttribute(`data-open`,``);let a=N(r,i);return Jt(r,i,t,Promise.resolve(),a,`WUI.pane.load`)}catch(e){return Promise.reject(e)}}function Qt(e){let t=rt(e);if(!t)throw TypeError(`WUI.pane.close: the target is not an <app-detail-pane>.`);let n=x.get(t);n?.session&&M(n,n.session,`dismissed`,null)}var $t=8e3,en=()=>s(`toast`,f);function tn(e){if(!re(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function P(e,t=`success`){e?.message&&nn(e.message,t,e.toastAction)}function nn(e,t,n=null){n?h().toast(e,{variant:tn(t),duration:$t,action:{label:n.label,onClick:e=>void rn(n,e)}}):h().toast(e,{variant:tn(t)})}async function rn(e,t=null){let n=await _(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(ae(n)||P(n,n.toastVariant||`success`),await ie(n,{origin:t})):h().toast(n.message||en().failedText,{variant:`danger`}))}var an=/* @__PURE__ */ new Set([204,205,304]),on=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function sn(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[Ce]:`1`,...n.headers};if(Ee(e)){let e=ye();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?be(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(be(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=on(c.getAllResponseHeaders()),r=Te(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(ve.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(an.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var F=`wuiConfirm`,cn=Object.freeze([`danger`]),ln=Object.freeze([`warning`,`info`,`delete`]),I=()=>s(`confirmDialog`,d),un=/* @__PURE__ */ new WeakSet,dn=/* @__PURE__ */ new WeakSet,L=null,R=null,z=!1,B=(e,t)=>{e&&h().toast(e,{variant:t})};function fn(){let r=document.getElementById(F);if(r)return n(r.closest(`wui-modal`),`#${F} must be a wui-modal.`);let a=document.createElement(`wui-modal`);a.id=F;let o=document.createElement(`dialog`);return o.className=`modal wui-modal-shell`,o.style.setProperty(`--wui-modal-max-width`,`${y.md}px`),o.replaceChildren(i(`div`,{class:`modal-dialog modal-dialog-centered wui-rb-dialog`},i(`div`,{class:`modal-content wui-modal wui-confirm`},i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-confirm-content`},i(`span`,{class:`wui-confirm-icon`},i(`wui-status-icon`,{tone:`info`,size:120})),i(`h3`,{class:`wui-confirm-title`,tabindex:-1,"data-autofocus":``}),i(`p`,{class:`wui-confirm-msg`}))),i(`div`,{class:`wui-modal-footer`},i(`div`,{class:`wui-confirm-actions`},i(`button`,{type:`button`,class:e(`primary`,`soft`,`md`),"data-wui-dismiss":``,"data-wui":t},I().cancelLabel),i(`button`,{type:`button`,class:e(`primary`,`solid`,`md`),"data-app-confirm":``,"data-wui":t})))))),a.append(o),document.body.appendChild(a),a}function pn(e,t){let n=e.getAttribute(`data-wui-confirm-tone`);if(n!==null&&!cn.includes(n))throw TypeError(`data-wui-confirm-tone="${n}" is not supported. Use danger, or leave it off.`);mn({title:e.getAttribute(`data-wui-confirm-title`),message:e.getAttribute(`data-wui-confirm`),label:e.getAttribute(`data-wui-confirm-label`),danger:n===`danger`,cancel:void 0,icon:void 0},t)}function mn({title:e,message:t,label:r,danger:i,cancel:a,icon:o},s){let c=fn(),l=c.querySelector(`.wui-confirm-title`),u=c.querySelector(`[data-app-confirm]`);if(!l||!u)throw Error(`#${F} is not a confirm dialog with a confirm button. Render <app-confirm-dialog id="${F}"> without confirm-href, or leave the dialog to the library.`);let d=c.querySelector(`.wui-confirm-msg`);d||(d=document.createElement(`p`),d.className=`wui-confirm-msg`,l.after(d));let f=e||I().confirmTitle;l.textContent=f,d.textContent=t,u.textContent=r||I().confirmLabel,u.classList.toggle(`btn-danger`,i),u.classList.toggle(`btn-primary`,!i),c.querySelector(`wui-status-icon`)?.setAttribute(`tone`,o??(i?`delete`:`info`));let p=c.querySelector(`[data-wui-dismiss]`);p&&(p.textContent=a||I().cancelLabel),n(c.querySelector(`dialog`),`#${F} has no <dialog>.`).setAttribute(`aria-label`,f),R=s,z=!1,c.show()}var V=(e,t)=>{L=e;try{t()}finally{L=null}},H=(e,t)=>{let n=Reflect.get(e,t);if(n===void 0||typeof n==`string`)return n;throw TypeError(`confirmAction: ${t} must be text.`)},hn=e=>{if(typeof e!=`object`||!e)throw TypeError(`confirmAction: options must be an object with a message.`);let t=`message`in e?e.message:void 0;if(typeof t!=`string`)throw TypeError(`confirmAction: message must be text.`);return{title:H(e,`title`),message:t,label:H(e,`label`),tone:H(e,`tone`),cancel:H(e,`cancel`),icon:H(e,`icon`)}};function gn(e,t,n){let{title:r,message:i,label:a,tone:o,cancel:s,icon:c}=hn(t);if(o!=null&&!cn.includes(o))throw TypeError(`confirmAction: tone "${o}" is not supported. Use danger, or leave it off.`);if(c!=null&&!ln.includes(c))throw TypeError(`confirmAction: icon "${c}" is not supported. Use warning, info or delete, or leave it off.`);Rn(e.ownerDocument),mn({title:r,message:i,label:a,danger:o===`danger`,cancel:s,icon:c},()=>V(e,n))}var _n=e=>`disabled`in e&&e.disabled===!0||e.getAttribute(`aria-disabled`)===`true`,vn=e=>{r(e,HTMLElement,`data-wui-confirm needs an HTML element to click.`).click()};function yn(e){let t=a(e.target,`[data-wui-confirm]:not(form)`);t&&t!==L&&!_n(t)&&(e.preventDefault(),e.stopImmediatePropagation(),pn(t,()=>V(t,()=>vn(t))))}function bn(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!t.hasAttribute(`data-wui-confirm`)||t===L||e.submitter&&e.submitter===L||t.querySelector(`input[data-app-repeater-hidden]`))return;e.preventDefault(),e.stopImmediatePropagation();let n=e.submitter instanceof HTMLButtonElement||e.submitter instanceof HTMLInputElement?e.submitter:null,r=n?.form===t?n:void 0;pn(t,()=>V(t,()=>t.requestSubmit(r)))}function xn(e){let t=a(e.target,`#${F} [data-app-confirm]`);t&&!t.hasAttribute(`disabled`)&&R&&(z=!0,n(t.closest(`wui-modal`),`#${F} is missing around its confirm button.`).hide())}function Sn(e){if(!(e.target instanceof Element)||e.target.id!==`wuiConfirm`)return;let t=z?R:null;R=null,z=!1,t?.()}var U=e=>e===`forbidden`?I().forbiddenMessage:e===`networkCheck`?s(`httpFailure`,te).networkCheckText:e===`network`?I().networkMessage:e===`timeout`?I().timeoutMessage:I().failedMessage,Cn=(e,t)=>{`disabled`in e&&(e.disabled=t)},wn=e=>{Cn(e,!1),e.removeAttribute(`aria-busy`)};async function Tn(e){let t=e.getAttribute(`data-wui-post`);if(!t)throw Error(`A data-wui-post button needs the URL the action posts to.`);return En(t,e)}async function En(e,t,n){Cn(t,!0),t.setAttribute(`aria-busy`,`true`);let r=we(t.getAttribute(`data-wui-timeout`))??3e4,i=await _(e,{method:`POST`,body:n,timeoutMs:r});if(i.kind===`session`||i.kind===`aborted`)return;let a=i.toastVariant||`success`;if(i.ok&&i.redirect)g(i.message,a,i.toastAction),window.location.assign(i.redirect);else if(i.ok){let e=se(t);if(!e&&ae(i)){await ie(i,{origin:t})===`held`&&wn(t);return}wn(t),P(i,a),e||await ie(i,{origin:t})}else wn(t),B(i.message||U(i.kind),`danger`)}var Dn=e=>typeof e!=`object`||!e||!(`code`in e)?null:typeof e.code==`string`?e.code:null,On=e=>(e.response?.headers.get(`Content-Type`)??``).toLowerCase().includes(`json`)?e.data:e.html===``?null:e.html;async function kn(e,t={}){if(t.body!==void 0&&t.json!==void 0)throw TypeError(`postAction takes a body or a json value, not both.`);let n=t.method??`POST`;if(!xe.includes(n))throw TypeError(`postAction method must be POST, PUT, PATCH or DELETE.`);let r=t.timeoutMs??3e4;if(!Number.isInteger(r)||r<0)throw TypeError(`postAction timeoutMs must be a whole number of milliseconds, 0 for no limit.`);if(t.onUploadProgress!==void 0){if(!(t.body instanceof FormData))throw TypeError(`postAction onUploadProgress needs a FormData body.`);if(n!==`POST`)throw TypeError(`postAction onUploadProgress needs the POST method.`)}let i={},a;t.json===void 0?t.body instanceof FormData||t.body instanceof URLSearchParams?a=t.body:t.body!==void 0&&(a=new URLSearchParams(t.body)):(i[`Content-Type`]=`application/json`,a=JSON.stringify(t.json));let o;try{o=t.onUploadProgress!==void 0&&t.body instanceof FormData?await sn(e,t.body,{onProgress:t.onUploadProgress,headers:i,timeoutMs:r===0?void 0:r}):await _(e,{method:n,body:a,headers:i,timeoutMs:r})}catch(e){throw m(e),e}if(o.kind===`session`||o.kind===`aborted`)throw new v(U(o.kind),{code:null,status:o.status,html:null,body:null,kind:o.kind});let s=t.toast!==!1,c=t.refresh!==!1,l=o.toastVariant||`success`;if(o.ok){if(o.redirect)g(s?o.message:null,l,s?o.toastAction:null),window.location.assign(o.redirect);else{let e=le(o);s&&!(c&&ae(o))&&P(o,l),e!==null&&c&&await fe({...e,message:s?e.message:null,action:s?e.action:null})}return On(o)}let u;try{u=await ke(o)}catch(e){m(e);let t=o.message||U(o.kind);throw B(t,`danger`),new v(t,{code:null,status:o.status,html:null,body:null,kind:o.kind,cause:e})}let d=(o.response?.headers.get(`Content-Type`)??``).toLowerCase(),f=null;if(d.includes(`json`))try{f=JSON.parse(u)}catch{f=null}let p=Ae(f,o.response?.statusText??``)||o.message||U(o.kind),ee=d.includes(`text/html`)?u:null;throw(o.kind!==`validation`||ee===null)&&B(p,`danger`),new v(p,{code:Dn(f),status:o.status,html:ee,body:f,kind:o.kind})}function An(e,t){Cn(e,!1),e.removeAttribute(`aria-busy`),m(t),B(I().failedMessage,`danger`)}function jn(e){let t=a(e.target,`[data-wui-post]`);t&&(e.preventDefault(),_n(t)||t.getAttribute(`aria-busy`)===`true`||Tn(t).catch(e=>An(t,e)))}function Mn(e){let t=a(e.target,`form[data-wui-post-form]`);if(!(t instanceof HTMLFormElement)||e.defaultPrevented)return;e.preventDefault();let r=n(e.submitter||t.querySelector(`button:not(.repeater-add):not(.repeater-remove)`),`A data-wui-post-form needs a submit button to report its result on.`);if(r.getAttribute(`aria-busy`)===`true`)return;let i=new URL(n(t.getAttribute(`action`),`A data-wui-post-form needs an action attribute to post to.`),document.baseURI).href;En(i,r,new FormData(t)).catch(e=>An(r,e)),t.closest(`wui-dropdown`)?.hide()}var W=(e,t)=>{e.disabled=!1,e.removeAttribute(`aria-busy`),t&&p(t,null)};async function Nn(e,t){let n=e.dataset.url;if(!n)throw Error(`A data-wui-row-action button needs data-url: the handler the action posts to.`);e.disabled=!0,e.setAttribute(`aria-busy`,`true`),t&&p(t,`saving`);let r=we(e.getAttribute(`data-wui-timeout`))??3e4,i=await _(n,{method:(e.dataset.method||`post`).toUpperCase(),timeoutMs:r});if(i.kind===`session`)return;if(i.kind===`aborted`){W(e,t);return}let a=i.toastVariant||`success`;if(i.ok&&i.redirect){g(i.message,a,i.toastAction),window.location.assign(i.redirect);return}if(i.ok){let n=le(i);if(se(e)||n===null||ce(n)){W(e,t),P(i,a);return}if(ue({...n,reload:`page`},e)){W(e,t);return}g(i.message,a,i.toastAction),pe();return}let o=i.message||U(i.kind);e.disabled=!1,e.removeAttribute(`aria-busy`),t&&p(t,`error`,o),B(o,`danger`)}var Pn=/* @__PURE__ */ new WeakSet;function Fn(e){let t=a(e.target,`[data-wui-row-action]`);if(!t||t.closest(`[data-wui-server]`))return;if(!(t instanceof HTMLButtonElement)){if(Pn.has(t))return;Pn.add(t),m(/* @__PURE__ */ Error(`A [data-wui-row-action] element must be a button with data-url, so its click does nothing: ${t.getAttribute(`data-wui-row-action`)??``}`));return}if(e.preventDefault(),t.disabled||t.getAttribute(`aria-busy`)===`true`)return;let n=t.closest(`tr`);Nn(t,n).catch(e=>{W(t,n),m(e),B(I().failedMessage,`danger`)})}var In=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.form:null;function Ln(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`[data-wui-auto-submit]`);if(!t)return;let n=In(e.target)||t.closest(`form`);n instanceof HTMLFormElement&&n.requestSubmit()}function Rn(e){dn.has(e)||(dn.add(e),e.addEventListener(`click`,xn),e.addEventListener(`wui-modal-closed`,Sn))}function zn(e=document){let t=e instanceof Element?e.ownerDocument:e;un.has(t)||(un.add(t),t.addEventListener(`click`,yn,!0),t.addEventListener(`submit`,bn,!0),Rn(t),t.addEventListener(`click`,jn),t.addEventListener(`click`,Fn),t.addEventListener(`submit`,Mn),t.addEventListener(`change`,Ln))}var G=()=>s(`unsavedChanges`,l),K=`form[data-wui-unsaved]`,Bn=`[aria-invalid="true"], .field-error:not(:empty), .field-validation-error, .validation-summary-errors, .wui-error-summary`,Vn=`[download], [data-wui-modal], [data-wui-post], [data-bs-toggle]`,Hn=/* @__PURE__ */ new Set([`submit`,`button`,`reset`,`image`]),Un=/* @__PURE__ */ new Set([`hidden`,`checkbox`,`radio`,`file`,`submit`,`button`,`reset`,`image`,`range`,`color`]),Wn=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLObjectElement||e instanceof HTMLOutputElement,Gn=e=>Wn(e)?e instanceof HTMLObjectElement||e instanceof HTMLOutputElement?!1:e.disabled:`disabled`in e&&!!e.disabled,Kn=e=>`name`in e&&typeof e.name==`string`&&e.name!==``,qn=e=>typeof e==`object`&&!!e,Jn=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)&&typeof e[0]==`string`);function Yn(e){let t=JSON.parse(e);if(!Jn(t))throw Error(`unsaved-changes snapshot is malformed`);return t}var q=/* @__PURE__ */ new WeakMap,Xn=/* @__PURE__ */ new WeakSet,Zn=e=>`${e.name}:${e.size}:${e.lastModified}`,J=e=>[...e.querySelectorAll(K)].filter(e=>e instanceof HTMLFormElement);function Y(e){let t=[];for(let n of e.elements)Kn(n)&&!Gn(n)&&(Wn(n)&&Hn.has(n.type)||(n instanceof HTMLInputElement&&(n.type===`checkbox`||n.type===`radio`)?t.push([n.name,n.value,n.checked]):n instanceof HTMLInputElement&&n.type===`file`?t.push([n.name,[...n.files||[]].map(Zn)]):n instanceof HTMLSelectElement&&n.type===`select-multiple`?t.push([n.name,[...n.selectedOptions].map(e=>e.value)]):n instanceof HTMLFieldSetElement||n instanceof HTMLObjectElement?t.push([n.name,null]):t.push([n.name,`value`in n?n.value:null])));return JSON.stringify(t)}function X(e){return Y(e)}function Qn(e,t){let n=/* @__PURE__ */ new Map,r=Yn(t);for(let e of r){let t=n.get(e[0]);t?t.push(e):n.set(e[0],[e])}let i=Yn(Y(e)).map(e=>n.get(e[0])?.shift()??e);for(let e of n.values())i.push(...e);return JSON.stringify(i)}function $n(e){for(let t of e.elements)if(Wn(t)&&t.name&&!Gn(t)){if(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Un.has(t.type)){if(t.value.trim()!==``)return!0}else if(t instanceof HTMLInputElement&&t.type===`file`&&(t.files?.length??0)>0)return!0}return!1}var er=e=>({saved:e.querySelector(Bn)&&$n(e)?null:Y(e),engaged:!1,discarded:!1});function tr(e){let t=q.get(e);return!t||t.discarded||!e.isConnected?!1:t.saved===null||t.engaged&&Y(e)!==t.saved}var nr=(e,t)=>J(e).filter(e=>e!==t&&tr(e));function rr(e,t,n){let r=t.map(e=>e.getAttribute(`data-wui-unsaved`)).find(Boolean)||G().message;gn(e,{title:G().title,message:r,label:G().leaveLabel,cancel:G().keepLabel,icon:`warning`,tone:`danger`},()=>{for(let e of t){let t=q.get(e);t&&(t.discarded=!0)}n()})}function ir(e){if(e.matches(Vn))return!1;let t=e.getAttribute(`target`);if(t&&t.toLowerCase()!==`_self`)return!1;let n=e.getAttribute(`href`);if(n===null)return!1;let r=new URL(n,window.location.href);if(r.protocol!==`http:`&&r.protocol!==`https:`)return!1;let i=window.location;return!(r.hash&&r.origin===i.origin&&r.pathname===i.pathname&&r.search===i.search)}function ar(e,t){if((t?.getAttribute(`formmethod`)||e.getAttribute(`method`)||`get`).toLowerCase()===`dialog`)return!1;let n=t?.getAttribute(`formtarget`)||e.getAttribute(`target`);return!n||n.toLowerCase()===`_self`}function or(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target,n=a(t,`a[href]`);if(!(n instanceof HTMLAnchorElement)||!ir(n))return;let r=nr(n.ownerDocument,null);r.length&&(e.preventDefault(),rr(n,r,()=>n.click()))}function sr(e){let t=e.target;if(!(t instanceof HTMLFormElement)||e.defaultPrevented||!ar(t,e.submitter))return;let n=nr(t.ownerDocument,t);if(n.length){e.preventDefault();let r=e.submitter,i=(r instanceof HTMLButtonElement||r instanceof HTMLInputElement)&&r.form===t?r:void 0;rr(t,n,()=>t.requestSubmit(i));return}let r=q.get(t);r&&(r.saved=Y(t),r.discarded=!1)}function cr(e){nr(document,null).length&&e.preventDefault()}function lr(e){let t=e.target,n=a(t,K);return n instanceof HTMLFormElement?n:null}function ur(e){let t=lr(e);if(!t)return;let n=q.get(t);n&&!n.engaged&&(n.saved!==null&&(n.saved=Y(t)),n.engaged=!0)}function dr(e){let t=lr(e),n=t&&q.get(t);n&&(n.discarded=!1,e.isTrusted&&(n.engaged=!0))}function fr(e){for(let t of J(e)){let e=q.get(t);e?.saved&&(e.saved=Qn(t,e.saved))}}function pr(e){let t=qn(e)?e.handle:void 0;return qn(t)?t.el:void 0}function mr(e){if(!(e instanceof CustomEvent))return;let t=pr(e.detail);if(t instanceof Element)for(let e of J(t))gr(e)}function hr(e=document){let t=e instanceof Document?e:e.ownerDocument;if(!Xn.has(t)){Xn.add(t);for(let e of[`focusin`,`pointerdown`,`drop`])t.addEventListener(e,ur,!0);for(let e of[`input`,`change`])t.addEventListener(e,dr,!0);t.addEventListener(`click`,or),t.addEventListener(`submit`,sr),t.addEventListener(`wui:modal:success`,mr),t.addEventListener(o,()=>fr(t)),n(t.defaultView,`unsaved-changes guard needs a document with a window`).addEventListener(`beforeunload`,cr)}let r=J(e);e instanceof HTMLFormElement&&e.matches(K)&&r.unshift(e);for(let e of r)q.has(e)||q.set(e,er(e))}function gr(e){if(!(e instanceof HTMLFormElement)||!e.matches(K))throw TypeError(`resetUnsavedChanges: ${String(e)} is not a <form data-wui-unsaved>.`);q.set(e,{saved:Y(e),engaged:!1,discarded:!1})}var _r=()=>s(`drawer`,c),vr=`wui:drawer:discard`,Z=`wui-drawer[confirm-discard]`,yr=`wui-modal`,br=`data-wui-no-discard`,xr=`.wui-drawer-discard`,Sr=`input, select, textarea`,Cr=e=>typeof e==`object`&&!!e||typeof e==`function`;function wr(e){let t=e.currentTarget;if(!(t instanceof Document))throw Error(`The discard guard is not wired on a document.`);return t}function Tr(e,t){return a(e,t)}var Er=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement,Q=/* @__PURE__ */ new WeakMap,Dr=/* @__PURE__ */ new WeakSet,Or=/* @__PURE__ */ new WeakSet;function kr(n,r,i,a,o){let s=n.createElement(`button`);return s.type=`button`,s.className=e(r,i,`sm`),s.dataset.wui=t,s.setAttribute(a,``),s.textContent=o,s}function Ar(e,t){let n=e.createElement(`div`);n.className=`wui-drawer-discard`,n.setAttribute(`role`,`alert`);let r=e.createElement(`span`);return r.className=`wui-drawer-discard-text`,r.textContent=t,n.append(r,kr(e,`danger`,`solid`,`data-wui-discard-confirm`,_r().discardLabel),kr(e,`primary`,`soft`,`data-wui-discard-keep`,_r().keepLabel)),n}function jr(e){if(!(e instanceof Element))return null;let t=e.closest(Z);if(t)return t;let n=e.closest(yr);return n&&$(n).length?n:null}function Mr(e){return e.closest(Z)??e.closest(yr)}function Nr(e,t){return t.hasAttribute(br)||e.hasAttribute(br)?!1:t.hasAttribute(`confirm-discard`)||e.hasAttribute(`data-wui-confirm-discard`)?!0:(e.getAttribute(`method`)||`get`).toLowerCase()!==`get`}function $(e){return e.matches(Z)?e.querySelectorAll(`form`):[...e.querySelectorAll(`form`)].filter(t=>Nr(t,e))}function Pr(e){let t=Q.get(e);return t!=null&&X(e)!==t}function Fr(e){let t=e.ownerDocument.createElement(`div`);return t.className=`wui-drawer-footer`,n(e.querySelector(`.wui-drawer-panel`),`The drawer has no panel to hold its footer.`).append(t),Or.add(t),t}function Ir(e){let t=e.ownerDocument.createElement(`div`);return t.className=`wui-modal-footer`,(e.querySelector(`.wui-modal-body`)?.parentElement??e.querySelector(`.modal-content`)??e).append(t),Or.add(t),t}function Lr(e){let t=e.querySelector(`[data-wui-discard-confirm]`);if(!(t instanceof HTMLElement))throw Error(`The discard prompt has no confirm button.`);t.focus()}function Rr(e,t,n){let r=e.querySelector(xr);if(r){Lr(r);return}let i=Ar(e.ownerDocument,t),a;if(e.matches(Z))a=e.querySelector(`.wui-drawer-footer`)??Fr(e),a.prepend(i);else if(e.hasAttribute(`confirm-discard`))a=e.querySelector(`.wui-modal-footer`)??Ir(e),a.prepend(i);else{if(!n)throw Error(`A discard prompt needs the form that is dirty.`);a=n.querySelector(`.modal-footer`)??e.querySelector(`.wui-modal-footer`)??Ir(e),a.prepend(i)}a.classList.add(`wui-drawer-discarding`),Lr(i)}function zr(e){let t=e.parentElement;if(e.remove(),!t)throw Error(`The discard prompt has no footer.`);t.classList.remove(`wui-drawer-discarding`),Or.has(t)&&t.remove()}function Br(e){for(let t of $(e))for(let e of t.querySelectorAll(Sr))if(Er(e)&&e.type!==`hidden`&&!e.disabled){e.focus({preventScroll:!0});return}}function Vr(e){let t=jr(e.target);if(t)for(let e of $(t))Q.get(e)??Q.set(e,X(e))}function Hr(e){for(let t of wr(e).querySelectorAll(`form`)){let e=Q.get(t);e!=null&&Q.set(t,Qn(t,e))}}function Ur(e){let t=e.target;t instanceof HTMLFormElement&&jr(t)&&Q.set(t,X(t))}function Wr(e){if(!Cr(e))return;let t=`handle`in e?e.handle:void 0;if(Cr(t))return`el`in t?t.el:void 0}function Gr(e){if(!(e instanceof CustomEvent))return;let t=e.detail,n=Wr(t);if(n instanceof Element)for(let e of n.querySelectorAll(`form`))Q.delete(e)}function Kr(e){let t=e.target;t instanceof Element&&t.matches(Z)&&[...$(t)].some(Pr)&&(e.preventDefault(),Rr(t,t.getAttribute(`confirm-discard`),null))}function qr(e){let t=e.target;if(!(t instanceof Element)||!t.matches(yr))return;let n=[...$(t)].find(Pr);n&&(e.preventDefault(),Rr(t,n.getAttribute(`data-wui-confirm-discard`)??t.getAttribute(`confirm-discard`)??_r().confirmDiscard,n))}function Jr(e){let t=n(e.closest(xr),`The discard button is outside its prompt.`),r=Mr(t);if(zr(t),!r)throw Error(`The discard prompt is outside its drawer or modal.`);for(let e of $(r))Q.set(e,X(e));r.dispatchEvent(new CustomEvent(vr,{bubbles:!0})),r.matches(Z)?n(r.closest(`wui-drawer`),`The confirm-discard drawer is not a wui-drawer.`).hide():n(r.closest(`wui-modal`),`The discarded dialog is not a wui-modal.`).hide()}function Yr(e){let t=n(e.closest(xr),`The keep button is outside its prompt.`),r=Mr(t);if(zr(t),!r)throw Error(`The discard prompt is outside its drawer or modal.`);Br(r)}function Xr(e){let t=Tr(e.target,`[data-wui-discard-confirm]`);if(t){Jr(t);return}let n=Tr(e.target,`[data-wui-discard-keep]`);n&&Yr(n)}function Zr(e=document){let t=e instanceof Document?e:e.ownerDocument;Dr.has(t)||(Dr.add(t),t.addEventListener(`focusin`,Vr),t.addEventListener(`pointerdown`,Vr),t.addEventListener(`submit`,Ur),t.addEventListener(o,Hr),t.addEventListener(`wui:modal:success`,Gr),t.addEventListener(`wui:modal:loaded`,Gr),t.addEventListener(`wui-drawer-close`,Kr,!0),t.addEventListener(`wui-modal-close`,qr),t.addEventListener(`click`,Xr))}export{v as S,Qt as _,hr as a,qt as b,cn as c,kn as d,sn as f,nn as g,P as h,X as i,gn as l,rn as m,Ar as n,gr as o,$t as p,Zr as r,F as s,vr as t,zn as u,Kt as v,Zt as x,Yt as y};
|
|
1
|
+
import{n as e,t}from"./buttonClass-C8BRtTk8.js";import{i as n,n as r,r as i,t as a}from"./dom-DMQu--xV.js";import{t as o}from"./loader-sSdQNOg6.js";import{r as s}from"./textStore-Dh5iyZSR.js";import{t as c}from"./drawer.g-B-zYKBfQ.js";import{i as l,n as u,r as d,t as f}from"./toast.g-CJ8c0BNZ.js";import{N as p}from"./dataTable-D48Rwq1a.js";import{n as ee,t as m}from"./devWarn-DXdRWZs3.js";import{t as te}from"./httpFailure.g-DjZzGxPj.js";import{_ as h,a as ne,b as re,c as ie,d as ae,f as oe,i as se,l as ce,o as le,r as ue,s as de,t as fe,u as pe,x as g,y as me}from"./refreshAfter-DhYgWXmQ.js";import{t as he}from"./hasOwn-CJsplJ62.js";import{n as ge}from"./svgNodes-CaPMDvv7.js";import{t as _e}from"./serverHtml-BC6tAyAl.js";import{a as ve,d as ye,f as be,h as xe,l as Se,m as _,o as Ce,p as we,s as Te,u as Ee}from"./wuiHttp-8CYWEbRz.js";var v=class extends Error{code;status;html;body;kind;constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},De=/* @__PURE__ */ new Set(/* @__PURE__ */ `bad request.unauthorized.payment required.forbidden.not found.method not allowed.not acceptable.proxy authentication required.request timeout.conflict.gone.length required.precondition failed.payload too large.uri too long.unsupported media type.range not satisfiable.expectation failed.misdirected request.unprocessable content.unprocessable entity.locked.failed dependency.too early.upgrade required.precondition required.too many requests.request header fields too large.unavailable for legal reasons`.split(`.`)),Oe=e=>typeof e!=`object`||!e?{message:void 0,detail:void 0,title:void 0}:{message:`message`in e?e.message:void 0,detail:`detail`in e?e.detail:void 0,title:`title`in e?e.title:void 0};async function ke(e){return e.html===``?e.response===null?``:e.response.text():e.html}function Ae(e,t){let n=e=>typeof e==`string`?e.trim():``,r=Oe(e),i=n(r.message);if(i)return i;let a=n(r.detail);if(a)return a;let o=n(r.title);if(!o)return null;let s=o.toLowerCase();return De.has(s)||s===t.trim().toLowerCase()?null:o}var je=`wui-remote-modal`,Me=`wui-remote-drawer`,Ne=Object.freeze({sm:360,md:480,lg:640,xl:720}),Pe=`wui-modal-fullscreen`,Fe=`wui-modal-wide`,y=Object.freeze({sm:380,md:440,lg:640,xl:880,wide:1080}),b=()=>s(`modal`,u),Ie=e=>we(e?.getAttribute(`data-wui-timeout`)??null)??3e4,Le=`a[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,Re=`input:not([type="hidden"]):not([disabled]),select:not([disabled]),textarea:not([disabled]),[contenteditable="true"]`,ze=`[aria-invalid="true"], .is-invalid, .input-validation-error`,Be=`invalid`,Ve=`.wui-error-summary, [data-wui-form-errors], .validation-summary-errors, [data-valmsg-summary]`,He=`[data-wui-modal-content]`,Ue=`[data-wui-pane-close], [data-wui-dismiss]`,We=()=>i(`button`,{type:`button`,class:`wui-modal-close`,"data-wui-dismiss":!0,"aria-label":b().closeLabel},ge({width:18,height:18,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[[`path`,{d:`M18 6 6 18M6 6l12 12`}]])),x=/* @__PURE__ */ new WeakMap,Ge=/* @__PURE__ */ new WeakSet;function S(e,t){if(e==null)throw TypeError(`The remote modal needs ${t}, and the page does not have it.`);return e}var C=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},w=(e,t,n)=>S(C(e,t),n),Ke=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),T=()=>Object.assign(/* @__PURE__ */ Error(`The remote modal load was aborted.`),{name:`AbortError`}),qe=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,E=(e,t)=>{let n=e instanceof Element?e.closest(t):null;return n instanceof HTMLElement?n:null},Je=e=>he(y,e),Ye=e=>he(Ne,e);function Xe(e){if(e==null||e===``)return null;if(e===`fullscreen`)return{fullscreen:!0};if(Je(e))return e===`wide`?{px:y.wide,wide:!0}:{px:y[e]};let t=typeof e==`number`?e:/^\d+$/.test(String(e))?Number(e):NaN;if(Number.isInteger(t)&&t>0)return{px:t};throw TypeError(`Unsupported modal size "${String(e)}". Use sm, md, lg, xl, wide, fullscreen or a px number.`)}var Ze=e=>{if(e.classList.contains(`wui-modal-fullscreen`))return{fullscreen:!0};if(e.classList.contains(`wui-modal-wide`))return{px:y.wide,wide:!0};let t=Number.parseInt(e.style.getPropertyValue(`--wui-modal-max-width`),10);return{px:t>0?t:y.md}},D=(e,t)=>{e.classList.toggle(Pe,!!t.fullscreen),e.classList.toggle(Fe,!t.fullscreen&&!!t.wide),t.fullscreen?e.style.removeProperty(`--wui-modal-max-width`):e.style.setProperty(`--wui-modal-max-width`,`${t.px}px`)},Qe=[`center`,`top`];function $e(e){if(e==null||e===``)return null;if(Ye(e))return{px:Ne[e]};let t=typeof e==`number`?e:/^\d+$/.test(String(e))?Number(e):NaN;if(Number.isInteger(t)&&t>0)return{px:t};throw TypeError(`Unsupported drawer size "${String(e)}". Use sm, md, lg, xl or a px number.`)}var et=e=>e.container===`drawer`,O=e=>e.container===`pane`,tt=e=>e.container!==`modal`,nt=(e,t)=>et(e)?$e(t):Xe(t),rt=e=>{let t=typeof e==`string`?document.querySelector(e):e,n=t instanceof HTMLElement?t:null;return n?.matches(`[data-wui-pane-host]`)?n:null},it=e=>O(e)?e.shell:w(e.shell,`.modal-dialog`,`a dialog frame`);function at(e=`modal`){let t=e===`drawer`,n=t?Me:je,r=document.getElementById(n);if(r)return r;let a=document.createElement(`wui-modal`);a.id=n,a.setAttribute(`data-wui`,`AppModal`);let o=document.createElement(`dialog`);return o.className=t?`modal wui-modal-shell wui-remote-drawer`:`modal wui-modal-shell`,o.style.setProperty(`--wui-modal-max-width`,`${t?Ne.md:y.md}px`),o.replaceChildren(i(`div`,{class:t?`modal-dialog wui-remote-drawer-dialog`:`modal-dialog modal-dialog-centered wui-rb-dialog`},i(`div`,{class:`modal-content wui-modal`}))),a.append(o),document.body.appendChild(a),a}var ot=e=>i(`div`,{class:`wui-modal-header`},i(`div`,{class:`wui-modal-heading`},i(`div`,{class:`wui-modal-headtext`},i(`div`,{class:`wui-modal-title`},e))),We()),st=e=>i(`div`,{class:`modal-content wui-modal`,"aria-busy":`true`},ot(e),i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-modal-loading`,role:`status`},i(`span`,{class:`visually-hidden`},b().loadingLabel),i(`div`,{class:`skeleton wui-modal-skeleton`}),i(`div`,{class:`skeleton wui-modal-skeleton`}),i(`div`,{class:`skeleton wui-modal-skeleton wui-modal-skeleton--short`})))),ct=(n,r)=>{let a={forbidden:b().forbiddenMessage,networkCheck:s(`httpFailure`,te).networkCheckText,client:b().clientMessage,server:b().serverMessage,network:b().networkMessage,timeout:b().timeoutMessage};return i(`div`,{class:`modal-content wui-modal`,"data-wui-modal-error":r},ot(n),i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-modal-state`,role:`alert`},i(`p`,{class:`wui-modal-state-title`},b().errorTitle),i(`p`,{class:`wui-modal-state-text`},a[r]||b().serverMessage),i(`div`,{class:`wui-modal-state-actions`},i(`button`,{type:`button`,class:e(`primary`,`soft`,`md`),"data-wui-dismiss":!0,"data-wui":t},b().closeLabel),i(`button`,{type:`button`,class:e(`primary`,`solid`,`md`),"data-wui-modal-retry":!0,"data-wui":t},b().retryLabel)))))},k=e=>C(e.shell,`.modal-content`),lt=e=>r(e.cloneNode(!0),HTMLElement,`a card copy is not an element`);function ut(e){e&&e.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}))}function A(e,t){let n=k(e),r=n?ft(n):/* @__PURE__ */ new Map;ut(n),n?n.replaceWith(t):it(e).appendChild(t),pt(t,r),h().refresh()}var dt=`input[type="file"][name]`;function ft(e){let t=/* @__PURE__ */ new Map;for(let n of e.querySelectorAll(dt)){if(!(n instanceof HTMLInputElement))continue;let e=n.files;e&&e.length>0&&t.set(n.name,[...e])}return t}function pt(e,t){if(t.size!==0&&typeof DataTransfer<`u`)for(let n of e.querySelectorAll(dt)){if(!(n instanceof HTMLInputElement))continue;let e=t.get(n.name);if(!e)continue;let r=new DataTransfer;for(let t of e)r.items.add(t);n.files=r.files,n.dispatchEvent(new Event(`change`,{bubbles:!0}))}}var mt=e=>O(e)?!e.shell.hidden:e.host.hasAttribute(`open`);function ht(e,t,n=!1){let r=t?C(e,ze):null,i=r?r.matches(Le)?r:C(r,Le)||r:null;if(!i&&n)i=C(e,`[data-autofocus]`)||C(e,Re)||C(e,`.wui-modal-close`);else if(!i){let t=Ke(e,Le);i=C(e,`[data-autofocus]`)||t.find(e=>!e.classList.contains(`wui-modal-close`))||t[0]||e}r?i?.focus?.():i?.focus?.({preventScroll:!0})}function gt(e,t){let n=C(e.shell,`[data-wui-modal-live]`);n||(n=document.createElement(`div`),n.className=`visually-hidden`,n.setAttribute(`aria-live`,`assertive`),n.setAttribute(`data-wui-modal-live`,``),it(e).appendChild(n)),n.textContent=``,n.textContent=t}var _t=e=>{let t=C(e.shell,`[data-wui-modal-live]`);t&&(t.textContent=``)},vt=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};function j(e,t,n,r){let i={...r,container:e.container};vt(t,`wui:modal:${n}`,i),et(e)&&vt(t,`wui:drawer:${n}`,i),O(e)&&vt(t,`wui:pane:${n}`,i)}var yt=e=>e.matches(`[data-wui-pane-host]`)?`pane`:w(e,`dialog`,`a dialog`).classList.contains(`wui-remote-drawer`)?`drawer`:`modal`,bt=e=>S(e.host.closest(`wui-modal`),`a wui-modal host`);function xt(e){let t=x.get(e);if(t)return t;let n=yt(e),r=n===`pane`?e:w(e,`dialog`,`a dialog`),a=k({shell:r}),o={host:e,shell:r,container:n,queue:Se(),defaultSize:Ze(r),defaultLabel:r.getAttribute(`aria-label`),placeholder:a?lt(a):i(`div`,{class:`modal-content wui-modal`}),remoteUrl:e.getAttribute(`data-wui-remote-url`),cache:e.getAttribute(`data-wui-remote-cache`)===`true`,loadedUrl:null,session:null};return x.set(e,o),e.addEventListener(`submit`,e=>Ht(o,e)),e.addEventListener(`click`,e=>{E(e.target,`[data-wui-modal-retry]`)&&o.session&&(e.preventDefault(),N(o,o.session))}),O(o)&&e.addEventListener(`click`,t=>{let n=E(t.target,Ue);n&&e.contains(n)&&o.session&&M(o,o.session,`dismissed`,null)}),e.addEventListener(`wui-modal-close`,t=>{t.target===e&&t instanceof CustomEvent&&Rt(t.detail,`reason`)===`escape`&&e.querySelector(`form[data-wui-submitting]`)&&t.preventDefault()}),e.addEventListener(`wui-modal-closed`,t=>{t.target===e&&Dt(o)}),e.addEventListener(`wui-modal-opened`,t=>{if(t.target!==e)return;let n=k(o);o.session&&n?.matches(He)&&!n.contains(document.activeElement)&&ht(n,!1,tt(o))}),o.remoteUrl&&e.addEventListener(`wui-modal-open`,t=>{t.target===e&&Ot(o,t)}),o}function St(e,t,n){let r=null;e.session&&(r=e.session.pendingRefresh,e.session.pendingRefresh=null,e.queue.abort(),e.session.resolveClosed({status:`dismissed`,detail:{replaced:!0}}));let i=()=>void 0,a=new Promise(e=>{i=e}),o={url:t,method:(n.method||`GET`).toUpperCase(),body:n.body,options:n,trigger:n.trigger||null,explicitSize:null,closing:null,resolveClosed:i,handle:{el:e.shell,closed:a,close:()=>M(e,o,`dismissed`,null),reload:()=>N(e,o)},pendingRefresh:r};return e.session=o,o}function M(e,t,n,r){e.session===t&&(t.closing={status:n,detail:r},O(e)?wt(e,t):Ct(e))}function Ct(e){let t=bt(e);t.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:`dismiss`}}))&&t.hide()}function wt(e,t){let n=e.shell,{status:r,detail:i}=S(t.closing,`the closing state`),a=n.contains(document.activeElement);e.queue.abort(),e.session=null,ut(k(e)),n.replaceChildren(),n.hidden=!0,n.removeAttribute(`data-open`),t.resolveClosed({status:r,detail:i}),j(e,n,`closed`,{status:r,url:t.url}),Tt(t),a&&t.trigger?.isConnected&&t.trigger.focus?.()}function Tt(e){let t=e.pendingRefresh;e.pendingRefresh=null,t&&fe(t).catch(m)}function Et(e,t){for(let n=e;n!==null;n=n.parentElement){let e=n instanceof HTMLElement?x.get(n):void 0;if(e?.session){let n=de(t);return e.session.pendingRefresh=ne(e.session.pendingRefresh,{...t,message:n?t.message:null,action:n?t.action:null}),!0}}return!1}oe(Et);function Dt(e){let t=e.session;if(e.queue.abort(),e.session=null,_t(e),t){let n=t.closing||{status:`dismissed`,detail:null};t.resolveClosed({status:n.status,detail:n.detail}),j(e,e.shell,`closed`,{status:n.status,url:t.url}),Tt(t);let r=document.activeElement;t.trigger?.isConnected&&(!r||r===document.body||e.shell.contains(r))&&t.trigger.focus?.()}e.cache||(A(e,lt(e.placeholder)),e.loadedUrl=null,D(e.shell,e.defaultSize),e.defaultLabel?e.shell.setAttribute(`aria-label`,e.defaultLabel):e.shell.removeAttribute(`aria-label`))}function Ot(e,t){let n=Rt(t instanceof CustomEvent?t.detail:null,`trigger`),r=n instanceof HTMLElement?n:null,i=r?.getAttribute(`data-wui-url`)||e.remoteUrl||``,a=St(e,i,{trigger:r});a.explicitSize=kt(e,r?.getAttribute(`data-wui-size`)),a.explicitSize&&D(e.shell,a.explicitSize),e.cache&&e.loadedUrl===i||(e.loadedUrl&&A(e,lt(e.placeholder)),N(e,a,{keepPlaceholder:!0}))}function kt(e,t){try{return nt(e,t)}catch(e){return m(e),null}}async function N(e,t,{keepPlaceholder:n=!1}={}){n||A(e,st(t.options.title||At(e)));let r=await e.queue.run(t.url,{method:t.method,body:t.body,navigate:t.options.navigate,timeoutMs:Ie(t.trigger)});if(e.session!==t||r.kind===`aborted`||r.kind===`stale`)return`aborted`;if(r.kind===`session`)return`session`;if(r.kind===`ok`&&Pt(e,t,r.html,!1))return e.loadedUrl=t.url,j(e,e.shell,`loaded`,{url:t.url,handle:t.handle}),`loaded`;let i=r.kind===`ok`||r.kind===`validation`?`server`:r.kind;return A(e,ct(t.options.title||At(e),i)),mt(e)&&ht(S(k(e),`a card`),!1,tt(e)),j(e,e.shell,`error`,{url:t.url,kind:i,status:r.status}),`error`}var At=e=>k(e)?.querySelector(`.wui-modal-title`)?.textContent||e.shell.getAttribute(`aria-label`)||``,jt=`/_content/Webority.Ui.Razor/js/`,Mt=e=>new URL(e,window.location.href).pathname.includes(jt);function Nt(e){if([...document.scripts].some(t=>t.getAttribute(`src`)===e))return;let t=document.createElement(`script`);t.src=e,document.head.appendChild(t)}function Pt(e,t,n,r){let i=_e(n),a=!1;for(let e of i.querySelectorAll(`script`)){if(e.getAttribute(`type`)===`application/json`)continue;let t=e.getAttribute(`src`);e.remove(),t&&Mt(t)?Nt(t):a=!0}a&&ee(`WUI.modal: ${t.url} returned a fragment with script; it was removed. Keep page behaviour in the page.`);let o=C(i,He);if(!o)return m(`WUI.modal: ${t.url} did not answer with an <app-modal-content> fragment.`),!1;if(A(e,o),r||_t(e),!O(e)){D(e.shell,t.explicitSize||kt(e,o.getAttribute(`data-wui-size`))||e.defaultSize);let n=o.getAttribute(`data-wui-title`);n&&e.shell.setAttribute(`aria-label`,n)}return mt(e)&&ht(o,r,tt(e)),!0}var Ft=`button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]`;function It(e,t,n){let r=[...e.elements].filter(e=>e.matches(Ft));if(n){e.setAttribute(`data-wui-submitting`,``);let n=t&&r.includes(t)?t:r[0];for(let e of r)e.toggleAttribute(`data-wui-was-disabled`,e.disabled),e.disabled=!0;n&&(n.classList.add(`is-loading`),n.setAttribute(`aria-busy`,`true`),n.tagName===`BUTTON`&&n.prepend(i(`span`,{class:`spinner-border spinner-border-sm me-2`,"aria-hidden":`true`,"data-wui-submit-spinner":!0})))}else{e.removeAttribute(`data-wui-submitting`);for(let e of r)e.disabled=e.hasAttribute(`data-wui-was-disabled`),e.removeAttribute(`data-wui-was-disabled`),e.classList.remove(`is-loading`),e.removeAttribute(`aria-busy`),e.querySelector(`[data-wui-submit-spinner]`)?.remove()}}function Lt(e){for(let t of e.querySelectorAll(Ve))t.remove();for(let t of e.querySelectorAll(ze))t.removeAttribute(`aria-invalid`),t.classList.remove(`is-invalid`,`input-validation-error`);for(let t of e.querySelectorAll(`.field-error`))t.textContent=``}var Rt=(e,t)=>{if(typeof e==`object`&&e&&t in e)return Reflect.get(e,t)};async function zt(e){if(e.status<400||e.status>499||!e.response?.headers.get(`content-type`)?.toLowerCase().includes(`json`))return null;let t;try{t=JSON.parse(await ke(e))}catch{return null}return Ae(t,e.response.statusText)}function Bt(e,t,n,r){let i={forbidden:b().forbiddenMessage,networkCheck:s(`httpFailure`,te).networkCheckText,client:b().clientMessage,server:b().serverMessage,network:b().networkMessage,timeout:b().timeoutMessage},a=t.closest(`.wui-modal-body`)||t;a.querySelector(`[data-wui-modal-submit-error]`)?.remove(),Lt(a);let o=document.createElement(`div`);o.className=`alert alert-danger wui-modal-submit-error`,o.setAttribute(`role`,`alert`),o.setAttribute(`data-wui-modal-submit-error`,``),o.textContent=`${b().submitFailedMessage} ${r||i[n]||b().serverMessage}`,a.prepend(o),gt(e,o.textContent)}var Vt=(e,t)=>{let n=new URL(e,window.location.href);for(let[e,r]of t)typeof r==`string`&&n.searchParams.append(e,r);return n.origin===window.location.origin?n.pathname+n.search:n.href};async function Ht(e,t){let n=t.target,r=e.session;if(!(n instanceof HTMLFormElement)||!r||n.hasAttribute(`data-wui-native`)||!n.closest(He)||(t.preventDefault(),n.hasAttribute(`data-wui-submitting`)))return;let i=`submitter`in t&&(t.submitter instanceof HTMLButtonElement||t.submitter instanceof HTMLInputElement)?t.submitter:null,a=i?.getAttribute(`formaction`)||n.getAttribute(`action`)||r.url,o=(i?.getAttribute(`formmethod`)||n.getAttribute(`method`)||`GET`).toUpperCase(),s=new FormData(n);i?.name&&!s.has(i.name)&&s.append(i.name,i.value);let c=o===`GET`;It(n,i,!0);let l;try{l=await e.queue.run(c?Vt(a,s):a,{method:o,body:c?void 0:s,navigate:r.options.navigate,timeoutMs:Ie(r.trigger)})}catch(t){m(t),e.session===r&&n.isConnected&&(It(n,i,!1),Bt(e,n,`server`,null));return}if(e.session!==r)return;if(n.isConnected&&It(n,i,!1),l.kind===`ok`&&l.result===`success`){Ut(e,r,l);return}if(l.kind===`aborted`||l.kind===`stale`||l.kind===`session`)return;if(l.kind===`ok`&&l.html){let t=l.result===Be;if(Pt(e,r,l.html,t)){if(t){let t=S(k(e),`a card`).querySelector(Ve)?.textContent?.replace(/\s+/g,` `).trim();gt(e,t||b().invalidMessage)}return}}let u=l.kind===`ok`||l.kind===`validation`?`server`:l.kind,d=await zt(l);e.session===r&&Bt(e,n,u,d)}function Ut(e,t,n){let r=n.message,i=n.redirect||null,a=n.toastVariant||`success`;if(!re(a))throw TypeError(`Unknown toast variant "${a}". Use ${me.join(`, `)}.`);let o={url:t.url,trigger:t.trigger,handle:t.handle,message:r,redirect:i,data:n.data??null,container:e.container},s=i||se(t.trigger)?null:le(n),c=!(n.next&&!i)&&!n.keepOpen,l=s!==null&&c&&de(s);i&&!t.options.navigate?g(r,a):r&&!l&&h().toast(r,{variant:a}),j(e,t.trigger?.isConnected?t.trigger:document,`success`,o),t.options.onSuccess?.(o,t.handle),i&&(t.options.navigate||(e=>window.location.assign(e)))(i),s&&(t.pendingRefresh=ne(t.pendingRefresh,{...s,action:null,message:l?s.message:null}));let u=n.next;u&&!i?(t.url=u,t.method=`GET`,t.body=void 0,N(e,t)):n.keepOpen?n.html&&n.data===null&&Pt(e,t,n.html,!1):M(e,t,`success`,o)}function Wt(e){let t=E(e.target,`[data-wui-modal], [data-wui-drawer], [data-wui-pane]`);t&&(t.matches(`a[href]`)&&(e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)||(e.preventDefault(),t.hasAttribute(`data-wui-pane`)?Zt(t.getAttribute(`data-wui-pane`)??``,{target:t.getAttribute(`data-wui-pane-target`),trigger:t}).catch(e=>{qe(e)||m(e)}):t.hasAttribute(`data-wui-modal`)?qt(t.getAttribute(`data-wui-modal`)??``,{size:t.getAttribute(`data-wui-size`)||void 0,title:t.getAttribute(`data-wui-title`)||void 0,trigger:t}).catch(e=>{qe(e)||m(e)}):Yt(t.getAttribute(`data-wui-drawer`)??``,{size:t.getAttribute(`data-wui-drawer-size`)||void 0,title:t.getAttribute(`data-wui-title`)||void 0,trigger:t}).catch(e=>{qe(e)||m(e)})))}function Gt(e){if(e.key!==`Escape`||e.defaultPrevented)return;let t=E(e.target,Xt);if(!t)return;let n=x.get(t),r=e.currentTarget;n?.session&&r instanceof Document&&!r.querySelector(`wui-modal[open]`)&&(t.querySelector(`form[data-wui-submitting]`)||(e.preventDefault(),M(n,n.session,`dismissed`,null)))}function Kt(e=document){let t=e instanceof Document?e:S(e.ownerDocument,`an owner document`);Ge.has(t)||(Ge.add(t),t.addEventListener(`click`,Wt),t.addEventListener(`keydown`,Gt));let n=Ke(e,`wui-modal[data-wui-remote-url]`);e instanceof HTMLElement&&e.matches(`wui-modal[data-wui-remote-url]`)&&n.unshift(e);for(let e of n)xt(e)}function qt(e,t={}){try{if(!e)throw TypeError(`WUI.modal.load: a fragment url is required.`);let n=t.container===`drawer`,r=n?$e(t.size):Xe(t.size),i=t.placement||`center`;if(!Qe.includes(i))throw TypeError(`WUI.modal.load: unsupported placement "${i}". Use center or top.`);if(t.signal?.aborted)return Promise.reject(T());let a=at(n?`drawer`:`modal`);Kt(document);let o=xt(a),s=mt(o),c=St(o,e,t);c.explicitSize=r,D(o.shell,r||o.defaultSize),n||w(o.shell,`.modal-dialog`,`a dialog frame`).classList.toggle(`modal-dialog-centered`,i===`center`),t.title&&o.shell.setAttribute(`aria-label`,t.title),s||(a.toggleAttribute(`static`,t.staticBackdrop!==!1),a.toggleAttribute(`no-escape`,t.closeOnEscape===!1));let l=s?Promise.resolve():new Promise(e=>a.addEventListener(`wui-modal-opened`,()=>e(),{once:!0})),u=N(o,c);return s||bt(o).show(),Jt(o,c,t,l,u,`WUI.modal.load`)}catch(e){return Promise.reject(e)}}function Jt(e,t,n,r,i,a){let o=new Promise((r,i)=>{n.signal?.addEventListener(`abort`,()=>{e.session===t&&(e.queue.abort(),M(e,t,`dismissed`,{aborted:!0})),i(T())},{once:!0})}),s=Promise.all([r,i]).then(([,e])=>{if(e===`aborted`)throw T();if(e===`session`)throw Error(`${a}(${t.url}): the session expired; the browser is signing in again.`);return t.handle});return Promise.race([s,o])}function Yt(e,t={}){return qt(e,{...t,container:`drawer`,placement:void 0})}var Xt=`[data-wui-pane-host]`;function Zt(e,t={}){try{if(!e)throw TypeError(`WUI.pane.load: a fragment url is required.`);let n=rt(t.target);if(!n)throw TypeError(`WUI.pane.load: the target is not an <app-detail-pane>.`);if(t.signal?.aborted)return Promise.reject(T());Kt(document);let r=xt(n),i=St(r,e,t);n.hidden=!1,n.setAttribute(`data-open`,``);let a=N(r,i);return Jt(r,i,t,Promise.resolve(),a,`WUI.pane.load`)}catch(e){return Promise.reject(e)}}function Qt(e){let t=rt(e);if(!t)throw TypeError(`WUI.pane.close: the target is not an <app-detail-pane>.`);let n=x.get(t);n?.session&&M(n,n.session,`dismissed`,null)}var $t=8e3,en=()=>s(`toast`,f);function tn(e){if(!re(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function P(e,t=`success`){e?.message&&nn(e.message,t,e.toastAction)}function nn(e,t,n=null){n?h().toast(e,{variant:tn(t),duration:$t,action:{label:n.label,onClick:e=>void rn(n,e)}}):h().toast(e,{variant:tn(t)})}async function rn(e,t=null){let n=await _(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(ae(n)||P(n,n.toastVariant||`success`),await ie(n,{origin:t})):h().toast(n.message||en().failedText,{variant:`danger`}))}var an=/* @__PURE__ */ new Set([204,205,304]),on=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function sn(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[Ce]:`1`,...n.headers};if(Ee(e)){let e=ye();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?be(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(be(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=on(c.getAllResponseHeaders()),r=Te(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(ve.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(an.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var F=`wuiConfirm`,cn=Object.freeze([`danger`]),ln=Object.freeze([`warning`,`info`,`delete`]),I=()=>s(`confirmDialog`,d),un=/* @__PURE__ */ new WeakSet,dn=/* @__PURE__ */ new WeakSet,L=null,R=null,z=!1,B=(e,t)=>{e&&h().toast(e,{variant:t})};function fn(){let r=document.getElementById(F);if(r)return n(r.closest(`wui-modal`),`#${F} must be a wui-modal.`);let a=document.createElement(`wui-modal`);a.id=F;let o=document.createElement(`dialog`);return o.className=`modal wui-modal-shell`,o.style.setProperty(`--wui-modal-max-width`,`${y.md}px`),o.replaceChildren(i(`div`,{class:`modal-dialog modal-dialog-centered wui-rb-dialog`},i(`div`,{class:`modal-content wui-modal wui-confirm`},i(`div`,{class:`wui-modal-body`},i(`div`,{class:`wui-confirm-content`},i(`span`,{class:`wui-confirm-icon`},i(`wui-status-icon`,{tone:`info`,size:120})),i(`h3`,{class:`wui-confirm-title`,tabindex:-1,"data-autofocus":``}),i(`p`,{class:`wui-confirm-msg`}))),i(`div`,{class:`wui-modal-footer`},i(`div`,{class:`wui-confirm-actions`},i(`button`,{type:`button`,class:e(`primary`,`soft`,`md`),"data-wui-dismiss":``,"data-wui":t},I().cancelLabel),i(`button`,{type:`button`,class:e(`primary`,`solid`,`md`),"data-app-confirm":``,"data-wui":t})))))),a.append(o),document.body.appendChild(a),a}function pn(e,t){let n=e.getAttribute(`data-wui-confirm-tone`);if(n!==null&&!cn.includes(n))throw TypeError(`data-wui-confirm-tone="${n}" is not supported. Use danger, or leave it off.`);mn({title:e.getAttribute(`data-wui-confirm-title`),message:e.getAttribute(`data-wui-confirm`),label:e.getAttribute(`data-wui-confirm-label`),danger:n===`danger`,cancel:void 0,icon:void 0},t)}function mn({title:e,message:t,label:r,danger:i,cancel:a,icon:o},s){let c=fn(),l=c.querySelector(`.wui-confirm-title`),u=c.querySelector(`[data-app-confirm]`);if(!l||!u)throw Error(`#${F} is not a confirm dialog with a confirm button. Render <app-confirm-dialog id="${F}"> without confirm-href, or leave the dialog to the library.`);let d=c.querySelector(`.wui-confirm-msg`);d||(d=document.createElement(`p`),d.className=`wui-confirm-msg`,l.after(d));let f=e||I().confirmTitle;l.textContent=f,d.textContent=t,u.textContent=r||I().confirmLabel,u.classList.toggle(`btn-danger`,i),u.classList.toggle(`btn-primary`,!i),c.querySelector(`wui-status-icon`)?.setAttribute(`tone`,o??(i?`delete`:`info`));let p=c.querySelector(`[data-wui-dismiss]`);p&&(p.textContent=a||I().cancelLabel),n(c.querySelector(`dialog`),`#${F} has no <dialog>.`).setAttribute(`aria-label`,f),R=s,z=!1,c.show()}var V=(e,t)=>{L=e;try{t()}finally{L=null}},H=(e,t)=>{let n=Reflect.get(e,t);if(n===void 0||typeof n==`string`)return n;throw TypeError(`confirmAction: ${t} must be text.`)},hn=e=>{if(typeof e!=`object`||!e)throw TypeError(`confirmAction: options must be an object with a message.`);let t=`message`in e?e.message:void 0;if(typeof t!=`string`)throw TypeError(`confirmAction: message must be text.`);return{title:H(e,`title`),message:t,label:H(e,`label`),tone:H(e,`tone`),cancel:H(e,`cancel`),icon:H(e,`icon`)}};function gn(e,t,n){let{title:r,message:i,label:a,tone:o,cancel:s,icon:c}=hn(t);if(o!=null&&!cn.includes(o))throw TypeError(`confirmAction: tone "${o}" is not supported. Use danger, or leave it off.`);if(c!=null&&!ln.includes(c))throw TypeError(`confirmAction: icon "${c}" is not supported. Use warning, info or delete, or leave it off.`);Rn(e.ownerDocument),mn({title:r,message:i,label:a,danger:o===`danger`,cancel:s,icon:c},()=>V(e,n))}var _n=e=>`disabled`in e&&e.disabled===!0||e.getAttribute(`aria-disabled`)===`true`,vn=e=>{r(e,HTMLElement,`data-wui-confirm needs an HTML element to click.`).click()};function yn(e){let t=a(e.target,`[data-wui-confirm]:not(form)`);t&&t!==L&&!_n(t)&&(e.preventDefault(),e.stopImmediatePropagation(),pn(t,()=>V(t,()=>vn(t))))}function bn(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!t.hasAttribute(`data-wui-confirm`)||t===L||e.submitter&&e.submitter===L||t.querySelector(`input[data-app-repeater-hidden]`))return;e.preventDefault(),e.stopImmediatePropagation();let n=e.submitter instanceof HTMLButtonElement||e.submitter instanceof HTMLInputElement?e.submitter:null,r=n?.form===t?n:void 0;pn(t,()=>V(t,()=>t.requestSubmit(r)))}function xn(e){let t=a(e.target,`#${F} [data-app-confirm]`);t&&!t.hasAttribute(`disabled`)&&R&&(z=!0,n(t.closest(`wui-modal`),`#${F} is missing around its confirm button.`).hide())}function Sn(e){if(!(e.target instanceof Element)||e.target.id!==`wuiConfirm`)return;let t=z?R:null;R=null,z=!1,t?.()}var U=e=>e===`forbidden`?I().forbiddenMessage:e===`networkCheck`?s(`httpFailure`,te).networkCheckText:e===`network`?I().networkMessage:e===`timeout`?I().timeoutMessage:I().failedMessage,Cn=(e,t)=>{`disabled`in e&&(e.disabled=t)},wn=e=>{Cn(e,!1),e.removeAttribute(`aria-busy`)};async function Tn(e){let t=e.getAttribute(`data-wui-post`);if(!t)throw Error(`A data-wui-post button needs the URL the action posts to.`);return En(t,e)}async function En(e,t,n){Cn(t,!0),t.setAttribute(`aria-busy`,`true`);let r=we(t.getAttribute(`data-wui-timeout`))??3e4,i=await _(e,{method:`POST`,body:n,timeoutMs:r});if(i.kind===`session`||i.kind===`aborted`)return;let a=i.toastVariant||`success`;if(i.ok&&i.redirect)g(i.message,a,i.toastAction),window.location.assign(i.redirect);else if(i.ok){let e=se(t);if(!e&&ae(i)){await ie(i,{origin:t})===`held`&&wn(t);return}wn(t),P(i,a),e||await ie(i,{origin:t})}else wn(t),B(i.message||U(i.kind),`danger`)}var Dn=e=>typeof e!=`object`||!e||!(`code`in e)?null:typeof e.code==`string`?e.code:null,On=e=>(e.response?.headers.get(`Content-Type`)??``).toLowerCase().includes(`json`)?e.data:e.html===``?null:e.html;async function kn(e,t={}){if(t.body!==void 0&&t.json!==void 0)throw TypeError(`postAction takes a body or a json value, not both.`);let n=t.method??`POST`;if(!xe.includes(n))throw TypeError(`postAction method must be POST, PUT, PATCH or DELETE.`);let r=t.timeoutMs??3e4;if(!Number.isInteger(r)||r<0)throw TypeError(`postAction timeoutMs must be a whole number of milliseconds, 0 for no limit.`);if(t.onUploadProgress!==void 0){if(!(t.body instanceof FormData))throw TypeError(`postAction onUploadProgress needs a FormData body.`);if(n!==`POST`)throw TypeError(`postAction onUploadProgress needs the POST method.`)}let i={},a;t.json===void 0?t.body instanceof FormData||t.body instanceof URLSearchParams?a=t.body:t.body!==void 0&&(a=new URLSearchParams(t.body)):(i[`Content-Type`]=`application/json`,a=JSON.stringify(t.json));let o;try{o=t.onUploadProgress!==void 0&&t.body instanceof FormData?await sn(e,t.body,{onProgress:t.onUploadProgress,headers:i,timeoutMs:r===0?void 0:r}):await _(e,{method:n,body:a,headers:i,timeoutMs:r})}catch(e){throw m(e),e}if(o.kind===`session`||o.kind===`aborted`)throw new v(U(o.kind),{code:null,status:o.status,html:null,body:null,kind:o.kind});let s=t.toast!==!1,c=t.refresh!==!1,l=o.toastVariant||`success`;if(o.ok){if(o.redirect)g(s?o.message:null,l,s?o.toastAction:null),window.location.assign(o.redirect);else{let e=le(o);s&&!(c&&ae(o))&&P(o,l),e!==null&&c&&await fe({...e,message:s?e.message:null,action:s?e.action:null})}return On(o)}let u;try{u=await ke(o)}catch(e){m(e);let t=o.message||U(o.kind);throw B(t,`danger`),new v(t,{code:null,status:o.status,html:null,body:null,kind:o.kind,cause:e})}let d=(o.response?.headers.get(`Content-Type`)??``).toLowerCase(),f=null;if(d.includes(`json`))try{f=JSON.parse(u)}catch{f=null}let p=Ae(f,o.response?.statusText??``)||o.message||U(o.kind),ee=d.includes(`text/html`)?u:null;throw(o.kind!==`validation`||ee===null)&&B(p,`danger`),new v(p,{code:Dn(f),status:o.status,html:ee,body:f,kind:o.kind})}function An(e,t){Cn(e,!1),e.removeAttribute(`aria-busy`),m(t),B(I().failedMessage,`danger`)}function jn(e){let t=a(e.target,`[data-wui-post]`);t&&(e.preventDefault(),_n(t)||t.getAttribute(`aria-busy`)===`true`||Tn(t).catch(e=>An(t,e)))}function Mn(e){let t=a(e.target,`form[data-wui-post-form]`);if(!(t instanceof HTMLFormElement)||e.defaultPrevented)return;e.preventDefault();let r=n(e.submitter||t.querySelector(`button:not(.repeater-add):not(.repeater-remove)`),`A data-wui-post-form needs a submit button to report its result on.`);if(r.getAttribute(`aria-busy`)===`true`)return;let i=new URL(n(t.getAttribute(`action`),`A data-wui-post-form needs an action attribute to post to.`),document.baseURI).href;En(i,r,new FormData(t)).catch(e=>An(r,e)),t.closest(`wui-dropdown`)?.hide()}var W=(e,t)=>{e.disabled=!1,e.removeAttribute(`aria-busy`),t&&p(t,null)};async function Nn(e,t){let n=e.dataset.url;if(!n)throw Error(`A data-wui-row-action button needs data-url: the handler the action posts to.`);e.disabled=!0,e.setAttribute(`aria-busy`,`true`),t&&p(t,`saving`);let r=we(e.getAttribute(`data-wui-timeout`))??3e4,i=await _(n,{method:(e.dataset.method||`post`).toUpperCase(),timeoutMs:r});if(i.kind===`session`)return;if(i.kind===`aborted`){W(e,t);return}let a=i.toastVariant||`success`;if(i.ok&&i.redirect){g(i.message,a,i.toastAction),window.location.assign(i.redirect);return}if(i.ok){let n=le(i);if(se(e)||n===null||ce(n)){W(e,t),P(i,a);return}if(ue({...n,reload:`page`},e)){W(e,t);return}g(i.message,a,i.toastAction),pe();return}let o=i.message||U(i.kind);e.disabled=!1,e.removeAttribute(`aria-busy`),t&&p(t,`error`,o),B(o,`danger`)}var Pn=/* @__PURE__ */ new WeakSet;function Fn(e){let t=a(e.target,`[data-wui-row-action]`);if(!t||t.closest(`[data-wui-server]`))return;if(!(t instanceof HTMLButtonElement)){if(Pn.has(t))return;Pn.add(t),m(/* @__PURE__ */ Error(`A [data-wui-row-action] element must be a button with data-url, so its click does nothing: ${t.getAttribute(`data-wui-row-action`)??``}`));return}if(e.preventDefault(),t.disabled||t.getAttribute(`aria-busy`)===`true`)return;let n=t.closest(`tr`);Nn(t,n).catch(e=>{W(t,n),m(e),B(I().failedMessage,`danger`)})}var In=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.form:null;function Ln(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`[data-wui-auto-submit]`);if(!t)return;let n=In(e.target)||t.closest(`form`);n instanceof HTMLFormElement&&n.requestSubmit()}function Rn(e){dn.has(e)||(dn.add(e),e.addEventListener(`click`,xn),e.addEventListener(`wui-modal-closed`,Sn))}function zn(e=document){let t=e instanceof Element?e.ownerDocument:e;un.has(t)||(un.add(t),t.addEventListener(`click`,yn,!0),t.addEventListener(`submit`,bn,!0),Rn(t),t.addEventListener(`click`,jn),t.addEventListener(`click`,Fn),t.addEventListener(`submit`,Mn),t.addEventListener(`change`,Ln))}var G=()=>s(`unsavedChanges`,l),K=`form[data-wui-unsaved]`,Bn=`[aria-invalid="true"], .field-error:not(:empty), .field-validation-error, .validation-summary-errors, .wui-error-summary`,Vn=`[download], [data-wui-modal], [data-wui-post], [data-bs-toggle]`,Hn=/* @__PURE__ */ new Set([`submit`,`button`,`reset`,`image`]),Un=/* @__PURE__ */ new Set([`hidden`,`checkbox`,`radio`,`file`,`submit`,`button`,`reset`,`image`,`range`,`color`]),Wn=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLObjectElement||e instanceof HTMLOutputElement,Gn=e=>Wn(e)?e instanceof HTMLObjectElement||e instanceof HTMLOutputElement?!1:e.disabled:`disabled`in e&&!!e.disabled,Kn=e=>`name`in e&&typeof e.name==`string`&&e.name!==``,qn=e=>typeof e==`object`&&!!e,Jn=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)&&typeof e[0]==`string`);function Yn(e){let t=JSON.parse(e);if(!Jn(t))throw Error(`unsaved-changes snapshot is malformed`);return t}var q=/* @__PURE__ */ new WeakMap,Xn=/* @__PURE__ */ new WeakSet,Zn=e=>`${e.name}:${e.size}:${e.lastModified}`,J=e=>[...e.querySelectorAll(K)].filter(e=>e instanceof HTMLFormElement);function Y(e){let t=[];for(let n of e.elements)Kn(n)&&!Gn(n)&&(Wn(n)&&Hn.has(n.type)||(n instanceof HTMLInputElement&&(n.type===`checkbox`||n.type===`radio`)?t.push([n.name,n.value,n.checked]):n instanceof HTMLInputElement&&n.type===`file`?t.push([n.name,[...n.files||[]].map(Zn)]):n instanceof HTMLSelectElement&&n.type===`select-multiple`?t.push([n.name,[...n.selectedOptions].map(e=>e.value)]):n instanceof HTMLFieldSetElement||n instanceof HTMLObjectElement?t.push([n.name,null]):t.push([n.name,`value`in n?n.value:null])));return JSON.stringify(t)}function X(e){return Y(e)}function Qn(e,t){let n=/* @__PURE__ */ new Map,r=Yn(t);for(let e of r){let t=n.get(e[0]);t?t.push(e):n.set(e[0],[e])}let i=Yn(Y(e)).map(e=>n.get(e[0])?.shift()??e);for(let e of n.values())i.push(...e);return JSON.stringify(i)}function $n(e){for(let t of e.elements)if(Wn(t)&&t.name&&!Gn(t)){if(t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Un.has(t.type)){if(t.value.trim()!==``)return!0}else if(t instanceof HTMLInputElement&&t.type===`file`&&(t.files?.length??0)>0)return!0}return!1}var er=e=>({saved:e.querySelector(Bn)&&$n(e)?null:Y(e),engaged:!1,discarded:!1});function tr(e){let t=q.get(e);return!t||t.discarded||!e.isConnected?!1:t.saved===null||t.engaged&&Y(e)!==t.saved}var nr=(e,t)=>J(e).filter(e=>e!==t&&tr(e));function rr(e,t,n){let r=t.map(e=>e.getAttribute(`data-wui-unsaved`)).find(Boolean)||G().message;gn(e,{title:G().title,message:r,label:G().leaveLabel,cancel:G().keepLabel,icon:`warning`,tone:`danger`},()=>{for(let e of t){let t=q.get(e);t&&(t.discarded=!0)}n()})}function ir(e){if(e.matches(Vn))return!1;let t=e.getAttribute(`target`);if(t&&t.toLowerCase()!==`_self`)return!1;let n=e.getAttribute(`href`);if(n===null)return!1;let r=new URL(n,window.location.href);if(r.protocol!==`http:`&&r.protocol!==`https:`)return!1;let i=window.location;return!(r.hash&&r.origin===i.origin&&r.pathname===i.pathname&&r.search===i.search)}function ar(e,t){if((t?.getAttribute(`formmethod`)||e.getAttribute(`method`)||`get`).toLowerCase()===`dialog`)return!1;let n=t?.getAttribute(`formtarget`)||e.getAttribute(`target`);return!n||n.toLowerCase()===`_self`}function or(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target,n=a(t,`a[href]`);if(!(n instanceof HTMLAnchorElement)||!ir(n))return;let r=nr(n.ownerDocument,null);r.length&&(e.preventDefault(),rr(n,r,()=>n.click()))}function sr(e){let t=e.target;if(!(t instanceof HTMLFormElement)||e.defaultPrevented||!ar(t,e.submitter))return;let n=nr(t.ownerDocument,t);if(n.length){e.preventDefault();let r=e.submitter,i=(r instanceof HTMLButtonElement||r instanceof HTMLInputElement)&&r.form===t?r:void 0;rr(t,n,()=>t.requestSubmit(i));return}let r=q.get(t);r&&(r.saved=Y(t),r.discarded=!1)}function cr(e){nr(document,null).length&&e.preventDefault()}function lr(e){let t=e.target,n=a(t,K);return n instanceof HTMLFormElement?n:null}function ur(e){let t=lr(e);if(!t)return;let n=q.get(t);n&&!n.engaged&&(n.saved!==null&&(n.saved=Y(t)),n.engaged=!0)}function dr(e){let t=lr(e),n=t&&q.get(t);n&&(n.discarded=!1,e.isTrusted&&(n.engaged=!0))}function fr(e){for(let t of J(e)){let e=q.get(t);e?.saved&&(e.saved=Qn(t,e.saved))}}function pr(e){let t=qn(e)?e.handle:void 0;return qn(t)?t.el:void 0}function mr(e){if(!(e instanceof CustomEvent))return;let t=pr(e.detail);if(t instanceof Element)for(let e of J(t))gr(e)}function hr(e=document){let t=e instanceof Document?e:e.ownerDocument;if(!Xn.has(t)){Xn.add(t);for(let e of[`focusin`,`pointerdown`,`drop`])t.addEventListener(e,ur,!0);for(let e of[`input`,`change`])t.addEventListener(e,dr,!0);t.addEventListener(`click`,or),t.addEventListener(`submit`,sr),t.addEventListener(`wui:modal:success`,mr),t.addEventListener(o,()=>fr(t)),n(t.defaultView,`unsaved-changes guard needs a document with a window`).addEventListener(`beforeunload`,cr)}let r=J(e);e instanceof HTMLFormElement&&e.matches(K)&&r.unshift(e);for(let e of r)q.has(e)||q.set(e,er(e))}function gr(e){if(!(e instanceof HTMLFormElement)||!e.matches(K))throw TypeError(`resetUnsavedChanges: ${String(e)} is not a <form data-wui-unsaved>.`);q.set(e,{saved:Y(e),engaged:!1,discarded:!1})}var _r=()=>s(`drawer`,c),vr=`wui:drawer:discard`,Z=`wui-drawer[confirm-discard]`,yr=`wui-modal`,br=`data-wui-no-discard`,xr=`.wui-drawer-discard`,Sr=`input, select, textarea`,Cr=e=>typeof e==`object`&&!!e||typeof e==`function`;function wr(e){let t=e.currentTarget;if(!(t instanceof Document))throw Error(`The discard guard is not wired on a document.`);return t}function Tr(e,t){return a(e,t)}var Er=e=>e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement,Q=/* @__PURE__ */ new WeakMap,Dr=/* @__PURE__ */ new WeakSet,Or=/* @__PURE__ */ new WeakSet;function kr(n,r,i,a,o){let s=n.createElement(`button`);return s.type=`button`,s.className=e(r,i,`sm`),s.dataset.wui=t,s.setAttribute(a,``),s.textContent=o,s}function Ar(e,t){let n=e.createElement(`div`);n.className=`wui-drawer-discard`,n.setAttribute(`role`,`alert`);let r=e.createElement(`span`);return r.className=`wui-drawer-discard-text`,r.textContent=t,n.append(r,kr(e,`danger`,`solid`,`data-wui-discard-confirm`,_r().discardLabel),kr(e,`primary`,`soft`,`data-wui-discard-keep`,_r().keepLabel)),n}function jr(e){if(!(e instanceof Element))return null;let t=e.closest(Z);if(t)return t;let n=e.closest(yr);return n&&$(n).length?n:null}function Mr(e){return e.closest(Z)??e.closest(yr)}function Nr(e,t){return t.hasAttribute(br)||e.hasAttribute(br)?!1:t.hasAttribute(`confirm-discard`)||e.hasAttribute(`data-wui-confirm-discard`)?!0:(e.getAttribute(`method`)||`get`).toLowerCase()!==`get`}function $(e){return e.matches(Z)?e.querySelectorAll(`form`):[...e.querySelectorAll(`form`)].filter(t=>Nr(t,e))}function Pr(e){let t=Q.get(e);return t!=null&&X(e)!==t}function Fr(e){let t=e.ownerDocument.createElement(`div`);return t.className=`wui-drawer-footer`,n(e.querySelector(`.wui-drawer-panel`),`The drawer has no panel to hold its footer.`).append(t),Or.add(t),t}function Ir(e){let t=e.ownerDocument.createElement(`div`);return t.className=`wui-modal-footer`,(e.querySelector(`.wui-modal-body`)?.parentElement??e.querySelector(`.modal-content`)??e).append(t),Or.add(t),t}function Lr(e){let t=e.querySelector(`[data-wui-discard-confirm]`);if(!(t instanceof HTMLElement))throw Error(`The discard prompt has no confirm button.`);t.focus()}function Rr(e,t,n){let r=e.querySelector(xr);if(r){Lr(r);return}let i=Ar(e.ownerDocument,t),a;if(e.matches(Z))a=e.querySelector(`.wui-drawer-footer`)??Fr(e),a.prepend(i);else if(e.hasAttribute(`confirm-discard`))a=e.querySelector(`.wui-modal-footer`)??Ir(e),a.prepend(i);else{if(!n)throw Error(`A discard prompt needs the form that is dirty.`);a=n.querySelector(`.modal-footer`)??e.querySelector(`.wui-modal-footer`)??Ir(e),a.prepend(i)}a.classList.add(`wui-drawer-discarding`),Lr(i)}function zr(e){let t=e.parentElement;if(e.remove(),!t)throw Error(`The discard prompt has no footer.`);t.classList.remove(`wui-drawer-discarding`),Or.has(t)&&t.remove()}function Br(e){for(let t of $(e))for(let e of t.querySelectorAll(Sr))if(Er(e)&&e.type!==`hidden`&&!e.disabled){e.focus({preventScroll:!0});return}}function Vr(e){let t=jr(e.target);if(t)for(let e of $(t))Q.get(e)??Q.set(e,X(e))}function Hr(e){for(let t of wr(e).querySelectorAll(`form`)){let e=Q.get(t);e!=null&&Q.set(t,Qn(t,e))}}function Ur(e){let t=e.target;t instanceof HTMLFormElement&&jr(t)&&Q.set(t,X(t))}function Wr(e){if(!Cr(e))return;let t=`handle`in e?e.handle:void 0;if(Cr(t))return`el`in t?t.el:void 0}function Gr(e){if(!(e instanceof CustomEvent))return;let t=e.detail,n=Wr(t);if(n instanceof Element)for(let e of n.querySelectorAll(`form`))Q.delete(e)}function Kr(e){let t=e.target;t instanceof Element&&t.matches(Z)&&[...$(t)].some(Pr)&&(e.preventDefault(),Rr(t,t.getAttribute(`confirm-discard`),null))}function qr(e){let t=e.target;if(!(t instanceof Element)||!t.matches(yr))return;let n=[...$(t)].find(Pr);n&&(e.preventDefault(),Rr(t,n.getAttribute(`data-wui-confirm-discard`)??t.getAttribute(`confirm-discard`)??_r().confirmDiscard,n))}function Jr(e){let t=n(e.closest(xr),`The discard button is outside its prompt.`),r=Mr(t);if(zr(t),!r)throw Error(`The discard prompt is outside its drawer or modal.`);for(let e of $(r))Q.set(e,X(e));r.dispatchEvent(new CustomEvent(vr,{bubbles:!0})),r.matches(Z)?n(r.closest(`wui-drawer`),`The confirm-discard drawer is not a wui-drawer.`).hide():n(r.closest(`wui-modal`),`The discarded dialog is not a wui-modal.`).hide()}function Yr(e){let t=n(e.closest(xr),`The keep button is outside its prompt.`),r=Mr(t);if(zr(t),!r)throw Error(`The discard prompt is outside its drawer or modal.`);Br(r)}function Xr(e){let t=Tr(e.target,`[data-wui-discard-confirm]`);if(t){Jr(t);return}let n=Tr(e.target,`[data-wui-discard-keep]`);n&&Yr(n)}function Zr(e=document){let t=e instanceof Document?e:e.ownerDocument;Dr.has(t)||(Dr.add(t),t.addEventListener(`focusin`,Vr),t.addEventListener(`pointerdown`,Vr),t.addEventListener(`submit`,Ur),t.addEventListener(o,Hr),t.addEventListener(`wui:modal:success`,Gr),t.addEventListener(`wui:modal:loaded`,Gr),t.addEventListener(`wui-drawer-close`,Kr,!0),t.addEventListener(`wui-modal-close`,qr),t.addEventListener(`click`,Xr))}export{v as S,Qt as _,hr as a,qt as b,cn as c,kn as d,sn as f,nn as g,P as h,X as i,gn as l,rn as m,Ar as n,gr as o,$t as p,Zr as r,F as s,vr as t,zn as u,Kt as v,Zt as x,Yt as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={educare:[[`path`,{d:`m8.5 5.1 2.7 2.7c.4.4 1.2.4 1.6 0l2.7-2.7c.7-.7.2-2-.8-2H9.3c-1 .1-1.5 1.3-.8 2ZM8.5 18.9l2.7-2.7c.4-.4 1.2-.4 1.6 0l2.7 2.7c.7.7.2 2-.8 2H9.3c-1-.1-1.5-1.3-.8-2ZM2.2 11.5 4.4 8c.3-.6 1.1-.7 1.6-.2l3.5 3.5c.4.4.4 1 0 1.4L6 16.2c-.5.5-1.2.4-1.6-.2l-2.2-3.5c-.3-.3-.3-.7 0-1ZM21.8 11.5 19.6 8c-.3-.5-1.1-.6-1.6-.2l-3.5 3.5c-.4.4-.4 1 0 1.4l3.5 3.5c.5.5 1.2.4 1.6-.2l2.2-3.5c.3-.3.3-.7 0-1Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],electricity:[[`path`,{d:`M10.5 16h3c2.5 0 4-1.8 4-4V6.91c0-1.05-.86-1.91-1.91-1.91H8.42c-1.05 0-1.91.86-1.91 1.91V12C6.5 14.2 8 16 10.5 16ZM9.5 2v3M14.5 2v3M12 22v-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],element:[[`path`,{d:`M10.5 19.9V4.1c0-1.5-.64-2.1-2.23-2.1H4.23C2.64 2 2 2.6 2 4.1v15.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1ZM22 10.9V4.1c0-1.5-.64-2.1-2.23-2.1h-4.04c-1.59 0-2.23.6-2.23 2.1v6.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1ZM22 19.9v-1.8c0-1.5-.64-2.1-2.23-2.1h-4.04c-1.59 0-2.23.6-2.23 2.1v1.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"element-2":[[`path`,{d:`M10.5 19.9V4.1c0-1.5-.64-2.1-2.23-2.1H4.23C2.64 2 2 2.6 2 4.1v15.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1ZM22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"element-3":[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"element-4":[[`path`,{d:`M22 10.9V4.1c0-1.5-.64-2.1-2.23-2.1h-4.04c-1.59 0-2.23.6-2.23 2.1v6.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1ZM22 19.9v-1.8c0-1.5-.64-2.1-2.23-2.1h-4.04c-1.59 0-2.23.6-2.23 2.1v1.8c0 1.5.64 2.1 2.23 2.1h4.04c1.59 0 2.23-.6 2.23-2.1ZM10.5 13.1v6.8c0 1.5-.64 2.1-2.23 2.1H4.23C2.64 22 2 21.4 2 19.9v-6.8c0-1.5.64-2.1 2.23-2.1h4.04c1.59 0 2.23.6 2.23 2.1ZM10.5 4.1v1.8c0 1.5-.64 2.1-2.23 2.1H4.23C2.64 8 2 7.4 2 5.9V4.1C2 2.6 2.64 2 4.23 2h4.04c1.59 0 2.23.6 2.23 2.1Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"element-equal":[[`path`,{d:`M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15 15.5h6M15 19.5h6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],"element-plus":[[`path`,{d:`M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 17.5h6M17.5 20.5v-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],emercoin:[[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M7.5 8h9v8h-9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7.5 12h5V8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"emoji-happy":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 9.75a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM8.5 9.75a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM8.4 13.3h7.2c.5 0 .9.4.9.9 0 2.49-2.01 4.5-4.5 4.5s-4.5-2.01-4.5-4.5c0-.5.4-.9.9-.9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"emoji-normal":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 8.25c1 1 2.63 1 3.64 0M13.36 8.25c1 1 2.63 1 3.64 0M8.4 13h7.2c.5 0 .9.4.9.9 0 2.49-2.01 4.5-4.5 4.5s-4.5-2.01-4.5-4.5c0-.5.4-.9.9-.9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"emoji-sad":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 8.75c1-1 2.63-1 3.64 0M13.36 8.75c1-1 2.63-1 3.64 0M8.4 17.7h7.2c.5 0 .9-.4.9-.9 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5c0 .5.4.9.9.9Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet":[[`path`,{d:`M18.04 13.55c-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76H6.26c-2.07 0-3.76-1.69-3.76-3.76v-6.73c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 12.41V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3a1.9 1.9 0 0 1 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet-add":[[`path`,{d:`M18.04 13.55c-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06a3.999 3.999 0 0 0-6.5-3.12v-4.37c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 12.41V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3a1.9 1.9 0 0 1 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 19c0 .75-.21 1.46-.58 2.06-.21.36-.48.68-.79.94-.7.63-1.62 1-2.63 1a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 19ZM6.492 18.98h-2.98M5 17.52v2.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet-change":[[`path`,{d:`M2.5 13.24v-1.73c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76h-5.48`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 12.41V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3a1.9 1.9 0 0 1 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M3 16.5h5.34c.64 0 1.16.52 1.16 1.16v1.28`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M4.22 15.28 3 16.5l1.22 1.22M9.5 21.78H4.16c-.64 0-1.16-.52-1.16-1.16v-1.28`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m8.281 23 1.22-1.22-1.22-1.22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet-remove":[[`path`,{d:`M18.04 13.55c-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06a3.999 3.999 0 0 0-6.5-3.12v-4.37c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 12.41V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3a1.9 1.9 0 0 1 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 19c0 .75-.21 1.46-.58 2.06-.21.36-.48.68-.79.94-.7.63-1.62 1-2.63 1a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 19ZM6.07 20.04l-2.12-2.11M6.05 17.96l-2.12 2.11`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet-tick":[[`path`,{d:`M18.04 13.55c-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06a3.999 3.999 0 0 0-6.5-3.12v-4.37c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 12.41V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3a1.9 1.9 0 0 1 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 19c0 .75-.21 1.46-.58 2.06-.21.36-.48.68-.79.94-.7.63-1.62 1-2.63 1a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 19Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m3.441 19 .99.99 2.13-1.97`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"empty-wallet-time":[[`path`,{d:`M18.04 13.55c-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87h1.9v1.19c0 2.07-1.69 3.76-3.76 3.76H7.64C8.47 21.27 9 20.2 9 19a3.999 3.999 0 0 0-6.5-3.12v-4.37c0-2.07 1.69-3.76 3.76-3.76h11.48c2.07 0 3.76 1.69 3.76 3.76v1.44h-2.02c-.56 0-1.07.22-1.44.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M2.5 11.51V7.84c0-1.19.73-2.25 1.84-2.67l7.94-3c1.24-.46 2.57.45 2.57 1.78v3.8M22.559 13.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.08c.56.02 1 .47 1 1.02ZM7 12h7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 19c0 1.2-.53 2.27-1.36 3A4 4 0 0 1 5 23c-2.21 0-4-1.79-4-4 0-1.26.58-2.39 1.5-3.12A3.999 3.999 0 0 1 9 19Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M5.25 17.75v1.5L4 20`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"enjin-coin":[[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.8 8h-5c-1.6 0-3 1.4-3 3v2c0 1.6 1.4 3 3 3h5M15.8 12h-8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],eos:[[`path`,{d:`M10.8 3.4 7.2 7.7c-.1.2-.2.5-.3.7L5.2 17c-.1.6.2 1.3.7 1.6l5.3 3c.4.2 1.1.2 1.5 0l5.3-3c.5-.3.8-1 .7-1.6L17 8.4c0-.2-.2-.5-.3-.7l-3.6-4.3c-.6-.8-1.6-.8-2.3 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m16.8 8.5-4.3 12.2c-.2.4-.8.4-.9 0L7.2 8.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],eraser:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9 22h12M2.91 17.58l3.51 3.51a3 3 0 004.24 0l10.43-10.43a3 3 0 000-4.24l-3.51-3.51a3 3 0 00-4.24 0L2.91 13.34a3 3 0 000 4.24zM7.12 9.13l7.75 7.75M3.52 17.66L9.17 12M6.34 20.49L12 14.83`}]],"eraser-square":[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m6.99 15.08 1.94 1.94c.64.64 1.7.64 2.34 0l5.75-5.75c.64-.64.64-1.7 0-2.34l-1.94-1.94c-.64-.64-1.7-.64-2.34 0l-5.75 5.75c-.65.64-.65 1.69 0 2.34ZM9.31 10.42l4.27 4.27`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ethereum:[[`path`,{d:`M10.45 3.05 6.71 7.71c-.85 1.06-.55 2.42.66 3.02l3.73 1.87c.49.24 1.29.24 1.78 0l3.73-1.87c1.21-.61 1.51-1.97.66-3.02l-3.73-4.66c-.84-1.07-2.24-1.07-3.09 0ZM12 2.3v5.26`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7.8 10.71 12 7.56l4.2 3.15M8.77 14.43l1.61.72a4 4 0 0 0 3.25 0l1.61-.72c1.44-.64 2.77 1.1 1.77 2.32l-3.46 4.23c-.85 1.04-2.24 1.04-3.1 0L7 16.75c-1.01-1.22.32-2.96 1.77-2.32Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"ethereum-classic":[[`path`,{d:`M6.9 9.1 11.7 7c.2-.1.4-.1.7 0l4.8 2.1c.4.2.8-.3.5-.7l-5-6.1c-.3-.4-.9-.4-1.2 0l-5 6.1c-.4.4 0 .9.4.7ZM6.9 14.9l4.8 2.1c.2.1.4.1.7 0l4.8-2.1c.4-.2.8.3.5.7l-5 6.1c-.3.4-.9.4-1.2 0l-5-6.1c-.4-.4 0-.9.4-.7ZM12 9.4 6.8 12l5.2 2.6 5.2-2.6L12 9.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"export-circle":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M13 11l8.2-8.2M22 6.83V2h-4.83`}]],"export-curve":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M16.44 8.9c3.6.31 5.07 2.16 5.07 6.21v.13c0 4.47-1.79 6.26-6.26 6.26H8.74c-4.47 0-6.26-1.79-6.26-6.26v-.13c0-4.02 1.45-5.87 4.99-6.2M12 15V3.62M15.35 5.85L12 2.5 8.65 5.85`}]],"export-square":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2`}]],"external-drive":[[`path`,{d:`M16 22H9c-3 0-5-2-5-5V7c0-3 2-5 5-5h7c3 0 5 2 5 5v10c0 3-2 5-5 5ZM4 15h17M7 12h1M7 9.5h1M7 7h1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.494 18.25h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"eye-slash":[[`path`,{d:`m14.53 9.47-5.06 5.06a3.576 3.576 0 1 1 5.06-5.06Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.82 5.77C16.07 4.45 14.07 3.73 12 3.73c-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19.79 1.24 1.71 2.31 2.71 3.17M8.42 19.53c1.14.48 2.35.74 3.58.74 3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-.33-.52-.69-1.01-1.06-1.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.51 12.7a3.565 3.565 0 0 1-2.82 2.82M9.47 14.53 2 22M22 2l-7.47 7.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]};export{e as GLYPHS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiCodeBlock-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiCodeBlock-BnRpTBm_.js";e(`wui-code-block`,t);export{t as WuiCodeBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiCommandPalette-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiCommandPalette-BSWDxEPw.js";e(`wui-command-palette`,t);export{t as WuiCommandPalette};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDataTable-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDataTable-D_9TWU-r.js";import{A as n,C as r,D as i,E as a,F as o,L as s,N as c,P as l,S as u,T as d,a as f,c as p,d as m,f as h,g,h as _,i as v,j as y,k as b,l as x,m as S,n as C,o as w,p as T,r as E,s as D,t as O,u as k,v as A,w as j,y as M}from"../dataTable-D48Rwq1a.js";e(`wui-data-table`,t);export{O as COLUMN_MAX_WIDTH,C as COLUMN_MIN_WIDTH,E as PIN_AT_VAR,v as PIN_SIDES,f as RESIZE_STEP,w as RESIZE_STEP_LARGE,D as ROW_HEIGHTS,p as ROW_MOVE_LIMIT,x as ROW_MOVE_MS,k as ROW_SAVE_ATTR,m as ROW_SAVE_ERROR_CLASS,h as ROW_SAVE_STATES,T as VIRTUAL_OVERSCAN,t as WuiDataTable,S as clampColumnWidth,_ as groupCount,g as groupItems,A as identityCell,M as measureRows,u as pinAtValue,r as pinClasses,j as pinOffsetVar,d as planPins,a as playRowMoves,i as readColumnWidths,b as rowLabel,n as rowOrderChanged,y as saveOutcomeText,c as setRowSaveState,l as settledRows,o as virtualRange,s as writeColumnWidths};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDateRange-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDateRange-BQ1GH9Mu.js";e(`wui-date-range`,t);export{t as WuiDateRange};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDatePicker-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiDatePicker-B77M2_E7.js";e(`wui-datepicker`,t);export{t as WuiDatePicker};
|
package/dist/elements/gantt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiGantt-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiGantt-wx8VSXiZ.js";e(`wui-gantt`,t);export{t as WuiGantt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiImageCrop-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiImageCrop-Cl97BHN4.js";e(`wui-image-crop`,t);export{t as WuiImageCrop};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiLightbox-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiLightbox-DFaHN2Fb.js";e(`wui-lightbox`,t);export{t as WuiLightbox};
|
package/dist/elements/phone.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiPhone-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiPhone-qw_6W3Q2.js";e(`wui-phone`,t);export{t as WuiPhone};
|
package/dist/elements/select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiSelect-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiSelect-DqHu2OW_.js";e(`wui-select`,t);export{t as WuiSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{n as t,t as n}from"../statusIcons-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{n as t,t as n}from"../statusIcons-DISKRFbg.js";e(`wui-status-icon`,t);export{n as STATUS_TONES,t as WuiStatusIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTimePicker-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTimePicker-Bl3GcIS_.js";e(`wui-timepicker`,t);export{t as WuiTimePicker};
|
package/dist/elements/tour.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTour-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTour-BS7Jd1Tt.js";e(`wui-tour`,t);export{t as WuiTour};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTreePicker-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTreePicker-DWCLntLz.js";e(`wui-tree-picker`,t);export{t as WuiTreePicker};
|
package/dist/elements/tree.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTree-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{t}from"../WuiTree-Qno7SM6z.js";e(`wui-tree`,t);export{t as WuiTree};
|
package/dist/elements/wizard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../elementBase-Cxeyx0tU.js";import{n as t,t as n}from"../WuiWizardStep-
|
|
1
|
+
import{n as e}from"../elementBase-Cxeyx0tU.js";import{n as t,t as n}from"../WuiWizardStep-CSS4B8g4.js";e(`wui-wizard-step`,n),e(`wui-wizard`,t);export{t as WuiWizard,n as WuiWizardStep};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={fatrows:[[`path`,{d:`M19.9 13.5H4.1c-1.5 0-2.1.64-2.1 2.23v4.04C2 21.36 2.6 22 4.1 22h15.8c1.5 0 2.1-.64 2.1-2.23v-4.04c0-1.59-.6-2.23-2.1-2.23ZM12.9 2H4.1C2.6 2 2 2.64 2 4.23v4.04c0 1.59.6 2.23 2.1 2.23h8.8c1.5 0 2.1-.64 2.1-2.23V4.23C15 2.64 14.4 2 12.9 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"favorite-chart":[[`path`,{d:`M22 13V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98M19.48 15.82l.28.57c.14.28.49.54.8.6l.38.06c1.14.19 1.41 1.03.59 1.86l-.35.35c-.23.24-.36.7-.29 1.02l.05.21c.31 1.38-.42 1.91-1.62 1.19l-.26-.15c-.31-.18-.81-.18-1.12 0l-.26.15c-1.21.73-1.94.19-1.62-1.19l.05-.21c.07-.32-.06-.78-.29-1.02l-.35-.35c-.82-.83-.55-1.67.59-1.86l.38-.06c.3-.05.66-.32.8-.6l.28-.57c.54-1.09 1.42-1.09 1.96 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],figma:[[`path`,{d:`M12 2H8.7C6.8 2 5.3 3.5 5.3 5.3c0 1.8 1.5 3.3 3.3 3.3H12V2ZM12 8.7H8.7c-1.8 0-3.3 1.5-3.3 3.3 0 1.8 1.5 3.3 3.3 3.3H12V8.7ZM12 15.3H8.7c-1.8 0-3.3 1.5-3.3 3.3 0 1.8 1.5 3.3 3.3 3.3 1.8 0 3.3-1.5 3.3-3.3v-3.3ZM12 2h3.3c1.8 0 3.3 1.5 3.3 3.3 0 1.8-1.5 3.3-3.3 3.3H12V2ZM15.3 8.7c1.8 0 3.3 1.5 3.3 3.3 0 1.8-1.5 3.3-3.3 3.3-1.8 0-3.3-1.5-3.3-3.3 0-1.8 1.5-3.3 3.3-3.3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"figma-1":[[`path`,{d:`M12 6h-2c-1.1 0-2 .9-2 2s.9 2 2 2h2V6ZM12 10h-2c-1.1 0-2 .9-2 2s.9 2 2 2h2v-4ZM12 14h-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2v-2ZM12 6h2c1.1 0 2 .9 2 2s-.9 2-2 2h-2V6ZM14 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}],[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"filter-add":[[`path`,{d:`M21.63 14.75c0 .89-.25 1.73-.69 2.45a4.709 4.709 0 0 1-4.06 2.3 4.73 4.73 0 0 1-4.06-2.3 4.66 4.66 0 0 1-.69-2.45c0-2.62 2.13-4.75 4.75-4.75s4.75 2.13 4.75 4.75ZM18.66 14.73h-3.55M16.88 13v3.55`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.69 4.02v2.22c0 .81-.51 1.82-1.01 2.33l-1.76 1.55a4.42 4.42 0 0 0-1.04-.12c-2.62 0-4.75 2.13-4.75 4.75 0 .89.25 1.73.69 2.45.37.62.88 1.15 1.5 1.53v.34c0 .61-.4 1.42-.91 1.72L12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.41-1.62-.81-2.12L4.22 8.47c-.5-.51-.91-1.42-.91-2.02V4.12C3.31 2.91 4.22 2 5.33 2h13.34c1.11 0 2.02.91 2.02 2.02Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"filter-edit":[[`path`,{d:`M13.41 20.79 12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.4-1.62-.81-2.12L4.22 8.47c-.51-.51-.91-1.41-.91-2.02V4.13c0-1.21.91-2.12 2.02-2.12h13.34c1.11 0 2.02.91 2.02 2.02v2.22c0 .81-.51 1.82-1.01 2.32`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m17.08 11.89-3.54 3.54c-.14.14-.27.4-.3.59l-.19 1.35c-.07.49.27.83.76.76l1.35-.19c.19-.03.46-.16.59-.3l3.54-3.54c.61-.61.9-1.32 0-2.22-.89-.89-1.6-.6-2.21.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.58 12.39c.3 1.08 1.14 1.92 2.22 2.22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"filter-remove":[[`path`,{d:`M13.41 20.79 12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.4-1.62-.81-2.12L4.22 8.47c-.51-.51-.91-1.41-.91-2.02V4.13c0-1.21.91-2.12 2.02-2.12h13.34c1.11 0 2.02.91 2.02 2.02v2.22c0 .81-.51 1.82-1.01 2.32`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21.63 14.75c0 .89-.25 1.73-.69 2.45a4.709 4.709 0 0 1-4.06 2.3 4.73 4.73 0 0 1-4.06-2.3 4.66 4.66 0 0 1-.69-2.45c0-2.62 2.13-4.75 4.75-4.75s4.75 2.13 4.75 4.75ZM18.15 15.99l-2.51-2.51M18.13 13.51l-2.51 2.51`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.69 4.02v2.22c0 .81-.51 1.82-1.01 2.33l-1.76 1.55a4.42 4.42 0 0 0-1.04-.12c-2.62 0-4.75 2.13-4.75 4.75 0 .89.25 1.73.69 2.45.37.62.88 1.15 1.5 1.53v.34c0 .61-.4 1.42-.91 1.72L12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.41-1.62-.81-2.12L4.22 8.47c-.5-.51-.91-1.42-.91-2.02V4.12C3.31 2.91 4.22 2 5.33 2h13.34c1.11 0 2.02.91 2.02 2.02Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"filter-search":[[`path`,{d:`M14.32 19.07c0 .61-.4 1.41-.91 1.72L12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.4-1.62-.81-2.12L4.22 8.47c-.51-.51-.91-1.41-.91-2.02V4.13c0-1.21.91-2.12 2.02-2.12h13.34c1.11 0 2.02.91 2.02 2.02v2.22c0 .81-.51 1.82-1.01 2.32`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M16.07 16.52a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4ZM19.87 17.12l-1-1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"filter-square":[[`path`,{d:`M8.16 6.65h7.67c.64 0 1.16.52 1.16 1.16v1.28c0 .47-.29 1.05-.58 1.34l-2.5 2.21c-.35.29-.58.87-.58 1.34v2.5c0 .35-.23.81-.52.99l-.81.51c-.76.47-1.8-.06-1.8-.99v-3.08c0-.41-.23-.93-.47-1.22l-2.21-2.33C7.23 10.08 7 9.55 7 9.2V7.87c0-.7.52-1.22 1.16-1.22Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"filter-tick":[[`path`,{d:`M21.63 14.75c0 .89-.24 1.73-.68 2.45a4.735 4.735 0 0 1-4.07 2.3c-.94 0-1.82-.28-2.56-.77-.62-.38-1.13-.91-1.5-1.53-.44-.72-.69-1.56-.69-2.45 0-2.62 2.13-4.75 4.75-4.75.36 0 .71.04 1.04.12a4.74 4.74 0 0 1 3.71 4.63Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.03 14.75 1.17 1.17 2.53-2.34`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.69 4.02v2.22c0 .81-.51 1.82-1.01 2.33l-1.76 1.55a4.42 4.42 0 0 0-1.04-.12c-2.62 0-4.75 2.13-4.75 4.75 0 .89.25 1.73.69 2.45.37.62.88 1.15 1.5 1.53v.34c0 .61-.4 1.42-.91 1.72L12 21.7c-1.31.81-3.13-.1-3.13-1.72v-5.35c0-.71-.41-1.62-.81-2.12L4.22 8.47c-.5-.51-.91-1.42-.91-2.02V4.12C3.31 2.91 4.22 2 5.33 2h13.34c1.11 0 2.02.91 2.02 2.02Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"finger-cricle":[[`path`,{d:`M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],"finger-scan":[[`path`,{d:`M12 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],firstline:[[`path`,{d:`M14 4.5h7M14 9.5h7M3 14.5h18M3 19.5h18M9.5 8.43V5.57C9.5 4.45 9.05 4 7.92 4H5.07C3.95 4 3.5 4.45 3.5 5.57v2.85c0 1.13.45 1.58 1.57 1.58h2.85c1.13 0 1.58-.45 1.58-1.57Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"flag-2":[[`path`,{d:`M6.45 2v20M6.95 4l8.1 3.5c3.3 1.4 3.3 3.8.2 5.4L6.95 17`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"flash-circle":[[`path`,{d:`M8.68 12.72h1.74v4.05c0 .6.74.88 1.14.43l4.26-4.84a.65.65 0 0 0-.49-1.08h-1.74V7.23c0-.6-.74-.88-1.14-.43l-4.26 4.84a.65.65 0 0 0 .49 1.08Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"flash-slash":[[`path`,{d:`M9.18 18.04v2.44c0 1.68.91 2.02 2.02.76l7.57-8.6c.93-1.05.54-1.92-.87-1.92h-.93M14.82 8.84V3.52c0-1.68-.91-2.02-2.02-.76l-7.57 8.6c-.93 1.05-.54 1.92.87 1.92h3.09v1.18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flashy:[[`path`,{d:`M9.32 13.28h3.09v7.2c0 1.06 1.32 1.56 2.02.76l7.57-8.6c.66-.75.13-1.92-.87-1.92h-3.09v-7.2c0-1.06-1.32-1.56-2.02-.76l-7.57 8.6c-.65.75-.12 1.92.87 1.92ZM8.5 4h-7M7.5 20h-6M4.5 12h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"folder-add":[[`path`,{d:`M12.06 16.5v-5M14.5 14h-5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"folder-cloud":[[`path`,{d:`M9 22H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5v2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M13.76 18.32c-2.35.17-2.35 3.57 0 3.74h5.56c.67 0 1.33-.25 1.82-.7 1.65-1.44.77-4.32-1.4-4.59-.78-4.69-7.56-2.91-5.96 1.56`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"folder-connection":[[`path`,{d:`M12 16v3M12 23a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM18 21h-4M10 21H6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19 8.3v4.2c0 2.8-.7 3.5-3.5 3.5h-7C5.7 16 5 15.3 5 12.5v-7C5 2.7 5.7 2 8.5 2h1.05c1.05 0 1.28.31 1.68.84l1.05 1.4c.27.35.42.56 1.12.56h2.1c2.8 0 3.5.7 3.5 3.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"folder-cross":[[`path`,{d:`m13.81 15.73-3.54-3.54M13.77 12.23l-3.54 3.54`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"folder-favorite":[[`path`,{d:`m9.2 14.78 2.58 2.26c.12.11.31.11.43 0l2.58-2.26c.67-.59.76-1.59.2-2.29s-1.58-.83-2.29-.29l-.7.54-.71-.53c-.72-.54-1.73-.41-2.29.29-.56.69-.47 1.7.2 2.28Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],"folder-minus":[[`path`,{d:`M14.43 14.55h-5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],forbidden:[[`path`,{d:`M14.9 2H9.1c-.68 0-1.64.4-2.12.88l-4.1 4.1C2.4 7.46 2 8.42 2 9.1v5.8c0 .68.4 1.64.88 2.12l4.1 4.1c.48.48 1.44.88 2.12.88h5.8c.68 0 1.64-.4 2.12-.88l4.1-4.1c.48-.48.88-1.44.88-2.12V9.1c0-.68-.4-1.64-.88-2.12l-4.1-4.1C16.54 2.4 15.58 2 14.9 2ZM4.94 19.08 19.08 4.94`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"forbidden-2":[[`path`,{d:`M14.9 2H9.1c-.68 0-1.64.4-2.12.88l-4.1 4.1C2.4 7.46 2 8.42 2 9.1v5.8c0 .68.4 1.64.88 2.12l4.1 4.1c.48.48 1.44.88 2.12.88h5.8c.68 0 1.64-.4 2.12-.88l4.1-4.1c.48-.48.88-1.44.88-2.12V9.1c0-.68-.4-1.64-.88-2.12l-4.1-4.1C16.54 2.4 15.58 2 14.9 2ZM8.5 15.5l7-7M15.5 15.5l-7-7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"format-circle":[[`path`,{d:`M21.5 5.35c0 .91-.43 1.72-1.09 2.24-.48.38-1.09.61-1.76.61-1.58 0-2.85-1.27-2.85-2.85 0-.67.23-1.27.61-1.76h.01c.51-.66 1.32-1.09 2.23-1.09 1.58 0 2.85 1.27 2.85 2.85ZM8.2 5.35c0 1.58-1.27 2.85-2.85 2.85A2.85 2.85 0 1 1 8.2 5.35ZM21.5 18.65c0 1.58-1.27 2.85-2.85 2.85-.91 0-1.72-.43-2.23-1.09h-.01c-.38-.48-.61-1.09-.61-1.76 0-1.58 1.27-2.85 2.85-2.85.67 0 1.27.23 1.76.61v.01c.66.51 1.09 1.32 1.09 2.23ZM8.2 18.65c0 .67-.23 1.27-.61 1.76a2.82 2.82 0 0 1-2.24 1.09c-1.58 0-2.85-1.27-2.85-2.85 0-.91.43-1.72 1.09-2.23v-.01c.48-.38 1.09-.61 1.76-.61 1.58 0 2.85 1.27 2.85 2.85Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21.5 12c0 1.6-.39 3.09-1.09 4.41-.48-.38-1.09-.61-1.76-.61-1.58 0-2.85 1.27-2.85 2.85 0 .67.23 1.27.61 1.76A9.35 9.35 0 0 1 12 21.5c-1.59 0-3.09-.39-4.41-1.09.38-.48.61-1.09.61-1.76 0-1.58-1.27-2.85-2.85-2.85-.67 0-1.27.23-1.76.61A9.35 9.35 0 0 1 2.5 12c0-1.59.39-3.09 1.09-4.41.49.38 1.09.61 1.76.61 1.58 0 2.85-1.27 2.85-2.85 0-.67-.23-1.27-.61-1.76C8.91 2.89 10.41 2.5 12 2.5c1.6 0 3.09.39 4.41 1.09-.38.48-.61 1.09-.61 1.76 0 1.58 1.27 2.85 2.85 2.85.67 0 1.27-.23 1.76-.61.7 1.32 1.09 2.82 1.09 4.41Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"format-square":[[`path`,{d:`M20 6.95v10.1A2.5 2.5 0 0 0 17.05 20H6.95A2.5 2.5 0 0 0 4 17.05V6.95A2.5 2.5 0 0 0 6.95 4h10.1A2.5 2.5 0 0 0 20 6.95Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M7 4.5a2.5 2.5 0 0 1-5 0A2.5 2.5 0 0 1 6.95 4c.03.16.05.33.05.5ZM22 4.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM7 19.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM22 19.5a2.5 2.5 0 0 1-4.95.5 2.5 2.5 0 1 1 4.95-.5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],forward:[[`path`,{d:`M2 8.34v7.32c0 1.5 1.63 2.44 2.93 1.69l3.17-1.82 3.17-1.83c.2-.12.36-.25.49-.41v-2.56c-.13-.16-.29-.29-.49-.41L8.1 8.49 4.93 6.67C3.63 5.9 2 6.84 2 8.34ZM11.76 8.34v7.32c0 1.5 1.63 2.44 2.93 1.69l3.17-1.82 3.17-1.83c1.3-.75 1.3-2.62 0-3.38l-3.17-1.83-3.17-1.82c-1.3-.77-2.93.17-2.93 1.67Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"forward-10-seconds":[[`path`,{d:`M13.98 4.47 12 2M19.09 7.8c1.11 1.48 1.8 3.31 1.8 5.31A8.89 8.89 0 0 1 12 22a8.89 8.89 0 0 1-8.89-8.89A8.89 8.89 0 0 1 12 4.22c.68 0 1.34.09 1.98.24`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.54 15.92v-5.34l-1.5 1.67M14 10.58c1.1 0 2 .9 2 2v1.35c0 1.1-.9 2-2 2s-2-.9-2-2v-1.35a2 2 0 0 1 2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"forward-15-seconds":[[`path`,{d:`M15.96 10.83H12.9l-.76 2.29h2.29a1.53 1.53 0 1 1 0 3.06h-2.29M9.54 16.17v-5.34l-1.5 1.67M13.98 4.47 12 2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M19.09 7.8c1.11 1.48 1.8 3.31 1.8 5.31A8.89 8.89 0 0 1 12 22a8.89 8.89 0 0 1-8.89-8.89A8.89 8.89 0 0 1 12 4.22c.68 0 1.34.09 1.98.24`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"forward-5-seconds":[[`path`,{d:`M13.98 4.47 12 2M19.09 7.8c1.11 1.48 1.8 3.31 1.8 5.31A8.89 8.89 0 0 1 12 22a8.89 8.89 0 0 1-8.89-8.89A8.89 8.89 0 0 1 12 4.22c.68 0 1.34.09 1.98.24`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M13.91 10.83h-3.06l-.76 2.29h2.29a1.53 1.53 0 0 1 0 3.06h-2.29`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"forward-item":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M17.38 10.38v3.23c0 2.69-1.08 3.77-3.77 3.77h-3.23c-2.69 0-3.77-1.08-3.77-3.77v-3.23c0-2.69 1.08-3.77 3.77-3.77h3.23c2.7.01 3.77 1.08 3.77 3.77z`}],[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 5.77V9c0 2.69-1.08 3.77-3.77 3.77h-.85v-2.38c0-2.69-1.08-3.77-3.77-3.77h-2.38v-.85C11.23 3.08 12.31 2 15 2h3.23C20.92 2 22 3.08 22 5.77zM2 18.23V15c0-2.69 1.08-3.77 3.77-3.77h.85v2.38c0 2.69 1.08 3.77 3.77 3.77h2.38v.85C12.77 20.92 11.69 22 9 22H5.77C3.08 22 2 20.92 2 18.23z`}]],framer:[[`path`,{d:`m5 2 14 14H5V9h14V2H5ZM12 16v6l-7-6h7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"ftx-token":[[`path`,{d:`M21 2H9c-.6 0-1 .4-1 1v3c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1ZM12 17H7v5h5v-5ZM7 9.5H2v5h5v-5ZM18 9.6H9.5v4.7H18V9.6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]};export{e as GLYPHS};
|