@paperless/core 0.1.0-alpha.93 → 0.1.0-alpha.96

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.
Files changed (182) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/build/{p-130cf3bf.entry.js → p-0d70c55f.entry.js} +1 -1
  3. package/dist/build/{p-b0e40788.entry.js → p-1b98288f.entry.js} +1 -1
  4. package/dist/build/{p-4bdad085.entry.js → p-25198b24.entry.js} +1 -1
  5. package/dist/build/{p-b907dfa2.entry.js → p-2a0959e5.entry.js} +1 -1
  6. package/dist/build/p-2dd556e2.entry.js +1 -0
  7. package/dist/build/p-3a2cf6eb.entry.js +1 -0
  8. package/dist/build/{p-525e869e.entry.js → p-407db966.entry.js} +1 -1
  9. package/dist/build/p-4d70ec7d.js +2 -0
  10. package/dist/{paperless/p-d840b591.entry.js → build/p-5a1c29a0.entry.js} +1 -1
  11. package/dist/{paperless/p-e1fb3cc4.entry.js → build/p-5ad4da43.entry.js} +1 -1
  12. package/dist/build/{p-605baf6b.entry.js → p-5cf00406.entry.js} +1 -1
  13. package/dist/build/{p-493f54f5.entry.js → p-647a5ce0.entry.js} +1 -1
  14. package/dist/build/{p-98cbd176.entry.js → p-699ee4c5.entry.js} +1 -1
  15. package/dist/{paperless/p-63707c21.entry.js → build/p-727d7075.entry.js} +1 -1
  16. package/dist/build/{p-e0e4c3a1.entry.js → p-737b61be.entry.js} +1 -1
  17. package/dist/build/p-769abdaf.entry.js +1 -0
  18. package/dist/build/{p-92b7c5bf.entry.js → p-99fbfb12.entry.js} +1 -1
  19. package/dist/build/{p-8c86e126.entry.js → p-9dc4800e.entry.js} +1 -1
  20. package/dist/build/{p-a4605f92.entry.js → p-9ed56df0.entry.js} +1 -1
  21. package/dist/build/p-a8f73335.entry.js +1 -0
  22. package/dist/build/{p-1b07a1d7.entry.js → p-b4afb81b.entry.js} +1 -1
  23. package/dist/build/{p-328a57e3.entry.js → p-b54edf07.entry.js} +1 -1
  24. package/dist/build/{p-88ba16f2.entry.js → p-b626b4bc.entry.js} +1 -1
  25. package/dist/build/{p-bf7c23b9.entry.js → p-baba639b.entry.js} +1 -1
  26. package/dist/build/{p-04fe5795.entry.js → p-c4c7c07b.entry.js} +1 -1
  27. package/dist/build/{p-9336b7d2.entry.js → p-d676fecf.entry.js} +1 -1
  28. package/dist/build/{p-8fc9ce8a.entry.js → p-d7f022ac.entry.js} +1 -1
  29. package/dist/build/{p-d0fa1db4.entry.js → p-db62fa0f.entry.js} +1 -1
  30. package/dist/{paperless/p-847b8ca7.entry.js → build/p-e1937315.entry.js} +1 -1
  31. package/dist/build/{p-f8a80027.entry.js → p-eedc960d.entry.js} +1 -1
  32. package/dist/{paperless/p-144b1a05.entry.js → build/p-f560b80f.entry.js} +1 -1
  33. package/dist/build/{p-7dafe476.entry.js → p-f82c9ab6.entry.js} +1 -1
  34. package/dist/build/{p-9cf9c628.entry.js → p-f9ef9d25.entry.js} +1 -1
  35. package/dist/build/{p-59b10536.entry.js → p-fa6d3cee.entry.js} +1 -1
  36. package/dist/build/{p-ab459d05.entry.js → p-faf607d9.entry.js} +1 -1
  37. package/dist/build/paperless.esm.js +1 -1
  38. package/dist/cjs/{index-0aa7c87d.js → index-5fdb82a1.js} +37 -4
  39. package/dist/cjs/loader.cjs.js +3 -3
  40. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  41. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  42. package/dist/cjs/p-avatar_2.cjs.entry.js +2 -2
  43. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  44. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  45. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  46. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  47. package/dist/cjs/p-content-slider.cjs.entry.js +63 -33
  48. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  49. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  50. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +1 -1
  51. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +1 -1
  52. package/dist/cjs/p-helper.cjs.entry.js +1 -1
  53. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  54. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  55. package/dist/cjs/p-input-group.cjs.entry.js +1 -1
  56. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  57. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +1 -1
  58. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  59. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  60. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  61. package/dist/cjs/p-pagination-item.cjs.entry.js +1 -1
  62. package/dist/cjs/p-pagination.cjs.entry.js +1 -1
  63. package/dist/cjs/p-profile.cjs.entry.js +2 -2
  64. package/dist/cjs/p-segment-container.cjs.entry.js +1 -1
  65. package/dist/cjs/p-segment-item.cjs.entry.js +1 -1
  66. package/dist/cjs/p-slider-indicator.cjs.entry.js +2 -2
  67. package/dist/cjs/p-status.cjs.entry.js +1 -1
  68. package/dist/cjs/p-stepper-item_2.cjs.entry.js +1 -1
  69. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  70. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  71. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  72. package/dist/cjs/p-tag.cjs.entry.js +1 -1
  73. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  74. package/dist/cjs/paperless.cjs.js +3 -3
  75. package/dist/collection/collection-manifest.json +1 -1
  76. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -1
  77. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  78. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  79. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  80. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +1 -1
  81. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  82. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  83. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  84. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  85. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -1
  86. package/dist/collection/components/molecules/content-slider/content-slider.component.css +12 -13
  87. package/dist/collection/components/molecules/content-slider/content-slider.component.js +70 -37
  88. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  89. package/dist/collection/components/molecules/profile/profile.component.css +1 -1
  90. package/dist/components/avatar.component.js +1 -1
  91. package/dist/components/index.d.ts +42 -42
  92. package/dist/components/p-content-slider.js +65 -33
  93. package/dist/components/p-profile.js +1 -1
  94. package/dist/components/slider-indicator.component.js +1 -1
  95. package/dist/esm/{index-877dd68e.js → index-ba915982.js} +37 -4
  96. package/dist/esm/loader.js +3 -3
  97. package/dist/esm/p-accordion.entry.js +1 -1
  98. package/dist/esm/p-avatar-group.entry.js +1 -1
  99. package/dist/esm/p-avatar_2.entry.js +2 -2
  100. package/dist/esm/p-button_3.entry.js +1 -1
  101. package/dist/esm/p-card-body.entry.js +1 -1
  102. package/dist/esm/p-card-container.entry.js +1 -1
  103. package/dist/esm/p-card-header.entry.js +1 -1
  104. package/dist/esm/p-content-slider.entry.js +63 -33
  105. package/dist/esm/p-counter.entry.js +1 -1
  106. package/dist/esm/p-divider.entry.js +1 -1
  107. package/dist/esm/p-dropdown-menu-container.entry.js +1 -1
  108. package/dist/esm/p-dropdown-menu-item.entry.js +1 -1
  109. package/dist/esm/p-helper.entry.js +1 -1
  110. package/dist/esm/p-illustration.entry.js +1 -1
  111. package/dist/esm/p-info-panel.entry.js +1 -1
  112. package/dist/esm/p-input-group.entry.js +1 -1
  113. package/dist/esm/p-layout.entry.js +1 -1
  114. package/dist/esm/p-modal-backdrop_5.entry.js +1 -1
  115. package/dist/esm/p-modal.entry.js +1 -1
  116. package/dist/esm/p-navbar.entry.js +1 -1
  117. package/dist/esm/p-navigation-item.entry.js +1 -1
  118. package/dist/esm/p-pagination-item.entry.js +1 -1
  119. package/dist/esm/p-pagination.entry.js +1 -1
  120. package/dist/esm/p-profile.entry.js +2 -2
  121. package/dist/esm/p-segment-container.entry.js +1 -1
  122. package/dist/esm/p-segment-item.entry.js +1 -1
  123. package/dist/esm/p-slider-indicator.entry.js +2 -2
  124. package/dist/esm/p-status.entry.js +1 -1
  125. package/dist/esm/p-stepper-item_2.entry.js +1 -1
  126. package/dist/esm/p-stepper.entry.js +1 -1
  127. package/dist/esm/p-tab-group.entry.js +1 -1
  128. package/dist/esm/p-tab-item.entry.js +1 -1
  129. package/dist/esm/p-tag.entry.js +1 -1
  130. package/dist/esm/p-tooltip.entry.js +1 -1
  131. package/dist/esm/paperless.js +3 -3
  132. package/dist/index.html +1 -1
  133. package/dist/paperless/{p-130cf3bf.entry.js → p-0d70c55f.entry.js} +1 -1
  134. package/dist/paperless/{p-b0e40788.entry.js → p-1b98288f.entry.js} +1 -1
  135. package/dist/paperless/{p-4bdad085.entry.js → p-25198b24.entry.js} +1 -1
  136. package/dist/paperless/{p-b907dfa2.entry.js → p-2a0959e5.entry.js} +1 -1
  137. package/dist/paperless/p-2dd556e2.entry.js +1 -0
  138. package/dist/paperless/p-3a2cf6eb.entry.js +1 -0
  139. package/dist/paperless/{p-525e869e.entry.js → p-407db966.entry.js} +1 -1
  140. package/dist/paperless/p-4d70ec7d.js +2 -0
  141. package/dist/{build/p-d840b591.entry.js → paperless/p-5a1c29a0.entry.js} +1 -1
  142. package/dist/{build/p-e1fb3cc4.entry.js → paperless/p-5ad4da43.entry.js} +1 -1
  143. package/dist/paperless/{p-605baf6b.entry.js → p-5cf00406.entry.js} +1 -1
  144. package/dist/paperless/{p-493f54f5.entry.js → p-647a5ce0.entry.js} +1 -1
  145. package/dist/paperless/{p-98cbd176.entry.js → p-699ee4c5.entry.js} +1 -1
  146. package/dist/{build/p-63707c21.entry.js → paperless/p-727d7075.entry.js} +1 -1
  147. package/dist/paperless/{p-e0e4c3a1.entry.js → p-737b61be.entry.js} +1 -1
  148. package/dist/paperless/p-769abdaf.entry.js +1 -0
  149. package/dist/paperless/{p-92b7c5bf.entry.js → p-99fbfb12.entry.js} +1 -1
  150. package/dist/paperless/{p-8c86e126.entry.js → p-9dc4800e.entry.js} +1 -1
  151. package/dist/paperless/{p-a4605f92.entry.js → p-9ed56df0.entry.js} +1 -1
  152. package/dist/paperless/p-a8f73335.entry.js +1 -0
  153. package/dist/paperless/{p-1b07a1d7.entry.js → p-b4afb81b.entry.js} +1 -1
  154. package/dist/paperless/{p-328a57e3.entry.js → p-b54edf07.entry.js} +1 -1
  155. package/dist/paperless/{p-88ba16f2.entry.js → p-b626b4bc.entry.js} +1 -1
  156. package/dist/paperless/{p-bf7c23b9.entry.js → p-baba639b.entry.js} +1 -1
  157. package/dist/paperless/{p-04fe5795.entry.js → p-c4c7c07b.entry.js} +1 -1
  158. package/dist/paperless/{p-9336b7d2.entry.js → p-d676fecf.entry.js} +1 -1
  159. package/dist/paperless/{p-8fc9ce8a.entry.js → p-d7f022ac.entry.js} +1 -1
  160. package/dist/paperless/{p-d0fa1db4.entry.js → p-db62fa0f.entry.js} +1 -1
  161. package/dist/{build/p-847b8ca7.entry.js → paperless/p-e1937315.entry.js} +1 -1
  162. package/dist/paperless/{p-f8a80027.entry.js → p-eedc960d.entry.js} +1 -1
  163. package/dist/{build/p-144b1a05.entry.js → paperless/p-f560b80f.entry.js} +1 -1
  164. package/dist/paperless/{p-7dafe476.entry.js → p-f82c9ab6.entry.js} +1 -1
  165. package/dist/paperless/{p-9cf9c628.entry.js → p-f9ef9d25.entry.js} +1 -1
  166. package/dist/paperless/{p-59b10536.entry.js → p-fa6d3cee.entry.js} +1 -1
  167. package/dist/paperless/{p-ab459d05.entry.js → p-faf607d9.entry.js} +1 -1
  168. package/dist/paperless/paperless.esm.js +1 -1
  169. package/dist/sw.js +1 -1
  170. package/dist/sw.js.map +1 -1
  171. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +10 -3
  172. package/package.json +8 -8
  173. package/dist/build/p-10cfb50e.entry.js +0 -1
  174. package/dist/build/p-2cd125cc.js +0 -2
  175. package/dist/build/p-4d87de71.entry.js +0 -1
  176. package/dist/build/p-9aff0409.entry.js +0 -1
  177. package/dist/build/p-f073bd80.entry.js +0 -1
  178. package/dist/paperless/p-10cfb50e.entry.js +0 -1
  179. package/dist/paperless/p-2cd125cc.js +0 -2
  180. package/dist/paperless/p-4d87de71.entry.js +0 -1
  181. package/dist/paperless/p-9aff0409.entry.js +0 -1
  182. package/dist/paperless/p-f073bd80.entry.js +0 -1
@@ -1,2 +0,0 @@
1
- let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),$=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=p(e,n),r=d(t,o),c=h(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},d=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},p=(e,t)=>4&t?i:8&t?c:e,h=e=>0!=(2&e),m=new WeakMap,y=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?S(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,j);const f=S(e,null);return f.h=t,c.length>0&&(f.m=c),f.v=o,f},S=(e,t)=>({t:0,S:e,p:t,g:null,m:null,h:null,v:null}),g={},j={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(M)},k=e=>({vattrs:e.h,vchildren:e.m,vkey:e.j,vname:e.v,vtag:e.S,vtext:e.p}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.h=e.vattrs,t.m=e.vchildren,t.j=e.vkey,t.v=e.vname,t},O=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},C=/\s/,R=e=>e?e.split(C):[],T=(e,t,n,l)=>{const o=11===t.g.nodeType&&t.g.host?t.g.host:t.g,s=e&&e.h||b,r=t.h||b;for(l in s)l in r||O(o,l,s[l],void 0,n,t.t);for(l in r)O(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,$,d,p=0;if(l||(s=!0,"slot"===a.S&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.p)u=a.g=i.createTextNode(a.p);else if(1&a.t)u=a.g=i.createTextNode("");else if(u=a.g=i.createElement(2&a.t?"slot-fb":a.S),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(p=0;p<a.m.length;++p)$=x(o,a,p,u),$&&u.appendChild($);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",d=o&&o.m&&o.m[c],d&&d.S===a.S&&o.g&&E(o.g,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(A(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},L=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].g=c,i.insertBefore(c,W(t))))},N=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.g,V(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},P=(e,t)=>e.S===t.S&&("slot"!==e.S||e.v===t.v),W=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,F=(e,t)=>{const n=t.g=e.g,l=e.m,o=t.m,s=t.p;let r;null===s?("slot"===t.S||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],$=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==$?$=l[--a]:P(i,u)?(F(i,u),i=t[++s],u=l[++r]):P(f,$)?(F(f,$),f=t[--c],$=l[--a]):P(i,$)?("slot"!==i.S&&"slot"!==$.S||E(i.g.parentNode,!1),F(i,$),e.insertBefore(i.g,f.g.nextSibling),i=t[++s],$=l[--a]):P(f,u)?("slot"!==i.S&&"slot"!==$.S||E(f.g.parentNode,!1),F(f,u),e.insertBefore(f.g,i.g),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&A(i.g).insertBefore(o,W(i.g)));s>c?L(e,null==l[a+1]?null:l[a+1].g,n,l,r,a):r>a&&N(t,s,c)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),L(n,null,t,o,0,o.length-1)):null!==l&&N(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},H=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}H(n)}},U=[],q=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(D(n,s)?(r=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:U.push({M:t,k:n}),n["s-sr"]&&U.map((e=>{D(e.k,n["s-sn"])&&(r=U.find((e=>e.k===n)),r&&!e.M&&(e.M=r.M))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&q(t)}},D=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,V=e=>{e.h&&e.h.ref&&e.h.ref(null),e.m&&e.m.map(V)},_=e=>se(e).O,z=(e,t,n)=>{const l=_(e);return{emit:e=>B(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},B=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null),l=Z(n,"componentWillLoad")),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.O,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.O,l=t.t,o=((e,t)=>{let n=y(t);const l=$e.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=m.get(e=e.head||e);o||m.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.O,u=r.T,$=r.L||S(null,null),d=(e=>e&&e.S===g)(c)?c:v(null,null,c);if(n=a.tagName,u.N&&(d.h=d.h||{},u.N.map((([e,t])=>d.h[t]=a[e]))),d.S=null,d.t|=4,r.L=d,d.g=$.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,F($,d),f.t|=1,s){let e,t,n,l,o,s;q(d.g);let r=0;for(;r<U.length;r++)e=U[r],t=e.k,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<U.length;r++)if(e=U[r],t=e.k,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&H(d.g),f.t&=-2,U.length=0})(r,c)}catch(e){fe(e,r.O)}return null},X=e=>{const t=e.O,n=e.i,l=e.R;64&e.t||(e.t|=64,te(t),Z(n,"componentDidLoad"),e.P(t),l||Y()),e.C&&(e.C(),e.C=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>B(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.W){e.watchers&&(t.A=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).F.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.O,r=o.F.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.F.set(t,n),i)){if(l.A&&128&c){const e=l.A[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),d=[];let p,h=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],H:t[3]};s.W=t[2],s.H=t[3],s.N=[],s.A={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),h?d.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)$(e,t,n.H);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.A=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=y(n);if(!$e.has(t)){const l=()=>{};((e,t,n)=>{let l=$e.get(e);u&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,$e.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return se(this).U}};s.q=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),h=!1,d.length?d.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,O:e,T:t,F:new Map};return n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],$(e,n,t.H),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.q,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},$e=new Map,de=[],pe=[],he=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&f.t?be(ye):f.raf(ye))},me=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},ye=()=>{me(de),me(pe),(r=de.length>0)&&f.raf(ye)},be=e=>a().then(e),we=he(pe,!0);export{g as H,le as b,z as c,_ as g,v as h,a as p,re as r}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s,c as a,g as e}from"./p-2cd125cc.js";import{c as o}from"./p-a7086ffa.js";const r=class{constructor(i){t(this,i),this.variant="user",this.size="medium",this._src=this.src}render(){return this._src||this._setDefaultLink(),i(s,{class:"p-avatar"},i("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var t;this._src=null!==(t=this.defaultImage)&&void 0!==t?t:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};r.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-8{width:2rem!important}.w-\\[3\\.125rem\\]{width:3.125rem!important}.w-16{width:4rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}*{box-sizing:border-box}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2rem;width:2rem}p-avatar[size=medium]>img{height:3.125rem;width:3.125rem}p-avatar[size=large]>img{height:4rem;width:4rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";const n=class{constructor(i){t(this,i),this.isOpen=a(this,"isOpen",7),this.placement="bottom-start",this.strategy="fixed",this.show=!1,this.insideClick=!1,this.disableTriggerClick=!1,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this._loaded&&this.show&&this._show()}render(){return i(s,{class:"p-dropdown"},i("div",{class:"trigger",onClick:()=>this._triggerClickHandler()},i("slot",{onSlotchange:t=>this._checkButton(t),name:"trigger"})),i("p-dropdown-menu-container",{role:"popover",ref:t=>this._load(t),onClick:()=>this._containerClickHandler()},i("slot",{name:"items"})))}_checkButton({target:t}){const i=t.assignedElements();for(let t of i)"P-BUTTON"===t.nodeName&&(t.chevron=this.placement.indexOf("top")>=0?"up":"down")}_containerClickHandler(){this.insideClick||this._menu.hasAttribute("data-show")&&this._hide()}_triggerClickHandler(){this.disableTriggerClick||(this._menu.hasAttribute("data-show")?this._hide():this._show())}documentClickHandler({target:t}){this._menu.hasAttribute("data-show")&&!((t,i)=>{for(;(t=t.parentNode)&&t!==i;);return!!t})(t,this._el)&&this._hide()}_load(t){this._menu=t,t&&(this._popper=o(this._el,t,{strategy:this.strategy}),this._setOptions(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_setOptions(){this._popper&&this._popper.setOptions({placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}_show(){this._loaded&&(this._menu.setAttribute("data-show",""),this.isOpen.emit(!0),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){this._loaded&&!this.show&&(this._menu.removeAttribute("data-show"),this.isOpen.emit(!1),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}get _el(){return e(this)}};n.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.hidden{display:none!important}.w-auto{width:auto!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}:host{position:relative}:host .trigger{height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}";export{r as p_avatar,n as p_dropdown}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as r,g as e}from"./p-2cd125cc.js";const i=class{constructor(o){t(this,o),this.variant="user",this.size="small",this._dropdownOpen=!1}render(){const t=!!this._el.querySelector('[slot="dropdown"]'),e=this._getContent(t);return o(r,{class:`p-profile ${t&&"has-dropdown"} ${this._dropdownOpen&&"active"}`},t?o("p-dropdown",{class:"w-full min-w-0",strategy:"absolute",placement:"user"===this.variant?"top-end":"bottom-end",onIsOpen:t=>this._dropdownOpen=t.detail},e,o("div",{slot:"items"},o("slot",{name:"dropdown"}))):e)}_getContent(t){const r=this._generateAvatar();return o("div",{class:"content",slot:"trigger"},r,o("div",{class:"name"},o("slot",{name:"title"}),o("slot",{name:"subtitle"})),t&&this._getIcon())}_generateAvatar(){var t,r,e;const i=this._el.querySelector('p-avatar[slot="avatar"]');if(i)return o("p-avatar",{class:"flex",src:null!==(t=i.src)&&void 0!==t?t:null,"default-image":null!==(r=i.defaultImage)&&void 0!==r?r:null,variant:null!==(e=this.variant)&&void 0!==e?e:i.variant,size:this.size})}_getIcon(){return o("p-icon",{class:"ml-auto",variant:"company"===this.variant?"chevron":"more"})}get _el(){return e(this)}};i.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{display:flex}:host .content{align-items:center;display:flex;gap:.75rem;height:3rem;width:100%}:host .content .name{display:flex;flex-direction:column;justify-content:center;overflow:hidden}:host .content .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .content .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}:host .content .name ::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-dropdown){cursor:pointer}:host(.has-dropdown) .content{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.25rem;border-style:solid!important;border-width:1px!important;padding-left:.5rem;padding-right:.5rem}:host(.active) .content,:host(.has-dropdown:hover) .content{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13);--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:host(.active) .content p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}";export{i as p_profile}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as r}from"./p-2cd125cc.js";const o=class{constructor(i){t(this,i),this.hideMobileIndicator=!1,this.disableDrag=!1,this.disableIndicatorClick=!1,this._items=[],this._pos={top:0,left:0,x:0,y:0},this._dragging=!1}componentWillRender(){const t=this._el.querySelectorAll(":scope > *");this._items=Array.from(t)}componentDidLoad(){this._calculateIndicator()}render(){return i(e,{class:"p-content-slider"},i("div",{class:`content ${!this.disableDrag&&"draggable"} ${this._dragging&&"dragging"}`,ref:t=>this._contentRef=t,onScroll:()=>this._handleScroll(),onMouseDown:t=>this._mouseDownHandler(t)},i("slot",null)),i("div",{class:`indicator ${this.hideMobileIndicator&&"hidden"}`},this._items.map(((t,e)=>i("p-slider-indicator",{class:!this.disableIndicatorClick&&"cursor-pointer",onClick:()=>this._scrollTo(e),active:e===this._visibleIndex})))))}_handleScroll(){this._scrollHandlerTimeout&&clearTimeout(this._scrollHandlerTimeout),this._scrollHandlerTimeout=setTimeout((()=>this._calculateIndicator()),200)}_mouseDownHandler(t){this.disableDrag||this._dragging||(this._pos={left:this._contentRef.scrollLeft,top:this._contentRef.scrollTop,x:t.clientX,y:t.clientY},this._dragging=!0)}mouseMoveHandler(t){if(!t||!this._dragging||this.disableDrag)return;const i=t.clientX-this._pos.x;this._contentRef.scrollTop=this._pos.top-(t.clientY-this._pos.y),this._contentRef.scrollLeft=this._pos.left-i}mouseUpHandler(){this._dragging=!1}_calculateIndicator(){for(let t=0;t<this._items.length;t++){const i=this._isVisible(this._items[t]);if(i&&(this._visibleIndex=t),0===t&&i)break}}_isVisible(t){if(!this._el||!this._contentRef||!t)return!1;const i=t.getBoundingClientRect(),e=this._el.getBoundingClientRect();return i.left>e.left&&i.right<e.right}_scrollTo(t){if(this.disableIndicatorClick)return;const i=this._items[t],e=getComputedStyle(i.offsetParent),r=parseInt(e.gap.replace("px","")),o=parseInt(e.paddingLeft.replace("px",""))+parseInt(e.paddingRight.replace("px",""));this._contentRef.scrollTo({left:i.offsetLeft-r-o-i.clientWidth/2,behavior:"smooth"})}get _el(){return r(this)}};o.style=".visible{visibility:visible!important}.static{position:static!important}.relative{position:relative!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-grab{cursor:-webkit-grab!important;cursor:grab!important}.cursor-grabbing{cursor:-webkit-grabbing!important;cursor:grabbing!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.overflow-x-auto{overflow-x:auto!important}.p-4{padding:1rem!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;gap:1rem;margin-left:-1rem;margin-right:-1rem}:host .content{align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;margin-bottom:-1rem;margin-top:-1rem;overflow-x:auto;padding:1rem;position:relative}@media (min-width:40rem){:host .content{gap:1rem}}@media (min-width:64rem){:host .content{flex-wrap:wrap}}:host .content.draggable{cursor:-webkit-grab;cursor:grab}@media (min-width:64rem){:host .content.draggable{cursor:default}}:host .content.draggable.dragging{cursor:-webkit-grabbing;cursor:grabbing}@media (min-width:64rem){:host .content.draggable.dragging{cursor:default}}:host .content>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .content>::slotted(*){width:45%}}@media (min-width:64rem){:host .content>::slotted(*){flex:1 1 0%;width:100%}}:host .content::-webkit-scrollbar{display:none}:host .indicator{align-items:center;display:flex;gap:.5rem;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}@media (min-width:40rem){.tablet\\:w-\\[45\\%\\]{width:45%!important}.tablet\\:gap-4{gap:1rem!important}}@media (min-width:64rem){.desktop-xs\\:hidden{display:none!important}}";export{o as p_content_slider}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as r}from"./p-2cd125cc.js";const o=class{constructor(i){t(this,i),this.active=!1}render(){return i(r,{class:`p-slider-indicator ${this.active&&"active"}`})}};o.style=".visible{visibility:visible!important}.static{position:static!important}.block{display:block!important}.hidden{display:none!important}.h-2{height:.5rem!important}.w-2{width:.5rem!important}.cursor-pointer{cursor:pointer!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(218 230 240/var(--tw-bg-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));border-radius:100%;display:block;height:.5rem;width:.5rem}:host(.active){--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}";export{o as p_slider_indicator}
@@ -1,2 +0,0 @@
1
- let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),$=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=p(e,n),r=d(t,o),c=h(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},d=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},p=(e,t)=>4&t?i:8&t?c:e,h=e=>0!=(2&e),m=new WeakMap,y=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?S(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,j);const f=S(e,null);return f.h=t,c.length>0&&(f.m=c),f.v=o,f},S=(e,t)=>({t:0,S:e,p:t,g:null,m:null,h:null,v:null}),g={},j={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(M)},k=e=>({vattrs:e.h,vchildren:e.m,vkey:e.j,vname:e.v,vtag:e.S,vtext:e.p}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.h=e.vattrs,t.m=e.vchildren,t.j=e.vkey,t.v=e.vname,t},O=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},C=/\s/,R=e=>e?e.split(C):[],T=(e,t,n,l)=>{const o=11===t.g.nodeType&&t.g.host?t.g.host:t.g,s=e&&e.h||b,r=t.h||b;for(l in s)l in r||O(o,l,s[l],void 0,n,t.t);for(l in r)O(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,$,d,p=0;if(l||(s=!0,"slot"===a.S&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.p)u=a.g=i.createTextNode(a.p);else if(1&a.t)u=a.g=i.createTextNode("");else if(u=a.g=i.createElement(2&a.t?"slot-fb":a.S),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(p=0;p<a.m.length;++p)$=x(o,a,p,u),$&&u.appendChild($);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",d=o&&o.m&&o.m[c],d&&d.S===a.S&&o.g&&E(o.g,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(A(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},L=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].g=c,i.insertBefore(c,W(t))))},N=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.g,V(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},P=(e,t)=>e.S===t.S&&("slot"!==e.S||e.v===t.v),W=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,F=(e,t)=>{const n=t.g=e.g,l=e.m,o=t.m,s=t.p;let r;null===s?("slot"===t.S||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],$=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==$?$=l[--a]:P(i,u)?(F(i,u),i=t[++s],u=l[++r]):P(f,$)?(F(f,$),f=t[--c],$=l[--a]):P(i,$)?("slot"!==i.S&&"slot"!==$.S||E(i.g.parentNode,!1),F(i,$),e.insertBefore(i.g,f.g.nextSibling),i=t[++s],$=l[--a]):P(f,u)?("slot"!==i.S&&"slot"!==$.S||E(f.g.parentNode,!1),F(f,u),e.insertBefore(f.g,i.g),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&A(i.g).insertBefore(o,W(i.g)));s>c?L(e,null==l[a+1]?null:l[a+1].g,n,l,r,a):r>a&&N(t,s,c)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),L(n,null,t,o,0,o.length-1)):null!==l&&N(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},H=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}H(n)}},U=[],q=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(D(n,s)?(r=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:U.push({M:t,k:n}),n["s-sr"]&&U.map((e=>{D(e.k,n["s-sn"])&&(r=U.find((e=>e.k===n)),r&&!e.M&&(e.M=r.M))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&q(t)}},D=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,V=e=>{e.h&&e.h.ref&&e.h.ref(null),e.m&&e.m.map(V)},_=e=>se(e).O,z=(e,t,n)=>{const l=_(e);return{emit:e=>B(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},B=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null),l=Z(n,"componentWillLoad")),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.O,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.O,l=t.t,o=((e,t)=>{let n=y(t);const l=$e.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=m.get(e=e.head||e);o||m.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.O,u=r.T,$=r.L||S(null,null),d=(e=>e&&e.S===g)(c)?c:v(null,null,c);if(n=a.tagName,u.N&&(d.h=d.h||{},u.N.map((([e,t])=>d.h[t]=a[e]))),d.S=null,d.t|=4,r.L=d,d.g=$.g=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,F($,d),f.t|=1,s){let e,t,n,l,o,s;q(d.g);let r=0;for(;r<U.length;r++)e=U[r],t=e.k,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<U.length;r++)if(e=U[r],t=e.k,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&H(d.g),f.t&=-2,U.length=0})(r,c)}catch(e){fe(e,r.O)}return null},X=e=>{const t=e.O,n=e.i,l=e.R;64&e.t||(e.t|=64,te(t),Z(n,"componentDidLoad"),e.P(t),l||Y()),e.C&&(e.C(),e.C=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>B(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.W){e.watchers&&(t.A=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).F.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.O,r=o.F.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.F.set(t,n),i)){if(l.A&&128&c){const e=l.A[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),d=[];let p,h=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],H:t[3]};s.W=t[2],s.H=t[3],s.N=[],s.A={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),h?d.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)$(e,t,n.H);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.A=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=y(n);if(!$e.has(t)){const l=()=>{};((e,t,n)=>{let l=$e.get(e);u&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,$e.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return se(this).U}};s.q=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),h=!1,d.length?d.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,O:e,T:t,F:new Map};return n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],$(e,n,t.H),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.q,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},$e=new Map,de=[],pe=[],he=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&f.t?be(ye):f.raf(ye))},me=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},ye=()=>{me(de),me(pe),(r=de.length>0)&&f.raf(ye)},be=e=>a().then(e),we=he(pe,!0);export{g as H,le as b,z as c,_ as g,v as h,a as p,re as r}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s,c as a,g as e}from"./p-2cd125cc.js";import{c as o}from"./p-a7086ffa.js";const r=class{constructor(i){t(this,i),this.variant="user",this.size="medium",this._src=this.src}render(){return this._src||this._setDefaultLink(),i(s,{class:"p-avatar"},i("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var t;this._src=null!==(t=this.defaultImage)&&void 0!==t?t:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};r.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-8{width:2rem!important}.w-\\[3\\.125rem\\]{width:3.125rem!important}.w-16{width:4rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}*{box-sizing:border-box}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2rem;width:2rem}p-avatar[size=medium]>img{height:3.125rem;width:3.125rem}p-avatar[size=large]>img{height:4rem;width:4rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";const n=class{constructor(i){t(this,i),this.isOpen=a(this,"isOpen",7),this.placement="bottom-start",this.strategy="fixed",this.show=!1,this.insideClick=!1,this.disableTriggerClick=!1,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this._loaded&&this.show&&this._show()}render(){return i(s,{class:"p-dropdown"},i("div",{class:"trigger",onClick:()=>this._triggerClickHandler()},i("slot",{onSlotchange:t=>this._checkButton(t),name:"trigger"})),i("p-dropdown-menu-container",{role:"popover",ref:t=>this._load(t),onClick:()=>this._containerClickHandler()},i("slot",{name:"items"})))}_checkButton({target:t}){const i=t.assignedElements();for(let t of i)"P-BUTTON"===t.nodeName&&(t.chevron=this.placement.indexOf("top")>=0?"up":"down")}_containerClickHandler(){this.insideClick||this._menu.hasAttribute("data-show")&&this._hide()}_triggerClickHandler(){this.disableTriggerClick||(this._menu.hasAttribute("data-show")?this._hide():this._show())}documentClickHandler({target:t}){this._menu.hasAttribute("data-show")&&!((t,i)=>{for(;(t=t.parentNode)&&t!==i;);return!!t})(t,this._el)&&this._hide()}_load(t){this._menu=t,t&&(this._popper=o(this._el,t,{strategy:this.strategy}),this._setOptions(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_setOptions(){this._popper&&this._popper.setOptions({placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}_show(){this._loaded&&(this._menu.setAttribute("data-show",""),this.isOpen.emit(!0),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){this._loaded&&!this.show&&(this._menu.removeAttribute("data-show"),this.isOpen.emit(!1),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}get _el(){return e(this)}};n.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.hidden{display:none!important}.w-auto{width:auto!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}:host{position:relative}:host .trigger{height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}";export{r as p_avatar,n as p_dropdown}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as r,g as e}from"./p-2cd125cc.js";const i=class{constructor(o){t(this,o),this.variant="user",this.size="small",this._dropdownOpen=!1}render(){const t=!!this._el.querySelector('[slot="dropdown"]'),e=this._getContent(t);return o(r,{class:`p-profile ${t&&"has-dropdown"} ${this._dropdownOpen&&"active"}`},t?o("p-dropdown",{class:"w-full min-w-0",strategy:"absolute",placement:"user"===this.variant?"top-end":"bottom-end",onIsOpen:t=>this._dropdownOpen=t.detail},e,o("div",{slot:"items"},o("slot",{name:"dropdown"}))):e)}_getContent(t){const r=this._generateAvatar();return o("div",{class:"content",slot:"trigger"},r,o("div",{class:"name"},o("slot",{name:"title"}),o("slot",{name:"subtitle"})),t&&this._getIcon())}_generateAvatar(){var t,r,e;const i=this._el.querySelector('p-avatar[slot="avatar"]');if(i)return o("p-avatar",{class:"flex",src:null!==(t=i.src)&&void 0!==t?t:null,"default-image":null!==(r=i.defaultImage)&&void 0!==r?r:null,variant:null!==(e=this.variant)&&void 0!==e?e:i.variant,size:this.size})}_getIcon(){return o("p-icon",{class:"ml-auto",variant:"company"===this.variant?"chevron":"more"})}get _el(){return e(this)}};i.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{display:flex}:host .content{align-items:center;display:flex;gap:.75rem;height:3rem;width:100%}:host .content .name{display:flex;flex-direction:column;justify-content:center;overflow:hidden}:host .content .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .content .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}:host .content .name ::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-dropdown){cursor:pointer}:host(.has-dropdown) .content{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.25rem;border-style:solid!important;border-width:1px!important;padding-left:.5rem;padding-right:.5rem}:host(.active) .content,:host(.has-dropdown:hover) .content{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13);--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:host(.active) .content p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}";export{i as p_profile}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as r}from"./p-2cd125cc.js";const o=class{constructor(i){t(this,i),this.hideMobileIndicator=!1,this.disableDrag=!1,this.disableIndicatorClick=!1,this._items=[],this._pos={top:0,left:0,x:0,y:0},this._dragging=!1}componentWillRender(){const t=this._el.querySelectorAll(":scope > *");this._items=Array.from(t)}componentDidLoad(){this._calculateIndicator()}render(){return i(e,{class:"p-content-slider"},i("div",{class:`content ${!this.disableDrag&&"draggable"} ${this._dragging&&"dragging"}`,ref:t=>this._contentRef=t,onScroll:()=>this._handleScroll(),onMouseDown:t=>this._mouseDownHandler(t)},i("slot",null)),i("div",{class:`indicator ${this.hideMobileIndicator&&"hidden"}`},this._items.map(((t,e)=>i("p-slider-indicator",{class:!this.disableIndicatorClick&&"cursor-pointer",onClick:()=>this._scrollTo(e),active:e===this._visibleIndex})))))}_handleScroll(){this._scrollHandlerTimeout&&clearTimeout(this._scrollHandlerTimeout),this._scrollHandlerTimeout=setTimeout((()=>this._calculateIndicator()),200)}_mouseDownHandler(t){this.disableDrag||this._dragging||(this._pos={left:this._contentRef.scrollLeft,top:this._contentRef.scrollTop,x:t.clientX,y:t.clientY},this._dragging=!0)}mouseMoveHandler(t){if(!t||!this._dragging||this.disableDrag)return;const i=t.clientX-this._pos.x;this._contentRef.scrollTop=this._pos.top-(t.clientY-this._pos.y),this._contentRef.scrollLeft=this._pos.left-i}mouseUpHandler(){this._dragging=!1}_calculateIndicator(){for(let t=0;t<this._items.length;t++){const i=this._isVisible(this._items[t]);if(i&&(this._visibleIndex=t),0===t&&i)break}}_isVisible(t){if(!this._el||!this._contentRef||!t)return!1;const i=t.getBoundingClientRect(),e=this._el.getBoundingClientRect();return i.left>e.left&&i.right<e.right}_scrollTo(t){if(this.disableIndicatorClick)return;const i=this._items[t],e=getComputedStyle(i.offsetParent),r=parseInt(e.gap.replace("px","")),o=parseInt(e.paddingLeft.replace("px",""))+parseInt(e.paddingRight.replace("px",""));this._contentRef.scrollTo({left:i.offsetLeft-r-o-i.clientWidth/2,behavior:"smooth"})}get _el(){return r(this)}};o.style=".visible{visibility:visible!important}.static{position:static!important}.relative{position:relative!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-grab{cursor:-webkit-grab!important;cursor:grab!important}.cursor-grabbing{cursor:-webkit-grabbing!important;cursor:grabbing!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.overflow-x-auto{overflow-x:auto!important}.p-4{padding:1rem!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;gap:1rem;margin-left:-1rem;margin-right:-1rem}:host .content{align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;margin-bottom:-1rem;margin-top:-1rem;overflow-x:auto;padding:1rem;position:relative}@media (min-width:40rem){:host .content{gap:1rem}}@media (min-width:64rem){:host .content{flex-wrap:wrap}}:host .content.draggable{cursor:-webkit-grab;cursor:grab}@media (min-width:64rem){:host .content.draggable{cursor:default}}:host .content.draggable.dragging{cursor:-webkit-grabbing;cursor:grabbing}@media (min-width:64rem){:host .content.draggable.dragging{cursor:default}}:host .content>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .content>::slotted(*){width:45%}}@media (min-width:64rem){:host .content>::slotted(*){flex:1 1 0%;width:100%}}:host .content::-webkit-scrollbar{display:none}:host .indicator{align-items:center;display:flex;gap:.5rem;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}@media (min-width:40rem){.tablet\\:w-\\[45\\%\\]{width:45%!important}.tablet\\:gap-4{gap:1rem!important}}@media (min-width:64rem){.desktop-xs\\:hidden{display:none!important}}";export{o as p_content_slider}