@roadtrip/components 2.29.1 → 2.30.2

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 (92) hide show
  1. package/dist/cjs/{index-38dff3de.js → index-575ae25f.js} +2 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/road-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/road-badge_11.cjs.entry.js +1 -1
  5. package/dist/cjs/road-banner.cjs.entry.js +1 -1
  6. package/dist/cjs/road-carousel.cjs.entry.js +1 -1
  7. package/dist/cjs/road-checkbox.cjs.entry.js +1 -1
  8. package/dist/cjs/road-chip.cjs.entry.js +1 -1
  9. package/dist/cjs/road-dialog.cjs.entry.js +1 -1
  10. package/dist/cjs/road-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
  12. package/dist/cjs/road-range.cjs.entry.js +7 -2
  13. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  14. package/dist/cjs/road-select-filter.cjs.entry.js +12 -1
  15. package/dist/cjs/road-toast.cjs.entry.js +1 -1
  16. package/dist/cjs/roadtrip.cjs.js +1 -1
  17. package/dist/collection/components/plate-number/plate-number.js +1 -1
  18. package/dist/collection/components/range/range.css +6 -2
  19. package/dist/collection/components/range/range.js +30 -4
  20. package/dist/collection/components/range/range.stories.js +6 -0
  21. package/dist/collection/components/select-filter/select-filter.js +42 -1
  22. package/dist/collection/components/select-filter/select-filter.stories.js +4 -1
  23. package/dist/esm/{index-d612e910.js → index-5e24bf37.js} +2 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/esm/road-accordion.entry.js +1 -1
  26. package/dist/esm/road-badge_11.entry.js +1 -1
  27. package/dist/esm/road-banner.entry.js +1 -1
  28. package/dist/esm/road-carousel.entry.js +1 -1
  29. package/dist/esm/road-checkbox.entry.js +1 -1
  30. package/dist/esm/road-chip.entry.js +1 -1
  31. package/dist/esm/road-dialog.entry.js +1 -1
  32. package/dist/esm/road-modal.entry.js +1 -1
  33. package/dist/esm/road-plate-number.entry.js +2 -2
  34. package/dist/esm/road-range.entry.js +7 -2
  35. package/dist/esm/road-rating.entry.js +1 -1
  36. package/dist/esm/road-select-filter.entry.js +12 -1
  37. package/dist/esm/road-toast.entry.js +1 -1
  38. package/dist/esm/roadtrip.js +1 -1
  39. package/dist/esm-es5/{index-d612e910.js → index-5e24bf37.js} +1 -1
  40. package/dist/esm-es5/loader.js +1 -1
  41. package/dist/esm-es5/road-accordion.entry.js +1 -1
  42. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  43. package/dist/esm-es5/road-banner.entry.js +1 -1
  44. package/dist/esm-es5/road-carousel.entry.js +1 -1
  45. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  46. package/dist/esm-es5/road-chip.entry.js +1 -1
  47. package/dist/esm-es5/road-dialog.entry.js +1 -1
  48. package/dist/esm-es5/road-modal.entry.js +1 -1
  49. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  50. package/dist/esm-es5/road-range.entry.js +1 -1
  51. package/dist/esm-es5/road-rating.entry.js +1 -1
  52. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  53. package/dist/esm-es5/road-toast.entry.js +1 -1
  54. package/dist/esm-es5/roadtrip.js +1 -1
  55. package/dist/html.html-data.json +8 -0
  56. package/dist/roadtrip/{p-217cbe8e.system.entry.js → p-070c9811.system.entry.js} +1 -1
  57. package/dist/roadtrip/p-071b7a4a.system.entry.js +1 -0
  58. package/dist/roadtrip/{p-fc3ddc8f.system.entry.js → p-0e84c69a.system.entry.js} +1 -1
  59. package/dist/roadtrip/{p-4d4403bd.system.entry.js → p-159d83fc.system.entry.js} +1 -1
  60. package/dist/roadtrip/{p-1e8c2ef4.entry.js → p-221f2b4e.entry.js} +1 -1
  61. package/dist/roadtrip/{p-d920dfb7.entry.js → p-36f67c07.entry.js} +1 -1
  62. package/dist/roadtrip/{p-8134554a.entry.js → p-44d18405.entry.js} +1 -1
  63. package/dist/roadtrip/p-54f6290f.entry.js +1 -0
  64. package/dist/roadtrip/{p-aeef53e7.system.entry.js → p-642f2d7b.system.entry.js} +1 -1
  65. package/dist/roadtrip/{p-b182a822.system.entry.js → p-6869bb9e.system.entry.js} +1 -1
  66. package/dist/roadtrip/{p-374713ec.entry.js → p-7781ae98.entry.js} +1 -1
  67. package/dist/roadtrip/{p-415986e7.system.entry.js → p-7f6d428f.system.entry.js} +1 -1
  68. package/dist/roadtrip/{p-c93a46dd.system.entry.js → p-80e9520b.system.entry.js} +1 -1
  69. package/dist/roadtrip/{p-6a78da80.js → p-8483d855.js} +1 -1
  70. package/dist/roadtrip/{p-7073f8c2.entry.js → p-89ae9541.entry.js} +1 -1
  71. package/dist/roadtrip/{p-ba2fbd4d.system.js → p-8e5e066c.system.js} +1 -1
  72. package/dist/roadtrip/{p-1bf25864.entry.js → p-975338e4.entry.js} +1 -1
  73. package/dist/roadtrip/{p-9cf14f6b.entry.js → p-a61d5b6c.entry.js} +1 -1
  74. package/dist/roadtrip/{p-030f078e.system.entry.js → p-aac4c95b.system.entry.js} +1 -1
  75. package/dist/roadtrip/p-b205281e.system.js +1 -1
  76. package/dist/roadtrip/{p-277d7139.entry.js → p-be767436.entry.js} +1 -1
  77. package/dist/roadtrip/{p-c11d0d20.system.entry.js → p-c218985b.system.entry.js} +1 -1
  78. package/dist/roadtrip/{p-f0f44a57.system.entry.js → p-c4992dbd.system.entry.js} +1 -1
  79. package/dist/roadtrip/{p-86d53ea4.entry.js → p-c4ebd67f.entry.js} +1 -1
  80. package/dist/roadtrip/{p-c2f61ccd.entry.js → p-c786b700.entry.js} +1 -1
  81. package/dist/roadtrip/{p-453a812f.system.entry.js → p-cc43071e.system.entry.js} +1 -1
  82. package/dist/roadtrip/{p-90a76d66.entry.js → p-d48e0669.entry.js} +1 -1
  83. package/dist/roadtrip/{p-d3858ffa.system.entry.js → p-e1859bab.system.entry.js} +1 -1
  84. package/dist/roadtrip/p-ea1eff86.entry.js +1 -0
  85. package/dist/roadtrip/roadtrip.esm.js +1 -1
  86. package/dist/types/components/range/range.d.ts +4 -0
  87. package/dist/types/components/select-filter/select-filter.d.ts +5 -0
  88. package/dist/types/components.d.ts +16 -0
  89. package/package.json +1 -1
  90. package/dist/roadtrip/p-6819f569.entry.js +0 -1
  91. package/dist/roadtrip/p-7df3c178.entry.js +0 -1
  92. package/dist/roadtrip/p-81333100.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{r,h as i,H as o}from"./p-33e38a04.js";import{a as e}from"./p-6a78da80.js";import"./p-12fd8791.js";let a=class{constructor(i){r(this,i),this.color="default",this.outline=!1,this.size="md",this.hasCloseIcon=!1}render(){return i(o,{class:`${this.outline?"chip-outline":""} chip-${this.color} chip-${this.size}`},i("div",{class:"chip-description"},i("slot",null)),this.hasCloseIcon&&i("road-icon",{class:"chip-close",icon:e}))}};a.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;height:1.5rem;padding:0.25rem 0.5rem;margin-bottom:0.5rem;font-size:0.875rem;cursor:pointer;border:0;border-radius:1.625rem;outline:0;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.chip-description{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 0.5rem}:host(.chip-outline){border-style:solid;border-width:1px}::slotted(road-icon){width:1.25rem;height:1.25rem;margin-right:0.5rem;margin-left:-0.5rem}.chip-close{width:1rem;height:1rem;margin-right:-0.25rem;color:var(--road-grey-000);background:var(--road-grey-900);border-radius:50%;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(.chip-lg){height:2.5rem;padding:0 0.75rem;font-size:1rem}:host(.chip-lg) ::slotted(road-icon){width:1.5rem;height:1.5rem;margin-right:0.75rem;margin-left:-0.75rem}:host(.chip-lg) .chip-description{padding:0 0.75rem}:host(.chip-lg) .chip-close{width:1.5rem;height:1.5rem}:host(.chip-default){color:var(--road-grey-900);background:var(--road-grey-200)}:host(.chip-outline.chip-default){background:var(--road-grey-000);border-color:var(--road-grey-500)}:host(.chip-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500);border-color:transparent}:host(.chip-secondary) .chip-close{color:var(--road-primary-500);background:var(--road-primary-100)}@media (any-hover: hover){:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary:hover){background:var(--road-primary-700)}:host(.chip-secondary:hover) .chip-close{color:var(--road-primary-700)}}:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary.focus-visible){background:var(--road-primary-500)}";export{a as road_chip}
1
+ import{r,h as i,H as o}from"./p-33e38a04.js";import{a as e}from"./p-8483d855.js";import"./p-12fd8791.js";let a=class{constructor(i){r(this,i),this.color="default",this.outline=!1,this.size="md",this.hasCloseIcon=!1}render(){return i(o,{class:`${this.outline?"chip-outline":""} chip-${this.color} chip-${this.size}`},i("div",{class:"chip-description"},i("slot",null)),this.hasCloseIcon&&i("road-icon",{class:"chip-close",icon:e}))}};a.style=":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;height:1.5rem;padding:0.25rem 0.5rem;margin-bottom:0.5rem;font-size:0.875rem;cursor:pointer;border:0;border-radius:1.625rem;outline:0;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.chip-description{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 0.5rem}:host(.chip-outline){border-style:solid;border-width:1px}::slotted(road-icon){width:1.25rem;height:1.25rem;margin-right:0.5rem;margin-left:-0.5rem}.chip-close{width:1rem;height:1rem;margin-right:-0.25rem;color:var(--road-grey-000);background:var(--road-grey-900);border-radius:50%;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(.chip-lg){height:2.5rem;padding:0 0.75rem;font-size:1rem}:host(.chip-lg) ::slotted(road-icon){width:1.5rem;height:1.5rem;margin-right:0.75rem;margin-left:-0.75rem}:host(.chip-lg) .chip-description{padding:0 0.75rem}:host(.chip-lg) .chip-close{width:1.5rem;height:1.5rem}:host(.chip-default){color:var(--road-grey-900);background:var(--road-grey-200)}:host(.chip-outline.chip-default){background:var(--road-grey-000);border-color:var(--road-grey-500)}:host(.chip-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500);border-color:transparent}:host(.chip-secondary) .chip-close{color:var(--road-primary-500);background:var(--road-primary-100)}@media (any-hover: hover){:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary:hover){background:var(--road-primary-700)}:host(.chip-secondary:hover) .chip-close{color:var(--road-primary-700)}}:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary.focus-visible){background:var(--road-primary-500)}";export{a as road_chip}
@@ -1 +1 @@
1
- import{r as n,c as e,h as o,H as r}from"./p-33e38a04.js";import{a as s}from"./p-6a78da80.js";let a=class{constructor(o){n(this,o),this.onClose=e(this,"close",7),this.isOpen=!0,this.label="",this.onClick=n=>{n.stopPropagation(),n.preventDefault(),this.close()}}async close(){this.isOpen=!1,this.onClose.emit()}render(){return o(r,{class:this.isOpen?"banner-open":""},o("div",null,o("span",{class:"banner-open-label"},this.label),this.link&&o("a",{href:this.url,class:"banner-open-link"},this.link),o("button",{type:"button",class:"banner-close",onClick:this.onClick},o("road-icon",{icon:s,size:"md"}))))}};a.style=":host{display:none}:host(.banner-open){position:relative;display:block;padding:1rem 2rem;font-size:1rem;text-align:center;background-color:var(--road-secondary-500)}.banner-close{position:absolute;top:0;right:0;padding:0.25rem;cursor:pointer;background:none;border:0}.banner-open-label{font-weight:700}.banner-open-link{display:block;margin:0.25rem 0.75rem;font-size:0.875rem;color:var(--road-grey-900)}@media (min-width: 992px){.banner-close{right:0.25rem;bottom:0}.banner-open-link{display:initial}}";export{a as road_banner}
1
+ import{r as n,c as e,h as o,H as r}from"./p-33e38a04.js";import{a as s}from"./p-8483d855.js";let i=class{constructor(o){n(this,o),this.onClose=e(this,"close",7),this.isOpen=!0,this.label="",this.onClick=n=>{n.stopPropagation(),n.preventDefault(),this.close()}}async close(){this.isOpen=!1,this.onClose.emit()}render(){return o(r,{class:this.isOpen?"banner-open":""},o("div",null,o("span",{class:"banner-open-label"},this.label),this.link&&o("a",{href:this.url,class:"banner-open-link"},this.link),o("button",{type:"button",class:"banner-close",onClick:this.onClick},o("road-icon",{icon:s,size:"md"}))))}};i.style=":host{display:none}:host(.banner-open){position:relative;display:block;padding:1rem 2rem;font-size:1rem;text-align:center;background-color:var(--road-secondary-500)}.banner-close{position:absolute;top:0;right:0;padding:0.25rem;cursor:pointer;background:none;border:0}.banner-open-label{font-weight:700}.banner-open-link{display:block;margin:0.25rem 0.75rem;font-size:0.875rem;color:var(--road-grey-900)}@media (min-width: 992px){.banner-close{right:0.25rem;bottom:0}.banner-open-link{display:initial}}";export{i as road_banner}
@@ -1 +1 @@
1
- System.register(["./p-f33e4ac5.system.js","./p-ba2fbd4d.system.js","./p-ffbbba64.system.js"],(function(r){"use strict";var i,e,o,t;return{setters:[function(r){i=r.r;e=r.h;o=r.H},function(r){t=r.a},function(){}],execute:function(){var s=":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;height:1.5rem;padding:0.25rem 0.5rem;margin-bottom:0.5rem;font-size:0.875rem;cursor:pointer;border:0;border-radius:1.625rem;outline:0;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.chip-description{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 0.5rem}:host(.chip-outline){border-style:solid;border-width:1px}::slotted(road-icon){width:1.25rem;height:1.25rem;margin-right:0.5rem;margin-left:-0.5rem}.chip-close{width:1rem;height:1rem;margin-right:-0.25rem;color:var(--road-grey-000);background:var(--road-grey-900);border-radius:50%;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(.chip-lg){height:2.5rem;padding:0 0.75rem;font-size:1rem}:host(.chip-lg) ::slotted(road-icon){width:1.5rem;height:1.5rem;margin-right:0.75rem;margin-left:-0.75rem}:host(.chip-lg) .chip-description{padding:0 0.75rem}:host(.chip-lg) .chip-close{width:1.5rem;height:1.5rem}:host(.chip-default){color:var(--road-grey-900);background:var(--road-grey-200)}:host(.chip-outline.chip-default){background:var(--road-grey-000);border-color:var(--road-grey-500)}:host(.chip-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500);border-color:transparent}:host(.chip-secondary) .chip-close{color:var(--road-primary-500);background:var(--road-primary-100)}@media (any-hover: hover){:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary:hover){background:var(--road-primary-700)}:host(.chip-secondary:hover) .chip-close{color:var(--road-primary-700)}}:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary.focus-visible){background:var(--road-primary-500)}";var a=r("road_chip",function(){function r(r){i(this,r);this.color="default";this.outline=false;this.size="md";this.hasCloseIcon=false}r.prototype.render=function(){var r=this.outline?"chip-outline":"";return e(o,{class:r+" chip-"+this.color+" chip-"+this.size},e("div",{class:"chip-description"},e("slot",null)),this.hasCloseIcon&&e("road-icon",{class:"chip-close",icon:t}))};return r}());a.style=s}}}));
1
+ System.register(["./p-f33e4ac5.system.js","./p-8e5e066c.system.js","./p-ffbbba64.system.js"],(function(r){"use strict";var i,e,o,t;return{setters:[function(r){i=r.r;e=r.h;o=r.H},function(r){t=r.a},function(){}],execute:function(){var s=":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;height:1.5rem;padding:0.25rem 0.5rem;margin-bottom:0.5rem;font-size:0.875rem;cursor:pointer;border:0;border-radius:1.625rem;outline:0;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.chip-description{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:0 0.5rem}:host(.chip-outline){border-style:solid;border-width:1px}::slotted(road-icon){width:1.25rem;height:1.25rem;margin-right:0.5rem;margin-left:-0.5rem}.chip-close{width:1rem;height:1rem;margin-right:-0.25rem;color:var(--road-grey-000);background:var(--road-grey-900);border-radius:50%;-webkit-transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}:host(.chip-lg){height:2.5rem;padding:0 0.75rem;font-size:1rem}:host(.chip-lg) ::slotted(road-icon){width:1.5rem;height:1.5rem;margin-right:0.75rem;margin-left:-0.75rem}:host(.chip-lg) .chip-description{padding:0 0.75rem}:host(.chip-lg) .chip-close{width:1.5rem;height:1.5rem}:host(.chip-default){color:var(--road-grey-900);background:var(--road-grey-200)}:host(.chip-outline.chip-default){background:var(--road-grey-000);border-color:var(--road-grey-500)}:host(.chip-secondary){color:var(--road-primary-contrast);background:var(--road-primary-500);border-color:transparent}:host(.chip-secondary) .chip-close{color:var(--road-primary-500);background:var(--road-primary-100)}@media (any-hover: hover){:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary:hover){background:var(--road-primary-700)}:host(.chip-secondary:hover) .chip-close{color:var(--road-primary-700)}}:host(.chip-outline:hover){border-color:var(--road-primary-700)}:host(.chip-secondary.focus-visible){background:var(--road-primary-500)}";var a=r("road_chip",function(){function r(r){i(this,r);this.color="default";this.outline=false;this.size="md";this.hasCloseIcon=false}r.prototype.render=function(){var r=this.outline?"chip-outline":"";return e(o,{class:r+" chip-"+this.color+" chip-"+this.size},e("div",{class:"chip-description"},e("slot",null)),this.hasCloseIcon&&e("road-icon",{class:"chip-close",icon:t}))};return r}());a.style=s}}}));
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as s,e as r}from"./p-33e38a04.js";function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===u(t)}function c(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t}function h(t){return null!=t}function l(t){return!t.trim().length}function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const d=Object.prototype.hasOwnProperty;class f{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach((t=>{let i=g(t);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight})),this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(t){let e=null,i=null,s=null,r=1;if(c(t)||n(t))s=t,e=m(t),i=M(t);else{if(!d.call(t,"name"))throw new Error("Missing name property in key");const n=t.name;if(s=n,d.call(t,"weight")&&(r=t.weight,r<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(n));e=m(n),i=M(n)}return{path:e,id:i,weight:r,src:s}}function m(t){return n(t)?t:t.split(".")}function M(t){return n(t)?t.join("."):t}var x={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let i=[],s=!1;const r=(t,e,l)=>{if(h(t))if(e[l]){const d=t[e[l]];if(!h(d))return;if(l===e.length-1&&(c(d)||o(d)||function(t){return!0===t||!1===t||function(t){return a(t)&&null!==t}(t)&&"[object Boolean]"==u(t)}(d)))i.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(d));else if(n(d)){s=!0;for(let t=0,i=d.length;t<i;t+=1)r(d[t],e,l+1)}else e.length&&r(d,e,l+1)}else i.push(t)};return r(t,c(e)?e.split("."):e,0),s?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const p=/[^ ]+/g;class v{constructor({getFn:t=x.getFn,fieldNormWeight:e=x.fieldNormWeight}={}){this.norm=function(t=1,e=3){const i=new Map,s=Math.pow(10,e);return{get(e){const r=e.match(p).length;if(i.has(r))return i.get(r);const n=1/Math.pow(r,.5*t),c=parseFloat(Math.round(n*s)/s);return i.set(r,c),c},clear(){i.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,c(this.docs[0])?this.docs.forEach(((t,e)=>{this._addString(t,e)})):this.docs.forEach(((t,e)=>{this._addObject(t,e)})),this.norm.clear())}add(t){const e=this.size();c(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!h(t)||l(t))return;let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,s)=>{let r=this.getFn(t,e.path);if(h(r))if(n(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];for(;e.length;){const{nestedArrIndex:i,value:s}=e.pop();if(h(s))if(c(s)&&!l(s)){let e={v:s,i,n:this.norm.get(s)};t.push(e)}else n(s)&&s.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}i.$[s]=t}else if(!l(r)){let t={v:r,n:this.norm.get(r)};i.$[s]=t}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function y(t,e,{getFn:i=x.getFn,fieldNormWeight:s=x.fieldNormWeight}={}){const r=new v({getFn:i,fieldNormWeight:s});return r.setKeys(t.map(g)),r.setSources(e),r.create(),r}function L(t,{errors:e=0,currentLocation:i=0,expectedLocation:s=0,distance:r=x.distance,ignoreLocation:n=x.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(s-i);return r?c+o/r:o?1:c}function b(t){let e={};for(let i=0,s=t.length;i<s;i+=1){const r=t.charAt(i);e[r]=(e[r]||0)|1<<s-i-1}return e}class w{constructor(t,{location:e=x.location,threshold:i=x.threshold,distance:s=x.distance,includeMatches:r=x.includeMatches,findAllMatches:n=x.findAllMatches,minMatchCharLength:c=x.minMatchCharLength,isCaseSensitive:o=x.isCaseSensitive,ignoreLocation:a=x.ignoreLocation}={}){if(this.options={location:e,threshold:i,distance:s,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:a},this.pattern=o?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(t,e)=>{this.chunks.push({pattern:t,alphabet:b(t),startIndex:e})},l=this.pattern.length;if(l>32){let t=0;const e=l%32,i=l-e;for(;t<i;)h(this.pattern.substr(t,32),t),t+=32;if(e){const t=l-32;h(this.pattern.substr(t),t)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return i&&(e.indices=[[0,t.length-1]]),e}const{location:s,distance:r,threshold:n,findAllMatches:c,minMatchCharLength:o,ignoreLocation:a}=this.options;let h=[],l=0,u=!1;this.chunks.forEach((({pattern:e,alphabet:d,startIndex:f})=>{const{isMatch:g,score:m,indices:M}=function(t,e,i,{location:s=x.location,distance:r=x.distance,threshold:n=x.threshold,findAllMatches:c=x.findAllMatches,minMatchCharLength:o=x.minMatchCharLength,includeMatches:a=x.includeMatches,ignoreLocation:h=x.ignoreLocation}={}){if(e.length>32)throw new Error("Pattern length exceeds max of 32.");const l=e.length,u=t.length,d=Math.max(0,Math.min(s,u));let f=n,g=d;const m=o>1||a,M=m?Array(u):[];let p;for(;(p=t.indexOf(e,g))>-1;){let t=L(e,{currentLocation:p,expectedLocation:d,distance:r,ignoreLocation:h});if(f=Math.min(t,f),g=p+l,m){let t=0;for(;t<l;)M[p+t]=1,t+=1}}g=-1;let v=[],y=1,b=l+u;const w=1<<l-1;for(let x=0;x<l;x+=1){let s=0,n=b;for(;s<n;)L(e,{errors:x,currentLocation:d+n,expectedLocation:d,distance:r,ignoreLocation:h})<=f?s=n:b=n,n=Math.floor((b-s)/2+s);b=n;let o=Math.max(1,d-n+1),a=c?u:Math.min(d+n,u)+l,p=Array(a+2);p[a+1]=(1<<x)-1;for(let c=a;c>=o;c-=1){let s=c-1,n=i[t.charAt(s)];if(m&&(M[s]=+!!n),p[c]=(p[c+1]<<1|1)&n,x&&(p[c]|=(v[c+1]|v[c])<<1|1|v[c+1]),p[c]&w&&(y=L(e,{errors:x,currentLocation:s,expectedLocation:d,distance:r,ignoreLocation:h}),y<=f)){if(f=y,g=s,g<=d)break;o=Math.max(1,2*d-g)}}if(L(e,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>f)break;v=p}const $={isMatch:g>=0,score:Math.max(.001,y)};if(m){const t=function(t=[],e=x.minMatchCharLength){let i=[],s=-1,r=-1,n=0;for(let c=t.length;n<c;n+=1){let c=t[n];c&&-1===s?s=n:c||-1===s||(r=n-1,r-s+1>=e&&i.push([s,r]),s=-1)}return t[n-1]&&n-s>=e&&i.push([s,n-1]),i}(M,o);t.length?a&&($.indices=t):$.isMatch=!1}return $}(t,e,d,{location:s+f,distance:r,threshold:n,findAllMatches:c,minMatchCharLength:o,includeMatches:i,ignoreLocation:a});g&&(u=!0),l+=m,g&&M&&(h=[...h,...M])}));let d={isMatch:u,score:u?l/this.chunks.length:1};return u&&i&&(d.indices=h),d}}class ${constructor(t){this.pattern=t}static isMultiMatch(t){return k(t,this.multiRegex)}static isSingleMatch(t){return k(t,this.singleRegex)}search(){}}function k(t,e){const i=t.match(e);return i?i[1]:null}class S extends ${constructor(t,{location:e=x.location,threshold:i=x.threshold,distance:s=x.distance,includeMatches:r=x.includeMatches,findAllMatches:n=x.findAllMatches,minMatchCharLength:c=x.minMatchCharLength,isCaseSensitive:o=x.isCaseSensitive,ignoreLocation:a=x.ignoreLocation}={}){super(t),this._bitapSearch=new w(t,{location:e,threshold:i,distance:s,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class C extends ${constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,i=0;const s=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,i))>-1;)i=e+r,s.push([e,i-1]);const n=!!s.length;return{isMatch:n,score:n?0:1,indices:s}}}const A=[class extends ${constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},C,class extends ${constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},S],I=A.length,R=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([S.type,C.type]);const N=[];function j(t,e){for(let i=0,s=N.length;i<s;i+=1){let s=N[i];if(s.condition(t,e))return new s(t,e)}return new w(t,e)}const O=t=>!(!t.$and&&!t.$or),_=t=>({$and:Object.keys(t).map((e=>({[e]:t[e]})))});function W(t,e,{auto:i=!0}={}){const s=t=>{let r=Object.keys(t);const o=(t=>!!t.$path)(t);if(!o&&r.length>1&&!O(t))return s(_(t));if((t=>!n(t)&&a(t)&&!O(t))(t)){const s=o?t.$path:r[0],n=o?t.$val:t[s];if(!c(n))throw new Error((t=>`Invalid value for key ${t}`)(s));const a={keyId:M(s),pattern:n};return i&&(a.searcher=j(n,e)),a}let h={children:[],operator:r[0]};return r.forEach((e=>{const i=t[e];n(i)&&i.forEach((t=>{h.children.push(s(t))}))})),h};return O(t)||(t=_(t)),s(t)}function E(t,e){const i=t.matches;e.matches=[],h(i)&&i.forEach((t=>{if(!h(t.indices)||!t.indices.length)return;const{indices:i,value:s}=t;let r={indices:i,value:s};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)}))}function z(t,e){e.score=t.score}class J{constructor(t,e={},i){this.options={...x,...e},this._keyStore=new f(this.options.keys),this.setCollection(t,i)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=e||y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){h(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let i=0,s=this._docs.length;i<s;i+=1){const r=this._docs[i];t(r,i)&&(this.removeAt(i),i-=1,s-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:r,sortFn:n,ignoreFieldNorm:a}=this.options;let h=c(t)?c(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=x.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:s,score:r})=>{const n=t?t.weight:null;i*=Math.pow(0===r&&n?Number.EPSILON:r,(n||1)*(e?1:s))})),t.score=i}))}(h,{ignoreFieldNorm:a}),r&&h.sort(n),o(e)&&e>-1&&(h=h.slice(0,e)),function(t,e,{includeMatches:i=x.includeMatches,includeScore:s=x.includeScore}={}){const r=[];return i&&r.push(E),s&&r.push(z),t.map((t=>{const{idx:i}=t,s={item:e[i],refIndex:i};return r.length&&r.forEach((e=>{e(t,s)})),s}))}(h,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(t){const e=j(t,this.options),{records:i}=this._myIndex,s=[];return i.forEach((({v:t,i,n:r})=>{if(!h(t))return;const{isMatch:n,score:c,indices:o}=e.searchIn(t);n&&s.push({item:t,idx:i,matches:[{score:c,value:t,norm:r,indices:o}]})})),s}_searchLogical(t){const e=W(t,this.options),i=(t,e,s)=>{if(!t.children){const{keyId:i,searcher:r}=t,n=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:r});return n&&n.length?[{idx:s,item:e,matches:n}]:[]}const r=[];for(let n=0,c=t.children.length;n<c;n+=1){const c=i(t.children[n],e,s);if(c.length)r.push(...c);else if("$and"===t.operator)return[]}return r},s={},r=[];return this._myIndex.records.forEach((({$:t,i:n})=>{if(h(t)){let c=i(e,t,n);c.length&&(s[n]||(s[n]={idx:n,item:t,matches:[]},r.push(s[n])),c.forEach((({matches:t})=>{s[n].matches.push(...t)})))}})),r}_searchObjectList(t){const e=j(t,this.options),{keys:i,records:s}=this._myIndex,r=[];return s.forEach((({$:t,i:s})=>{if(!h(t))return;let n=[];i.forEach(((i,s)=>{n.push(...this._findMatches({key:i,value:t[s],searcher:e}))})),n.length&&r.push({idx:s,item:t,matches:n})})),r}_findMatches({key:t,value:e,searcher:i}){if(!h(e))return[];let s=[];if(n(e))e.forEach((({v:e,i:r,n})=>{if(!h(e))return;const{isMatch:c,score:o,indices:a}=i.searchIn(e);c&&s.push({score:o,key:t,value:e,idx:r,norm:n,indices:a})}));else{const{v:r,n}=e,{isMatch:c,score:o,indices:a}=i.searchIn(r);c&&s.push({score:o,key:t,value:r,norm:n,indices:a})}return s}}J.version="6.5.3",J.createIndex=y,J.parseIndex=function(t,{getFn:e=x.getFn,fieldNormWeight:i=x.fieldNormWeight}={}){const{keys:s,records:r}=t,n=new v({getFn:e,fieldNormWeight:i});return n.setKeys(s),n.setIndexRecords(r),n},J.config=x,J.parseQuery=W,N.push(class{constructor(t,{isCaseSensitive:e=x.isCaseSensitive,includeMatches:i=x.includeMatches,minMatchCharLength:s=x.minMatchCharLength,ignoreLocation:r=x.ignoreLocation,findAllMatches:n=x.findAllMatches,location:c=x.location,threshold:o=x.threshold,distance:a=x.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:s,findAllMatches:n,ignoreLocation:r,location:c,threshold:o,distance:a},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map((t=>{let i=t.trim().split(R).filter((t=>t&&!!t.trim())),s=[];for(let r=0,n=i.length;r<n;r+=1){const t=i[r];let n=!1,c=-1;for(;!n&&++c<I;){const i=A[c];let r=i.isMultiMatch(t);r&&(s.push(new i(r,e)),n=!0)}if(!n)for(c=-1;++c<I;){const i=A[c];let r=i.isSingleMatch(t);if(r){s.push(new i(r,e));break}}}return s}))}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let r=0,n=[],c=0;for(let o=0,a=e.length;o<a;o+=1){const s=e[o];n.length=0,r=0;for(let e=0,o=s.length;e<o;e+=1){const o=s[e],{isMatch:a,indices:h,score:l}=o.search(t);if(!a){c=0,r=0,n.length=0;break}r+=1,c+=l,i&&(F.has(o.constructor.type)?n=[...n,...h]:n.push(h))}if(r){let t={isMatch:!0,score:c/r};return i&&(t.indices=n),t}}return{isMatch:!1,score:1}}});let H=class{constructor(i){t(this,i),this.roadselected=e(this,"roadselected",7),this.roadSelected=e(this,"roadSelected",7),this.isOpen=!1,this.currentValue="",this.options=[],this.parameters={keys:["value","label"],threshold:.3,ignoreLocation:!0},this.onlySelect=!0,this.onClick=(t,e)=>{this.el.querySelector("road-input").value=e,this.isOpen=!1,this.roadselected.emit({value:t.toString(),label:e}),this.roadSelected.emit({value:t.toString(),label:e})}}handleFocus(){this.isOpen=!0}handleChange(t){this.currentValue=t.detail.value.toLowerCase()}onClickOutside(t){if(this.isOpen&&!this.el.contains(t.target)){this.isOpen=!1;const t=this.el.querySelector("road-input").value;this.onlySelect&&!this.options.some((e=>e.label===t))&&(this.el.querySelector("road-input").value="")}}render(){const t=new J(this.options,this.parameters),e=""===this.currentValue?this.options.map(((t,e)=>({item:t,score:1,refIndex:e}))):t.search(this.currentValue);return i(s,null,i("slot",null),this.isOpen&&i("ul",{class:"select-filter-list",role:"listbox"},e.map((t=>i("li",{class:"select-filter-item",role:"option",onClick:()=>this.onClick(t.item.value,t.item.label.replace(/(<([^>]+)>)/gi,"")),innerHTML:t.item.label})))))}get el(){return r(this)}};H.style=".sc-road-select-filter-h{--margin-top:3rem;position:relative;display:block}.select-filter-list.sc-road-select-filter{position:absolute;top:var(--margin-top);z-index:1;width:100%;max-height:16rem;padding:0.5rem 0;margin:0;overflow-y:scroll;font-family:var(--road-font, sans-serif);font-size:0.875rem;color:var(--road-grey-900);list-style-type:none;background:var(--road-grey-000);border-radius:0 0 0.25rem 0.25rem;-webkit-box-shadow:0 3px 6px rgba(0, 0, 0, 0.16);box-shadow:0 3px 6px rgba(0, 0, 0, 0.16)}.select-filter-item.sc-road-select-filter{padding:0.75rem 1rem;cursor:pointer}.select-filter-item.sc-road-select-filter:hover,.select-filter-item.highlight.sc-road-select-filter{color:var(--road-primary-contrast);background:var(--road-primary-500)}";export{H as road_select_filter}
1
+ import{r as t,c as e,h as i,H as s,e as r}from"./p-33e38a04.js";function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===u(t)}function c(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t}function h(t){return null!=t}function l(t){return!t.trim().length}function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const d=Object.prototype.hasOwnProperty;class f{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach((t=>{let i=g(t);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight})),this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(t){let e=null,i=null,s=null,r=1;if(c(t)||n(t))s=t,e=m(t),i=M(t);else{if(!d.call(t,"name"))throw new Error("Missing name property in key");const n=t.name;if(s=n,d.call(t,"weight")&&(r=t.weight,r<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(n));e=m(n),i=M(n)}return{path:e,id:i,weight:r,src:s}}function m(t){return n(t)?t:t.split(".")}function M(t){return n(t)?t.join("."):t}var x={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let i=[],s=!1;const r=(t,e,l)=>{if(h(t))if(e[l]){const d=t[e[l]];if(!h(d))return;if(l===e.length-1&&(c(d)||o(d)||function(t){return!0===t||!1===t||function(t){return a(t)&&null!==t}(t)&&"[object Boolean]"==u(t)}(d)))i.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(d));else if(n(d)){s=!0;for(let t=0,i=d.length;t<i;t+=1)r(d[t],e,l+1)}else e.length&&r(d,e,l+1)}else i.push(t)};return r(t,c(e)?e.split("."):e,0),s?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const p=/[^ ]+/g;class v{constructor({getFn:t=x.getFn,fieldNormWeight:e=x.fieldNormWeight}={}){this.norm=function(t=1,e=3){const i=new Map,s=Math.pow(10,e);return{get(e){const r=e.match(p).length;if(i.has(r))return i.get(r);const n=1/Math.pow(r,.5*t),c=parseFloat(Math.round(n*s)/s);return i.set(r,c),c},clear(){i.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,c(this.docs[0])?this.docs.forEach(((t,e)=>{this._addString(t,e)})):this.docs.forEach(((t,e)=>{this._addObject(t,e)})),this.norm.clear())}add(t){const e=this.size();c(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!h(t)||l(t))return;let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,s)=>{let r=this.getFn(t,e.path);if(h(r))if(n(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];for(;e.length;){const{nestedArrIndex:i,value:s}=e.pop();if(h(s))if(c(s)&&!l(s)){let e={v:s,i,n:this.norm.get(s)};t.push(e)}else n(s)&&s.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}i.$[s]=t}else if(!l(r)){let t={v:r,n:this.norm.get(r)};i.$[s]=t}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function y(t,e,{getFn:i=x.getFn,fieldNormWeight:s=x.fieldNormWeight}={}){const r=new v({getFn:i,fieldNormWeight:s});return r.setKeys(t.map(g)),r.setSources(e),r.create(),r}function L(t,{errors:e=0,currentLocation:i=0,expectedLocation:s=0,distance:r=x.distance,ignoreLocation:n=x.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(s-i);return r?c+o/r:o?1:c}function b(t){let e={};for(let i=0,s=t.length;i<s;i+=1){const r=t.charAt(i);e[r]=(e[r]||0)|1<<s-i-1}return e}class w{constructor(t,{location:e=x.location,threshold:i=x.threshold,distance:s=x.distance,includeMatches:r=x.includeMatches,findAllMatches:n=x.findAllMatches,minMatchCharLength:c=x.minMatchCharLength,isCaseSensitive:o=x.isCaseSensitive,ignoreLocation:a=x.ignoreLocation}={}){if(this.options={location:e,threshold:i,distance:s,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:a},this.pattern=o?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(t,e)=>{this.chunks.push({pattern:t,alphabet:b(t),startIndex:e})},l=this.pattern.length;if(l>32){let t=0;const e=l%32,i=l-e;for(;t<i;)h(this.pattern.substr(t,32),t),t+=32;if(e){const t=l-32;h(this.pattern.substr(t),t)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return i&&(e.indices=[[0,t.length-1]]),e}const{location:s,distance:r,threshold:n,findAllMatches:c,minMatchCharLength:o,ignoreLocation:a}=this.options;let h=[],l=0,u=!1;this.chunks.forEach((({pattern:e,alphabet:d,startIndex:f})=>{const{isMatch:g,score:m,indices:M}=function(t,e,i,{location:s=x.location,distance:r=x.distance,threshold:n=x.threshold,findAllMatches:c=x.findAllMatches,minMatchCharLength:o=x.minMatchCharLength,includeMatches:a=x.includeMatches,ignoreLocation:h=x.ignoreLocation}={}){if(e.length>32)throw new Error("Pattern length exceeds max of 32.");const l=e.length,u=t.length,d=Math.max(0,Math.min(s,u));let f=n,g=d;const m=o>1||a,M=m?Array(u):[];let p;for(;(p=t.indexOf(e,g))>-1;){let t=L(e,{currentLocation:p,expectedLocation:d,distance:r,ignoreLocation:h});if(f=Math.min(t,f),g=p+l,m){let t=0;for(;t<l;)M[p+t]=1,t+=1}}g=-1;let v=[],y=1,b=l+u;const w=1<<l-1;for(let x=0;x<l;x+=1){let s=0,n=b;for(;s<n;)L(e,{errors:x,currentLocation:d+n,expectedLocation:d,distance:r,ignoreLocation:h})<=f?s=n:b=n,n=Math.floor((b-s)/2+s);b=n;let o=Math.max(1,d-n+1),a=c?u:Math.min(d+n,u)+l,p=Array(a+2);p[a+1]=(1<<x)-1;for(let c=a;c>=o;c-=1){let s=c-1,n=i[t.charAt(s)];if(m&&(M[s]=+!!n),p[c]=(p[c+1]<<1|1)&n,x&&(p[c]|=(v[c+1]|v[c])<<1|1|v[c+1]),p[c]&w&&(y=L(e,{errors:x,currentLocation:s,expectedLocation:d,distance:r,ignoreLocation:h}),y<=f)){if(f=y,g=s,g<=d)break;o=Math.max(1,2*d-g)}}if(L(e,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>f)break;v=p}const $={isMatch:g>=0,score:Math.max(.001,y)};if(m){const t=function(t=[],e=x.minMatchCharLength){let i=[],s=-1,r=-1,n=0;for(let c=t.length;n<c;n+=1){let c=t[n];c&&-1===s?s=n:c||-1===s||(r=n-1,r-s+1>=e&&i.push([s,r]),s=-1)}return t[n-1]&&n-s>=e&&i.push([s,n-1]),i}(M,o);t.length?a&&($.indices=t):$.isMatch=!1}return $}(t,e,d,{location:s+f,distance:r,threshold:n,findAllMatches:c,minMatchCharLength:o,includeMatches:i,ignoreLocation:a});g&&(u=!0),l+=m,g&&M&&(h=[...h,...M])}));let d={isMatch:u,score:u?l/this.chunks.length:1};return u&&i&&(d.indices=h),d}}class ${constructor(t){this.pattern=t}static isMultiMatch(t){return k(t,this.multiRegex)}static isSingleMatch(t){return k(t,this.singleRegex)}search(){}}function k(t,e){const i=t.match(e);return i?i[1]:null}class S extends ${constructor(t,{location:e=x.location,threshold:i=x.threshold,distance:s=x.distance,includeMatches:r=x.includeMatches,findAllMatches:n=x.findAllMatches,minMatchCharLength:c=x.minMatchCharLength,isCaseSensitive:o=x.isCaseSensitive,ignoreLocation:a=x.ignoreLocation}={}){super(t),this._bitapSearch=new w(t,{location:e,threshold:i,distance:s,includeMatches:r,findAllMatches:n,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class C extends ${constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,i=0;const s=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,i))>-1;)i=e+r,s.push([e,i-1]);const n=!!s.length;return{isMatch:n,score:n?0:1,indices:s}}}const A=[class extends ${constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},C,class extends ${constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends ${constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},S],I=A.length,R=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([S.type,C.type]);const N=[];function j(t,e){for(let i=0,s=N.length;i<s;i+=1){let s=N[i];if(s.condition(t,e))return new s(t,e)}return new w(t,e)}const O=t=>!(!t.$and&&!t.$or),_=t=>({$and:Object.keys(t).map((e=>({[e]:t[e]})))});function W(t,e,{auto:i=!0}={}){const s=t=>{let r=Object.keys(t);const o=(t=>!!t.$path)(t);if(!o&&r.length>1&&!O(t))return s(_(t));if((t=>!n(t)&&a(t)&&!O(t))(t)){const s=o?t.$path:r[0],n=o?t.$val:t[s];if(!c(n))throw new Error((t=>`Invalid value for key ${t}`)(s));const a={keyId:M(s),pattern:n};return i&&(a.searcher=j(n,e)),a}let h={children:[],operator:r[0]};return r.forEach((e=>{const i=t[e];n(i)&&i.forEach((t=>{h.children.push(s(t))}))})),h};return O(t)||(t=_(t)),s(t)}function E(t,e){const i=t.matches;e.matches=[],h(i)&&i.forEach((t=>{if(!h(t.indices)||!t.indices.length)return;const{indices:i,value:s}=t;let r={indices:i,value:s};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)}))}function z(t,e){e.score=t.score}class J{constructor(t,e={},i){this.options={...x,...e},this._keyStore=new f(this.options.keys),this.setCollection(t,i)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=e||y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){h(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let i=0,s=this._docs.length;i<s;i+=1){const r=this._docs[i];t(r,i)&&(this.removeAt(i),i-=1,s-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:r,sortFn:n,ignoreFieldNorm:a}=this.options;let h=c(t)?c(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=x.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:s,score:r})=>{const n=t?t.weight:null;i*=Math.pow(0===r&&n?Number.EPSILON:r,(n||1)*(e?1:s))})),t.score=i}))}(h,{ignoreFieldNorm:a}),r&&h.sort(n),o(e)&&e>-1&&(h=h.slice(0,e)),function(t,e,{includeMatches:i=x.includeMatches,includeScore:s=x.includeScore}={}){const r=[];return i&&r.push(E),s&&r.push(z),t.map((t=>{const{idx:i}=t,s={item:e[i],refIndex:i};return r.length&&r.forEach((e=>{e(t,s)})),s}))}(h,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(t){const e=j(t,this.options),{records:i}=this._myIndex,s=[];return i.forEach((({v:t,i,n:r})=>{if(!h(t))return;const{isMatch:n,score:c,indices:o}=e.searchIn(t);n&&s.push({item:t,idx:i,matches:[{score:c,value:t,norm:r,indices:o}]})})),s}_searchLogical(t){const e=W(t,this.options),i=(t,e,s)=>{if(!t.children){const{keyId:i,searcher:r}=t,n=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:r});return n&&n.length?[{idx:s,item:e,matches:n}]:[]}const r=[];for(let n=0,c=t.children.length;n<c;n+=1){const c=i(t.children[n],e,s);if(c.length)r.push(...c);else if("$and"===t.operator)return[]}return r},s={},r=[];return this._myIndex.records.forEach((({$:t,i:n})=>{if(h(t)){let c=i(e,t,n);c.length&&(s[n]||(s[n]={idx:n,item:t,matches:[]},r.push(s[n])),c.forEach((({matches:t})=>{s[n].matches.push(...t)})))}})),r}_searchObjectList(t){const e=j(t,this.options),{keys:i,records:s}=this._myIndex,r=[];return s.forEach((({$:t,i:s})=>{if(!h(t))return;let n=[];i.forEach(((i,s)=>{n.push(...this._findMatches({key:i,value:t[s],searcher:e}))})),n.length&&r.push({idx:s,item:t,matches:n})})),r}_findMatches({key:t,value:e,searcher:i}){if(!h(e))return[];let s=[];if(n(e))e.forEach((({v:e,i:r,n})=>{if(!h(e))return;const{isMatch:c,score:o,indices:a}=i.searchIn(e);c&&s.push({score:o,key:t,value:e,idx:r,norm:n,indices:a})}));else{const{v:r,n}=e,{isMatch:c,score:o,indices:a}=i.searchIn(r);c&&s.push({score:o,key:t,value:r,norm:n,indices:a})}return s}}J.version="6.5.3",J.createIndex=y,J.parseIndex=function(t,{getFn:e=x.getFn,fieldNormWeight:i=x.fieldNormWeight}={}){const{keys:s,records:r}=t,n=new v({getFn:e,fieldNormWeight:i});return n.setKeys(s),n.setIndexRecords(r),n},J.config=x,J.parseQuery=W,N.push(class{constructor(t,{isCaseSensitive:e=x.isCaseSensitive,includeMatches:i=x.includeMatches,minMatchCharLength:s=x.minMatchCharLength,ignoreLocation:r=x.ignoreLocation,findAllMatches:n=x.findAllMatches,location:c=x.location,threshold:o=x.threshold,distance:a=x.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:s,findAllMatches:n,ignoreLocation:r,location:c,threshold:o,distance:a},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map((t=>{let i=t.trim().split(R).filter((t=>t&&!!t.trim())),s=[];for(let r=0,n=i.length;r<n;r+=1){const t=i[r];let n=!1,c=-1;for(;!n&&++c<I;){const i=A[c];let r=i.isMultiMatch(t);r&&(s.push(new i(r,e)),n=!0)}if(!n)for(c=-1;++c<I;){const i=A[c];let r=i.isSingleMatch(t);if(r){s.push(new i(r,e));break}}}return s}))}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let r=0,n=[],c=0;for(let o=0,a=e.length;o<a;o+=1){const s=e[o];n.length=0,r=0;for(let e=0,o=s.length;e<o;e+=1){const o=s[e],{isMatch:a,indices:h,score:l}=o.search(t);if(!a){c=0,r=0,n.length=0;break}r+=1,c+=l,i&&(F.has(o.constructor.type)?n=[...n,...h]:n.push(h))}if(r){let t={isMatch:!0,score:c/r};return i&&(t.indices=n),t}}return{isMatch:!1,score:1}}});let B=class{constructor(i){t(this,i),this.roadselected=e(this,"roadselected",7),this.roadSelected=e(this,"roadSelected",7),this.isOpen=!1,this.currentValue="",this.options=[],this.parameters={keys:["value","label"],threshold:.3,ignoreLocation:!0},this.isActive=!1,this.onlySelect=!0,this.onClick=(t,e)=>{this.el.querySelector("road-input").value=e,this.isOpen=!1,this.roadselected.emit({value:t.toString(),label:e}),this.roadSelected.emit({value:t.toString(),label:e})}}handleFocus(){this.isOpen=!0,this.isActive=!0}handleBlur(){this.isOpen=!1,this.isActive=!1}handleChange(t){this.currentValue=t.detail.value.toLowerCase()}onClickOutside(t){if(this.isOpen&&!this.el.contains(t.target)){this.isOpen=!1,this.isActive=!1;const t=this.el.querySelector("road-input").value;this.onlySelect&&!this.options.some((e=>e.label===t))&&(this.el.querySelector("road-input").value="")}}render(){const t=new J(this.options,this.parameters),e=""===this.currentValue?this.options.map(((t,e)=>({item:t,score:1,refIndex:e}))):t.search(this.currentValue);return i(s,{"is-active":this.isActive?"true":"false"},i("slot",null),this.isOpen&&i("ul",{class:"select-filter-list",role:"listbox"},e.map((t=>i("li",{class:"select-filter-item",role:"option",onClick:()=>this.onClick(t.item.value,t.item.label.replace(/(<([^>]+)>)/gi,"")),innerHTML:t.item.label})))))}get el(){return r(this)}};B.style=".sc-road-select-filter-h{--margin-top:3rem;position:relative;display:block}.select-filter-list.sc-road-select-filter{position:absolute;top:var(--margin-top);z-index:1;width:100%;max-height:16rem;padding:0.5rem 0;margin:0;overflow-y:scroll;font-family:var(--road-font, sans-serif);font-size:0.875rem;color:var(--road-grey-900);list-style-type:none;background:var(--road-grey-000);border-radius:0 0 0.25rem 0.25rem;-webkit-box-shadow:0 3px 6px rgba(0, 0, 0, 0.16);box-shadow:0 3px 6px rgba(0, 0, 0, 0.16)}.select-filter-item.sc-road-select-filter{padding:0.75rem 1rem;cursor:pointer}.select-filter-item.sc-road-select-filter:hover,.select-filter-item.highlight.sc-road-select-filter{color:var(--road-primary-contrast);background:var(--road-primary-500)}";export{B as road_select_filter}
@@ -1 +1 @@
1
- System.register(["./p-f33e4ac5.system.js","./p-ba2fbd4d.system.js","./p-ffbbba64.system.js"],(function(e){"use strict";var c,o,r,a,i,s;return{setters:[function(e){c=e.r;o=e.c;r=e.h;a=e.H},function(e){i=e.c;s=e.b},function(){}],execute:function(){var d='.sc-road-checkbox-h{position:relative;display:block;margin-bottom:1.5rem;font-family:var(--road-font, sans-serif);font-size:1rem;line-height:1.5;color:var(--road-grey-900)}.form-check-input.sc-road-checkbox{position:absolute;z-index:-1;opacity:0}.form-check-label.sc-road-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;margin:0;cursor:pointer;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.form-check-label.sc-road-checkbox::before{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-ms-flex-negative:0;flex-shrink:0;width:1.25rem;height:1.25rem;margin:0 0.75rem 0 0;content:"";background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0.25rem;-webkit-transition:border 0.2s ease-in-out, background 0.2s ease-in-out;transition:border 0.2s ease-in-out, background 0.2s ease-in-out}.form-check-icon.sc-road-checkbox{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:1.25rem;height:1.25rem;color:var(--road-primary-contrast);opacity:0;-webkit-transition:opacity 0.2s ease-in-out;transition:opacity 0.2s ease-in-out}@media (hover: hover){.form-check-input.sc-road-checkbox:not(:disabled)~.form-check-label.sc-road-checkbox:hover::before{border-color:var(--road-primary-700)}.form-check-input.sc-road-checkbox:not(:disabled):checked~.form-check-label.sc-road-checkbox:hover::before,.form-check-input.sc-road-checkbox:not(:disabled):indeterminate~.form-check-label.sc-road-checkbox:hover::before{background:var(--road-primary-700)}}.form-check-input.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox,.form-check-input.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox{opacity:1}.form-check-input.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox::before,.form-check-input.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox::before{background:var(--road-primary-500);border-color:var(--road-primary-500)}.form-check-input.focus-visible.sc-road-checkbox~.form-check-label.sc-road-checkbox::before{-webkit-box-shadow:0 0 0 0.125rem var(--road-grey-000), 0 0 0 0.1875rem var(--road-primary-700);box-shadow:0 0 0 0.125rem var(--road-grey-000), 0 0 0 0.1875rem var(--road-primary-700)}.form-check-input.focus-visible.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox::before,.form-check-input.focus-visible.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox::before{background:var(--road-primary-700);border-color:var(--road-primary-700)}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox{cursor:not-allowed}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox::before,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox::before{background:var(--road-disabled);border:none}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox{fill:var(--road-grey-400)}.invalid-feedback.sc-road-checkbox{display:none;-ms-flex:0 0 100%;flex:0 0 100%;width:100%;margin-top:0.5rem;font-size:0.75rem;color:var(--road-danger-default)}.form-check-input.is-invalid.sc-road-checkbox~.form-check-label.sc-road-checkbox::before,.was-validated.sc-road-checkbox .form-check-input.sc-road-checkbox:invalid~.form-check-label.sc-road-checkbox::before{border-color:var(--road-danger-default)}.form-check-input.is-invalid.sc-road-checkbox~.invalid-feedback.sc-road-checkbox,.was-validated.sc-road-checkbox .form-check-input.sc-road-checkbox:invalid~.invalid-feedback.sc-road-checkbox{display:block}.form-checkbox-inverse.sc-road-checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:justify;justify-content:space-between}.form-checkbox-inverse.sc-road-checkbox::before{margin:0 0 0 1rem}.form-checkbox-inverse.sc-road-checkbox .form-check-icon.sc-road-checkbox{right:0;left:auto}.helper.sc-road-checkbox{margin-top:0.5rem;font-size:0.75rem;color:var(--road-grey-500)}';var h=e("road_checkbox",function(){function e(e){var r=this;c(this,e);this.roadchange=o(this,"roadchange",7);this.roadChange=o(this,"roadChange",7);this.roadfocus=o(this,"roadfocus",7);this.roadFocus=o(this,"roadFocus",7);this.roadblur=o(this,"roadblur",7);this.roadBlur=o(this,"roadBlur",7);this.checkboxId="road-checkbox-"+t++;this.name=this.checkboxId;this.required=false;this.checked=false;this.indeterminate=false;this.disabled=false;this.value="on";this.label=this.checkboxId+"-label";this.inverse=false;this.onClick=function(){r.checked=!r.checked;r.indeterminate=false};this.onFocus=function(){r.roadfocus.emit();r.roadFocus.emit()};this.onBlur=function(){r.roadblur.emit();r.roadBlur.emit()}}e.prototype.checkedChanged=function(e){this.roadchange.emit({checked:e,value:this.value});this.roadChange.emit({checked:e,value:this.value})};e.prototype.render=function(){var e=this.checkboxId+"-label";var c=this.inverse&&"form-checkbox-inverse";var o=this.error!==undefined&&!this.checked&&this.error!==""?"is-invalid":"";return r(a,null,r("input",{class:"form-check-input "+o,type:"checkbox",id:this.checkboxId,name:this.name,required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,checked:this.checked,value:this.value,"aria-checked":""+this.checked,"aria-disabled":this.disabled?"true":null,"aria-labelledby":e,onClick:this.onClick,onFocus:this.onFocus,onBlur:this.onBlur}),r("label",{class:"form-check-label "+c,id:e,htmlFor:this.checkboxId},r("div",null,this.label,r("slot",null)),this.checked&&!this.indeterminate&&r("road-icon",{class:"form-check-icon",icon:i}),this.indeterminate&&r("road-icon",{class:"form-check-icon",icon:s})),this.error&&this.error!==""&&r("p",{class:"invalid-feedback"},this.error),this.helper&&this.helper!==""&&r("p",{class:"helper"},this.helper))};Object.defineProperty(e,"watchers",{get:function(){return{checked:["checkedChanged"]}},enumerable:false,configurable:true});return e}());var t=0;h.style=d}}}));
1
+ System.register(["./p-f33e4ac5.system.js","./p-8e5e066c.system.js","./p-ffbbba64.system.js"],(function(e){"use strict";var c,o,r,a,i,s;return{setters:[function(e){c=e.r;o=e.c;r=e.h;a=e.H},function(e){i=e.c;s=e.b},function(){}],execute:function(){var h='.sc-road-checkbox-h{position:relative;display:block;margin-bottom:1.5rem;font-family:var(--road-font, sans-serif);font-size:1rem;line-height:1.5;color:var(--road-grey-900)}.form-check-input.sc-road-checkbox{position:absolute;z-index:-1;opacity:0}.form-check-label.sc-road-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;margin:0;cursor:pointer;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.form-check-label.sc-road-checkbox::before{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-ms-flex-negative:0;flex-shrink:0;width:1.25rem;height:1.25rem;margin:0 0.75rem 0 0;content:"";background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0.25rem;-webkit-transition:border 0.2s ease-in-out, background 0.2s ease-in-out;transition:border 0.2s ease-in-out, background 0.2s ease-in-out}.form-check-icon.sc-road-checkbox{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:1.25rem;height:1.25rem;color:var(--road-primary-contrast);opacity:0;-webkit-transition:opacity 0.2s ease-in-out;transition:opacity 0.2s ease-in-out}@media (hover: hover){.form-check-input.sc-road-checkbox:not(:disabled)~.form-check-label.sc-road-checkbox:hover::before{border-color:var(--road-primary-700)}.form-check-input.sc-road-checkbox:not(:disabled):checked~.form-check-label.sc-road-checkbox:hover::before,.form-check-input.sc-road-checkbox:not(:disabled):indeterminate~.form-check-label.sc-road-checkbox:hover::before{background:var(--road-primary-700)}}.form-check-input.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox,.form-check-input.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox{opacity:1}.form-check-input.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox::before,.form-check-input.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox::before{background:var(--road-primary-500);border-color:var(--road-primary-500)}.form-check-input.focus-visible.sc-road-checkbox~.form-check-label.sc-road-checkbox::before{-webkit-box-shadow:0 0 0 0.125rem var(--road-grey-000), 0 0 0 0.1875rem var(--road-primary-700);box-shadow:0 0 0 0.125rem var(--road-grey-000), 0 0 0 0.1875rem var(--road-primary-700)}.form-check-input.focus-visible.sc-road-checkbox:checked~.form-check-label.sc-road-checkbox::before,.form-check-input.focus-visible.sc-road-checkbox:indeterminate~.form-check-label.sc-road-checkbox::before{background:var(--road-primary-700);border-color:var(--road-primary-700)}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox{cursor:not-allowed}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox::before,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox::before{background:var(--road-disabled);border:none}.form-check-input.sc-road-checkbox:disabled~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox,.form-check-input[readonly].sc-road-checkbox~.form-check-label.sc-road-checkbox .form-check-icon.sc-road-checkbox{fill:var(--road-grey-400)}.invalid-feedback.sc-road-checkbox{display:none;-ms-flex:0 0 100%;flex:0 0 100%;width:100%;margin-top:0.5rem;font-size:0.75rem;color:var(--road-danger-default)}.form-check-input.is-invalid.sc-road-checkbox~.form-check-label.sc-road-checkbox::before,.was-validated.sc-road-checkbox .form-check-input.sc-road-checkbox:invalid~.form-check-label.sc-road-checkbox::before{border-color:var(--road-danger-default)}.form-check-input.is-invalid.sc-road-checkbox~.invalid-feedback.sc-road-checkbox,.was-validated.sc-road-checkbox .form-check-input.sc-road-checkbox:invalid~.invalid-feedback.sc-road-checkbox{display:block}.form-checkbox-inverse.sc-road-checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:justify;justify-content:space-between}.form-checkbox-inverse.sc-road-checkbox::before{margin:0 0 0 1rem}.form-checkbox-inverse.sc-road-checkbox .form-check-icon.sc-road-checkbox{right:0;left:auto}.helper.sc-road-checkbox{margin-top:0.5rem;font-size:0.75rem;color:var(--road-grey-500)}';var d=e("road_checkbox",function(){function e(e){var r=this;c(this,e);this.roadchange=o(this,"roadchange",7);this.roadChange=o(this,"roadChange",7);this.roadfocus=o(this,"roadfocus",7);this.roadFocus=o(this,"roadFocus",7);this.roadblur=o(this,"roadblur",7);this.roadBlur=o(this,"roadBlur",7);this.checkboxId="road-checkbox-"+t++;this.name=this.checkboxId;this.required=false;this.checked=false;this.indeterminate=false;this.disabled=false;this.value="on";this.label=this.checkboxId+"-label";this.inverse=false;this.onClick=function(){r.checked=!r.checked;r.indeterminate=false};this.onFocus=function(){r.roadfocus.emit();r.roadFocus.emit()};this.onBlur=function(){r.roadblur.emit();r.roadBlur.emit()}}e.prototype.checkedChanged=function(e){this.roadchange.emit({checked:e,value:this.value});this.roadChange.emit({checked:e,value:this.value})};e.prototype.render=function(){var e=this.checkboxId+"-label";var c=this.inverse&&"form-checkbox-inverse";var o=this.error!==undefined&&!this.checked&&this.error!==""?"is-invalid":"";return r(a,null,r("input",{class:"form-check-input "+o,type:"checkbox",id:this.checkboxId,name:this.name,required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,checked:this.checked,value:this.value,"aria-checked":""+this.checked,"aria-disabled":this.disabled?"true":null,"aria-labelledby":e,onClick:this.onClick,onFocus:this.onFocus,onBlur:this.onBlur}),r("label",{class:"form-check-label "+c,id:e,htmlFor:this.checkboxId},r("div",null,this.label,r("slot",null)),this.checked&&!this.indeterminate&&r("road-icon",{class:"form-check-icon",icon:i}),this.indeterminate&&r("road-icon",{class:"form-check-icon",icon:s})),this.error&&this.error!==""&&r("p",{class:"invalid-feedback"},this.error),this.helper&&this.helper!==""&&r("p",{class:"helper"},this.helper))};Object.defineProperty(e,"watchers",{get:function(){return{checked:["checkedChanged"]}},enumerable:false,configurable:true});return e}());var t=0;d.style=h}}}));
@@ -0,0 +1 @@
1
+ import{r as e,c as r,h as t}from"./p-33e38a04.js";import{l as a}from"./p-8483d855.js";let n=class{constructor(t){e(this,t),this.roadinput=r(this,"roadinput",7),this.roadInput=r(this,"roadInput",7),this.roadchange=r(this,"roadchange",7),this.roadChange=r(this,"roadChange",7),this.roadblur=r(this,"roadblur",7),this.roadBlur=r(this,"roadBlur",7),this.roadfocus=r(this,"roadfocus",7),this.roadFocus=r(this,"roadFocus",7),this.countries=[{country:"FR",letter:"F",placeholder:"AT-857-YY"},{country:"BE",letter:"B",placeholder:"1-AAA-001"},{country:"IT",letter:"I",placeholder:"AT 814TX"},{country:"ES",letter:"E",placeholder:"9512 HVY"},{country:"PT",letter:"P",placeholder:"13 24 PZ"},{country:"PL",letter:"PL",placeholder:"GD 921KF"}],this.country="FR",this.disabled=!1,this.readonly=!1,this.value="",this.onInput=e=>{const r=e.target;r&&(r.value=r.value.toUpperCase()||""),this.roadinput.emit(e),this.roadInput.emit(e)},this.onBlur=()=>{this.roadblur.emit(),this.roadBlur.emit()},this.onFocus=()=>{this.roadfocus.emit(),this.roadFocus.emit()}}valueChanged(){this.roadchange.emit({value:null==this.value?this.value:this.value.toString()}),this.roadChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}render(){const e=this.getValue(),r=this.motorbike?"motorbike-plate":"";return t("road-input-group",{class:`plate-number plate-number-${this.country.toLowerCase()} ${r}`},t("label",{slot:"prepend",class:"input-group-prepend"},t("div",{class:"plate-number-start"},t("road-icon",{class:"plate-number-icon",icon:a}),t("div",{class:"plate-number-location"},this.countries.filter((e=>e.country===this.country))[0].letter))),this.motorbike?t("textarea",{class:"form-control plate-number-input mb-0",disabled:this.disabled,placeholder:null!=this.placeholder?this.placeholder:this.countries.filter((e=>e.country===this.country))[0].placeholder,readOnly:this.readonly,maxlength:"9",rows:2,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}):t("input",{class:"plate-number-input mb-0",disabled:this.disabled,placeholder:null!=this.placeholder?this.placeholder:this.countries.filter((e=>e.country===this.country))[0].placeholder,readOnly:this.readonly,value:e,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}),t("label",{slot:"append",class:"input-group-append"},t("div",{class:"plate-number-end"})))}static get watchers(){return{value:["valueChanged"]}}};n.style=".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:calc(3rem - 0.25rem);background:var(--road-info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;margin-left:1px;color:var(--road-info-contrast);border-radius:0.125rem 0 0 0.125rem}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{margin-right:1px;border-radius:0 0.125rem 0.125rem 0}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number{color:var(--road-danger-text)}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-append.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-prepend.sc-road-plate-number{border-color:var(--road-danger-text)}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:var(--road-font, sans-serif);font-size:1.75rem;font-weight:700;color:var(--road-grey-900);text-align:center;background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.plate-number-input.sc-road-plate-number::-webkit-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-moz-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:disabled,.plate-number-input[readonly].sc-road-plate-number{color:var(--road-grey-900);cursor:not-allowed;background:var(--road-disabled);opacity:1}.plate-number-input.sc-road-plate-number:disabled~.input-group-prepend.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-prepend.sc-road-plate-number,.plate-number-input.sc-road-plate-number:disabled~.input-group-append.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-append.sc-road-plate-number{background:var(--road-disabled)}@media (hover: hover){.plate-number-input.sc-road-plate-number:not(:disabled):not([readonly]):hover{border-color:var(--road-primary-700)}}.plate-number-input.sc-road-plate-number:not([readonly]):focus{border-color:var(--road-primary-700);outline:0}.motorbike-plate.sc-road-plate-number .plate-number-input.sc-road-plate-number{height:6rem;padding:0.75rem 1rem 0;resize:none;border-left:0}.motorbike-plate.sc-road-plate-number .input-group-prepend.sc-road-plate-number,.motorbike-plate.sc-road-plate-number .input-group-append.sc-road-plate-number{-ms-flex-align:start;align-items:flex-start;height:6rem;padding:0}.motorbike-plate.sc-road-plate-number .plate-number-start.sc-road-plate-number{margin-top:1px;border-radius:0.125rem 0 0}.motorbike-plate.sc-road-plate-number .plate-number-end.sc-road-plate-number{margin-top:1px;border-radius:0 0.125rem 0 0}";export{n as road_plate_number}
@@ -1 +1 @@
1
- import{p as e,w as a,d as o,N as r,a as d,b as t}from"./p-33e38a04.js";import"./p-46c22946.js";(()=>{e.o=a.__cssshim;const t=Array.from(o.querySelectorAll("script")).find((e=>new RegExp(`/${r}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===r)),l={};return"onbeforeload"in t&&!history.scrollRestoration?{then(){}}:(l.resourcesUrl=new URL(".",new URL(t.getAttribute("data-resources-url")||t.src,a.location.href)).href,((e,d)=>{const t=`__sc_import_${r.replace(/\s|-/g,"_")}`;try{a[t]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const r=new Map;a[t]=l=>{const i=new URL(l,e).href;let n=r.get(i);if(!n){const e=o.createElement("script");e.type="module",e.crossOrigin=d.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${i}'; window.${t}.m = m;`],{type:"application/javascript"})),n=new Promise((o=>{e.onload=()=>{o(a[t].m),e.remove()}})),r.set(i,n),o.head.appendChild(e)}return n}}})(l.resourcesUrl,t),a.customElements?d(l):__sc_import_roadtrip("./p-ac0761c3.js").then((()=>l)))})().then((e=>t([["p-d920dfb7",[[1,"road-item",{button:[4],detail:[4],active:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],href:[1],rel:[1],lines:[1],target:[1],type:[1],multipleInputs:[32]}],[1,"road-badge",{color:[1],bubble:[4]}],[1,"road-list",{lines:[1]}],[1,"road-toolbar",{color:[1]}],[33,"road-drawer",{isOpen:[1028,"is-open"],position:[1],drawerWidth:[2,"drawer-width"],hasInverseHeader:[4,"has-inverse-header"],hasBackIcon:[4,"has-back-icon"],backText:[1,"back-text"],drawerTitle:[1,"drawer-title"],hasCloseIcon:[4,"has-close-icon"],open:[64],close:[64],back:[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[1,"road-label"],[1,"road-row"],[1,"road-button",{color:[1],size:[513],buttonType:[1,"button-type"],disabled:[516],expand:[516],download:[1],href:[1],rel:[1],target:[1],outline:[4]}],[1,"road-icon",{color:[1],ariaLabel:[1537,"aria-label"],ariaHidden:[513,"aria-hidden"],name:[1],src:[1],icon:[8],size:[1],rotate:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]]],["p-688e41f2",[[1,"road-duration",{isOpen:[1028,"is-open"],header:[1],min:[2],max:[2],step:[2],open:[64],close:[64]},[[0,"roadcardclick","handleClick"]]]]],["p-271fd4fa",[[2,"road-counter",{inputId:[1,"input-id"],min:[1],max:[1],step:[1],value:[2],size:[1]}]]],["p-7df3c178",[[2,"road-plate-number",{country:[1],disabled:[4],placeholder:[1],readonly:[4],value:[1032],motorbike:[4]}]]],["p-374713ec",[[1,"road-accordion",{isOpen:[1028,"is-open"],isLight:[4,"is-light"]}]]],["p-c2f61ccd",[[1,"road-banner",{isOpen:[1028,"is-open"],label:[1],link:[1],url:[1],close:[64]}]]],["p-1e8c2ef4",[[4,"road-carousel",{options:[8],pager:[4],arrows:[4],update:[64],updateAutoHeight:[64],slideTo:[64],slideNext:[64],slidePrev:[64],getActiveIndex:[64],getPreviousIndex:[64],length:[64],isEnd:[64],isBeginning:[64],startAutoplay:[64],stopAutoplay:[64],lockSwipeToNext:[64],lockSwipeToPrev:[64],lockSwipes:[64],getSwiper:[64]}]]],["p-9cf14f6b",[[6,"road-checkbox",{checkboxId:[1,"checkbox-id"],name:[1],required:[4],checked:[1028],indeterminate:[4],disabled:[4],value:[1],label:[1],inverse:[4],error:[1],helper:[1]}]]],["p-86d53ea4",[[1,"road-chip",{color:[1],outline:[4],size:[1],hasCloseIcon:[4,"has-close-icon"]}]]],["p-78315356",[[1,"road-collapse",{isOpen:[1028,"is-open"],showMore:[1,"show-more"],showLess:[1,"show-less"],centered:[4]}]]],["p-1bf25864",[[1,"road-dialog",{isOpen:[1028,"is-open"],hasCloseIcon:[4,"has-close-icon"],color:[1],icon:[1],label:[1],description:[1],open:[64],close:[64]},[[4,"keyup","onEscape"]]]]],["p-277d7139",[[1,"road-modal",{maxWidth:[2,"max-width"],isOpen:[1028,"is-open"],hasInverseHeader:[4,"has-inverse-header"],modalTitle:[1,"modal-title"],hasCloseIcon:[4,"has-close-icon"],open:[64],close:[64]},[[4,"keyup","onEscape"]]]]],["p-8134554a",[[1,"road-rating",{rate:[2],reviews:[2],reviewsText:[1,"reviews-text"]}]]],["p-7073f8c2",[[1,"road-toast",{isOpen:[1028,"is-open"],color:[1],label:[1],timeout:[2],position:[1],open:[64],close:[64]}]]],["p-2f361b1a",[[1,"road-alert",{color:[1]}]]],["p-303e8e40",[[6,"road-autocomplete",{options:[16],visible:[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["p-382e4c17",[[1,"road-avatar"]]],["p-1347a27e",[[4,"road-carousel-item"]]],["p-42cb57d0",[[1,"road-dropdown",{isOpen:[1028,"is-open"]}]]],["p-3a28129a",[[1,"road-flap",{color:[1],size:[513]}]]],["p-1108fffd",[[1,"road-img",{alt:[1],src:[1],loadSrc:[32],loadError:[32]}]]],["p-e18fa251",[[1,"road-navbar",{selectedTab:[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]]]]],["p-896f49f2",[[1,"road-navbar-item",{disabled:[4],download:[1],href:[1],rel:[1],selected:[1028],tab:[1],target:[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]]]]],["p-d59a7db8",[[1,"road-progress",{value:[2],color:[1]}]]],["p-2384ed2d",[[2,"road-radio",{radioId:[1,"radio-id"],name:[1],required:[4],disabled:[4],value:[8],label:[1],inverse:[4],error:[4],helper:[1],inline:[4],checked:[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["p-cab68ba7",[[6,"road-radio-group",{radioGroupId:[1,"radio-group-id"],allowEmptySelection:[4,"allow-empty-selection"],name:[1],value:[1032],label:[1],asterisk:[4],ariaLabel:[513,"aria-label"],error:[1025],helper:[1]}]]],["p-6819f569",[[2,"road-range",{rangeId:[1,"range-id"],value:[1032],min:[1],max:[1],step:[1],showValue:[4,"show-value"]}]]],["p-83119815",[[2,"road-select",{selectId:[1,"select-id"],options:[16],autofocus:[4],disabled:[4],name:[1],required:[4],size:[2],sizes:[1],label:[1],error:[1],value:[1032]}]]],["p-90a76d66",[[6,"road-select-filter",{options:[16],parameters:[8],onlySelect:[4,"only-select"],isOpen:[32],currentValue:[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"]]]]],["p-161e83eb",[[1,"road-skeleton"]]],["p-79f030ef",[[1,"road-spinner"]]],["p-19f72337",[[2,"road-switch",{switchId:[1,"switch-id"],name:[1],checked:[1028],disabled:[4],label:[1],color:[1],hasLeftLabel:[4,"has-left-label"],isSpaced:[4,"is-spaced"],value:[1],on:[1],off:[1]}]]],["p-f0ec3a64",[[1,"road-tab",{active:[1028],tab:[1],setActive:[64]}]]],["p-501abdbf",[[1,"road-tab-bar",{expand:[4],center:[4],selectedTab:[1,"selected-tab"]}]]],["p-fddbca8b",[[1,"road-tab-button",{download:[1],href:[1],rel:[1],layout:[1],selected:[1028],tab:[1],target:[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["p-dbee6661",[[6,"road-table"]]],["p-e6664bbe",[[1,"road-tabs",{selectedTab:[32],select:[64],getTab:[64],getSelected:[64]}]]],["p-a9538932",[[1,"road-text",{color:[1]}]]],["p-2fd27879",[[2,"road-textarea",{textareaId:[1,"textarea-id"],autocapitalize:[1],autofocus:[4],disabled:[4],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],sizes:[1],readonly:[4],required:[4],spellcheck:[4],cols:[2],rows:[2],wrap:[1],value:[1025],label:[1],error:[1],helper:[1]}]]],["p-af49dca4",[[2,"road-toggle",{toggleId:[1,"toggle-id"],name:[1],checked:[1028],disabled:[4],label:[1],color:[1],hasLeftLabel:[4,"has-left-label"],isSpaced:[4,"is-spaced"],value:[1],on:[1],off:[1]}]]],["p-e5756d79",[[1,"road-toolbar-title"]]],["p-564a2eac",[[1,"road-tooltip",{tooltipId:[1,"tooltip-id"],content:[1],position:[1],isOpen:[1028,"is-open"],trigger:[1],open:[64],close:[64]}]]],["p-1f1464ba",[[1,"road-card",{button:[4],value:[1],type:[1],download:[1],href:[1],rel:[1],target:[1]}]]],["p-5521af81",[[2,"road-input",{inputId:[1,"input-id"],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],disabled:[4],enterkeyhint:[1],inputmode:[1],max:[1],maxlength:[2],min:[1],minlength:[2],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],step:[1],size:[2],sizes:[1],type:[1],value:[1032],label:[1],error:[1],helper:[1],debounce:[2]}]]],["p-d2165987",[[1,"road-input-group"]]]],e)));
1
+ import{p as e,w as a,d as o,N as r,a as d,b as t}from"./p-33e38a04.js";import"./p-46c22946.js";(()=>{e.o=a.__cssshim;const t=Array.from(o.querySelectorAll("script")).find((e=>new RegExp(`/${r}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===r)),l={};return"onbeforeload"in t&&!history.scrollRestoration?{then(){}}:(l.resourcesUrl=new URL(".",new URL(t.getAttribute("data-resources-url")||t.src,a.location.href)).href,((e,d)=>{const t=`__sc_import_${r.replace(/\s|-/g,"_")}`;try{a[t]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const r=new Map;a[t]=l=>{const i=new URL(l,e).href;let n=r.get(i);if(!n){const e=o.createElement("script");e.type="module",e.crossOrigin=d.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${i}'; window.${t}.m = m;`],{type:"application/javascript"})),n=new Promise((o=>{e.onload=()=>{o(a[t].m),e.remove()}})),r.set(i,n),o.head.appendChild(e)}return n}}})(l.resourcesUrl,t),a.customElements?d(l):__sc_import_roadtrip("./p-ac0761c3.js").then((()=>l)))})().then((e=>t([["p-36f67c07",[[1,"road-item",{button:[4],detail:[4],active:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],href:[1],rel:[1],lines:[1],target:[1],type:[1],multipleInputs:[32]}],[1,"road-badge",{color:[1],bubble:[4]}],[1,"road-list",{lines:[1]}],[1,"road-toolbar",{color:[1]}],[33,"road-drawer",{isOpen:[1028,"is-open"],position:[1],drawerWidth:[2,"drawer-width"],hasInverseHeader:[4,"has-inverse-header"],hasBackIcon:[4,"has-back-icon"],backText:[1,"back-text"],drawerTitle:[1,"drawer-title"],hasCloseIcon:[4,"has-close-icon"],open:[64],close:[64],back:[64]},[[4,"keyup","onEscape"]]],[1,"road-col"],[1,"road-grid"],[1,"road-label"],[1,"road-row"],[1,"road-button",{color:[1],size:[513],buttonType:[1,"button-type"],disabled:[516],expand:[516],download:[1],href:[1],rel:[1],target:[1],outline:[4]}],[1,"road-icon",{color:[1],ariaLabel:[1537,"aria-label"],ariaHidden:[513,"aria-hidden"],name:[1],src:[1],icon:[8],size:[1],rotate:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]]],["p-688e41f2",[[1,"road-duration",{isOpen:[1028,"is-open"],header:[1],min:[2],max:[2],step:[2],open:[64],close:[64]},[[0,"roadcardclick","handleClick"]]]]],["p-271fd4fa",[[2,"road-counter",{inputId:[1,"input-id"],min:[1],max:[1],step:[1],value:[2],size:[1]}]]],["p-ea1eff86",[[2,"road-plate-number",{country:[1],disabled:[4],placeholder:[1],readonly:[4],value:[1032],motorbike:[4]}]]],["p-7781ae98",[[1,"road-accordion",{isOpen:[1028,"is-open"],isLight:[4,"is-light"]}]]],["p-c786b700",[[1,"road-banner",{isOpen:[1028,"is-open"],label:[1],link:[1],url:[1],close:[64]}]]],["p-221f2b4e",[[4,"road-carousel",{options:[8],pager:[4],arrows:[4],update:[64],updateAutoHeight:[64],slideTo:[64],slideNext:[64],slidePrev:[64],getActiveIndex:[64],getPreviousIndex:[64],length:[64],isEnd:[64],isBeginning:[64],startAutoplay:[64],stopAutoplay:[64],lockSwipeToNext:[64],lockSwipeToPrev:[64],lockSwipes:[64],getSwiper:[64]}]]],["p-a61d5b6c",[[6,"road-checkbox",{checkboxId:[1,"checkbox-id"],name:[1],required:[4],checked:[1028],indeterminate:[4],disabled:[4],value:[1],label:[1],inverse:[4],error:[1],helper:[1]}]]],["p-c4ebd67f",[[1,"road-chip",{color:[1],outline:[4],size:[1],hasCloseIcon:[4,"has-close-icon"]}]]],["p-78315356",[[1,"road-collapse",{isOpen:[1028,"is-open"],showMore:[1,"show-more"],showLess:[1,"show-less"],centered:[4]}]]],["p-975338e4",[[1,"road-dialog",{isOpen:[1028,"is-open"],hasCloseIcon:[4,"has-close-icon"],color:[1],icon:[1],label:[1],description:[1],open:[64],close:[64]},[[4,"keyup","onEscape"]]]]],["p-be767436",[[1,"road-modal",{maxWidth:[2,"max-width"],isOpen:[1028,"is-open"],hasInverseHeader:[4,"has-inverse-header"],modalTitle:[1,"modal-title"],hasCloseIcon:[4,"has-close-icon"],open:[64],close:[64]},[[4,"keyup","onEscape"]]]]],["p-54f6290f",[[2,"road-range",{rangeId:[1,"range-id"],value:[1032],min:[1],max:[1],step:[1],showValue:[4,"show-value"],showTick:[4,"show-tick"]}]]],["p-44d18405",[[1,"road-rating",{rate:[2],reviews:[2],reviewsText:[1,"reviews-text"]}]]],["p-89ae9541",[[1,"road-toast",{isOpen:[1028,"is-open"],color:[1],label:[1],timeout:[2],position:[1],open:[64],close:[64]}]]],["p-2f361b1a",[[1,"road-alert",{color:[1]}]]],["p-303e8e40",[[6,"road-autocomplete",{options:[16],visible:[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[4,"click","onClickOutside"]]]]],["p-382e4c17",[[1,"road-avatar"]]],["p-1347a27e",[[4,"road-carousel-item"]]],["p-42cb57d0",[[1,"road-dropdown",{isOpen:[1028,"is-open"]}]]],["p-3a28129a",[[1,"road-flap",{color:[1],size:[513]}]]],["p-1108fffd",[[1,"road-img",{alt:[1],src:[1],loadSrc:[32],loadError:[32]}]]],["p-e18fa251",[[1,"road-navbar",{selectedTab:[1,"selected-tab"]},[[0,"roadNavbarItemClick","onNavbarChanged"],[0,"roadnavbaritemclick","onNavbarChanged"]]]]],["p-896f49f2",[[1,"road-navbar-item",{disabled:[4],download:[1],href:[1],rel:[1],selected:[1028],tab:[1],target:[1]},[[8,"roadNavbarChanged","onNavbarChanged"],[8,"roadnavbarchanged","onNavbarChanged"]]]]],["p-d59a7db8",[[1,"road-progress",{value:[2],color:[1]}]]],["p-2384ed2d",[[2,"road-radio",{radioId:[1,"radio-id"],name:[1],required:[4],disabled:[4],value:[8],label:[1],inverse:[4],error:[4],helper:[1],inline:[4],checked:[32]},[[8,"roadChange","onRoadChangedChanged"],[8,"roadchange","onRoadChangedChanged"]]]]],["p-cab68ba7",[[6,"road-radio-group",{radioGroupId:[1,"radio-group-id"],allowEmptySelection:[4,"allow-empty-selection"],name:[1],value:[1032],label:[1],asterisk:[4],ariaLabel:[513,"aria-label"],error:[1025],helper:[1]}]]],["p-83119815",[[2,"road-select",{selectId:[1,"select-id"],options:[16],autofocus:[4],disabled:[4],name:[1],required:[4],size:[2],sizes:[1],label:[1],error:[1],value:[1032]}]]],["p-d48e0669",[[6,"road-select-filter",{options:[16],parameters:[8],isActive:[4,"is-active"],onlySelect:[4,"only-select"],isOpen:[32],currentValue:[32]},[[0,"roadFocus","handleFocus"],[0,"roadfocus","handleFocus"],[0,"roadBlur","handleBlur"],[0,"roadblur","handleBlur"],[0,"roadChange","handleChange"],[0,"roadchange","handleChange"],[4,"click","onClickOutside"]]]]],["p-161e83eb",[[1,"road-skeleton"]]],["p-79f030ef",[[1,"road-spinner"]]],["p-19f72337",[[2,"road-switch",{switchId:[1,"switch-id"],name:[1],checked:[1028],disabled:[4],label:[1],color:[1],hasLeftLabel:[4,"has-left-label"],isSpaced:[4,"is-spaced"],value:[1],on:[1],off:[1]}]]],["p-f0ec3a64",[[1,"road-tab",{active:[1028],tab:[1],setActive:[64]}]]],["p-501abdbf",[[1,"road-tab-bar",{expand:[4],center:[4],selectedTab:[1,"selected-tab"]}]]],["p-fddbca8b",[[1,"road-tab-button",{download:[1],href:[1],rel:[1],layout:[1],selected:[1028],tab:[1],target:[1]},[[8,"roadTabBarChanged","onTabBarChanged"],[8,"roadTabbarchanged","onTabBarChanged"]]]]],["p-dbee6661",[[6,"road-table"]]],["p-e6664bbe",[[1,"road-tabs",{selectedTab:[32],select:[64],getTab:[64],getSelected:[64]}]]],["p-a9538932",[[1,"road-text",{color:[1]}]]],["p-2fd27879",[[2,"road-textarea",{textareaId:[1,"textarea-id"],autocapitalize:[1],autofocus:[4],disabled:[4],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],sizes:[1],readonly:[4],required:[4],spellcheck:[4],cols:[2],rows:[2],wrap:[1],value:[1025],label:[1],error:[1],helper:[1]}]]],["p-af49dca4",[[2,"road-toggle",{toggleId:[1,"toggle-id"],name:[1],checked:[1028],disabled:[4],label:[1],color:[1],hasLeftLabel:[4,"has-left-label"],isSpaced:[4,"is-spaced"],value:[1],on:[1],off:[1]}]]],["p-e5756d79",[[1,"road-toolbar-title"]]],["p-564a2eac",[[1,"road-tooltip",{tooltipId:[1,"tooltip-id"],content:[1],position:[1],isOpen:[1028,"is-open"],trigger:[1],open:[64],close:[64]}]]],["p-1f1464ba",[[1,"road-card",{button:[4],value:[1],type:[1],download:[1],href:[1],rel:[1],target:[1]}]]],["p-5521af81",[[2,"road-input",{inputId:[1,"input-id"],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],disabled:[4],enterkeyhint:[1],inputmode:[1],max:[1],maxlength:[2],min:[1],minlength:[2],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],step:[1],size:[2],sizes:[1],type:[1],value:[1032],label:[1],error:[1],helper:[1],debounce:[2]}]]],["p-d2165987",[[1,"road-input-group"]]]],e)));
@@ -26,6 +26,10 @@ export declare class Range {
26
26
  * Display the current value of the range
27
27
  */
28
28
  showValue: boolean;
29
+ /**
30
+ * Display Tick of the range
31
+ */
32
+ showTick: boolean;
29
33
  /**
30
34
  * Update the native input element when the value changes
31
35
  */
@@ -18,11 +18,16 @@ export declare class SelectFilter {
18
18
  * See https://fusejs.io/api/options.html for valid options
19
19
  */
20
20
  parameters: any;
21
+ /**
22
+ * If `true`, add class Active
23
+ */
24
+ isActive: boolean;
21
25
  /**
22
26
  * If `false`, the user can submit custom value
23
27
  */
24
28
  onlySelect: boolean;
25
29
  handleFocus(): void;
30
+ handleBlur(): void;
26
31
  handleChange(event: CustomEvent): void;
27
32
  onClickOutside(event: MouseEvent): void;
28
33
  /**
@@ -884,6 +884,10 @@ export namespace Components {
884
884
  * The id of range
885
885
  */
886
886
  "rangeId": string;
887
+ /**
888
+ * Display Tick of the range
889
+ */
890
+ "showTick": boolean;
887
891
  /**
888
892
  * Display the current value of the range
889
893
  */
@@ -964,6 +968,10 @@ export namespace Components {
964
968
  "value"?: any | null;
965
969
  }
966
970
  interface RoadSelectFilter {
971
+ /**
972
+ * If `true`, add class Active
973
+ */
974
+ "isActive": boolean;
967
975
  /**
968
976
  * If `false`, the user can submit custom value
969
977
  */
@@ -2673,6 +2681,10 @@ declare namespace LocalJSX {
2673
2681
  * The id of range
2674
2682
  */
2675
2683
  "rangeId"?: string;
2684
+ /**
2685
+ * Display Tick of the range
2686
+ */
2687
+ "showTick"?: boolean;
2676
2688
  /**
2677
2689
  * Display the current value of the range
2678
2690
  */
@@ -2767,6 +2779,10 @@ declare namespace LocalJSX {
2767
2779
  "value"?: any | null;
2768
2780
  }
2769
2781
  interface RoadSelectFilter {
2782
+ /**
2783
+ * If `true`, add class Active
2784
+ */
2785
+ "isActive"?: boolean;
2770
2786
  /**
2771
2787
  * Emitted the value and label of the option selected.
2772
2788
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roadtrip/components",
3
- "version": "2.29.1",
3
+ "version": "2.30.2",
4
4
  "description": "Web Component library for Roadtrip Design System",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://gitlab.com/mobivia-design/roadtrip/components",
@@ -1 +0,0 @@
1
- import{r,c as e,h as a,e as o}from"./p-33e38a04.js";let n=class{constructor(a){r(this,a),this.roadchange=e(this,"roadchange",7),this.roadChange=e(this,"roadChange",7),this.rangeId="road-range-"+t++,this.value="",this.showValue=!1,this.onInput=r=>{const e=r.target;e&&(this.value=e.value||""),null!=this.value&&this.el.style.setProperty("--value",`${this.value}`)}}valueChanged(){this.roadchange.emit({value:null==this.value?this.value:this.value.toString()}),this.roadChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}render(){const r=this.getValue();return a("div",{class:"form-range",style:{"--min:":this.min,"--max":this.max,"--value":r}},this.showValue&&a("output",null),a("input",{type:"range",class:"form-range-input",id:this.rangeId,min:this.min,max:this.max,value:r,onInput:this.onInput}),a("div",{class:"form-range-progress"}))}get el(){return o(this)}static get watchers(){return{value:["valueChanged"]}}},t=0;n.style='.sc-road-range-h{display:block}.form-range.sc-road-range{position:relative;display:block;width:100%;margin-bottom:6px}.form-range-input.sc-road-range{position:relative;z-index:1;width:100%;height:0.5rem;background:transparent;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range.sc-road-range>output.sc-road-range::after{display:block;font-size:0.875rem;text-align:right;content:counter(variable);counter-reset:variable var(--value)}.form-range-progress.sc-road-range{position:relative;z-index:0;display:block;width:100%;margin-top:-0.875rem}.form-range-input.sc-road-range::-webkit-slider-runnable-track{height:0.5rem;border:0;-webkit-appearance:none;appearance:none}.form-range-input.sc-road-range::-moz-range-track{height:0.5rem;border:0;-moz-appearance:none;appearance:none}.form-range-progress.sc-road-range::before{display:block;height:0.5rem;content:"";background-color:var(--road-grey-200);border:0;border-radius:1.125rem}.form-range-progress.sc-road-range::after{position:absolute;top:0;right:0;left:0;display:block;width:calc((var(--value) * 100%) / var(--max));height:0.5rem;content:"";background:var(--road-primary-500);border-radius:1.125rem}.form-range-input.sc-road-range::-webkit-slider-thumb{position:relative;z-index:1;width:1.625rem;height:1.625rem;margin-top:-0.625rem;cursor:-webkit-grab;cursor:grab;background:var(--road-grey-000);border:none;border-radius:1.625rem;-webkit-box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);-webkit-appearance:none;appearance:none}.form-range-input.sc-road-range::-moz-range-thumb{position:relative;z-index:1;box-sizing:border-box;width:1.625rem;height:1.625rem;margin-top:-0.625rem;cursor:grab;background:var(--road-grey-000);border:none;border-radius:1.625rem;box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);-moz-appearance:none;appearance:none}.focus-visible.sc-road-range-h .form-range-input.sc-road-range::-webkit-slider-thumb,.sc-road-range-h:active .form-range-input.sc-road-range::-webkit-slider-thumb{background:var(--road-primary-500);border:0.5rem solid var(--road-grey-000)}.focus-visible.sc-road-range-h .form-range-input.sc-road-range::-moz-range-thumb,.sc-road-range-h:active .form-range-input.sc-road-range::-moz-range-thumb{background:var(--road-primary-500);border:0.5rem solid var(--road-grey-000)}';export{n as road_range}
@@ -1 +0,0 @@
1
- import{r as e,c as r,h as t}from"./p-33e38a04.js";import{l as a}from"./p-6a78da80.js";let n=class{constructor(t){e(this,t),this.roadinput=r(this,"roadinput",7),this.roadInput=r(this,"roadInput",7),this.roadchange=r(this,"roadchange",7),this.roadChange=r(this,"roadChange",7),this.roadblur=r(this,"roadblur",7),this.roadBlur=r(this,"roadBlur",7),this.roadfocus=r(this,"roadfocus",7),this.roadFocus=r(this,"roadFocus",7),this.countries=[{country:"FR",letter:"F",placeholder:"AT-857-YY"},{country:"BE",letter:"B",placeholder:"1-AAA-001"},{country:"IT",letter:"I",placeholder:"AT 814TX"},{country:"ES",letter:"E",placeholder:"9512 HVY"},{country:"PT",letter:"P",placeholder:"13 24 PZ"},{country:"PL",letter:"PL",placeholder:"GD 921KF"}],this.country="FR",this.disabled=!1,this.readonly=!1,this.value="",this.onInput=e=>{const r=e.target;r&&(this.value=r.value.toUpperCase()||""),this.roadinput.emit(e),this.roadInput.emit(e)},this.onBlur=()=>{this.roadblur.emit(),this.roadBlur.emit()},this.onFocus=()=>{this.roadfocus.emit(),this.roadFocus.emit()}}valueChanged(){this.roadchange.emit({value:null==this.value?this.value:this.value.toString()}),this.roadChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}render(){const e=this.getValue(),r=this.motorbike?"motorbike-plate":"";return t("road-input-group",{class:`plate-number plate-number-${this.country.toLowerCase()} ${r}`},t("label",{slot:"prepend",class:"input-group-prepend"},t("div",{class:"plate-number-start"},t("road-icon",{class:"plate-number-icon",icon:a}),t("div",{class:"plate-number-location"},this.countries.filter((e=>e.country===this.country))[0].letter))),this.motorbike?t("textarea",{class:"form-control plate-number-input mb-0",disabled:this.disabled,placeholder:null!=this.placeholder?this.placeholder:this.countries.filter((e=>e.country===this.country))[0].placeholder,readOnly:this.readonly,maxlength:"9",rows:2,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}):t("input",{class:"plate-number-input mb-0",disabled:this.disabled,placeholder:null!=this.placeholder?this.placeholder:this.countries.filter((e=>e.country===this.country))[0].placeholder,readOnly:this.readonly,value:e,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}),t("label",{slot:"append",class:"input-group-append"},t("div",{class:"plate-number-end"})))}static get watchers(){return{value:["valueChanged"]}}};n.style=".sc-road-plate-number-h{display:block}.plate-number.sc-road-plate-number{--margin-bottom:0}.plate-number-start.sc-road-plate-number,.plate-number-end.sc-road-plate-number{width:1.75rem;height:calc(3rem - 0.25rem);background:var(--road-info-text)}.input-group-prepend.sc-road-plate-number{margin-right:-1px}.input-group-prepend.sc-road-plate-number,.input-group-append.sc-road-plate-number{padding:0}.plate-number-start.sc-road-plate-number{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0;margin-right:0;margin-left:1px;color:var(--road-info-contrast);border-radius:0.125rem 0 0 0.125rem}.plate-number-icon.sc-road-plate-number{width:1.25rem;height:1.25rem;color:#f3db53}.plate-number-location.sc-road-plate-number{font-size:0.875rem;font-weight:700}.plate-number-end.sc-road-plate-number{margin-right:1px;border-radius:0 0.125rem 0.125rem 0}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number{color:var(--road-danger-text)}.plate-number-be.sc-road-plate-number .plate-number-input.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-append.sc-road-plate-number,.plate-number-be.sc-road-plate-number .input-group-prepend.sc-road-plate-number{border-color:var(--road-danger-text)}.plate-number-input.sc-road-plate-number{position:relative;display:block;height:3rem;margin:0;font-family:var(--road-font, sans-serif);font-size:1.75rem;font-weight:700;color:var(--road-grey-900);text-align:center;background:var(--road-grey-000);border:1px solid var(--road-grey-400);border-radius:0;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.plate-number-input.sc-road-plate-number::-webkit-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-moz-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::-ms-input-placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number::placeholder{color:var(--road-grey-500);opacity:1}.plate-number-input.sc-road-plate-number:disabled,.plate-number-input[readonly].sc-road-plate-number{color:var(--road-grey-900);cursor:not-allowed;background:var(--road-disabled);opacity:1}.plate-number-input.sc-road-plate-number:disabled~.input-group-prepend.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-prepend.sc-road-plate-number,.plate-number-input.sc-road-plate-number:disabled~.input-group-append.sc-road-plate-number,.plate-number-input[readonly].sc-road-plate-number~.input-group-append.sc-road-plate-number{background:var(--road-disabled)}@media (hover: hover){.plate-number-input.sc-road-plate-number:not(:disabled):not([readonly]):hover{border-color:var(--road-primary-700)}}.plate-number-input.sc-road-plate-number:not([readonly]):focus{border-color:var(--road-primary-700);outline:0}.motorbike-plate.sc-road-plate-number .plate-number-input.sc-road-plate-number{height:6rem;padding:0.75rem 1rem 0;resize:none;border-left:0}.motorbike-plate.sc-road-plate-number .input-group-prepend.sc-road-plate-number,.motorbike-plate.sc-road-plate-number .input-group-append.sc-road-plate-number{-ms-flex-align:start;align-items:flex-start;height:6rem;padding:0}.motorbike-plate.sc-road-plate-number .plate-number-start.sc-road-plate-number{margin-top:1px;border-radius:0.125rem 0 0}.motorbike-plate.sc-road-plate-number .plate-number-end.sc-road-plate-number{margin-top:1px;border-radius:0 0.125rem 0 0}";export{n as road_plate_number}
@@ -1 +0,0 @@
1
- System.register(["./p-f33e4ac5.system.js"],(function(r){"use strict";var e,a,n,o;return{setters:[function(r){e=r.r;a=r.c;n=r.h;o=r.e}],execute:function(){var t='.sc-road-range-h{display:block}.form-range.sc-road-range{position:relative;display:block;width:100%;margin-bottom:6px}.form-range-input.sc-road-range{position:relative;z-index:1;width:100%;height:0.5rem;background:transparent;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range.sc-road-range>output.sc-road-range::after{display:block;font-size:0.875rem;text-align:right;content:counter(variable);counter-reset:variable var(--value)}.form-range-progress.sc-road-range{position:relative;z-index:0;display:block;width:100%;margin-top:-0.875rem}.form-range-input.sc-road-range::-webkit-slider-runnable-track{height:0.5rem;border:0;-webkit-appearance:none;appearance:none}.form-range-input.sc-road-range::-moz-range-track{height:0.5rem;border:0;-moz-appearance:none;appearance:none}.form-range-progress.sc-road-range::before{display:block;height:0.5rem;content:"";background-color:var(--road-grey-200);border:0;border-radius:1.125rem}.form-range-progress.sc-road-range::after{position:absolute;top:0;right:0;left:0;display:block;width:calc((var(--value) * 100%) / var(--max));height:0.5rem;content:"";background:var(--road-primary-500);border-radius:1.125rem}.form-range-input.sc-road-range::-webkit-slider-thumb{position:relative;z-index:1;width:1.625rem;height:1.625rem;margin-top:-0.625rem;cursor:-webkit-grab;cursor:grab;background:var(--road-grey-000);border:none;border-radius:1.625rem;-webkit-box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);-webkit-appearance:none;appearance:none}.form-range-input.sc-road-range::-moz-range-thumb{position:relative;z-index:1;box-sizing:border-box;width:1.625rem;height:1.625rem;margin-top:-0.625rem;cursor:grab;background:var(--road-grey-000);border:none;border-radius:1.625rem;box-shadow:0 0.1875rem 0.375rem rgba(0, 0, 0, 0.24);-moz-appearance:none;appearance:none}.focus-visible.sc-road-range-h .form-range-input.sc-road-range::-webkit-slider-thumb,.sc-road-range-h:active .form-range-input.sc-road-range::-webkit-slider-thumb{background:var(--road-primary-500);border:0.5rem solid var(--road-grey-000)}.focus-visible.sc-road-range-h .form-range-input.sc-road-range::-moz-range-thumb,.sc-road-range-h:active .form-range-input.sc-road-range::-moz-range-thumb{background:var(--road-primary-500);border:0.5rem solid var(--road-grey-000)}';var i=r("road_range",function(){function r(r){var n=this;e(this,r);this.roadchange=a(this,"roadchange",7);this.roadChange=a(this,"roadChange",7);this.rangeId="road-range-"+s++;this.value="";this.showValue=false;this.onInput=function(r){var e=r.target;if(e){n.value=e.value||""}if(n.value!==null&&n.value!==undefined){n.el.style.setProperty("--value",""+n.value)}}}r.prototype.valueChanged=function(){this.roadchange.emit({value:this.value==null?this.value:this.value.toString()});this.roadChange.emit({value:this.value==null?this.value:this.value.toString()})};r.prototype.getValue=function(){return typeof this.value==="number"?this.value.toString():(this.value||"").toString()};r.prototype.render=function(){var r=this.getValue();return n("div",{class:"form-range",style:{"--min:":this.min,"--max":this.max,"--value":r}},this.showValue&&n("output",null),n("input",{type:"range",class:"form-range-input",id:this.rangeId,min:this.min,max:this.max,value:r,onInput:this.onInput}),n("div",{class:"form-range-progress"}))};Object.defineProperty(r.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return r}());var s=0;i.style=t}}}));