@webority/ui-elements 0.168.0 → 0.169.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/{WuiCommentThread-AYovTYSA.js → WuiCommentThread-RB100aB1.js} +1 -1
- package/dist/{WuiContextMenu-CyejQsef.js → WuiContextMenu-ClMVFeos.js} +1 -1
- package/dist/{WuiDataTable-BniN81KC.js → WuiDataTable-D0tGIVtG.js} +1 -1
- package/dist/{WuiDatePicker-q0s8tL_E.js → WuiDatePicker-BiZciUAZ.js} +1 -1
- package/dist/{WuiDateRange-p2r5A9CY.js → WuiDateRange-DSq6Mj4v.js} +1 -1
- package/dist/{WuiDrawer-CQ7nRHUD.js → WuiDrawer-n8WlVPq_.js} +1 -1
- package/dist/{WuiDropdown-BQC04Q48.js → WuiDropdown-D2jEbCfv.js} +1 -1
- package/dist/{WuiEntryGrid-DPAYNu1v.js → WuiEntryGrid-Bm5_MizA.js} +1 -1
- package/dist/WuiGantt-BsQUCR2U.js +1 -0
- package/dist/{WuiHoverCard-DRZh88zM.js → WuiHoverCard-DmApQa9R.js} +1 -1
- package/dist/{WuiInlineEdit-CEjs5Ruk.js → WuiInlineEdit-C64O31MF.js} +1 -1
- package/dist/{WuiLightbox-DDQAOabU.js → WuiLightbox-cm5eHcMK.js} +1 -1
- package/dist/{WuiMentionInput-CkhrCz_2.js → WuiMentionInput-D7HC7U2Q.js} +1 -1
- package/dist/{WuiModal-BRILsSMq.js → WuiModal-DuBerYTv.js} +1 -1
- package/dist/{WuiNavigationMenu-BCnqv7e-.js → WuiNavigationMenu-VG-ZJstT.js} +1 -1
- package/dist/{WuiNotificationCenter-BCXT3Y7m.js → WuiNotificationCenter-hluDIzO8.js} +1 -1
- package/dist/{WuiOverflow-DtetLQHW.js → WuiOverflow-MzrZwzud.js} +1 -1
- package/dist/{WuiPhone-B6jgFRSi.js → WuiPhone-C03OuI7-.js} +1 -1
- package/dist/{WuiPopover-BzVxNSs1.js → WuiPopover-BxQj74kE.js} +1 -1
- package/dist/{WuiRelativeTime-DTGKGHbK.js → WuiRelativeTime-CujAFS_w.js} +1 -1
- package/dist/WuiSelect-DpZbgU4v.js +9 -0
- package/dist/{WuiShortcuts-DSjwaZx7.js → WuiShortcuts-CSFOyAKI.js} +1 -1
- package/dist/{WuiTimePicker-C5XouoR7.js → WuiTimePicker-BxcImgm1.js} +1 -1
- package/dist/{WuiTour-BDOGWyNA.js → WuiTour-Beop0n-H.js} +1 -1
- package/dist/WuiTree-DGclk55_.js +1 -0
- package/dist/WuiTreePicker-CBhasmC5.js +1 -0
- package/dist/{WuiWhatsNew-DOo54GiH.js → WuiWhatsNew-BtWJkzTv.js} +1 -1
- package/dist/anchorOverlay-DSzkGQPi.js +1 -0
- package/dist/avatarHtml-BtbN7cA5.js +1 -0
- package/dist/{calendarMath-CFjBxJYM.js → calendarMath-ChZ_s7HH.js} +1 -1
- package/dist/{chips-CemguTKJ.js → chips-IbfKMhVk.js} +1 -1
- package/dist/{dataTable-CKz4Oncc.js → dataTable-sRTzep19.js} +1 -1
- package/dist/{drawerDiscard-BjykHS_G.js → drawerDiscard-CIZZuKmY.js} +1 -1
- package/dist/elements/comment-thread.js +1 -1
- package/dist/elements/context-menu.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/drawer.js +1 -1
- package/dist/elements/dropdown.js +1 -1
- package/dist/elements/entry-grid.js +1 -1
- package/dist/elements/filter-popover.js +1 -1
- package/dist/elements/gantt.js +1 -0
- package/dist/elements/hover-card.js +1 -1
- package/dist/elements/inline-edit.js +1 -1
- package/dist/elements/kanban.js +1 -1
- package/dist/elements/lightbox.js +1 -1
- package/dist/elements/mention-input.js +1 -1
- package/dist/elements/modal.js +1 -1
- package/dist/elements/navigation-menu.js +1 -1
- package/dist/elements/notification-center.js +1 -1
- package/dist/elements/overflow.js +1 -1
- package/dist/elements/phone.js +1 -1
- package/dist/elements/popover.js +1 -1
- package/dist/elements/relative-time.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/shortcuts.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tour.js +1 -1
- package/dist/elements/tree-picker.js +1 -0
- package/dist/elements/tree.js +1 -1
- package/dist/elements/whats-new.js +1 -1
- package/dist/{fileViewer.g-B5XQ5WKr.js → fileViewer.g-DQ-YkF8l.js} +1 -1
- package/dist/{fileViewerImage-B0Q9zdgW.js → fileViewerImage-DT0a9KaL.js} +1 -1
- package/dist/{fileViewerMedia-D3fdG-Ti.js → fileViewerMedia-BFNxdaYX.js} +1 -1
- package/dist/{fileViewerPdf-DeRWa1JE.js → fileViewerPdf-Boo6uXQO.js} +1 -1
- package/dist/{filterPopover-DmeVG4_N.js → filterPopover-BVBxgtc5.js} +1 -1
- package/dist/{formatters-Dy4kQQ_h.js → formatters-CMTSYlW9.js} +1 -1
- package/dist/gantt.g-TdTxeruW.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/initials-Qb6ITcri.js +1 -0
- package/dist/{inlineEditText-BUO5sZxN.js → inlineEditText-5FT8SGqR.js} +1 -1
- package/dist/{kanban-CEZmyYFY.js → kanban-CRRLqNn_.js} +1 -1
- package/dist/{kanbanModel-Dp5c1rTs.js → kanbanModel-sAwpMCpn.js} +1 -1
- package/dist/listboxKeyNav-DtlIOryj.js +1 -0
- package/dist/loader-Cf_ozcXz.js +1 -0
- package/dist/{nativeOverlay-C1Rw2gIW.js → nativeOverlay-D3VmY8qn.js} +1 -1
- package/dist/{notificationDays-B7cbYu4q.js → notificationDays-DQlrEZ3z.js} +1 -1
- package/dist/{relativeTime-CdFw-ekO.js → relativeTime-CQuwuwZ-.js} +1 -1
- package/dist/search-BVox4aaA.js +1 -0
- package/dist/server.js +1 -1
- package/dist/text/en.json +145 -0
- package/dist/text.js +1 -1
- package/dist/treePicker.g-BR35ru5f.js +1 -0
- package/dist/ui-chart.global.js +2 -2
- package/dist/ui-chart.js +2 -2
- 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 +1 -1
- 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/date-range.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 +2 -2
- package/dist/ui-elements/gantt.global.js +1 -0
- package/dist/ui-elements/glyphs.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/org-tree.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/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 -0
- 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/timepicker.global.js +1 -1
- package/dist/ui-elements/tour.global.js +1 -1
- package/dist/ui-elements/tree-picker.global.js +1 -0
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +21 -21
- package/dist/ui-elements.js +1 -1
- package/dist/ui-file-viewer.global.js +1 -1
- package/dist/ui-file-viewer.js +1 -1
- package/dist/ui-tour.global.js +1 -1
- package/dist/window-BZWK3rQk.js +1 -0
- package/package.json +13 -5
- package/types/WuiGantt.d.ts +70 -0
- package/types/WuiSelect.d.ts +9 -0
- package/types/WuiTree.d.ts +37 -2
- package/types/WuiTreePicker.d.ts +64 -0
- package/types/chartSpec.d.ts +1 -1
- package/types/elements/gantt.d.ts +2 -0
- package/types/elements/tree-picker.d.ts +2 -0
- package/types/formatters.d.ts +6 -4
- package/types/ganttLayout.d.ts +116 -0
- package/types/ganttTable.d.ts +24 -0
- package/types/ganttTypes.d.ts +43 -0
- package/types/global/parts/select-window.d.ts +1 -0
- package/types/global/shared.d.ts +4 -0
- package/types/globals.d.ts +5 -1
- package/types/helpers.d.ts +3 -0
- package/types/index.d.ts +5 -1
- package/types/initials.d.ts +5 -0
- package/types/listboxKeyNav.d.ts +13 -0
- package/types/select/list.d.ts +58 -2
- package/types/select/window.d.ts +39 -0
- package/types/select/windowLoad.d.ts +1 -0
- package/types/select/windowLoadGlobal.d.ts +1 -0
- package/types/select/windowThreshold.d.ts +1 -0
- package/types/select/windowed.d.ts +2 -0
- package/types/text/web/catalogue.g.d.ts +12 -0
- package/types/text/web/gantt.g.d.ts +47 -0
- package/types/text/web/idleTimeoutDialog.g.d.ts +7 -0
- package/types/text/web/index.g.d.ts +6 -0
- package/types/text/web/loadMore.g.d.ts +8 -0
- package/types/text/web/queryBuilder.g.d.ts +59 -0
- package/types/text/web/transferList.g.d.ts +18 -0
- package/types/text/web/treePicker.g.d.ts +12 -0
- package/types/treePicker/treeKeys.d.ts +46 -0
- package/types/treePicker/treePickerView.d.ts +31 -0
- package/types/treePicker/treeState.d.ts +42 -0
- package/dist/WuiSelect-CMHoPHlx.js +0 -9
- package/dist/WuiTree-CeYbyaCx.js +0 -1
- package/dist/anchorOverlay-B8fu8hjz.js +0 -1
- package/dist/listboxKeyNav-CF7tMDGG.js +0 -1
- package/dist/loader-CQJFj96n.js +0 -1
- package/dist/search-Cj1YQUwK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t,n,r,i,a){var o=Object.defineProperty,s=(e,t)=>{let n={};for(var r in e)o(n,r,{get:e[r],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:`Module`}),n},c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.
|
|
1
|
+
(function(e,t,n,r,i,a){var o=Object.defineProperty,s=(e,t)=>{let n={};for(var r in e)o(n,r,{get:e[r],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:`Module`}),n},c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.169.0`)throw Error(`[webority-ui] select-search expects ui-elements 0.169.0 but the page loaded `+c+`.`);var l={invalidMessage:`Enter a valid value.`},u=new Map,d=e=>{if(u.has(e))return u.get(e)??null;let n=null;try{n=RegExp(`^(?:${e})$`,`u`)}catch{(0,t.devWarn)(`<wui-select> pattern is not a valid regular expression and is ignored: ${e}`)}return u.set(e,n),n},f=(e,t)=>{let n=e.getAttribute(`invalid-message`)||(0,r.readText)(`customRule`,l).invalidMessage,i=e.getAttribute(`pattern`);if(i){let e=d(i);if(e&&!e.test(t))return n}let a=e.validate;if(typeof a!=`function`)return``;let o=a(t);return o===!0?``:typeof o==`string`&&o?o:n},p=s({default:()=>_}),m=()=>(0,r.readText)(`select`,i.SELECT_TEXT),h=(e,t)=>{let r=t.toLowerCase(),i=e.getAttribute(`value-label`);return i&&String(e.value??``)!==``&&i.toLowerCase()===r?!0:e.options.some(e=>(0,n.optionText)(e).toLowerCase()===r||String(e.value??``).toLowerCase()===r)},g=e=>{if(e.querySelector(`.wui-select-spacer`))return null;let t=[...e.querySelectorAll(`.wui-select-option`)].filter(e=>e.dataset.custom!==`true`&&e.getAttribute(`aria-disabled`)!==`true`);return t.length===1?t[0]?.dataset.value??null:null};function _(){let e,n,r=0,i,o=null,s=null,c=``,l=null,u=!1,d=()=>(0,a.searchesRemotely)(e),p=()=>typeof e.loadOptions!=`function`&&!e.getAttribute(`source`),_=(t,n,r)=>{let i=e.getAttribute(t);if(i==null||i.trim()===``)return n;let a=Number(i);return r(a)?a:n},v=()=>_(`min-chars`,1,e=>Number.isInteger(e)&&e>=0),y=()=>_(`debounce`,250,e=>Number.isFinite(e)&&e>=0),b=()=>{o?.abort(),o=null};function x(t,n){if(typeof e.loadOptions==`function`)return e.loadOptions(t,{signal:n});let r=e.getAttribute(`source`);if(r===null)throw Error(`search source attribute missing`);let i=`${r}${r.includes(`?`)?`&`:`?`}q=${encodeURIComponent(t)}`;return fetch(i,{signal:n,credentials:`same-origin`,headers:{Accept:`application/json`}}).then(e=>{if(!e.ok)throw Error(`search request failed with status ${e.status}`);return e.json()})}function S(n,r,i){r?((0,t.devWarn)(`wui-select: search failed`,i),e.setPartOptions([]),e.setStatus(`empty`)):(e.setPartOptions(n),e.setStatus(n.length?`idle`:`empty`))}async function C(e,t,n){let i=[],a=!1,s=null;try{if(i=await x(e,n),!Array.isArray(i))throw TypeError(`search results must be an array`)}catch(e){a=!0,s=e??Error(`search failed`)}finally{t===r&&(o=null,S(i,a,s))}}function w(t){let n=r;b(),p()?(u=!0,e.setStatus(`loading`)):(o=new AbortController,e.setStatus(`loading`),C(t,n,o.signal))}let T=(t,n)=>e.dispatchEvent(new CustomEvent(`search`,{bubbles:!0,detail:{query:t,seq:n}}));function E(t){r+=1,b(),clearTimeout(i),i=void 0,t.trim().length<v()?(e.setPartOptions([]),e.setStatus(`hint`)):(T(t,r),w(t))}return{mount(t,r,i={}){e=t,n=r;let a=n.search?.value??``;n.search&&i.carry?.query&&a===``&&(n.search.value=i.carry.query),a.trim()!==``&&e._onQueryChange(a)},onQuery(t){if(r+=1,b(),clearTimeout(i),i=void 0,c=t,l=null,u=!1,!d())return!1;if(t.trim().length<v())return e.setPartOptions([]),e.setStatus(`hint`),!0;let n=r;return i=setTimeout(()=>{i=void 0,T(t,n),w(t)},y()),!0},onOpen(){if(d()){if(l!==null){let e=l;l=null,E(e)}else v()===0&&e._query.trim()===``&&E(``)}},onOptions(){u&&(u=!1,e.setStatus(e.options.length?`idle`:`empty`))},onBlur(){if(e.mode!==`search`)return!1;let t=(n.search?.value??``).trim();if(!t||t===String(e.value))return!1;if(e.hasAttribute(`allow-custom`)&&!h(e,t)){let n=f(e,t);return n?(e.setError(n),!1):(e.commit(t,{isCustom:!0}),!0)}let r=g(n.list);return r===null||r===String(e.value)?!1:(e.commit(r,{isCustom:!1}),e.closeMenu(),!0)},actionRow(t){if(s=null,e.mode!==`search`||!e.hasAttribute(`allow-custom`))return null;let n=t.trim();return!n||h(e,n)?null:(s={position:`bottom`,label:(e.getAttribute(`add-label`)??m().addLabel).replaceAll(`{query}`,n),value:n},s)},onPick(t){if(!s||t.value!==s.value||t.label!==s.label)return!1;let n=s.value;return s=null,e.commit(n,{isCustom:!0}),!0},renderValue(){let t=e.value;if(e.mode!==`search`||!t||e.options.some(e=>String(e.value)===String(t)))return!1;let r=e.getAttribute(`value-label`);return r?(n.value.classList.remove(`wui-select-placeholder`),n.value.textContent=r,!0):!1},teardown(){(i!==void 0||o!==null||u)&&(l=c),u=!1,r+=1,clearTimeout(i),i=void 0,b(),s=null}}}(0,e.registerSelectPart)(`search`,p)})(WeborityUiElementsInternal.modules.partRegistry,WeborityUiElementsInternal.modules.devWarn,WeborityUiElementsInternal.modules.optionLabel,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.selectText,WeborityUiElementsInternal.modules.selectRemote);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t,n){var r=globalThis.WeborityUiElementsInternal?.version;if(r!==`0.169.0`)throw Error(`[webority-ui] select-window expects ui-elements 0.169.0 but the page loaded `+r+`.`);var i=300,a=`<div class="wui-select-spacer" aria-hidden="true"></div>`,o=new WeakMap;function s(e,t,r,i){let a=o.get(e);if(a&&a.options===t&&a.query===r&&a.count===i.length)return a;let s=[],c=new Int32Array(i.length),l=``;i.forEach((e,t)=>{e.group&&e.group!==l&&s.push({kind:`group`,label:e.group}),l=e.group??``,c[t]=s.length,s.push({kind:`option`,option:e,ord:t})});let u={options:t,query:r,count:i.length,entries:s,optionEntry:c,heights:(0,n.createHeightIndex)(s.length),estimated:!1,bodyTop:0,start:0,end:0,pre:``,post:``,picked:new Set,top:[],recent:[],bottom:[],bodyBase:0,total:0};return o.set(e,u),e.scrollTop=0,u}var c=e=>e.clientHeight||i,l=(e,t)=>(0,n.windowRange)(t.heights,{scrollTop:Math.max(0,e.scrollTop-t.bodyTop),viewport:c(e)});function u(n,r,i,a){let o=``;for(let s=i;s<a;s++){let i=n.entries[s];if(i){if(i.kind===`group`)o+=`<div class="wui-select-group" data-entry="${s}">${(0,t.escapeHtml)(i.label)}</div>`;else{let t=n.bodyBase+i.ord;o+=(0,e.optionRow)(i.option,(0,e.rowId)(r,t),n.picked.has(String(i.option.value)),{index:t,size:n.total})}}}return o}function d(e,t){let[n,r]=e.querySelectorAll(`.wui-select-spacer`);n&&r&&(n.style.flex=r.style.flex=`none`,n.style.height=`${t.heights.offsetOf(t.start)}px`,r.style.height=`${t.heights.total()-t.heights.offsetOf(t.end)}px`)}function f(t,n){let{start:r,end:i}=l(t,n);n.start=r,n.end=i;let o=n.pre+a+u(n,t.id,r,i)+a+n.post,s=t.scrollTop;e.drawn.get(t)!==o&&(e.drawn.set(t,o),t.innerHTML=o),d(t,n),t.scrollTop!==s&&(t.scrollTop=s)}function p(e,t){let n={changed:!1,delta:0};if(!e.clientHeight)return n;let{heights:r}=t,i=e.querySelector(`.wui-select-spacer`),a=[],o=!0,s=!1;if(i){let n=i.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;Math.abs(n-t.bodyTop)>.5&&(t.bodyTop=n,s=!0)}let c=r.indexAt(Math.max(0,e.scrollTop-t.bodyTop)),l=r.offsetOf(c),u=0;for(let n of e.querySelectorAll(`.wui-select-option[data-index], .wui-select-group[data-entry]`)){let e=n.getBoundingClientRect().height;if(n.dataset.entry!==void 0)a.push([Number(n.dataset.entry),e]);else{let r=Number(n.dataset.index)-t.bodyBase,i=r>=0?t.optionEntry[r]:void 0;if(i===void 0)continue;o&&(u=e),o=!1,a.push([i,e])}}if(!t.estimated&&u>0){let e=r.estimate;r.setEstimate(u),t.estimated=!0,r.estimate!==e&&(s=!0)}for(let[e,t]of a)r.set(e,t)&&(s=!0);return s?{changed:s,delta:r.offsetOf(c)-l}:n}function m(e,t){f(e,t);for(let n=0;n<2;n++){let{changed:n,delta:r}=p(e,t);if(!n)return;d(e,t),r&&(e.scrollTop+=r),f(e,t)}}function h(e,t){let n=s(e,t.options,t.query,t.rows);Object.assign(n,{pre:t.pre,post:t.post,picked:t.picked,top:t.top,recent:t.recent,bottom:t.bottom,bodyBase:t.bodyBase,total:t.total}),m(e,n)}function g(e){let t=o.get(e);if(!t)return!1;let{start:n,end:r}=l(e,t);return n===t.start&&r===t.end?!1:(m(e,t),!0)}function _(e,t){let r=o.get(e);if(!r||t<0||t>=r.total)return null;let i=t-r.bodyBase,a=i>=0?r.optionEntry[i]:void 0,s=()=>e.querySelector(`[data-index="${t}"]`);if(a===void 0)return s();for(let t=0;t<2;t++){let t={scrollTop:e.scrollTop-r.bodyTop,viewport:c(e)},i=r.bodyTop+(0,n.scrollTopToReveal)(r.heights,a,t);if(Math.abs(i-e.scrollTop)>.5)e.scrollTop=i;else if(s())break;m(e,r)}return s()}function v(e,t){if(t<0||t>=e.total)return;if(t<e.top.length)return e.top[t];let n=t-e.top.length;if(n<e.recent.length)return e.recent[n];let r=t-e.bodyBase;if(r<e.count){let t=e.entries[e.optionEntry[r]??-1];return t?.kind===`option`?t.option:void 0}return e.bottom[r-e.count]}var y=e=>e&&!(`position`in e)?e:void 0;function b(e,t){let n=o.get(e);if(!n||t.length===0)return-1;let r=new Set(t.map(String));for(let e=0;e<n.total;e++){let t=y(v(n,e));if(t&&r.has(String(t.value)))return e}return-1}var x=e=>`position`in e?e.label:`${e.initials??``}${(0,t.optionText)(e)}${e.description??``}${e.meta??``}`;function S(e,t){let n=o.get(e);if(!n)return-1;for(let e=0;e<n.total;e++){let r=v(n,e);if(r&&x(r).trim().toLowerCase().startsWith(t))return e}return-1}var C={render:h,refresh:g,reveal:_,indexOfValue:b,indexByPrefix:S,clear(e){o.delete(e)}};(0,e.registerWindowImpl)(C)})(WeborityUiElementsInternal.modules.selectList,WeborityUiElementsInternal.modules.optionLabel,WeborityUiElementsInternal.modules.selectWindow);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=globalThis.WeborityUiElementsInternal?.version;if(o!==`0.
|
|
1
|
+
(function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=globalThis.WeborityUiElementsInternal?.version;if(o!==`0.169.0`)throw Error(`[webority-ui] slider expects ui-elements 0.169.0 but the page loaded `+o+`.`);var s=Object.freeze([`none`,`indian`]),c=e=>s.some(t=>t===e),l=e=>`grouping must be one of ${s.join(` or `)}, not "${String(e)}".`;function u(e){let t=/^(-?)(\d*)(\.\d*)?$/.exec(e);if(!t)return e;let[,n=``,r=``,i=``]=t;return r.length<=3?e:`${n}${(r.slice(0,-3).match(/\d{1,2}(?=(\d{2})*$)/g)??[]).join(`,`)},${r.slice(-3)}${i}`}var d={ariaLabel:`Value`,helpLabel:`More information`,maximumLabel:`Maximum`,minimumLabel:`Minimum`,optionalLabel:`(optional)`,rangeText:`{start} to {end}`},f=()=>(0,a.readText)(`slider`,d),p=class extends n.ElementBase{static formAssociated=!0;_internals;_value;_start;_end;_isDragging;_dragThumb;_pointerDownListener;_pointerMoveListener;_pointerUpListener;_thumbKeyListener;_trackClickListener;_rendered;_defaultsCaptured;_defaultValue;_defaultStart;_defaultEnd;static get observedAttributes(){return[`min`,`max`,`step`,`value`,`start`,`end`,`name`,`start-name`,`end-name`,`disabled`,`readonly`,`loading`,`size`,`show-value`,`unit`,`grouping`,`aria-label`]}constructor(){super();try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=50,this._start=25,this._end=75,this._isDragging=!1,this._dragThumb=null,this._pointerDownListener=null,this._pointerMoveListener=null,this._pointerUpListener=null,this._thumbKeyListener=null,this._trackClickListener=null}connectedCallback(){this._rendered?this._wire():this.render()}get value(){return this._value}set value(e){this._value=this._snapToStep(this._clamp(m(e,this._value))),this._syncValue(),this._syncMirrors()}get start(){return this._start}set start(e){this._start=Math.min(this._snapToStep(this._clamp(m(e,this._start))),this._end),this._syncValue(),this._syncMirrors()}get end(){return this._end}set end(e){this._end=Math.max(this._snapToStep(this._clamp(m(e,this._end))),this._start),this._syncValue(),this._syncMirrors()}attributeChangedCallback(e,t,n){e===`value`||e===`start`||e===`end`||e===`min`||e===`max`||e===`step`?(this._updateFromAttribute(e),this._rendered&&(this._syncValue(),this._syncMirrors())):this._rendered&&this.render()}formResetCallback(){this._isRange()?this._resetRange():this._resetSingle()}_updateFromAttribute(e){e===`value`?this._value=this._snapToStep(this._clamp(m(this.getAttribute(`value`),this._value))):e===`start`?this._start=this._snapToStep(this._clamp(m(this.getAttribute(`start`),this._start))):e===`end`&&(this._end=this._snapToStep(this._clamp(m(this.getAttribute(`end`),this._end))))}_isRange(){return this.hasAttribute(`range`)}_min(){return m(this.getAttribute(`min`),0)}_max(){return m(this.getAttribute(`max`),100)}_step(){return m(this.getAttribute(`step`),1)}_clamp(e){return Math.max(this._min(),Math.min(e,this._max()))}_snapToStep(e){let t=this._step();if(t<=0)return e;let n=this._min();return this._clamp(n+Math.round((e-n)/t)*t)}_captureDefaults(){this._defaultsCaptured||=(this._isRange()?(this._defaultStart=this._start,this._defaultEnd=this._end):this._defaultValue=this._value,!0)}_resetSingle(){this._value=this._defaultValue??50,this._syncValue(),this._syncMirrors()}_resetRange(){this._start=this._defaultStart??25,this._end=this._defaultEnd??75,this._syncValue(),this._syncMirrors()}render(){this._captureDefaults();let e=this._min(),t=this._max(),n=this._isRange(),i=this.getAttribute(`size`),o=i===`sm`?` slider-sm`:i===`lg`?` slider-lg`:``,s=this.hasAttribute(`disabled`),c=this.hasAttribute(`readonly`)?` aria-readonly="true"`:``;n?(this._start=this._clamp(this._start),this._end=this._clamp(this._end),this._start>this._end&&([this._start,this._end]=[this._end,this._start])):this._value=this._clamp(this._value),this.innerHTML=`
|
|
2
2
|
<div class="slider${o}">
|
|
3
3
|
<div class="wui-slider-rail">
|
|
4
4
|
<div class="slider-track" role="presentation"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=globalThis.WeborityUiElementsInternal?.version;if(a!==`0.168.0`)throw Error(`[webority-ui] sortable expects ui-elements 0.168.0 but the page loaded `+a+`.`);var o={alreadyFirstText:`{label} is already first, {position}.`,alreadyLastText:`{label} is already last, {position}.`,destinationText:` to {destination}`,droppedText:`{label} dropped, {position}.`,liftedText:`{label} lifted, {position}. Use the arrow keys to move it, Space to drop it, Escape to cancel.`,movedPositionText:`{label} moved{destination}, position {position} of {total}.`,movedText:`{label} moved to {position}.`,positionText:`position {position} of {total}`,reorderCancelledText:`Reorder cancelled. {label} is back at {position}.`},s=()=>(0,i.readText)(`sortable`,o),c=new Set,l=`.wui-sortable-handle`,u=`a[href],button,input,select,textarea,label,summary,[contenteditable='true'],[role='button'],[role='link']`,d=4,f=8,p=250,m=48,h=18,g=class extends n.ElementBase{_drag;_kb;_moving;controlled;_observer;_onDragStart;_onDocTouchMove;_onSelectStart;static get observedAttributes(){return[`name`,`disabled`]}constructor(){super(),this._drag=null,this._kb=null,this._moving=!1,this.controlled=!1,this._observer=null,this._onPointerDown=this._onPointerDown.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onDragStart=e=>e.preventDefault(),this._onDocMove=this._onDocMove.bind(this),this._onDocUp=this._onDocUp.bind(this),this._onDocCancel=this._onDocCancel.bind(this),this._onDocKey=this._onDocKey.bind(this),this._onDocTouchMove=e=>{this._drag?.started&&e.preventDefault()},this._onSelectStart=e=>e.preventDefault(),this._scrollTick=this._scrollTick.bind(this)}connectedCallback(){c.add(this),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`dragstart`,this._onDragStart),this._observer=new MutationObserver(()=>this._syncMirrors()),this._observer.observe(this,{childList:!0}),this._syncMirrors()}disconnectedCallback(){c.delete(this),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`dragstart`,this._onDragStart),this._observer?.disconnect(),this._observer=null,this._abort()}attributeChangedCallback(e){e===`disabled`&&this._abort(),this.isConnected&&this._syncMirrors()}get order(){return this._items().map(e=>e.getAttribute(`data-id`))}set order(e){if(this._drag?.started||this._kb)return;let t=this._items(),n=new Map(t.map(e=>[e.getAttribute(`data-id`),e])),r=[];for(let t of e??[]){let e=n.get(String(t));e&&!r.includes(e)&&r.push(e)}[...r,...t.filter(e=>!r.includes(e))].forEach((e,t)=>{let n=this._items()[t]??null;n!==e&&this.insertBefore(e,n)}),this._syncMirrors()}_items(){return[...this.querySelectorAll(`:scope > [data-id]`)].filter(e=>e instanceof HTMLElement)}_itemFrom(e){let t=e;for(;t&&t.parentElement!==this;)t=t.parentElement;return t instanceof HTMLElement&&t.hasAttribute(`data-id`)?t:null}_itemDisabled(e){return e.hasAttribute(`data-disabled`)}_horizontal(){return this.getAttribute(`orientation`)===`horizontal`}_syncMirrors(){(0,r.syncFormMirrors)(this,this.order.map(e=>e??``))}_insertAt(e,t){let n=this._items();if(n.indexOf(e)===t)return;let r=n.filter(t=>t!==e),i=r[t]??null;i?this.insertBefore(e,i):r.length>0?r[r.length-1]?.after(e):this.appendChild(e)}_indexFor(e,t,n){let r=this._items().filter(t=>t!==e),i=this._horizontal();for(let[e,a]of r.entries()){let r=a.getBoundingClientRect();if(i?n<r.top||n<=r.bottom&&t<r.left+r.width/2:n<r.top+r.height/2)return e}return r.length}_peers(){let e=this.getAttribute(`group`);return[...c].filter(t=>t===this||e&&t.getAttribute(`group`)===e&&!t.hasAttribute(`disabled`))}_labelOf(e){return e.getAttribute(`data-label`)||(e.textContent??``).replace(/\s+/g,` `).trim()||e.getAttribute(`data-id`)}_announce(e){let t=this.querySelector(`:scope > .wui-sortable-live`);t||(t=document.createElement(`div`),t.className=`wui-sortable-live`,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),this.appendChild(t)),t.textContent=e}_position(e){let t=this._items();return(0,i.fillText)(s().positionText,{position:t.indexOf(e)+1,total:t.length})}_onPointerDown(e){if(this._drag||this._kb||this.hasAttribute(`disabled`)||e.pointerType===`mouse`&&e.button!==0)return;let t=e.target;if(!(t instanceof Element))return;let n=this._itemFrom(t);if(!n||this._itemDisabled(n))return;let r=n.querySelector(`:scope > ${l}`),i=!!r&&r.contains(t);if(this.hasAttribute(`handle`)&&!i)return;if(!i){let e=t.closest?.(u);if(e&&e!==n&&n.contains(e))return}let a=e.pointerType===`touch`&&!i,o={item:n,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,x:e.clientX,y:e.clientY,slop:e.pointerType===`touch`?f:d,ready:!a,started:!1,timer:null,raf:0,list:this,ghost:null,offsetX:0,offsetY:0,fromIndex:0};this._drag=o,a&&(o.timer=setTimeout(()=>{o.timer=null,o.ready=!0,this._begin()},p)),document.addEventListener(`pointermove`,this._onDocMove),document.addEventListener(`pointerup`,this._onDocUp),document.addEventListener(`pointercancel`,this._onDocCancel),document.addEventListener(`keydown`,this._onDocKey,!0),document.addEventListener(`touchmove`,this._onDocTouchMove,{passive:!1})}_onDocMove(e){let t=this._drag;if(t&&e.pointerId===t.pointerId){if(t.x=e.clientX,t.y=e.clientY,!t.started){let e=Math.hypot(t.x-t.startX,t.y-t.startY);if(!t.ready){e>t.slop&&this._finish(!0);return}if(e<t.slop||(this._begin(),!this._drag?.started))return}e.preventDefault?.(),this._moveGhost(),this._update()}}_onDocUp(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!1)}_onDocCancel(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!0)}_onDocKey(e){e.key===`Escape`&&this._drag&&(e.preventDefault(),e.stopPropagation(),this._finish(!0))}_begin(){let e=this._drag;if(!e||e.started)return;e.started=!0;let t=e.item.getBoundingClientRect();e.offsetX=e.startX-t.left,e.offsetY=e.startY-t.top,e.fromIndex=this._items().indexOf(e.item);let n=e.item.cloneNode(!0);if(!(n instanceof HTMLElement))throw Error(`drag ghost is not an HTML element`);for(let e of[n,...n.querySelectorAll(`[id],[data-id]`)])e.removeAttribute(`id`),e.removeAttribute(`data-id`);n.classList.add(`wui-sortable-ghost`),n.setAttribute(`aria-hidden`,`true`),n.inert=!0,n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,e.ghost=n,e.item.classList.add(`wui-sortable-dragging`),document.body.appendChild(n),document.documentElement.classList.add(`wui-sortable-active`),document.addEventListener(`selectstart`,this._onSelectStart),this._moveGhost(),e.raf=requestAnimationFrame(this._scrollTick),this._emit(this,`wui-sortable:start`,{id:e.item.getAttribute(`data-id`)})}_moveGhost(){let e=this._drag;e?.ghost&&(e.ghost.style.transform=`translate(${e.x-e.offsetX}px, ${e.y-e.offsetY}px)`)}_update(){let e=this._drag;if(!e?.started)return;let t=e.list;for(let n of this._peers()){let r=n.getBoundingClientRect();if(e.x>=r.left&&e.x<=r.right&&e.y>=r.top&&e.y<=r.bottom){t=n;break}}let n=t._indexFor(e.item,e.x,e.y);(t!==e.list||n!==t._items().indexOf(e.item))&&t._insertAt(e.item,n),e.list=t}_scrollTick(){let e=this._drag;if(!e?.started)return;let t=v(e.list),n=t?t.getBoundingClientRect():null,r=Math.max(n?.top??0,0),i=Math.min(n?.bottom??window.innerHeight,window.innerHeight),a=Math.max(n?.left??0,0),o=Math.min(n?.right??window.innerWidth,window.innerWidth),s=_(e.y,r,i),c=_(e.x,a,o);(c||s)&&(t?(t.scrollTop+=s,t.scrollLeft+=c):window.scrollBy(c,s),this._update()),e.raf=requestAnimationFrame(this._scrollTick)}_finish(e){let t=this._drag;if(!t||(this._drag=null,clearTimeout(t.timer??void 0),cancelAnimationFrame(t.raf),document.removeEventListener(`pointermove`,this._onDocMove),document.removeEventListener(`pointerup`,this._onDocUp),document.removeEventListener(`pointercancel`,this._onDocCancel),document.removeEventListener(`keydown`,this._onDocKey,!0),document.removeEventListener(`touchmove`,this._onDocTouchMove),document.removeEventListener(`selectstart`,this._onSelectStart),!t.started))return;t.ghost?.remove(),document.documentElement.classList.remove(`wui-sortable-active`),t.item.classList.remove(`wui-sortable-dragging`);let n=t.item.getAttribute(`data-id`);e?(this._insertAt(t.item,t.fromIndex),this._syncMirrors(),t.list!==this&&t.list._syncMirrors()):this._settle(t.item,this,t.fromIndex,t.list),this._emit(this,`wui-sortable:end`,{id:n,cancelled:e})}_settle(e,t,n,r){let a=r._items().indexOf(e);if(r===t&&a===n)return;let o=e.getAttribute(`data-id`),c=r.order,l=r!==t,u=t.order;l&&(t.controlled||r.controlled)&&t._insertAt(e,n),t._syncMirrors(),r._syncMirrors();let d=r._labelOf(e),f=l&&r.getAttribute(`aria-label`)?(0,i.fillText)(s().destinationText,{destination:String(r.getAttribute(`aria-label`))}):``,p={id:o,fromIndex:n,toIndex:a,from:t,to:r};l&&this._emit(t,`wui-sortable:change`,{...p,ids:u}),this._emit(r,`wui-sortable:change`,{...p,ids:c}),r._announce((0,i.fillText)(s().movedPositionText,{label:String(d),destination:f,position:a+1,total:c.length}))}_emit(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}_abort(){this._drag&&this._finish(!0),this._kb&&this._dropKeyboard(!0)}_onKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(l),r=n instanceof HTMLElement?n:null,a=r&&r.parentElement?.parentElement===this?r.parentElement:null;if(!r||!a||this._itemDisabled(a)||this._drag)return;let o=e.key;if(!this._kb){if(o!==` `&&o!==`Enter`)return;e.preventDefault(),this._liftKeyboard(a,r)}else if(this._kb.item===a){if(o===` `||o===`Enter`)e.preventDefault(),this._dropKeyboard(!1);else if(o===`Escape`)e.preventDefault(),e.stopPropagation(),this._dropKeyboard(!0);else if([`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].includes(o)){e.preventDefault();let t=this._items(),n=t.indexOf(a),c=t.length-1,l=o===`Home`?0:o===`End`?c:Math.max(0,Math.min(c,n+(o===`ArrowUp`||o===`ArrowLeft`?-1:1)));if(l===n){let e=s();this._announce((0,i.fillText)(n===0?e.alreadyFirstText:e.alreadyLastText,{label:String(this._labelOf(a)),position:this._position(a)}));return}this._moveFocused(()=>this._insertAt(a,l),r),this._announce((0,i.fillText)(s().movedText,{label:String(this._labelOf(a)),position:this._position(a)}))}}}_onFocusOut(e){if(!this._kb||this._moving)return;let t=e.relatedTarget;if(t&&!(t instanceof Node))throw Error(`focus moved to a non-node target`);t&&this._kb.handle.contains(t)||this._dropKeyboard(!1)}_liftKeyboard(e,t){this._kb={item:e,handle:t,fromIndex:this._items().indexOf(e)},t.setAttribute(`aria-pressed`,`true`),this._announce((0,i.fillText)(s().liftedText,{label:String(this._labelOf(e)),position:this._position(e)}))}_dropKeyboard(e){let t=this._kb;t&&(this._kb=null,t.handle.removeAttribute(`aria-pressed`),e?(this._moveFocused(()=>this._insertAt(t.item,t.fromIndex),t.handle),this._announce((0,i.fillText)(s().reorderCancelledText,{label:String(this._labelOf(t.item)),position:this._position(t.item)}))):this._items().indexOf(t.item)===t.fromIndex?this._announce((0,i.fillText)(s().droppedText,{label:String(this._labelOf(t.item)),position:this._position(t.item)})):this._settle(t.item,this,t.fromIndex,this))}_moveFocused(e,t){this._moving=!0;let n=this.contains(document.activeElement);e(),n&&document.activeElement!==t&&t.focus(),this._moving=!1}};function _(e,t,n){return e<t+m?-Math.ceil(h*Math.min(1,(t+m-e)/m)):e>n-m?Math.ceil(h*Math.min(1,(e-(n-m))/m)):0}function v(e){for(let t=e.parentElement;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement){let e=getComputedStyle(t),n=/(auto|scroll)/.test(e.overflowY)&&t.scrollHeight>t.clientHeight,r=/(auto|scroll)/.test(e.overflowX)&&t.scrollWidth>t.clientWidth;if(n||r)return t}return null}(0,t.defineElement)(`wui-sortable`,g),e.WuiSortable=g})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.formMirror,WeborityUiElementsInternal.modules.textStore);
|
|
1
|
+
(function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=globalThis.WeborityUiElementsInternal?.version;if(a!==`0.169.0`)throw Error(`[webority-ui] sortable expects ui-elements 0.169.0 but the page loaded `+a+`.`);var o={alreadyFirstText:`{label} is already first, {position}.`,alreadyLastText:`{label} is already last, {position}.`,destinationText:` to {destination}`,droppedText:`{label} dropped, {position}.`,liftedText:`{label} lifted, {position}. Use the arrow keys to move it, Space to drop it, Escape to cancel.`,movedPositionText:`{label} moved{destination}, position {position} of {total}.`,movedText:`{label} moved to {position}.`,positionText:`position {position} of {total}`,reorderCancelledText:`Reorder cancelled. {label} is back at {position}.`},s=()=>(0,i.readText)(`sortable`,o),c=new Set,l=`.wui-sortable-handle`,u=`a[href],button,input,select,textarea,label,summary,[contenteditable='true'],[role='button'],[role='link']`,d=4,f=8,p=250,m=48,h=18,g=class extends n.ElementBase{_drag;_kb;_moving;controlled;_observer;_onDragStart;_onDocTouchMove;_onSelectStart;static get observedAttributes(){return[`name`,`disabled`]}constructor(){super(),this._drag=null,this._kb=null,this._moving=!1,this.controlled=!1,this._observer=null,this._onPointerDown=this._onPointerDown.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onDragStart=e=>e.preventDefault(),this._onDocMove=this._onDocMove.bind(this),this._onDocUp=this._onDocUp.bind(this),this._onDocCancel=this._onDocCancel.bind(this),this._onDocKey=this._onDocKey.bind(this),this._onDocTouchMove=e=>{this._drag?.started&&e.preventDefault()},this._onSelectStart=e=>e.preventDefault(),this._scrollTick=this._scrollTick.bind(this)}connectedCallback(){c.add(this),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`dragstart`,this._onDragStart),this._observer=new MutationObserver(()=>this._syncMirrors()),this._observer.observe(this,{childList:!0}),this._syncMirrors()}disconnectedCallback(){c.delete(this),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`dragstart`,this._onDragStart),this._observer?.disconnect(),this._observer=null,this._abort()}attributeChangedCallback(e){e===`disabled`&&this._abort(),this.isConnected&&this._syncMirrors()}get order(){return this._items().map(e=>e.getAttribute(`data-id`))}set order(e){if(this._drag?.started||this._kb)return;let t=this._items(),n=new Map(t.map(e=>[e.getAttribute(`data-id`),e])),r=[];for(let t of e??[]){let e=n.get(String(t));e&&!r.includes(e)&&r.push(e)}[...r,...t.filter(e=>!r.includes(e))].forEach((e,t)=>{let n=this._items()[t]??null;n!==e&&this.insertBefore(e,n)}),this._syncMirrors()}_items(){return[...this.querySelectorAll(`:scope > [data-id]`)].filter(e=>e instanceof HTMLElement)}_itemFrom(e){let t=e;for(;t&&t.parentElement!==this;)t=t.parentElement;return t instanceof HTMLElement&&t.hasAttribute(`data-id`)?t:null}_itemDisabled(e){return e.hasAttribute(`data-disabled`)}_horizontal(){return this.getAttribute(`orientation`)===`horizontal`}_syncMirrors(){(0,r.syncFormMirrors)(this,this.order.map(e=>e??``))}_insertAt(e,t){let n=this._items();if(n.indexOf(e)===t)return;let r=n.filter(t=>t!==e),i=r[t]??null;i?this.insertBefore(e,i):r.length>0?r[r.length-1]?.after(e):this.appendChild(e)}_indexFor(e,t,n){let r=this._items().filter(t=>t!==e),i=this._horizontal();for(let[e,a]of r.entries()){let r=a.getBoundingClientRect();if(i?n<r.top||n<=r.bottom&&t<r.left+r.width/2:n<r.top+r.height/2)return e}return r.length}_peers(){let e=this.getAttribute(`group`);return[...c].filter(t=>t===this||e&&t.getAttribute(`group`)===e&&!t.hasAttribute(`disabled`))}_labelOf(e){return e.getAttribute(`data-label`)||(e.textContent??``).replace(/\s+/g,` `).trim()||e.getAttribute(`data-id`)}_announce(e){let t=this.querySelector(`:scope > .wui-sortable-live`);t||(t=document.createElement(`div`),t.className=`wui-sortable-live`,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),this.appendChild(t)),t.textContent=e}_position(e){let t=this._items();return(0,i.fillText)(s().positionText,{position:t.indexOf(e)+1,total:t.length})}_onPointerDown(e){if(this._drag||this._kb||this.hasAttribute(`disabled`)||e.pointerType===`mouse`&&e.button!==0)return;let t=e.target;if(!(t instanceof Element))return;let n=this._itemFrom(t);if(!n||this._itemDisabled(n))return;let r=n.querySelector(`:scope > ${l}`),i=!!r&&r.contains(t);if(this.hasAttribute(`handle`)&&!i)return;if(!i){let e=t.closest?.(u);if(e&&e!==n&&n.contains(e))return}let a=e.pointerType===`touch`&&!i,o={item:n,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,x:e.clientX,y:e.clientY,slop:e.pointerType===`touch`?f:d,ready:!a,started:!1,timer:null,raf:0,list:this,ghost:null,offsetX:0,offsetY:0,fromIndex:0};this._drag=o,a&&(o.timer=setTimeout(()=>{o.timer=null,o.ready=!0,this._begin()},p)),document.addEventListener(`pointermove`,this._onDocMove),document.addEventListener(`pointerup`,this._onDocUp),document.addEventListener(`pointercancel`,this._onDocCancel),document.addEventListener(`keydown`,this._onDocKey,!0),document.addEventListener(`touchmove`,this._onDocTouchMove,{passive:!1})}_onDocMove(e){let t=this._drag;if(t&&e.pointerId===t.pointerId){if(t.x=e.clientX,t.y=e.clientY,!t.started){let e=Math.hypot(t.x-t.startX,t.y-t.startY);if(!t.ready){e>t.slop&&this._finish(!0);return}if(e<t.slop||(this._begin(),!this._drag?.started))return}e.preventDefault?.(),this._moveGhost(),this._update()}}_onDocUp(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!1)}_onDocCancel(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!0)}_onDocKey(e){e.key===`Escape`&&this._drag&&(e.preventDefault(),e.stopPropagation(),this._finish(!0))}_begin(){let e=this._drag;if(!e||e.started)return;e.started=!0;let t=e.item.getBoundingClientRect();e.offsetX=e.startX-t.left,e.offsetY=e.startY-t.top,e.fromIndex=this._items().indexOf(e.item);let n=e.item.cloneNode(!0);if(!(n instanceof HTMLElement))throw Error(`drag ghost is not an HTML element`);for(let e of[n,...n.querySelectorAll(`[id],[data-id]`)])e.removeAttribute(`id`),e.removeAttribute(`data-id`);n.classList.add(`wui-sortable-ghost`),n.setAttribute(`aria-hidden`,`true`),n.inert=!0,n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,e.ghost=n,e.item.classList.add(`wui-sortable-dragging`),document.body.appendChild(n),document.documentElement.classList.add(`wui-sortable-active`),document.addEventListener(`selectstart`,this._onSelectStart),this._moveGhost(),e.raf=requestAnimationFrame(this._scrollTick),this._emit(this,`wui-sortable:start`,{id:e.item.getAttribute(`data-id`)})}_moveGhost(){let e=this._drag;e?.ghost&&(e.ghost.style.transform=`translate(${e.x-e.offsetX}px, ${e.y-e.offsetY}px)`)}_update(){let e=this._drag;if(!e?.started)return;let t=e.list;for(let n of this._peers()){let r=n.getBoundingClientRect();if(e.x>=r.left&&e.x<=r.right&&e.y>=r.top&&e.y<=r.bottom){t=n;break}}let n=t._indexFor(e.item,e.x,e.y);(t!==e.list||n!==t._items().indexOf(e.item))&&t._insertAt(e.item,n),e.list=t}_scrollTick(){let e=this._drag;if(!e?.started)return;let t=v(e.list),n=t?t.getBoundingClientRect():null,r=Math.max(n?.top??0,0),i=Math.min(n?.bottom??window.innerHeight,window.innerHeight),a=Math.max(n?.left??0,0),o=Math.min(n?.right??window.innerWidth,window.innerWidth),s=_(e.y,r,i),c=_(e.x,a,o);(c||s)&&(t?(t.scrollTop+=s,t.scrollLeft+=c):window.scrollBy(c,s),this._update()),e.raf=requestAnimationFrame(this._scrollTick)}_finish(e){let t=this._drag;if(!t||(this._drag=null,clearTimeout(t.timer??void 0),cancelAnimationFrame(t.raf),document.removeEventListener(`pointermove`,this._onDocMove),document.removeEventListener(`pointerup`,this._onDocUp),document.removeEventListener(`pointercancel`,this._onDocCancel),document.removeEventListener(`keydown`,this._onDocKey,!0),document.removeEventListener(`touchmove`,this._onDocTouchMove),document.removeEventListener(`selectstart`,this._onSelectStart),!t.started))return;t.ghost?.remove(),document.documentElement.classList.remove(`wui-sortable-active`),t.item.classList.remove(`wui-sortable-dragging`);let n=t.item.getAttribute(`data-id`);e?(this._insertAt(t.item,t.fromIndex),this._syncMirrors(),t.list!==this&&t.list._syncMirrors()):this._settle(t.item,this,t.fromIndex,t.list),this._emit(this,`wui-sortable:end`,{id:n,cancelled:e})}_settle(e,t,n,r){let a=r._items().indexOf(e);if(r===t&&a===n)return;let o=e.getAttribute(`data-id`),c=r.order,l=r!==t,u=t.order;l&&(t.controlled||r.controlled)&&t._insertAt(e,n),t._syncMirrors(),r._syncMirrors();let d=r._labelOf(e),f=l&&r.getAttribute(`aria-label`)?(0,i.fillText)(s().destinationText,{destination:String(r.getAttribute(`aria-label`))}):``,p={id:o,fromIndex:n,toIndex:a,from:t,to:r};l&&this._emit(t,`wui-sortable:change`,{...p,ids:u}),this._emit(r,`wui-sortable:change`,{...p,ids:c}),r._announce((0,i.fillText)(s().movedPositionText,{label:String(d),destination:f,position:a+1,total:c.length}))}_emit(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}_abort(){this._drag&&this._finish(!0),this._kb&&this._dropKeyboard(!0)}_onKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(l),r=n instanceof HTMLElement?n:null,a=r&&r.parentElement?.parentElement===this?r.parentElement:null;if(!r||!a||this._itemDisabled(a)||this._drag)return;let o=e.key;if(!this._kb){if(o!==` `&&o!==`Enter`)return;e.preventDefault(),this._liftKeyboard(a,r)}else if(this._kb.item===a){if(o===` `||o===`Enter`)e.preventDefault(),this._dropKeyboard(!1);else if(o===`Escape`)e.preventDefault(),e.stopPropagation(),this._dropKeyboard(!0);else if([`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].includes(o)){e.preventDefault();let t=this._items(),n=t.indexOf(a),c=t.length-1,l=o===`Home`?0:o===`End`?c:Math.max(0,Math.min(c,n+(o===`ArrowUp`||o===`ArrowLeft`?-1:1)));if(l===n){let e=s();this._announce((0,i.fillText)(n===0?e.alreadyFirstText:e.alreadyLastText,{label:String(this._labelOf(a)),position:this._position(a)}));return}this._moveFocused(()=>this._insertAt(a,l),r),this._announce((0,i.fillText)(s().movedText,{label:String(this._labelOf(a)),position:this._position(a)}))}}}_onFocusOut(e){if(!this._kb||this._moving)return;let t=e.relatedTarget;if(t&&!(t instanceof Node))throw Error(`focus moved to a non-node target`);t&&this._kb.handle.contains(t)||this._dropKeyboard(!1)}_liftKeyboard(e,t){this._kb={item:e,handle:t,fromIndex:this._items().indexOf(e)},t.setAttribute(`aria-pressed`,`true`),this._announce((0,i.fillText)(s().liftedText,{label:String(this._labelOf(e)),position:this._position(e)}))}_dropKeyboard(e){let t=this._kb;t&&(this._kb=null,t.handle.removeAttribute(`aria-pressed`),e?(this._moveFocused(()=>this._insertAt(t.item,t.fromIndex),t.handle),this._announce((0,i.fillText)(s().reorderCancelledText,{label:String(this._labelOf(t.item)),position:this._position(t.item)}))):this._items().indexOf(t.item)===t.fromIndex?this._announce((0,i.fillText)(s().droppedText,{label:String(this._labelOf(t.item)),position:this._position(t.item)})):this._settle(t.item,this,t.fromIndex,this))}_moveFocused(e,t){this._moving=!0;let n=this.contains(document.activeElement);e(),n&&document.activeElement!==t&&t.focus(),this._moving=!1}};function _(e,t,n){return e<t+m?-Math.ceil(h*Math.min(1,(t+m-e)/m)):e>n-m?Math.ceil(h*Math.min(1,(e-(n-m))/m)):0}function v(e){for(let t=e.parentElement;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement){let e=getComputedStyle(t),n=/(auto|scroll)/.test(e.overflowY)&&t.scrollHeight>t.clientHeight,r=/(auto|scroll)/.test(e.overflowX)&&t.scrollWidth>t.clientWidth;if(n||r)return t}return null}(0,t.defineElement)(`wui-sortable`,g),e.WuiSortable=g})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.formMirror,WeborityUiElementsInternal.modules.textStore);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=globalThis.WeborityUiElementsInternal?.version;if(r!==`0.168.0`)throw Error(`[webority-ui] status-icon expects ui-elements 0.168.0 but the page loaded `+r+`.`);var i={delete:`data:image/webp;base64,UklGRh4RAABXRUJQVlA4WAoAAAAQAAAAFwEAFwEAQUxQSGwFAAABkFXbbh1JgiAIhmAIZjBhEDOIGcQMqhgkDKoZCEIgCIIh6KO7Xokt6WtWREwAjBxDykvdNjqYWZ42ZqLHVpecIpgbY67b0eSEjR51SmginJYHy+mPR53QMnHZWC7MjyVZJC7UpIONlmgJzFuTjvI2owlwIekwzUF5uJB0m+agNlxIOk8zaizdmwywbUlZuJAMk2fUU1ibDJW3oKNEMuAt6SeRDJpm3SSSgfOsl0QyeJ51kkgUSFEfgUSJW9AFrqLIW1DE0kSVPGshkqiTgwbwJipdcXiJRan8b2x4E8VuYWCJRbWcRoU3Ue86pnCIgjkMaGmi4lZGgzdR8w2HElgUzWEgUxNVt2kYq6h7HQNuovAbDiAcovIjdC+wKJ1D52ITtXPs2txE8W3u2CLKL91aRf1rp1Yx4NqlVUy4dmgVI67dWcWMa2dWMeTalUVMWToyizHnbsRmjRY7EVjM2UIXAotBOXQADzHpgde7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p1dtEccWyzU9DrUI8iLKYeKwy6Gvokz/NZHnpQd6ehlmIduqYS27V0kM0LbdpYI0qLGlVFA22uCW61dbyfUDaur9N+Tw6rwH/kW97h8HUyAQCnXLSDNgFqRN/1Xgdp0r0dzKU7ImzaKzjS1tYxLXAf/kXCghSyLnGF+uTjhAAAAAA=`},a={error:`<rect width="174" height="174" rx="87" fill="var(--wui-danger-5)"/>
|
|
1
|
+
(function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=globalThis.WeborityUiElementsInternal?.version;if(r!==`0.169.0`)throw Error(`[webority-ui] status-icon expects ui-elements 0.169.0 but the page loaded `+r+`.`);var i={delete:`data:image/webp;base64,UklGRh4RAABXRUJQVlA4WAoAAAAQAAAAFwEAFwEAQUxQSGwFAAABkFXbbh1JgiAIhmAIZjBhEDOIGcQMqhgkDKoZCEIgCIIh6KO7Xokt6WtWREwAjBxDykvdNjqYWZ42ZqLHVpecIpgbY67b0eSEjR51SmginJYHy+mPR53QMnHZWC7MjyVZJC7UpIONlmgJzFuTjvI2owlwIekwzUF5uJB0m+agNlxIOk8zaizdmwywbUlZuJAMk2fUU1ibDJW3oKNEMuAt6SeRDJpm3SSSgfOsl0QyeJ51kkgUSFEfgUSJW9AFrqLIW1DE0kSVPGshkqiTgwbwJipdcXiJRan8b2x4E8VuYWCJRbWcRoU3Ue86pnCIgjkMaGmi4lZGgzdR8w2HElgUzWEgUxNVt2kYq6h7HQNuovAbDiAcovIjdC+wKJ1D52ITtXPs2txE8W3u2CLKL91aRf1rp1Yx4NqlVUy4dmgVI67dWcWMa2dWMeTalUVMWToyizHnbsRmjRY7EVjM2UIXAotBOXQADzHpgde7iVG3y61i1vVikxh2ulRolmnhQshiWsbr3MS4t8ssYt5ykdDs08I1WAx84BVWMfHtAkmMnE4X2EqMZ9vFzLeTTWLodCpkSzGeaRVT304UxNjxPGwtOk0Wc5eTBLZXw3PcxOD1FEFMHs6w24xOEMXo6XtkNfpaFrOnb7Hd6EtZ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AAAAAA=`},a={error:`<rect width="174" height="174" rx="87" fill="var(--wui-danger-5)"/>
|
|
2
2
|
<rect x="24" y="24" width="126" height="126" rx="63" stroke="var(--wui-danger-20)" stroke-width="16"/>
|
|
3
3
|
<g clip-path="url(#wui_error_clip0)">
|
|
4
4
|
<rect x="32" y="32" width="110" height="110" rx="55" fill="var(--wui-danger)"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t,n,r,i,a,o,s,c,l){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var u=globalThis.WeborityUiElementsInternal?.version;if(u!==`0.
|
|
1
|
+
(function(e,t,n,r,i,a,o,s,c,l){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var u=globalThis.WeborityUiElementsInternal?.version;if(u!==`0.169.0`)throw Error(`[webority-ui] timepicker expects ui-elements 0.169.0 but the page loaded `+u+`.`);var d={chooseTimeLabel:`Choose time`,helpLabel:`More information`,hour:`Hour`,maxText:`Enter a time at or before {max}.`,minText:`Enter a time at or after {min}.`,minute:`Minute`,optionalLabel:`(optional)`,periodLabel:`AM or PM`,placeholder:`Select time`,rangeText:`Enter a time between {min} and {max}.`,refusalText:`Enter a time like {example}.`,stepText:`Enter a time in {step}-minute steps.`},f=()=>(0,l.readText)(`timePicker`,d),p=e=>String(e).padStart(2,`0`),m=(e,t)=>`${p(e)}:${p(t)}`,h=e=>{let t=/^(\d{2}):(\d{2})$/.exec(e||``);return t?{h:Number(t[1]),m:Number(t[2])}:null},g=(e,t=`24`)=>{if(!e)return``;if(t===`24`)return m(e.h,e.m);let n=e.h%12||12,r=e.h>=12?`PM`:`AM`;return`${n}:${p(e.m)} ${r}`},_=e=>{let t=String(e||``).trim().toLowerCase(),n=/^(\d{1,2})(?:[:.](\d{2})|(\d{2}))?\s*(?:([ap])\.?\s*(?:m\.?)?)?$/.exec(t);if(!n)return null;let r=Number(n[1]),i=+(n[2]??n[3]??`0`);if(i>59)return null;if(n[4]){if(r<1||r>12)return null;r=r%12+(n[4]===`p`?12:0)}else if(r>23)return null;return{h:r,m:i}},v=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},y=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n),b=(e,t,n)=>{let r=e.closest(t);return r instanceof n?r:null},x=()=>{throw Error(`wui-timepicker is not rendered`)},S=0,C=class extends n.ElementBase{static formAssociated=!0;_internals;_value;_uid;_typedError;_typeahead;_typeaheadTimer;_rendered;_defaultValue;_isOpen;_lastPointer;_open=x;_close=x;_revertOnClose=!1;_refocusOnClose=!1;static get observedAttributes(){return[`value`,`min`,`max`,`step`,`format`,`placeholder`,`disabled`,`readonly`,`loading`,`required`,`size`,`aria-label`,`aria-describedby`,`aria-invalid`]}constructor(){super();try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._uid=`wui-tp-${++S}`,this._typedError=``,this._typeahead=``,this._typeaheadTimer=void 0,this.addEventListener(`focusout`,e=>{this._isOpen?.()&&e.relatedTarget instanceof Node&&!this.contains(e.relatedTarget)&&this._close({commit:!0})})}connectedCallback(){this._rendered||this.render()}attributeChangedCallback(e,t,n){if(this._rendered)switch(e){case`value`:this._value=n||``,this._typedError=``,this._syncFormValue(),this._syncText(),this._syncInvalid();return;case`aria-invalid`:case`aria-describedby`:this._syncInvalid();return;case`aria-label`:case`placeholder`:case`disabled`:case`readonly`:case`loading`:case`required`:this._syncAttrs();return;default:this.render()}}formResetCallback(){this.value=this._defaultValue||``}get value(){return this._value}set value(e){this._value=e||``,this._typedError=``,(0,i.syncFormMirror)(this,this._value),this._syncText(),this._syncInvalid()}_format(){return this.getAttribute(`format`)||`24`}_step(){return Math.max(1,parseInt(this.getAttribute(`step`)||`30`,10)||30)}_bounds(){let e=h(this.getAttribute(`min`))||{h:0,m:0},t=h(this.getAttribute(`max`))||{h:23,m:59};return{min:e.h*60+e.m,max:t.h*60+t.m}}_allowed(e,t){let n=e*60+t,{min:r,max:i}=this._bounds();return n>=r&&n<=i&&n%this._step()===0}_times(){let e=[];for(let t=0;t<1440;t+=this._step()){let n=Math.floor(t/60),r=t%60;this._allowed(n,r)&&e.push({h:n,m:r})}return e}_refusal(e){if(this._allowed(e.h,e.m))return``;let t=this._format(),{min:n,max:r}=this._bounds(),i=e.h*60+e.m,a=e=>g({h:Math.floor(e/60),m:e%60},t);if(i<n||i>r){let e=!!h(this.getAttribute(`min`)),t=!!h(this.getAttribute(`max`));return e&&t?(0,l.fillText)(f().rangeText,{min:a(n),max:a(r)}):e?(0,l.fillText)(f().minText,{min:a(n)}):(0,l.fillText)(f().maxText,{max:a(r)})}return(0,l.fillText)(f().stepText,{step:this._step()})}render(){this._defaultValue===void 0&&(this._defaultValue=this.getAttribute(`value`)||``,this._value=this._defaultValue||this._value),this._endOpenColumns(),this._isOpen=null;let e=this.getAttribute(`size`),t=e===`sm`?` wui-input-sm`:e===`lg`?` wui-input-lg`:e===`xl`?` wui-input-xl`:``,n=this._uid;this.innerHTML=`
|
|
2
2
|
<div class="timepicker">
|
|
3
3
|
<div class="wui-timepicker-field">
|
|
4
4
|
<input type="text" class="input timepicker-trigger${t}" id="${n}-input" role="combobox" aria-haspopup="dialog" aria-expanded="false" aria-controls="${n}-pop" aria-autocomplete="none" autocomplete="off" spellcheck="false">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.168.0`)throw Error(`[webority-ui] tour expects ui-elements 0.168.0 but the page loaded `+c+`.`);var l={backLabel:`Back`,doneLabel:`Done`,endMessage:`You know your way around now. Enjoy exploring.`,endTitle:`You're all set`,mediaPauseLabel:`Pause animation`,mediaPlayLabel:`Play animation`,nextLabel:`Next`,progressLabel:`Step {current} of {total}`,skipLabel:`Skip`},u={advanceLabel:`Click {actionName} to continue.`},d=`data-advance`,f=`wui-tour-hint`,p=`wui-tour-pointer`,m=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,h=()=>(0,o.readText)(`tourAdvance`,u),g=(e,t)=>e?.advanceOn===`click`&&!!t,_=e=>(e??``).replace(/\s+/g,` `).trim(),v=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,y=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1;function b(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(v(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=_(e);if(t)return t}return``}function ee(e){for(let t of[e,...e.querySelectorAll(m)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!y(t))return t;return null}function x(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function te(e,t){let n=e.querySelector(`.${f}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&x(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=f,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&x(e,i,!0)}}function ne(e,t){let n=e.querySelector(`.${p}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=p,r.setAttribute(`aria-hidden`,`true`),e.append(r)}var re=e=>getComputedStyle(e).animationName;function S(e,{layer:t,spot:n,card:r},i,a){let o=g(i,a);t.toggleAttribute(d,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(d)&&(n.removeAttribute(d),o&&re(n)),o&&n.setAttribute(d,``),ne(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?_(i?.actionLabel)||b(a):``,l=e.getAttribute(`advance-label`)||h().advanceLabel,u=c?l.replace(/\{actionName\}/g,()=>c):``;return te(r,u),u}function ie(e,t,n){if(!g(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function ae(e,t,n,r){return e.contains(r)||g(t,n)&&n.contains(r)}function oe(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=g(r,i)?ee(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}var se=2/3,ce=1e3,le=new Set([`top`,`left`,`width`,`height`]),C=new WeakMap,w=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],T=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,ue=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&le.has(e.transitionProperty),de=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`);function E(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,ce);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function fe(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?w(t,ue):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*se-r)}return n}function D(e){let t=fe(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};C.set(e,n);let r=()=>{C.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=w(e,de);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function O(e){return e.dataset.state=`leaving`,E(w(e,T))}function pe(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?E(w(n,T)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}var me=2,k=12,A=8,j=4,M=20,he=`(max-width: 575.98px)`,ge=[`bottom`,`top`,`right`,`left`],N=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],P,F=(e,t,n)=>Math.max(t,Math.min(e,n)),I=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2;function _e(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=R(e),r=e.offsetHeight+k;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+me}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function L(e,t,n){let r=e.style,i=t.style,a=Se(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of N)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,ve(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=R(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-k,top:o.top-k-l.top,right:l.right-o.right-k,left:o.left-k-l.left},f=window.matchMedia(he).matches,p=ge.find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+A)-Math.max(o.top,l.top-A);p?ye(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?be(t,a,o,l,c):xe(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function ve(e,t){P??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of N)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),P&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function ye(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=I(r.left,r.right,i.left,i.right);s=F(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+k:r.top-k-a.height,l=F(e-s,M,a.width-M)}else{let e=I(r.top,r.bottom,i.top,i.bottom);c=F(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+k:r.left-k-a.width,l=F(e-c,M,a.height-M)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function be(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-j;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${F(n.left+j,r.left,r.right-i.width)}px`}function xe(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+k:r.top-k-c}px`;let l=I(r.left,r.right,i.left,i.right);e.style.left=`${F(l-a.width/2,i.left,i.right-a.width)}px`}function R(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+A,bottom:window.innerHeight-r(`paddingBottom`)-A,left:r(`paddingLeft`)+A,right:window.innerWidth-r(`paddingRight`)-A}}function Se(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}var Ce=0,we=`btn btn-sm btn-link`;function z(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function Te(e,t,n){let i=`wui-tour-end-${++Ce}`,a=!!(t.nextLabel&&t.nextHref),o=n?e.createElement(`dialog`):e.createElement(`div`);o.className=`wui-tour-card wui-tour-end`,o.dataset.layout=`center`,a&&(o.dataset.next=``),o.setAttribute(`role`,`dialog`),o.tabIndex=-1,o.setAttribute(`aria-labelledby`,`${i}-title`),o.setAttribute(`aria-describedby`,`${i}-message`),o.innerHTML=` <div class="wui-tour-end-mark" aria-hidden="true"><svg viewBox="0 0 24 24" focusable="false"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></div> <h2 class="wui-tour-title wui-tour-end-title" id="${i}-title"></h2> <p class="wui-tour-text wui-tour-end-message" id="${i}-message"></p> <div class="wui-tour-actions">${a?`<a class="${(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-end-next" data-wui="${r.APP_BUTTON_MARKER}"></a>`:``}<button type="button" class="${a?we:(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-end-button" data-wui="${r.APP_BUTTON_MARKER}"></button></div>`,z(o,`.wui-tour-end-title`,HTMLElement).textContent=t.title,z(o,`.wui-tour-end-message`,HTMLElement).textContent=t.message,z(o,`.wui-tour-end-button`,HTMLButtonElement).textContent=t.button;let{nextLabel:s,nextHref:c}=t;if(a&&s&&c){let e=z(o,`.wui-tour-end-next`,HTMLAnchorElement);e.textContent=s,e.setAttribute(`href`,c)}return o}var Ee=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;function De(e,t,n){let r=e.ownerDocument,i=Te(r,t,e.getRootNode()===r),o=z(i,`.wui-tour-end-button`,HTMLButtonElement),c=i.querySelector(`.wui-tour-end-next`);if(c!==null&&!(c instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let l=c,u=l??o,d=new AbortController,f=i instanceof HTMLDialogElement?i:null,p=null;return new Promise(c=>{let m=e=>{if(d.abort(),p&&f){let e=p;p=null,(0,a.closeModalDialog)(f).then(e)}c(e)};if(n?.aborted){m(`done`);return}let h=z(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),g=z(e,`.wui-tour-spot`,HTMLElement),_=z(e,`[role=status]`,HTMLElement),v={signal:d.signal};n?.addEventListener(`abort`,()=>m(`done`),v),o.addEventListener(`click`,()=>m(`done`),v),l&&l.addEventListener(`click`,e=>{Ee(e)&&(e.preventDefault(),m(`next`))},v),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(p)return;e.preventDefault(),e.stopPropagation(),m(`done`)}else(0,s.isImeSafeEnter)(e)&&l&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===l&&(e.preventDefault(),m(`next`))}},{capture:!0,signal:d.signal});let y=()=>{d.signal.aborted||(h.hidden=!0,L(g,h,null),e.append(i),D(i),f&&(p=(0,a.openModalDialog)(f,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>m(`done`)})),_.textContent=[t.title,t.message].filter(Boolean).join(`. `),u.focus())},b=O(h);b?b.then(y):y()})}var Oe=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-lg":`14px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-lg); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,B=()=>(0,o.readText)(`tour`,l),V=`wui-tour-media`,ke=`wui-tour-media-toggle`,H=`http://www.w3.org/2000/svg`,Ae=`M6 5h4v14H6zM14 5h4v14h-4z`,je=`M8 5v14l11-7z`,Me=()=>({pause:B().mediaPauseLabel,play:B().mediaPlayLabel}),Ne=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0;function Pe(e){let t=document.createElementNS(H,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(H,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function Fe(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function Ie(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function Le(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=ke;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(Pe(r?Ae:je))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function Re(e){let t=e.querySelector(`:scope > .${V}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function ze(e,t,n=Me()){if(Re(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=V,t.mediaType===`video`){let e=Ie(t,!Ne());r.append(e,Le(e,n))}else r.appendChild(Fe(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}var U=`data-wui-tour-open`,Be=()=>(0,o.readText)(`tour`,l);function W(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function Ve(e,t,n){return(e.getAttribute(`progress-label`)||Be().progressLabel).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function He(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}var Ue=`wui-tour-seen:`;function We(e=Ue,t=globalThis.localStorage){return{isSeen:async n=>t.getItem(e+n)===`1`,markSeen:async n=>{t.setItem(e+n,`1`)}}}var Ge=`wui-tour-step`,Ke=`wui-tour-host`,G=`data-tracking`,K=()=>(0,o.readText)(`tour`,l),qe=()=>({back:K().backLabel,next:K().nextLabel,skip:K().skipLabel,done:K().doneLabel,mediaPause:K().mediaPauseLabel,mediaPlay:K().mediaPlayLabel,endTitle:K().endTitle,endMessage:K().endMessage,endButton:K().doneLabel}),q={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},Je=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],J={index:null,position:null,total:null},Ye=0,Y=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,X=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function Z(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}var Xe=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},Q=null;function Ze(e){Q||(Q=new CSSStyleSheet,Q.replaceSync(Oe)),e.adoptedStyleSheets=[Q]}var $=class extends i.ElementBase{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=W(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${Ge}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of Je)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?We():globalThis.window?.WUI?.tour?.seenStore||null}_label(e){return this.getAttribute(q[e])||qe()[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=W(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!Y(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(Y(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++Ye}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.innerHTML=` <div class="wui-tour-spot" aria-hidden="true"></div> <div class="wui-tour-card" role="dialog" tabindex="-1" aria-labelledby="${e}-title" aria-describedby="${e}-text"> <p class="wui-tour-position"></p> <h2 class="wui-tour-title" id="${e}-title"></h2> <p class="wui-tour-text" id="${e}-text"></p> <div class="wui-tour-actions"> <button type="button" class="btn btn-sm btn-link wui-tour-skip"></button> <div class="wui-tour-nav"> <button type="button" class="${(0,r.buttonClass)(`neutral`,`outline`,`sm`)} wui-tour-back" data-wui="${r.APP_BUTTON_MARKER}"></button> <button type="button" class="${(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-next" data-wui="${r.APP_BUTTON_MARKER}"></button> </div> </div> </div> <div class="visually-hidden" role="status" aria-live="polite"></div>`;let i=t;this._shadow=null,this.isolated&&(i=document.createElement(Ke),this._shadow=i.attachShadow({mode:`open`}),Ze(this._shadow),this._shadow.appendChild(t)),i.setAttribute(`popover`,`manual`),(0,a.overlayRoot)(document).appendChild(i),document.documentElement.setAttribute(U,``),this._outer=i,this._layer=t;let o=Z(t,`.wui-tour-spot`,HTMLDivElement),s=Z(t,`.wui-tour-card`,HTMLDivElement),c=Z(t,`[role=status]`,HTMLElement);this._spot=o,this._card=s,this._live=c,Z(s,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),Z(s,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),Z(s,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let l=e=>this._key(e);this._onKey=l;let u=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);ae(t,r,n?.target??null,e.target)||s.focus()};this._onFocusIn=u,document.addEventListener(`keydown`,l,!0),this._shadow||document.addEventListener(`focusin`,u),(0,n.bindReanchor)(i,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=(0,a.overlayRoot)(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),(0,a.raisePopover)(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=Ve(this,c,l);He(o,{text:d,position:c,total:l}),ze(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=S(this,{layer:i,spot:a,card:o},r,n),p=Z(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,Z(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,Z(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=Z(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,Z(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,_e(o,n),a.removeAttribute(G),this._place(),D(o),this._unbindAdvance?.(),this._unbindAdvance=ie(r,n,()=>this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&X(Xe()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);L(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(G,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=O(e);if(t&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return S(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(G),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),De(t,e,this._ending.signal)}_key(e){if(!(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(X(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),e.key===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);oe(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if((0,n.unbindReanchor)(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);pe(t),document.documentElement.removeAttribute(U),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let r=this._returnFocus;this._returnFocus=null,e&&r?.isConnected&&(r instanceof HTMLElement||r instanceof SVGElement)&&r.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:J,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=J,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}};(0,t.defineElement)(`wui-tour`,$),e.WuiTour=$})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.anchorOverlay,WeborityUiElementsInternal.modules.buttonClass,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.nativeOverlay,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.imeSafeEnter);
|
|
1
|
+
(function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.169.0`)throw Error(`[webority-ui] tour expects ui-elements 0.169.0 but the page loaded `+c+`.`);var l={backLabel:`Back`,doneLabel:`Done`,endMessage:`You know your way around now. Enjoy exploring.`,endTitle:`You're all set`,mediaPauseLabel:`Pause animation`,mediaPlayLabel:`Play animation`,nextLabel:`Next`,progressLabel:`Step {current} of {total}`,skipLabel:`Skip`},u={advanceLabel:`Click {actionName} to continue.`},d=`data-advance`,f=`wui-tour-hint`,p=`wui-tour-pointer`,m=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,h=()=>(0,o.readText)(`tourAdvance`,u),g=(e,t)=>e?.advanceOn===`click`&&!!t,_=e=>(e??``).replace(/\s+/g,` `).trim(),v=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,y=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1;function b(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(v(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=_(e);if(t)return t}return``}function ee(e){for(let t of[e,...e.querySelectorAll(m)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!y(t))return t;return null}function x(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function te(e,t){let n=e.querySelector(`.${f}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&x(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=f,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&x(e,i,!0)}}function ne(e,t){let n=e.querySelector(`.${p}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=p,r.setAttribute(`aria-hidden`,`true`),e.append(r)}var re=e=>getComputedStyle(e).animationName;function S(e,{layer:t,spot:n,card:r},i,a){let o=g(i,a);t.toggleAttribute(d,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(d)&&(n.removeAttribute(d),o&&re(n)),o&&n.setAttribute(d,``),ne(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?_(i?.actionLabel)||b(a):``,l=e.getAttribute(`advance-label`)||h().advanceLabel,u=c?l.replace(/\{actionName\}/g,()=>c):``;return te(r,u),u}function ie(e,t,n){if(!g(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function ae(e,t,n,r){return e.contains(r)||g(t,n)&&n.contains(r)}function oe(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=g(r,i)?ee(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}var se=2/3,ce=1e3,le=new Set([`top`,`left`,`width`,`height`]),C=new WeakMap,w=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],T=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,ue=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&le.has(e.transitionProperty),de=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`);function E(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,ce);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function fe(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?w(t,ue):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*se-r)}return n}function D(e){let t=fe(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};C.set(e,n);let r=()=>{C.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=w(e,de);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function O(e){return e.dataset.state=`leaving`,E(w(e,T))}function pe(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?E(w(n,T)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}var me=2,k=12,A=8,j=4,M=20,he=`(max-width: 575.98px)`,ge=[`bottom`,`top`,`right`,`left`],N=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],P,F=(e,t,n)=>Math.max(t,Math.min(e,n)),I=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2;function _e(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=R(e),r=e.offsetHeight+k;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+me}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function L(e,t,n){let r=e.style,i=t.style,a=Se(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of N)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,ve(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=R(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-k,top:o.top-k-l.top,right:l.right-o.right-k,left:o.left-k-l.left},f=window.matchMedia(he).matches,p=ge.find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+A)-Math.max(o.top,l.top-A);p?ye(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?be(t,a,o,l,c):xe(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function ve(e,t){P??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of N)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),P&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function ye(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=I(r.left,r.right,i.left,i.right);s=F(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+k:r.top-k-a.height,l=F(e-s,M,a.width-M)}else{let e=I(r.top,r.bottom,i.top,i.bottom);c=F(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+k:r.left-k-a.width,l=F(e-c,M,a.height-M)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function be(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-j;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${F(n.left+j,r.left,r.right-i.width)}px`}function xe(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+k:r.top-k-c}px`;let l=I(r.left,r.right,i.left,i.right);e.style.left=`${F(l-a.width/2,i.left,i.right-a.width)}px`}function R(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+A,bottom:window.innerHeight-r(`paddingBottom`)-A,left:r(`paddingLeft`)+A,right:window.innerWidth-r(`paddingRight`)-A}}function Se(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}var Ce=0,we=`btn btn-sm btn-link`;function z(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function Te(e,t,n){let i=`wui-tour-end-${++Ce}`,a=!!(t.nextLabel&&t.nextHref),o=n?e.createElement(`dialog`):e.createElement(`div`);o.className=`wui-tour-card wui-tour-end`,o.dataset.layout=`center`,a&&(o.dataset.next=``),o.setAttribute(`role`,`dialog`),o.tabIndex=-1,o.setAttribute(`aria-labelledby`,`${i}-title`),o.setAttribute(`aria-describedby`,`${i}-message`),o.innerHTML=` <div class="wui-tour-end-mark" aria-hidden="true"><svg viewBox="0 0 24 24" focusable="false"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></div> <h2 class="wui-tour-title wui-tour-end-title" id="${i}-title"></h2> <p class="wui-tour-text wui-tour-end-message" id="${i}-message"></p> <div class="wui-tour-actions">${a?`<a class="${(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-end-next" data-wui="${r.APP_BUTTON_MARKER}"></a>`:``}<button type="button" class="${a?we:(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-end-button" data-wui="${r.APP_BUTTON_MARKER}"></button></div>`,z(o,`.wui-tour-end-title`,HTMLElement).textContent=t.title,z(o,`.wui-tour-end-message`,HTMLElement).textContent=t.message,z(o,`.wui-tour-end-button`,HTMLButtonElement).textContent=t.button;let{nextLabel:s,nextHref:c}=t;if(a&&s&&c){let e=z(o,`.wui-tour-end-next`,HTMLAnchorElement);e.textContent=s,e.setAttribute(`href`,c)}return o}var Ee=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;function De(e,t,n){let r=e.ownerDocument,i=Te(r,t,e.getRootNode()===r),o=z(i,`.wui-tour-end-button`,HTMLButtonElement),c=i.querySelector(`.wui-tour-end-next`);if(c!==null&&!(c instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let l=c,u=l??o,d=new AbortController,f=i instanceof HTMLDialogElement?i:null,p=null;return new Promise(c=>{let m=e=>{if(d.abort(),p&&f){let e=p;p=null,(0,a.closeModalDialog)(f).then(e)}c(e)};if(n?.aborted){m(`done`);return}let h=z(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),g=z(e,`.wui-tour-spot`,HTMLElement),_=z(e,`[role=status]`,HTMLElement),v={signal:d.signal};n?.addEventListener(`abort`,()=>m(`done`),v),o.addEventListener(`click`,()=>m(`done`),v),l&&l.addEventListener(`click`,e=>{Ee(e)&&(e.preventDefault(),m(`next`))},v),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(p)return;e.preventDefault(),e.stopPropagation(),m(`done`)}else(0,s.isImeSafeEnter)(e)&&l&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===l&&(e.preventDefault(),m(`next`))}},{capture:!0,signal:d.signal});let y=()=>{d.signal.aborted||(h.hidden=!0,L(g,h,null),e.append(i),D(i),f&&(p=(0,a.openModalDialog)(f,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>m(`done`)})),_.textContent=[t.title,t.message].filter(Boolean).join(`. `),u.focus())},b=O(h);b?b.then(y):y()})}var Oe=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-lg":`14px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-lg); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-tap-rtl { 0% { opacity: 0; transform: translate(-56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(-56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer:dir(rtl) { animation-name: wui-tour-tap-rtl; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,B=()=>(0,o.readText)(`tour`,l),V=`wui-tour-media`,ke=`wui-tour-media-toggle`,H=`http://www.w3.org/2000/svg`,Ae=`M6 5h4v14H6zM14 5h4v14h-4z`,je=`M8 5v14l11-7z`,Me=()=>({pause:B().mediaPauseLabel,play:B().mediaPlayLabel}),Ne=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0;function Pe(e){let t=document.createElementNS(H,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(H,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function Fe(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function Ie(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function Le(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=ke;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(Pe(r?Ae:je))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function Re(e){let t=e.querySelector(`:scope > .${V}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function ze(e,t,n=Me()){if(Re(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=V,t.mediaType===`video`){let e=Ie(t,!Ne());r.append(e,Le(e,n))}else r.appendChild(Fe(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}var U=`data-wui-tour-open`,Be=()=>(0,o.readText)(`tour`,l);function W(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function Ve(e,t,n){return(e.getAttribute(`progress-label`)||Be().progressLabel).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function He(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}var Ue=`wui-tour-seen:`;function We(e=Ue,t=globalThis.localStorage){return{isSeen:async n=>t.getItem(e+n)===`1`,markSeen:async n=>{t.setItem(e+n,`1`)}}}var Ge=`wui-tour-step`,Ke=`wui-tour-host`,G=`data-tracking`,K=()=>(0,o.readText)(`tour`,l),qe=()=>({back:K().backLabel,next:K().nextLabel,skip:K().skipLabel,done:K().doneLabel,mediaPause:K().mediaPauseLabel,mediaPlay:K().mediaPlayLabel,endTitle:K().endTitle,endMessage:K().endMessage,endButton:K().doneLabel}),q={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},Je=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],J={index:null,position:null,total:null},Ye=0,Y=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,X=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function Z(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}var Xe=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},Q=null;function Ze(e){Q||(Q=new CSSStyleSheet,Q.replaceSync(Oe)),e.adoptedStyleSheets=[Q]}var $=class extends i.ElementBase{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=W(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${Ge}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of Je)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?We():globalThis.window?.WUI?.tour?.seenStore||null}_label(e){return this.getAttribute(q[e])||qe()[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=W(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!Y(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(Y(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++Ye}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.innerHTML=` <div class="wui-tour-spot" aria-hidden="true"></div> <div class="wui-tour-card" role="dialog" tabindex="-1" aria-labelledby="${e}-title" aria-describedby="${e}-text"> <p class="wui-tour-position"></p> <h2 class="wui-tour-title" id="${e}-title"></h2> <p class="wui-tour-text" id="${e}-text"></p> <div class="wui-tour-actions"> <button type="button" class="btn btn-sm btn-link wui-tour-skip"></button> <div class="wui-tour-nav"> <button type="button" class="${(0,r.buttonClass)(`neutral`,`outline`,`sm`)} wui-tour-back" data-wui="${r.APP_BUTTON_MARKER}"></button> <button type="button" class="${(0,r.buttonClass)(`primary`,`solid`,`sm`)} wui-tour-next" data-wui="${r.APP_BUTTON_MARKER}"></button> </div> </div> </div> <div class="visually-hidden" role="status" aria-live="polite"></div>`;let i=t;this._shadow=null,this.isolated&&(i=document.createElement(Ke),this._shadow=i.attachShadow({mode:`open`}),Ze(this._shadow),this._shadow.appendChild(t)),i.setAttribute(`popover`,`manual`),(0,a.overlayRoot)(document).appendChild(i),document.documentElement.setAttribute(U,``),this._outer=i,this._layer=t;let o=Z(t,`.wui-tour-spot`,HTMLDivElement),s=Z(t,`.wui-tour-card`,HTMLDivElement),c=Z(t,`[role=status]`,HTMLElement);this._spot=o,this._card=s,this._live=c,Z(s,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),Z(s,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),Z(s,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let l=e=>this._key(e);this._onKey=l;let u=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);ae(t,r,n?.target??null,e.target)||s.focus()};this._onFocusIn=u,document.addEventListener(`keydown`,l,!0),this._shadow||document.addEventListener(`focusin`,u),(0,n.bindReanchor)(i,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=(0,a.overlayRoot)(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),(0,a.raisePopover)(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=Ve(this,c,l);He(o,{text:d,position:c,total:l}),ze(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=S(this,{layer:i,spot:a,card:o},r,n),p=Z(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,Z(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,Z(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=Z(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,Z(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,_e(o,n),a.removeAttribute(G),this._place(),D(o),this._unbindAdvance?.(),this._unbindAdvance=ie(r,n,()=>this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&X(Xe()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);L(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(G,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=O(e);if(t&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return S(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(G),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),De(t,e,this._ending.signal)}_key(e){if(!(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(X(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),e.key===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);oe(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if((0,n.unbindReanchor)(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);pe(t),document.documentElement.removeAttribute(U),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let r=this._returnFocus;this._returnFocus=null,e&&r?.isConnected&&(r instanceof HTMLElement||r instanceof SVGElement)&&r.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:J,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=J,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}};(0,t.defineElement)(`wui-tour`,$),e.WuiTour=$})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.anchorOverlay,WeborityUiElementsInternal.modules.buttonClass,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.nativeOverlay,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.imeSafeEnter);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var c=globalThis.WeborityUiElementsInternal?.version;if(c!==`0.169.0`)throw Error(`[webority-ui] tree-picker expects ui-elements 0.169.0 but the page loaded `+c+`.`);var l={chosenTitle:`Chosen`,clearAllLabel:`Clear all`,emptyText:`Tick items in the tree.`,emptyTitle:`Nothing chosen yet`,noMatchText:`No matches for "{query}"`,removeLabel:`Remove {name}`,searchLabel:`Search`,searchPlaceholder:`Search`,selectedText:`{n} selected`},u={type:`none`},d={type:`open`},f=229;function p(e,t){switch(e.key){case`ArrowDown`:case`ArrowUp`:case`Enter`:case` `:return d;case`Backspace`:return t.searchEmpty&&t.mode===`multiple`?{type:`removeLastChip`}:u;default:return u}}function m(e,t){let n=t.row,r=n!==null&&!n.hasChildren,i=n!==null&&!n.disabled;switch(e.key){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};case`ArrowRight`:return n===null||!n.hasChildren?u:t.expanded?{type:`focusFirstChild`}:{type:`expand`};case`ArrowLeft`:return n?.hasChildren===!0&&t.expanded?{type:`collapse`}:t.hasParent?{type:`focusParent`}:u;case` `:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:u:u;case`Enter`:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:u:u;case`Escape`:return{type:`close`};default:{let t=e.ctrlKey!==!0&&e.metaKey!==!0&&e.altKey!==!0;return e.key.length===1&&t?{type:`typeahead`,char:e.key}:u}}}function h(e,t){return e.isComposing===!0||e.keyCode===f?u:t.open?m(e,t):p(e,t)}var g=new WeakMap;function _(e,t,n){let r=document.createElement(e);t&&(r.className=t);for(let[e,t]of Object.entries(n??{}))t!=null&&r.setAttribute(e,String(t));return r}function v(e){e.replaceChildren(),e.classList.add(`wui-tree-picker`);let t=_(`div`,`search-wrap`);t.innerHTML=(0,s.glyphSvg)(`search`,{size:18,className:`search-icon`});let n=_(`input`,`input search-input wui-tree-picker-search`,{type:`search`,"data-wui-action":`search`,autocomplete:`off`});t.append(n);let r=_(`ul`,`wui-tree-picker-tree`,{role:`tree`}),i=_(`p`,`wui-tree-picker-nomatch`,{role:`presentation`});i.hidden=!0;let a=_(`div`,`wui-tree-picker-pane`);a.append(t,r,i);let c=_(`span`,`wui-tree-picker-title`),l=_(`span`,`badge`),u=_(`button`,(0,o.buttonClass)(`neutral`,`ghost`,`sm`),{type:`button`,"data-wui-action":`clear`}),d=_(`div`,`wui-tree-picker-rail-head`),f=_(`span`,`d-inline-flex align-items-center gap-2`);f.append(c,l),d.append(f,u);let p=_(`div`,`wui-tree-picker-rail-body`),m=_(`div`,`visually-hidden`,{role:`status`,"aria-live":`polite`}),h=_(`div`,`wui-tree-picker-rail`);h.append(d,p,m);let g=_(`div`,`wui-tree-picker-surface`);return g.append(a,h),e.append(g),{surface:g,search:n,tree:r,noMatch:i,title:c,count:l,clear:u,body:p,status:m}}function y(e,t){let n=t.selection===`multiple`,r=new Map,i=[];for(let e of t.rows){let a=t.checkOf(e),o=_(`li`,`wui-tree-picker-item`,{role:`treeitem`,tabindex:e.id===t.focusId?0:-1,"aria-level":e.level+1,"aria-labelledby":`${t.uid}-${e.index}`,"data-id":e.id}),c=t.expanded.has(e.id);e.hasChildren&&o.setAttribute(`aria-expanded`,String(c)),(e.disabled||t.disabled)&&o.setAttribute(`aria-disabled`,`true`),n?o.setAttribute(`aria-checked`,a===`mixed`?`mixed`:String(a===`checked`)):o.setAttribute(`aria-selected`,String(!e.hasChildren&&a===`checked`));let l=_(`div`,`wui-tree-picker-row`,{role:`presentation`});if(l.style.setProperty(`--wui-tree-picker-level`,String(e.level)),e.hasChildren){let t=_(`button`,`wui-tree-picker-toggle`,{type:`button`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`expand`,"data-id":e.id});t.innerHTML=(0,s.glyphSvg)(`chevron-right`,{size:16}),l.append(t)}else l.append(_(`span`,`wui-tree-picker-toggle`,{"aria-hidden":`true`}));if(n){let n=_(`input`,`form-check-input wui-tree-picker-check`,{type:`checkbox`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`pick`,"data-id":e.id});n.checked=a===`checked`,n.indeterminate=a===`mixed`,n.disabled=e.disabled||t.disabled,l.append(n)}if(e.icon){let t=_(`span`,`wui-tree-icon`,{"aria-hidden":`true`});t.innerHTML=(0,s.glyphSvg)(e.icon,{size:16}),l.append(t)}let u=_(`span`,`wui-tree-picker-label`,{id:`${t.uid}-${e.index}`,"data-wui-action":`pick`,"data-id":e.id});if(u.textContent=e.label,l.append(u),o.append(l),e.hasChildren&&c){let t=_(`ul`,`wui-tree-picker-group`,{role:`group`});o.append(t),r.set(e.id,t)}let d=e.parentId===null?void 0:r.get(e.parentId);d?d.append(o):i.push(o)}e.tree.replaceChildren(...i),n?e.tree.setAttribute(`aria-multiselectable`,`true`):e.tree.removeAttribute(`aria-multiselectable`)}function b(e,t){let n=_(`li`,`wui-tree-picker-chosen-row`),r=_(`span`,`wui-tree-picker-chosen-label`);r.textContent=t.label;let i=_(`button`,`btn btn-link btn-sm wui-tree-picker-remove`,{type:`button`,"aria-label":(0,a.fillText)(e.text.removeLabel,{name:t.label}),"data-wui-action":`remove`,"data-id":t.id});return i.innerHTML=(0,s.glyphSvg)(`x`,{size:14}),i.disabled=e.disabled,n.append(r,i),n}function x(e,t){let{text:n}=t;if(e.title.textContent=n.chosenTitle,e.count.textContent=String(t.chosen.length),e.clear.textContent=n.clearAllLabel,e.clear.disabled=t.disabled||t.chosen.length===0,t.chosen.length===0){let t=_(`div`,`wui-tree-picker-empty`),r=_(`div`,`fw-semibold`);r.textContent=n.emptyTitle;let i=_(`div`,`small text-body-secondary`);i.textContent=n.emptyText,t.append(r,i),e.body.replaceChildren(t);return}let r=new Map;for(let e of t.chosen){let t=e.group??``,n=r.get(t)??{label:e.group,items:[]};n.items.push(e),r.set(t,n)}let i=[];for(let e of r.values()){let n=_(`div`,`wui-tree-picker-chosen-group`);if(e.label!==null){let t=_(`div`,`small text-body-secondary`);t.textContent=e.label,n.append(t)}let r=_(`ul`,`list-unstyled m-0`);r.append(...e.items.map(e=>b(t,e))),n.append(r),i.push(n)}e.body.replaceChildren(...i)}function S(e){let t=document.activeElement;if(t===e.clear)return`clear`;if(!(t instanceof HTMLButtonElement))return null;let n=[...e.body.querySelectorAll(`[data-wui-action='remove']`)].indexOf(t);return n===-1?null:n}function C(e,t){if(t===null)return;let n=e.body.querySelectorAll(`[data-wui-action='remove']`),r=typeof t==`number`?n[Math.min(t,n.length-1)]:void 0;r?r.focus():e.search.focus()}function w(e,t){let n=g.get(e)??v(e);g.set(e,n);let{text:r}=t;n.surface.classList.toggle(`wui-tree-picker-invalid`,t.invalid),n.search.setAttribute(`aria-label`,r.searchLabel),n.search.placeholder=r.searchPlaceholder,n.search.disabled=t.disabled,n.search.value!==t.query&&(n.search.value=t.query),y(n,t);let i=t.query.trim()!==``;n.noMatch.hidden=!(i&&t.rows.length===0),n.noMatch.textContent=n.noMatch.hidden?``:(0,a.fillText)(r.noMatchText,{query:t.query.trim()});let o=S(n);x(n,t),C(n,o),n.status.textContent=t.status}var T=e=>(e.children?.length??0)>0,E=e=>!T(e)&&e.hasChildren!==!0;function D(e,t,n){let r=[];for(let i of e){if(t.has(i.id))throw Error(`Duplicate tree node id "${i.id}".`);t.add(i.id);let e=E(i)?i.disabled===!0?[]:[i.id]:D(i.children??[],t,n);n.set(i.id,e),r.push(...e)}return r}function O(e,t,n){let r=[],i=(e,a,o)=>{for(let s of e)r.push({id:s.id,label:s.label,icon:s.icon||null,parentId:a,level:o,index:r.length,hasChildren:T(s)||s.hasChildren===!0,disabled:s.disabled===!0,leafIds:t.get(s.id)??[]}),T(s)&&n(s.id)&&i(s.children??[],s.id,o+1)};return i(e,null,0),{rows:r,byId:new Map(r.map(e=>[e.id,e]))}}function k(e){let t=new Map;return D(e,new Set,t),{leavesById:t}}function A(e,t){let{leavesById:n}=k(e);return O(e,n,e=>t.has(e))}function j(e){let{leavesById:t}=k(e);return O(e,t,()=>!0)}function M(e,t){if(e.leafIds.length===0)return`unchecked`;let n=0;for(let r of e.leafIds)t.has(r)&&(n+=1);return n===0?`unchecked`:n===e.leafIds.length?`checked`:`mixed`}function N(e,t){let n=e.byId.get(t);if(n===void 0)throw Error(`Unknown tree node id "${t}".`);return n}function P(e,t,n,r){let i=N(j(e),r),a=[...n];if(t===`single`)return i.hasChildren||i.disabled?a:[r];if(!i.hasChildren)return i.disabled?a:a.includes(r)?a.filter(e=>e!==r):[...a,r];if(i.leafIds.length===0)return a;if(M(i,new Set(a))===`checked`){let e=new Set(i.leafIds);return a.filter(t=>!e.has(t))}let o=new Set(a);return[...a,...i.leafIds.filter(e=>!o.has(e))]}function F(e,t){let n=[],r=new Set;for(let i of t){let t=e.byId.get(i);t===void 0||t.hasChildren||r.has(i)||(r.add(i),n.push(t))}return n}function I(e,t){return F(j(e),t).map(e=>e.id)}function L(){return[]}function R(e,t){return e.filter(e=>e!==t)}function z(e,t){return e===`single`?t[0]??``:[...t]}function B(e,t){let n=t.trim().toLowerCase();if(n===``)return{nodes:[...e],expanded:new Set};let r=new Set,i=e=>{if(T(e)){r.add(e.id);for(let t of e.children??[])i(t)}},a=e=>{if(e.label.toLowerCase().includes(n))return i(e),e;let t=(e.children??[]).flatMap(e=>{let t=a(e);return t===null?[]:[t]});return t.length===0?null:(r.add(e.id),{...e,children:t})};return{nodes:e.flatMap(e=>{let t=a(e);return t===null?[]:[t]}),expanded:r}}var V=[`nodes`,`values`,`selection`,`name`],H={chosenTitle:`chosen-title`,clearAllLabel:`clear-all-label`,emptyTitle:`empty-title`,emptyText:`empty-text`,noMatchText:`no-match-text`,removeLabel:`remove-label`,searchLabel:`search-label`,searchPlaceholder:`search-placeholder`,selectedText:`selected-text`},U=600,W=0;function G(e){return Array.isArray(e)}var K=class extends r.ElementBase{_uid;_nodes;_hasNodes;_valuesSet;_pending;_values;_expanded;_query;_focusId;_rows;_ready;_typed;_unsubscribe;_onClick;_onInput;_onKeyDown;_onFocusIn;static get observedAttributes(){return[`selection`,`name`,`disabled`,`invalid`,`aria-label`,`aria-labelledby`,...Object.values(H)]}constructor(){super(),this._uid=`wui-tree-picker-${++W}`,this._nodes=[],this._hasNodes=!1,this._valuesSet=!1,this._pending=null,this._values=[],this._expanded=new Set,this._query=``,this._focusId=null,this._rows=[],this._ready=!1,this._typed={text:``,at:0},this._unsubscribe=null,this._onClick=e=>this._handleClick(e),this._onInput=e=>this._handleInput(e),this._onKeyDown=e=>this._handleKeyDown(e),this._onFocusIn=e=>{let t=this._rowIdFrom(e.target);t!==null&&t!==this._focusId&&this._setRoving(t)}}connectedCallback(){let e=new Map;for(let t of V)Object.hasOwn(this,t)&&(e.set(t,Reflect.get(this,t)),Reflect.deleteProperty(this,t));if(!this._ready){this._ready=!0;let e=this._readScript();e&&this._adopt(e)}for(let[t,n]of e)Reflect.set(this,t,n);!this._valuesSet&&this._pending===null&&this.hasAttribute(`values`)&&(this._pending=this._readValuesAttribute(),this._hasNodes&&this._adopt(this._nodes)),this.addEventListener(`click`,this._onClick),this.addEventListener(`input`,this._onInput),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusin`,this._onFocusIn),this._unsubscribe=(0,a.subscribeText)(()=>this._render()),this._render(),this._syncForm()}disconnectedCallback(){this.removeEventListener(`click`,this._onClick),this.removeEventListener(`input`,this._onInput),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusin`,this._onFocusIn),this._unsubscribe?.(),this._unsubscribe=null}attributeChangedCallback(e){e===`selection`&&this._normalise(),this._ready&&this.isConnected&&(this._render(),(e===`selection`||e===`name`)&&this._syncForm())}get nodes(){return[...this._nodes]}set nodes(e){this._adopt(e??[]),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get values(){return[...this._values]}set values(e){this._valuesSet=!0,this._pending=null,this._values=(e??[]).map(String),this._normalise(),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get selection(){return this.getAttribute(`selection`)===`single`?`single`:`multiple`}set selection(e){this.setAttribute(`selection`,String(e))}get name(){return this.getAttribute(`name`)}set name(e){e==null?this.removeAttribute(`name`):this.setAttribute(`name`,String(e))}_readScript(){let e=this.querySelector(`:scope > script[type='application/json']`);if(!e)return null;try{let t=JSON.parse(e.textContent??``);return G(t)?t:((0,n.devError)(`[@webority/ui-elements] <wui-tree-picker> JSON nodes must be an array.`),null)}catch(e){return(0,n.devError)(`[@webority/ui-elements] <wui-tree-picker> could not read its JSON nodes:`,e instanceof Error?e.message:void 0),null}}_adopt(e){if(!G(e))throw Error(`<wui-tree-picker> nodes must be an array.`);let t=j(e),n=this._pending!==null&&!this._valuesSet?this._checkInitial(t.byId,this._pending):null;this._nodes=e,this._hasNodes=!0,n!==null&&(this._values=n,this._pending=null),this._normalise();let r=new Set(j(e).rows.map(e=>e.id));for(let e of[...this._expanded])r.has(e)||this._expanded.delete(e);this._focusId!==null&&!r.has(this._focusId)&&(this._focusId=null)}_readValuesAttribute(){let e=this.getAttribute(`values`)??``,t;try{t=JSON.parse(e)}catch{throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`)}if(!Array.isArray(t)||!t.every(e=>typeof e==`string`))throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`);if(this.selection===`single`&&t.length>1)throw Error(`<wui-tree-picker> single selection takes one value, got ${t.length}.`);return t}_checkInitial(e,t){for(let n of t){let t=e.get(n);if(t===void 0||t.hasChildren)throw Error(`<wui-tree-picker> values id "${n}" is not a leaf of the tree.`)}return[...new Set(t)]}_normalise(){if(!this._hasNodes)return;let e=I(this._nodes,this._values);this._values=this.selection===`single`?e.slice(0,1):e}_text(){let e=(0,a.readText)(`treePicker`,l),t=t=>this.getAttribute(H[t])??e[t];return{chosenTitle:t(`chosenTitle`),clearAllLabel:t(`clearAllLabel`),emptyTitle:t(`emptyTitle`),emptyText:t(`emptyText`),noMatchText:t(`noMatchText`),removeLabel:t(`removeLabel`),searchLabel:t(`searchLabel`),searchPlaceholder:t(`searchPlaceholder`),selectedText:t(`selectedText`)}}_visible(){let e=B(this._nodes,this._query),t=new Set(this._expanded);for(let n of e.expanded)t.add(n);return A(e.nodes,t).rows}_isOpen(e){return this._expanded.has(e)?!0:this._query.trim()!==``&&B(this._nodes,this._query).expanded.has(e)}_render(){if(!this._ready)return;let e=document.activeElement,t=e instanceof HTMLElement&&this.contains(e)&&e.getAttribute(`role`)===`treeitem`,n=B(this._nodes,this._query),r=new Set(this._expanded);for(let e of n.expanded)r.add(e);let i=A(n.nodes,r).rows;this._rows=i,i.some(e=>e.id===this._focusId)||(this._focusId=i[0]?.id??null);let o=new Set(this._values),s=new Map(j(this._nodes).rows.map(e=>[e.id,e])),c=this._values.flatMap(e=>{let t=s.get(e);if(t===void 0)return[];let n=t.parentId===null?void 0:s.get(t.parentId);return[{id:e,label:t.label,group:n?.label??null}]}),l=this._text();w(this,{rows:i,checkOf:e=>M(s.get(e.id)??e,o),focusId:this._focusId,expanded:r,query:this._query,chosen:c,selection:this.selection,disabled:this.hasAttribute(`disabled`),invalid:this.hasAttribute(`invalid`),status:(0,a.fillText)(l.selectedText,{n:c.length}),text:l,uid:this._uid});let u=this.querySelector(`[role='tree']`),d=this.getAttribute(`aria-label`),f=d?null:this.getAttribute(`aria-labelledby`);d?u?.setAttribute(`aria-label`,d):u?.removeAttribute(`aria-label`),f?u?.setAttribute(`aria-labelledby`,f):u?.removeAttribute(`aria-labelledby`),t&&this._focusRow(this._focusId)}_syncForm(){(0,i.syncFormMirrors)(this,this._values)}_emit(){this.dispatchEvent(new CustomEvent(`wui-tree-picker:change`,{detail:{values:[...this._values],value:z(this.selection,this._values)},bubbles:!0,composed:!0}))}_commit(e){let t=I(this._nodes,e);t.length===this._values.length&&t.every((e,t)=>e===this._values[t])||(this._values=t,this._render(),this._syncForm(),this._emit())}_rowItems(){return[...this.querySelectorAll(`[role='treeitem']`)]}_rowEl(e){return e===null?void 0:this._rowItems().find(t=>t.dataset.id===e)}_rowIdFrom(e){return!(e instanceof HTMLElement)||e.getAttribute(`role`)!==`treeitem`?null:e.dataset.id??null}_setRoving(e){let t=this._rowEl(this._focusId);t&&(t.tabIndex=-1),this._focusId=e;let n=this._rowEl(e);n&&(n.tabIndex=0)}_focusRow(e){e!==null&&(this._setRoving(e),this._rowEl(e)?.focus())}_pick(e){let t=this._rows.find(t=>t.id===e);t!==void 0&&(this._setRoving(e),this.selection===`single`&&t.hasChildren?this._toggleOpen(e):(this._commit(P(this._nodes,this.selection,this._values,e)),this._focusRow(e)))}_toggleOpen(e){this._expanded.has(e)?this._expanded.delete(e):this._expanded.add(e),this._render()}_handleClick(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`[data-wui-action]`);if(!n||!this.contains(n))return;let r=n.dataset.id??``;switch(n.dataset.wuiAction){case`expand`:this._setRoving(r),this._toggleOpen(r),this._focusRow(r);break;case`pick`:this._pick(r);break;case`remove`:n.focus(),this._commit(R(this._values,r));break;case`clear`:n.focus(),this._commit(L())}}_handleInput(e){if(this.hasAttribute(`disabled`))return;let t=e.target;t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`&&(this._query=t.value,this._render())}_handleKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof HTMLElement))return;let n={key:e.key,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,isComposing:e.isComposing,keyCode:e.keyCode};if(t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`){this._searchKey(e,n);return}let r=this._rowIdFrom(t);if(r===null)return;let i=this._rows.find(e=>e.id===r);if(i===void 0)return;let a=h(n,{mode:this.selection,open:!0,searchEmpty:this._query===``,row:i,expanded:i.hasChildren&&this._isOpen(r),hasParent:i.parentId!==null});if(a.type!==`none`&&a.type!==`open`&&a.type!==`close`)switch(e.preventDefault(),a.type){case`move`:this._move(i,a.to);break;case`expand`:this._expanded.add(r),this._render();break;case`collapse`:this._expanded.delete(r),this._render();break;case`focusParent`:this._focusRow(i.parentId);break;case`focusFirstChild`:{let e=this._rows[i.index+1];e?.parentId===r&&this._focusRow(e.id);break}case`toggle`:case`choose`:this._pick(r);break;case`removeLastChip`:{let e=this._values[this._values.length-1];e!==void 0&&this._commit(R(this._values,e));break}case`typeahead`:this._typeahead(i,a.char)}}_searchKey(e,t){let n=h(t,{mode:this.selection,open:!1,searchEmpty:this._query===``,row:null,expanded:!1,hasParent:!1});if(n.type===`removeLastChip`){let t=this._values[this._values.length-1];if(t===void 0)return;e.preventDefault(),this._commit(R(this._values,t))}else n.type===`open`&&(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),this._focusRow(this._focusId??this._rows[0]?.id??null))}_move(e,t){let n=this._rows,r=t===`first`?n[0]:t===`last`?n[n.length-1]:n[e.index+(t===`next`?1:-1)];r&&this._focusRow(r.id)}_typeahead(e,t){let n=Date.now(),r=n-this._typed.at>U?t:this._typed.text+t;this._typed={text:r,at:n};let i=r.toLowerCase(),a=this._rows,o=r.length===1?e.index+1:e.index;for(let e=0;e<a.length;e++){let t=a[(o+e)%a.length];if(t?.label.toLowerCase().startsWith(i)){this._focusRow(t.id);return}}}};(0,t.defineElement)(`wui-tree-picker`,K),e.WuiTreePicker=K})(this.WeborityUiElements=this.WeborityUiElements||{},WeborityUiElementsInternal.modules.defineElement,WeborityUiElementsInternal.modules.devWarn,WeborityUiElementsInternal.modules.elementBase,WeborityUiElementsInternal.modules.formMirror,WeborityUiElementsInternal.modules.textStore,WeborityUiElementsInternal.modules.buttonClass,WeborityUiElementsInternal.modules.iconGlyphs);
|