@htmlbricks/hb-input-radio 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-input-radio",
3
3
  "displayName": "Svelte-Bootstrap Radio Input WebComponent",
4
4
  "description": "Svelte-Bootstrap Radio Input WebComponent",
5
- "version": "0.7.3",
5
+ "version": "0.7.5",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -27,11 +27,12 @@
27
27
  "prepublish": "npm run build:release"
28
28
  },
29
29
  "devDependencies": {
30
- "@htmlbricks/hb-jsutils": "^0.7.3",
30
+ "@htmlbricks/hb-jsutils": "^0.7.5",
31
31
  "@rollup/plugin-alias": "^3.1.2",
32
32
  "@rollup/plugin-commonjs": "^18.0.0",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-node-resolve": "^11.2.1",
35
+ "@rollup/plugin-replace": "^4.0.0",
35
36
  "@rollup/plugin-typescript": "^8.2.1",
36
37
  "@tsconfig/svelte": "^1.0.10",
37
38
  "@types/node": "^16.7.1",
@@ -70,5 +71,5 @@
70
71
  "webcomponents"
71
72
  ],
72
73
  "contributors": [],
73
- "gitHead": "f1c8ad92a030f953ee57a9dc5dfe7b58318fbe96"
74
+ "gitHead": "5c10098a7760e88b44796b37487d93ac412157d9"
74
75
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function e(){}function t(e){return e()}function o(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,o){e.insertBefore(t,o||null)}function d(e){e.parentNode.removeChild(e)}function l(e){return document.createElement(e)}function c(e){return document.createTextNode(e)}function u(){return c(" ")}function f(e,t,o,n){return e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)}function b(e,t,o){null==o?e.removeAttribute(t):e.getAttribute(t)!==o&&e.setAttribute(t,o)}function m(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function h(e){const t={};for(const o of e)t[o.name]=o.value;return t}let p;function g(e){p=e}function v(){if(!p)throw new Error("Function called outside component initialization");return p}function y(){const e=v();return(t,o)=>{const n=e.$$.callbacks[t];if(n){const r=function(e,t,o=!1){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,o,!1,t),n}(t,o);n.slice().forEach((t=>{t.call(e,r)}))}}}const w=[],$=[],k=[],x=[],E=Promise.resolve();let _=!1;function C(e){k.push(e)}const M=new Set;let S=0;function z(){const e=p;do{for(;S<w.length;){const e=w[S];S++,g(e),T(e.$$)}for(g(null),w.length=0,S=0;$.length;)$.pop()();for(let e=0;e<k.length;e+=1){const t=k[e];M.has(t)||(M.add(t),t())}k.length=0}while(w.length);for(;x.length;)x.pop()();_=!1,M.clear(),g(e)}function T(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const L=new Set;function N(e,t){e&&e.i&&(L.delete(e),e.i(t))}function j(e,t){e.d(1),t.delete(e.key)}function A(e,t){-1===e.$$.dirty[0]&&(w.push(e),_||(_=!0,E.then(z)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function R(i,a,s,l,c,u,f,b=[-1]){const m=p;g(i);const h=i.$$={fragment:null,ctx:null,props:u,update:e,not_equal:c,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:o(),dirty:b,skip_bound:!1,root:a.target||m.$$.root};f&&f(h.root);let v=!1;if(h.ctx=s?s(i,a.props||{},((e,t,...o)=>{const n=o.length?o[0]:t;return h.ctx&&c(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),v&&A(i,e)),t})):[],h.update(),v=!0,n(h.before_update),h.fragment=!!l&&l(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(d)}else h.fragment&&h.fragment.c();a.intro&&N(i.$$.fragment),function(e,o,i,a){const{fragment:s,on_mount:d,on_destroy:l,after_update:c}=e.$$;s&&s.m(o,i),a||C((()=>{const o=d.map(t).filter(r);l?l.push(...o):n(o),e.$$.on_mount=[]})),c.forEach(C)}(i,a.target,a.anchor,a.customElement),z()}g(m)}let q;function H(e,t,o){const n=e.slice();return n[15]=t[o],n}function O(e){let t,o,n,r,i,a,h,p=(e[15].label??e[15].value)+"";return{c(){t=l("input"),r=u(),i=c(p),b(t,"type","radio"),b(t,"name",o=e[1]?.id),t.value=n=e[15].value},m(o,n){s(o,t,n),s(o,r,n),s(o,i,n),a||(h=f(t,"change",e[11]),a=!0)},p(e,r){2&r&&o!==(o=e[1]?.id)&&b(t,"name",o),16&r&&n!==(n=e[15].value)&&(t.value=n),16&r&&p!==(p=(e[15].label??e[15].value)+"")&&m(i,p)},d(e){e&&d(t),e&&d(r),e&&d(i),a=!1,h()}}}function V(e){let t,o,n,r,i,a,h,p=(e[15].label??e[15].value)+"";return{c(){t=l("input"),r=u(),i=c(p),t.checked=!0,b(t,"type","radio"),b(t,"name",o=e[1]?.id),t.value=n=e[15].value},m(o,n){s(o,t,n),s(o,r,n),s(o,i,n),a||(h=f(t,"change",e[10]),a=!0)},p(e,r){2&r&&o!==(o=e[1]?.id)&&b(t,"name",o),16&r&&n!==(n=e[15].value)&&(t.value=n),16&r&&p!==(p=(e[15].label??e[15].value)+"")&&m(i,p)},d(e){e&&d(t),e&&d(r),e&&d(i),a=!1,h()}}}function B(e,t){let o,n;function r(e,t){return e[2]&&e[15].value===e[2]?V:O}let i=r(t),c=i(t);return{key:e,first:null,c(){o=l("div"),c.c(),n=u(),this.first=o},m(e,t){s(e,o,t),c.m(o,null),a(o,n)},p(e,a){i===(i=r(t=e))&&c?c.p(t,a):(c.d(1),c=i(t),c&&(c.c(),c.m(o,n)))},d(e){e&&d(o),c.d()}}}function I(e){let t,o,n=e[1].validationTip+"";return{c(){t=l("div"),o=c(n),b(t,"part","invalid-feedback"),b(t,"class","invalid-feedback mb-1")},m(e,n){s(e,t,n),a(t,o)},p(e,t){2&t&&n!==(n=e[1].validationTip+"")&&m(o,n)},d(e){e&&d(t)}}}function U(t){let o,n,r,i,a=[],f=new Map,m=t[4];const h=e=>e[15];for(let e=0;e<m.length;e+=1){let o=H(t,m,e),n=h(o);f.set(n,a[e]=B(n,o))}let p=t[1]?.validationTip&&"yes"===t[0]&&I(t);return{c(){o=l("div");for(let e=0;e<a.length;e+=1)a[e].c();r=u(),p&&p.c(),i=c(""),this.c=e,b(o,"class",n="form-control "+("yes"===t[0]&&t[1]?.required?t[3]?"is-valid":"is-invalid":""))},m(e,t){s(e,o,t);for(let e=0;e<a.length;e+=1)a[e].m(o,null);s(e,r,t),p&&p.m(e,t),s(e,i,t)},p(e,[t]){54&t&&(m=e[4],a=function(e,t,o,n,r,i,a,s,d,l,c,u){let f=e.length,b=i.length,m=f;const h={};for(;m--;)h[e[m].key]=m;const p=[],g=new Map,v=new Map;for(m=b;m--;){const e=u(r,i,m),s=o(e);let d=a.get(s);d?n&&d.p(e,t):(d=l(s,e),d.c()),g.set(s,p[m]=d),s in h&&v.set(s,Math.abs(m-h[s]))}const y=new Set,w=new Set;function $(e){N(e,1),e.m(s,c),a.set(e.key,e),c=e.first,b--}for(;f&&b;){const t=p[b-1],o=e[f-1],n=t.key,r=o.key;t===o?(c=t.first,f--,b--):g.has(r)?!a.has(n)||y.has(n)?$(t):w.has(r)?f--:v.get(n)>v.get(r)?(w.add(n),$(t)):(y.add(r),f--):(d(o,a),f--)}for(;f--;){const t=e[f];g.has(t.key)||d(t,a)}for(;b;)$(p[b-1]);return p}(a,t,h,1,e,m,f,o,j,B,null,H)),11&t&&n!==(n="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&b(o,"class",n),e[1]?.validationTip&&"yes"===e[0]?p?p.p(e,t):(p=I(e),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null)},i:e,o:e,d(e){e&&d(o);for(let e=0;e<a.length;e+=1)a[e].d();e&&d(r),p&&p.d(e),e&&d(i)}}}function F(e,t,o){var n,r;let i,a,{setvalue:s}=t,{setvalid:d}=t,{showvalidation:l}=t,{schemaentry:c}=t,u=[];const f=v(),b=y();function m(e,t){b(e,t),f.dispatchEvent&&f.dispatchEvent(new CustomEvent(e,{detail:t}))}function h(e){o(2,i=e.target.value),s||m("setValue",{value:i,id:null==c?void 0:c.id}),d||m("setValid",{valid:a,id:null==c?void 0:c.id})}return e.$$set=e=>{"setvalue"in e&&o(6,s=e.setvalue),"setvalid"in e&&o(7,d=e.setvalid),"showvalidation"in e&&o(0,l=e.showvalidation),"schemaentry"in e&&o(1,c=e.schemaentry)},e.$$.update=()=>{975&e.$$.dirty&&(l||o(0,l="no"),c&&"string"==typeof c&&o(1,c=JSON.parse(c)),o(6,s=!(!s&&"no"===s)),o(7,d=!(!d&&"no"===d)),o(4,u=null!==o(9,r=null===o(8,n=null==c?void 0:c.params)||void 0===n?void 0:n.options)&&void 0!==r?r:[]),o(2,i=null!=i?i:null==c?void 0:c.value),o(3,a=!((null==c?void 0:c.required)&&!i)),setTimeout((()=>{s&&m("setValue",{value:i,id:null==c?void 0:c.id}),d&&m("setValid",{valid:a,id:null==c?void 0:c.id})}),0))},[l,c,i,a,u,h,s,d,n,r,e=>{h(e)},e=>{h(e)}]}"function"==typeof HTMLElement&&(q=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,o){this[e]=o}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(e,t){const o=e.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(t),o.on_destroy=o.fragment=null,o.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(t),()=>{const e=o.indexOf(t);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class J extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import url(\"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap\");:host{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#07689f;--bs-secondary:#c9d6df;--bs-success:#11d3bc;--bs-info:#a2d5f2;--bs-warning:#ff7e67;--bs-danger:#f67280;--bs-light:#fafafa;--bs-dark:#4e4e4e;--bs-primary-rgb:7, 104, 159;--bs-secondary-rgb:201, 214, 223;--bs-success-rgb:17, 211, 188;--bs-info-rgb:162, 213, 242;--bs-warning-rgb:255, 126, 103;--bs-danger-rgb:246, 114, 128;--bs-light-rgb:250, 250, 250;--bs-dark-rgb:78, 78, 78;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#83b4cf;outline:0;box-shadow:0 0 0 0.25rem rgba(7, 104, 159, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.form-control.is-valid{border-color:#11d3bc;padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2311d3bc' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-valid:focus{border-color:#11d3bc;box-shadow:0 0 0 0.25rem rgba(17, 211, 188, 0.25)}.invalid-feedback{display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:#f67280}.is-invalid~.invalid-feedback{display:block}.form-control.is-invalid{border-color:#f67280;padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f67280'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f67280' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-invalid:focus{border-color:#f67280;box-shadow:0 0 0 0.25rem rgba(246, 114, 128, 0.25)}@media(prefers-reduced-motion: reduce){}@keyframes placeholder-glow{50%{opacity:0.2}}@keyframes placeholder-wave{100%{mask-position:-200% 0%}}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:\"Roboto\", sans-serif}</style>",R(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},F,U,i,{setvalue:6,setvalid:7,showvalidation:0,schemaentry:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),z()))}static get observedAttributes(){return["setvalue","setvalid","showvalidation","schemaentry"]}get setvalue(){return this.$$.ctx[6]}set setvalue(e){this.$$set({setvalue:e}),z()}get setvalid(){return this.$$.ctx[7]}set setvalid(e){this.$$set({setvalid:e}),z()}get showvalidation(){return this.$$.ctx[0]}set showvalidation(e){this.$$set({showvalidation:e}),z()}get schemaentry(){return this.$$.ctx[1]}set schemaentry(e){this.$$set({schemaentry:e}),z()}}return customElements.define("hb-input-radio",J),J}();
1
+ var release=function(){"use strict";function e(){}function t(e){return e()}function o(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,o){e.insertBefore(t,o||null)}function d(e){e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function u(){return l(" ")}function f(e,t,o,n){return e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)}function b(e,t,o){null==o?e.removeAttribute(t):e.getAttribute(t)!==o&&e.setAttribute(t,o)}function m(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function h(e){const t={};for(const o of e)t[o.name]=o.value;return t}let g;function p(e){g=e}function v(){if(!g)throw new Error("Function called outside component initialization");return g}function y(){const e=v();return(t,o)=>{const n=e.$$.callbacks[t];if(n){const r=function(e,t,o=!1){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,o,!1,t),n}(t,o);n.slice().forEach((t=>{t.call(e,r)}))}}}const w=[],$=[],k=[],x=[],E=Promise.resolve();let _=!1;function C(e){k.push(e)}const M=new Set;let S=0;function z(){const e=g;do{for(;S<w.length;){const e=w[S];S++,p(e),T(e.$$)}for(p(null),w.length=0,S=0;$.length;)$.pop()();for(let e=0;e<k.length;e+=1){const t=k[e];M.has(t)||(M.add(t),t())}k.length=0}while(w.length);for(;x.length;)x.pop()();_=!1,M.clear(),p(e)}function T(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const L=new Set;function N(e,t){e&&e.i&&(L.delete(e),e.i(t))}function j(e,t){e.d(1),t.delete(e.key)}function A(e,t){-1===e.$$.dirty[0]&&(w.push(e),_||(_=!0,E.then(z)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function R(i,a,s,c,l,u,f,b=[-1]){const m=g;p(i);const h=i.$$={fragment:null,ctx:null,props:u,update:e,not_equal:l,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:o(),dirty:b,skip_bound:!1,root:a.target||m.$$.root};f&&f(h.root);let v=!1;if(h.ctx=s?s(i,a.props||{},((e,t,...o)=>{const n=o.length?o[0]:t;return h.ctx&&l(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),v&&A(i,e)),t})):[],h.update(),v=!0,n(h.before_update),h.fragment=!!c&&c(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(d)}else h.fragment&&h.fragment.c();a.intro&&N(i.$$.fragment),function(e,o,i,a){const{fragment:s,on_mount:d,on_destroy:c,after_update:l}=e.$$;s&&s.m(o,i),a||C((()=>{const o=d.map(t).filter(r);c?c.push(...o):n(o),e.$$.on_mount=[]})),l.forEach(C)}(i,a.target,a.anchor,a.customElement),z()}p(m)}let q;function H(e,t,o){const n=e.slice();return n[15]=t[o],n}function O(e){let t,o,n,r,i,a,h,g=(e[15].label??e[15].value)+"";return{c(){t=c("input"),r=u(),i=l(g),b(t,"type","radio"),b(t,"name",o=e[1]?.id),t.value=n=e[15].value},m(o,n){s(o,t,n),s(o,r,n),s(o,i,n),a||(h=f(t,"change",e[11]),a=!0)},p(e,r){2&r&&o!==(o=e[1]?.id)&&b(t,"name",o),16&r&&n!==(n=e[15].value)&&(t.value=n),16&r&&g!==(g=(e[15].label??e[15].value)+"")&&m(i,g)},d(e){e&&d(t),e&&d(r),e&&d(i),a=!1,h()}}}function V(e){let t,o,n,r,i,a,h,g=(e[15].label??e[15].value)+"";return{c(){t=c("input"),r=u(),i=l(g),t.checked=!0,b(t,"type","radio"),b(t,"name",o=e[1]?.id),t.value=n=e[15].value},m(o,n){s(o,t,n),s(o,r,n),s(o,i,n),a||(h=f(t,"change",e[10]),a=!0)},p(e,r){2&r&&o!==(o=e[1]?.id)&&b(t,"name",o),16&r&&n!==(n=e[15].value)&&(t.value=n),16&r&&g!==(g=(e[15].label??e[15].value)+"")&&m(i,g)},d(e){e&&d(t),e&&d(r),e&&d(i),a=!1,h()}}}function B(e,t){let o,n;function r(e,t){return e[2]&&e[15].value===e[2]?V:O}let i=r(t),l=i(t);return{key:e,first:null,c(){o=c("div"),l.c(),n=u(),this.first=o},m(e,t){s(e,o,t),l.m(o,null),a(o,n)},p(e,a){i===(i=r(t=e))&&l?l.p(t,a):(l.d(1),l=i(t),l&&(l.c(),l.m(o,n)))},d(e){e&&d(o),l.d()}}}function I(e){let t,o,n=e[1].validationTip+"";return{c(){t=c("div"),o=l(n),b(t,"part","invalid-feedback"),b(t,"class","invalid-feedback mb-1")},m(e,n){s(e,t,n),a(t,o)},p(e,t){2&t&&n!==(n=e[1].validationTip+"")&&m(o,n)},d(e){e&&d(t)}}}function U(t){let o,n,r,i,a=[],f=new Map,m=t[4];const h=e=>e[15];for(let e=0;e<m.length;e+=1){let o=H(t,m,e),n=h(o);f.set(n,a[e]=B(n,o))}let g=t[1]?.validationTip&&"yes"===t[0]&&I(t);return{c(){o=c("div");for(let e=0;e<a.length;e+=1)a[e].c();r=u(),g&&g.c(),i=l(""),this.c=e,b(o,"class",n="form-control "+("yes"===t[0]&&t[1]?.required?t[3]?"is-valid":"is-invalid":""))},m(e,t){s(e,o,t);for(let e=0;e<a.length;e+=1)a[e].m(o,null);s(e,r,t),g&&g.m(e,t),s(e,i,t)},p(e,[t]){54&t&&(m=e[4],a=function(e,t,o,n,r,i,a,s,d,c,l,u){let f=e.length,b=i.length,m=f;const h={};for(;m--;)h[e[m].key]=m;const g=[],p=new Map,v=new Map;for(m=b;m--;){const e=u(r,i,m),s=o(e);let d=a.get(s);d?n&&d.p(e,t):(d=c(s,e),d.c()),p.set(s,g[m]=d),s in h&&v.set(s,Math.abs(m-h[s]))}const y=new Set,w=new Set;function $(e){N(e,1),e.m(s,l),a.set(e.key,e),l=e.first,b--}for(;f&&b;){const t=g[b-1],o=e[f-1],n=t.key,r=o.key;t===o?(l=t.first,f--,b--):p.has(r)?!a.has(n)||y.has(n)?$(t):w.has(r)?f--:v.get(n)>v.get(r)?(w.add(n),$(t)):(y.add(r),f--):(d(o,a),f--)}for(;f--;){const t=e[f];p.has(t.key)||d(t,a)}for(;b;)$(g[b-1]);return g}(a,t,h,1,e,m,f,o,j,B,null,H)),11&t&&n!==(n="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&b(o,"class",n),e[1]?.validationTip&&"yes"===e[0]?g?g.p(e,t):(g=I(e),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null)},i:e,o:e,d(e){e&&d(o);for(let e=0;e<a.length;e+=1)a[e].d();e&&d(r),g&&g.d(e),e&&d(i)}}}function F(e,t,o){var n,r;let i,a,{setvalue:s}=t,{setvalid:d}=t,{showvalidation:c}=t,{schemaentry:l}=t,u=[];const f=v(),b=y();function m(e,t){b(e,t),f.dispatchEvent&&f.dispatchEvent(new CustomEvent(e,{detail:t}))}function h(e){o(2,i=e.target.value),s||m("setValue",{value:i,id:null==l?void 0:l.id}),d||m("setValid",{valid:a,id:null==l?void 0:l.id})}return e.$$set=e=>{"setvalue"in e&&o(6,s=e.setvalue),"setvalid"in e&&o(7,d=e.setvalid),"showvalidation"in e&&o(0,c=e.showvalidation),"schemaentry"in e&&o(1,l=e.schemaentry)},e.$$.update=()=>{975&e.$$.dirty&&(c||o(0,c="no"),l&&"string"==typeof l&&o(1,l=JSON.parse(l)),o(6,s=!(!s&&"no"===s)),o(7,d=!(!d&&"no"===d)),o(4,u=null!==o(9,r=null===o(8,n=null==l?void 0:l.params)||void 0===n?void 0:n.options)&&void 0!==r?r:[]),o(2,i=null!=i?i:null==l?void 0:l.value),o(3,a=!((null==l?void 0:l.required)&&!i)),setTimeout((()=>{s&&m("setValue",{value:i,id:null==l?void 0:l.id}),d&&m("setValid",{valid:a,id:null==l?void 0:l.id})}),0))},[c,l,i,a,u,h,s,d,n,r,e=>{h(e)},e=>{h(e)}]}"function"==typeof HTMLElement&&(q=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,o){this[e]=o}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){!function(e,t){const o=e.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(t),o.on_destroy=o.fragment=null,o.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(t),()=>{const e=o.indexOf(t);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class J extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import url(\"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap\");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.form-control.is-valid{border-color:var(--bs-warning,#ffc107);padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-valid:focus{border-color:var(--bs-warning,#ffc107);box-shadow:0 0 0 0.25rem rgba(25, 135, 84, 0.25)}.invalid-feedback{display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:var(--bs-danger,#f67280)}.is-invalid~.invalid-feedback{display:block}.form-control.is-invalid{border-color:var(--bs-danger,#f67280);padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-invalid:focus{border-color:var(--bs-danger,#f67280);box-shadow:0 0 0 0.25rem rgba(220, 53, 69, 0.25)}@media(prefers-reduced-motion: reduce){}@keyframes placeholder-glow{50%{opacity:0.2}}@keyframes placeholder-wave{100%{mask-position:-200% 0%}}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:\"Roboto\", sans-serif}</style>",R(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},F,U,i,{setvalue:6,setvalid:7,showvalidation:0,schemaentry:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),z()))}static get observedAttributes(){return["setvalue","setvalid","showvalidation","schemaentry"]}get setvalue(){return this.$$.ctx[6]}set setvalue(e){this.$$set({setvalue:e}),z()}get setvalid(){return this.$$.ctx[7]}set setvalid(e){this.$$set({setvalid:e}),z()}get showvalidation(){return this.$$.ctx[0]}set showvalidation(e){this.$$set({showvalidation:e}),z()}get schemaentry(){return this.$$.ctx[1]}set schemaentry(e){this.$$set({schemaentry:e}),z()}}return customElements.define("hb-input-radio",J),J}();
2
2
  //# sourceMappingURL=release.js.map