@ssj4kyuubi/recipe-ui-lib 0.1.4
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/README.md +128 -0
- package/dist/cjs/index-CJNMpFY7.js +1609 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/rui-button.cjs.entry.js +31 -0
- package/dist/cjs/rui-filter-chips.cjs.entry.js +30 -0
- package/dist/cjs/rui-meal-planner.cjs.entry.js +52 -0
- package/dist/cjs/rui-modal.cjs.entry.js +52 -0
- package/dist/cjs/rui-recipe-card.cjs.entry.js +29 -0
- package/dist/cjs/rui-recipe-detail.cjs.entry.js +34 -0
- package/dist/cjs/rui-recipe-list.cjs.entry.js +44 -0
- package/dist/cjs/rui-search-bar.cjs.entry.js +39 -0
- package/dist/cjs/rui.cjs.js +24 -0
- package/dist/collection/collection-manifest.json +20 -0
- package/dist/collection/components/index.js +8 -0
- package/dist/collection/components/rui-button/rui-button.css +72 -0
- package/dist/collection/components/rui-button/rui-button.js +140 -0
- package/dist/collection/components/rui-filter-chips/rui-filter-chips.css +30 -0
- package/dist/collection/components/rui-filter-chips/rui-filter-chips.js +96 -0
- package/dist/collection/components/rui-meal-planner/rui-meal-planner.css +130 -0
- package/dist/collection/components/rui-meal-planner/rui-meal-planner.js +174 -0
- package/dist/collection/components/rui-modal/rui-modal.css +79 -0
- package/dist/collection/components/rui-modal/rui-modal.js +137 -0
- package/dist/collection/components/rui-recipe-card/rui-recipe-card.css +100 -0
- package/dist/collection/components/rui-recipe-card/rui-recipe-card.js +122 -0
- package/dist/collection/components/rui-recipe-detail/rui-recipe-detail.css +197 -0
- package/dist/collection/components/rui-recipe-detail/rui-recipe-detail.js +127 -0
- package/dist/collection/components/rui-recipe-list/rui-recipe-list.css +16 -0
- package/dist/collection/components/rui-recipe-list/rui-recipe-list.js +160 -0
- package/dist/collection/components/rui-search-bar/rui-search-bar.css +45 -0
- package/dist/collection/components/rui-search-bar/rui-search-bar.js +137 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/rui-button.d.ts +11 -0
- package/dist/components/rui-button.js +1 -0
- package/dist/components/rui-filter-chips.d.ts +11 -0
- package/dist/components/rui-filter-chips.js +1 -0
- package/dist/components/rui-meal-planner.d.ts +11 -0
- package/dist/components/rui-meal-planner.js +1 -0
- package/dist/components/rui-modal.d.ts +11 -0
- package/dist/components/rui-modal.js +1 -0
- package/dist/components/rui-recipe-card.d.ts +11 -0
- package/dist/components/rui-recipe-card.js +1 -0
- package/dist/components/rui-recipe-card2.js +1 -0
- package/dist/components/rui-recipe-detail.d.ts +11 -0
- package/dist/components/rui-recipe-detail.js +1 -0
- package/dist/components/rui-recipe-list.d.ts +11 -0
- package/dist/components/rui-recipe-list.js +1 -0
- package/dist/components/rui-search-bar.d.ts +11 -0
- package/dist/components/rui-search-bar.js +1 -0
- package/dist/esm/index-Cye74XUb.js +1599 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/rui-button.entry.js +29 -0
- package/dist/esm/rui-filter-chips.entry.js +28 -0
- package/dist/esm/rui-meal-planner.entry.js +50 -0
- package/dist/esm/rui-modal.entry.js +50 -0
- package/dist/esm/rui-recipe-card.entry.js +27 -0
- package/dist/esm/rui-recipe-detail.entry.js +32 -0
- package/dist/esm/rui-recipe-list.entry.js +42 -0
- package/dist/esm/rui-search-bar.entry.js +37 -0
- package/dist/esm/rui.js +20 -0
- package/dist/esm-es5/index-Cye74XUb.js +64 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/rui-button.entry.js +1 -0
- package/dist/esm-es5/rui-filter-chips.entry.js +1 -0
- package/dist/esm-es5/rui-meal-planner.entry.js +1 -0
- package/dist/esm-es5/rui-modal.entry.js +1 -0
- package/dist/esm-es5/rui-recipe-card.entry.js +1 -0
- package/dist/esm-es5/rui-recipe-detail.entry.js +1 -0
- package/dist/esm-es5/rui-recipe-list.entry.js +1 -0
- package/dist/esm-es5/rui-search-bar.entry.js +1 -0
- package/dist/esm-es5/rui.js +4 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/rui/index.esm.js +0 -0
- package/dist/rui/p-044c45e5.entry.js +1 -0
- package/dist/rui/p-0eda7928.system.entry.js +1 -0
- package/dist/rui/p-1a89ad3e.system.entry.js +1 -0
- package/dist/rui/p-1b310317.system.entry.js +1 -0
- package/dist/rui/p-2fc25e59.system.entry.js +1 -0
- package/dist/rui/p-40bf8db2.entry.js +1 -0
- package/dist/rui/p-72d787e7.system.entry.js +1 -0
- package/dist/rui/p-89d06840.system.entry.js +1 -0
- package/dist/rui/p-9e0ffa92.entry.js +1 -0
- package/dist/rui/p-Chuy7yuu.system.js +5 -0
- package/dist/rui/p-Cye74XUb.js +3 -0
- package/dist/rui/p-DMa34l4T.system.js +64 -0
- package/dist/rui/p-YWpyar7R.system.js +1 -0
- package/dist/rui/p-a25c8161.entry.js +1 -0
- package/dist/rui/p-ad0253ac.entry.js +1 -0
- package/dist/rui/p-b5196c19.system.entry.js +1 -0
- package/dist/rui/p-b5d6b297.system.entry.js +1 -0
- package/dist/rui/p-d04fa46b.entry.js +1 -0
- package/dist/rui/p-d34e0888.entry.js +1 -0
- package/dist/rui/p-eac80bd7.entry.js +1 -0
- package/dist/rui/rui.css +1 -0
- package/dist/rui/rui.esm.js +1 -0
- package/dist/rui/rui.js +127 -0
- package/dist/types/components/index.d.ts +8 -0
- package/dist/types/components/rui-button/rui-button.d.ts +11 -0
- package/dist/types/components/rui-filter-chips/rui-filter-chips.d.ts +12 -0
- package/dist/types/components/rui-meal-planner/rui-meal-planner.d.ts +29 -0
- package/dist/types/components/rui-modal/rui-modal.d.ts +13 -0
- package/dist/types/components/rui-recipe-card/rui-recipe-card.d.ts +20 -0
- package/dist/types/components/rui-recipe-detail/rui-recipe-detail.d.ts +28 -0
- package/dist/types/components/rui-recipe-list/rui-recipe-list.d.ts +16 -0
- package/dist/types/components/rui-search-bar/rui-search-bar.d.ts +14 -0
- package/dist/types/components.d.ts +654 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1873 -0
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-DMa34l4T.system.js"],(function(e){"use strict";var r,i,a,t;return{setters:[function(e){r=e.r;i=e.c;a=e.h;t=e.H}],execute:function(){var d=function(){return":host{display:block}.rui-detail{background:var(--rui-color-bg);border-radius:var(--rui-radius);-webkit-box-shadow:var(--rui-shadow-sm);box-shadow:var(--rui-shadow-sm);overflow:hidden}.rui-detail__header{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;padding:1.5rem}@media (max-width: 640px){.rui-detail__header{grid-template-columns:1fr}}.rui-detail__media{aspect-ratio:4 / 3;background:var(--rui-color-bg-alt);border-radius:var(--rui-radius);overflow:hidden}.rui-detail__media img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.rui-detail__placeholder{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--rui-color-muted)}.rui-detail__title{margin:0 0 0.35rem;font-size:1.6rem;font-weight:700}.rui-detail__meta{margin:0 0 1rem;color:var(--rui-color-muted);font-size:0.95rem}.rui-detail__actions{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:0.6rem;-ms-flex-align:center;align-items:center}.rui-detail__fav,.rui-detail__plan{font-family:var(--rui-font);font-size:0.9rem;font-weight:600;padding:0.5rem 0.9rem;border-radius:var(--rui-radius);border:1px solid var(--rui-color-border);background:var(--rui-color-bg);cursor:pointer;-webkit-transition:background-color 0.15s ease, border-color 0.15s ease;transition:background-color 0.15s ease, border-color 0.15s ease}.rui-detail__fav:hover,.rui-detail__plan:hover{border-color:var(--rui-color-primary);background:var(--rui-color-primary-soft)}.rui-detail__fav.is-fav{color:var(--rui-color-danger);border-color:var(--rui-color-danger);background:#fff5f5}.rui-detail__section{padding:0 1.5rem 1.5rem}.rui-detail__section h3{margin:0 0 0.75rem;font-size:1.15rem;font-weight:700;border-bottom:2px solid var(--rui-color-primary-soft);padding-bottom:0.35rem}.rui-detail__tables{display:grid;grid-template-columns:1fr 1fr;gap:1rem;-ms-flex-align:start;align-items:start}@media (max-width: 700px){.rui-detail__tables{grid-template-columns:1fr}}.rui-detail__table{width:100%;border-collapse:collapse;font-size:0.9rem;background:var(--rui-color-bg, #ffffff);border:1px solid var(--rui-color-border, #dee2e6);border-radius:var(--rui-radius, 8px);overflow:hidden}.rui-detail__table thead{background:var(--rui-color-bg-alt, #f8f9fa)}.rui-detail__table th{text-align:left;padding:0.6rem 0.75rem;font-weight:700;font-size:0.82rem;text-transform:uppercase;letter-spacing:0.03em;color:var(--rui-color-muted, #868e96);border-bottom:2px solid var(--rui-color-border, #dee2e6)}.rui-detail__table td{padding:0.55rem 0.75rem;border-bottom:1px solid var(--rui-color-border, #dee2e6);vertical-align:middle}.rui-detail__table tbody tr:last-child td{border-bottom:none}.rui-detail__table tbody tr:hover{background:var(--rui-color-primary-soft, #dcfce7)}.rui-detail__td--index{width:36px;text-align:center;color:var(--rui-color-muted, #868e96);font-weight:600}.rui-detail__ing-measure{color:var(--rui-color-muted, #868e96);white-space:nowrap}.rui-detail__ing-name{font-weight:500;color:var(--rui-color-text, #212529)}.rui-detail__empty{color:var(--rui-color-muted, #868e96);font-size:0.9rem;margin:0.5rem 0 0}.rui-detail__ingredients{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));gap:0.4rem 1rem}.rui-detail__ingredients li{display:-ms-flexbox;display:flex;gap:0.5rem;font-size:0.9rem;padding:0.3rem 0;border-bottom:1px dashed var(--rui-color-border, #dee2e6)}.rui-detail__instructions{white-space:pre-line;line-height:1.6;font-size:0.95rem;margin:0}.rui-detail__links{display:-ms-flexbox;display:flex;gap:1rem}.rui-detail__links a{color:var(--rui-color-secondary);text-decoration:none;font-weight:500}.rui-detail__links a:hover{text-decoration:underline}"};var o=e("rui_recipe_detail",/** @class */function(){function e(e){var a=this;r(this,e);this.ruiAddToPlan=i(this,"ruiAddToPlan");this.ruiFavoriteToggle=i(this,"ruiFavoriteToggle");this.isFavorite=false;this.onAddToPlan=function(){a.ruiAddToPlan.emit(a.recipe)};this.onFavToggle=function(){a.isFavorite=!a.isFavorite;a.ruiFavoriteToggle.emit({recipe:a.recipe,isFavorite:a.isFavorite})}}e.prototype.render=function(){var e=this.recipe;return a(t,{key:"3cbe3361e6d88381fbec4fd8d282963933878de4"},a("article",{key:"ef3860f9752829fae37d374684f5b6e5045299e5",class:"rui-detail"},a("header",{key:"a14c496c15e23458956538926449bcecb742fd4c",class:"rui-detail__header"},a("div",{key:"e6766cf5e4d766fcd2b47a946122b0b108de6a73",class:"rui-detail__media"},e.image?a("img",{src:e.image,alt:e.name}):a("div",{class:"rui-detail__placeholder"},"No image")),a("div",{key:"3c0ccb26f0379d9ddd9cd29a05d237a9d377d516",class:"rui-detail__intro"},a("h2",{key:"108020c974704efc52907eb1f945ee3a7584436f",class:"rui-detail__title"},e.name),(e.category||e.area)&&a("p",{key:"fc381751090c3c067076967347db95907e048898",class:"rui-detail__meta"},[e.category,e.area].filter(Boolean).join(" · ")),a("div",{key:"a0084338478d82d0e7c4f738ff7650646805efe9",class:"rui-detail__actions"},a("slot",{key:"ba5ac7fba83204b9c7512837313238771d68a59c",name:"actions"}),a("button",{key:"1b2a17d3d7571e5d484a9a26bb13b69a9ec8d56a",type:"button",class:"rui-detail__fav ".concat(this.isFavorite?"is-fav":""),"aria-pressed":this.isFavorite?"true":"false",onClick:this.onFavToggle},this.isFavorite?"♥ Favorited":"♡ Add to favorites"),a("button",{key:"1f9e6eec95cf99ef6bad7197d488e4623d9c0381",type:"button",class:"rui-detail__plan",onClick:this.onAddToPlan},"+ Add to meal plan")))),a("section",{key:"8fa48000e6baaf8f22431b413d964c79ce2f9441",class:"rui-detail__section"},a("h3",{key:"44e655db0ee49e4a1f9f2e31a82a23c3c549060a"},"Ingredients"),e.ingredients&&e.ingredients.length>0?function(){var r=Math.ceil(e.ingredients.length/2);var i=e.ingredients.slice(0,r);var t=e.ingredients.slice(r);var d=function(e,r){return a("table",{class:"rui-detail__table"},a("thead",null,a("tr",null,a("th",null,"#"),a("th",null,"Ingredient"),a("th",null,"Measure"))),a("tbody",null,e.map((function(e,i){return a("tr",null,a("td",{class:"rui-detail__td--index"},r+i+1),a("td",{class:"rui-detail__ing-name"},e.name),a("td",{class:"rui-detail__ing-measure"},e.measure||"—"))}))))};return a("div",{class:"rui-detail__tables"},d(i,0),t.length>0&&d(t,r))}():a("p",{class:"rui-detail__empty"},"No ingredients listed."),a("slot",{key:"58d20bb01497af2651f492d9e6520a587d3e21ce",name:"ingredients-extra"})),e.instructions&&a("section",{key:"54176a29fab9b1142b30994d0ae74acd2e881e69",class:"rui-detail__section"},a("h3",{key:"0f0900c1f6abb29cf8601d5d3e6fc44abc344105"},"Instructions"),a("p",{key:"e4f4e185a193ac818bc21e3974c957716a1b8fd6",class:"rui-detail__instructions"},e.instructions)),(e.youtube||e.source)&&a("section",{key:"f8db0b0a526a6e774e83d700325471dbc032170e",class:"rui-detail__section rui-detail__links"},e.youtube&&a("a",{key:"add83e9353e6294219dfb9304c98a49833913200",href:e.youtube,target:"_blank",rel:"noopener noreferrer"},"Watch on YouTube"),e.source&&a("a",{key:"b719435a049b54a4b5ec1500ea9a19da9c10f98d",href:e.source,target:"_blank",rel:"noopener noreferrer"},"Original source"))))};return e}());o.style=d()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as o,h as i,H as s}from"./p-Cye74XUb.js";const e=class{constructor(i){r(this,i),this.ruiFilterChange=o(this,"ruiFilterChange"),this.categories=[],this.selected=[],this.toggle=r=>{const o=this.selected.includes(r)?this.selected.filter((o=>o!==r)):[...this.selected,r];this.selected=[...o],this.ruiFilterChange.emit(this.selected)}}render(){return i(s,{key:"628063d481c07e5c80312a9a395ba7ad0ab859dc"},i("div",{key:"d3aa0f87f0e6b6bd55960dc91769f56b70e4ef67",class:"rui-chips",role:"group","aria-label":"Filters"},this.categories.map((r=>{const o=this.selected.includes(r.value);return i("button",{type:"button",class:"rui-chip "+(o?"rui-chip--active":""),"aria-pressed":o?"true":"false",onClick:()=>this.toggle(r.value)},r.label)}))))}};e.style=":host{display:block}.rui-chips{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:0.5rem}.rui-chip{font-family:var(--rui-font);font-size:0.85rem;font-weight:500;padding:0.35rem 0.85rem;border-radius:999px;border:1px solid var(--rui-color-border);background:var(--rui-color-bg);color:var(--rui-color-text);cursor:pointer;-webkit-transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.rui-chip:hover{border-color:var(--rui-color-primary)}.rui-chip--active{background:var(--rui-color-primary);border-color:var(--rui-color-primary);color:#fff}";export{e as rui_filter_chips}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,o)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(r=0)),r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-DMa34l4T.system.js"],(function(e,t){"use strict";var r,n,i;return{setters:[function(t){r=t.p;n=t.g;i=t.b;e("setNonce",t.s)}],execute:function(){
|
|
2
|
+
/*
|
|
3
|
+
Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
4
|
+
*/
|
|
5
|
+
var e=this;var a=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};a().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4/*yield*/,n()];case 1:e.sent();return[2/*return*/,i([["p-1b310317.system",[[1,"rui-recipe-list",{recipes:[16],favorites:[16],emptyMessage:[1,"empty-message"]},null,{recipes:[{recipesChanged:0}],favorites:[{favoritesChanged:0}]}]]],["p-1a89ad3e.system",[[257,"rui-button",{variant:[1],disabled:[516],loading:[4],type:[1]}]]],["p-b5196c19.system",[[1,"rui-filter-chips",{categories:[16],selected:[16]}]]],["p-72d787e7.system",[[1,"rui-meal-planner",{plan:[16],days:[16]}]]],["p-2fc25e59.system",[[257,"rui-modal",{open:[1540],modalTitle:[1,"modal-title"],closeOnBackdrop:[4,"close-on-backdrop"]},null,{open:[{openChanged:0}]}]]],["p-89d06840.system",[[257,"rui-recipe-detail",{recipe:[16],isFavorite:[516,"is-favorite"]}]]],["p-0eda7928.system",[[1,"rui-search-bar",{value:[1025],placeholder:[1],debounceMs:[2,"debounce-ms"]}]]],["p-b5d6b297.system",[[257,"rui-recipe-card",{recipe:[16],isFavorite:[516,"is-favorite"]}]]]],t)]}}))}))}))}}}));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const t=()=>{},e=":root{--rui-color-primary:#16a34a;--rui-color-primary-hover:#15803d;--rui-color-primary-soft:#dcfce7;--rui-color-secondary:#1864ab;--rui-color-danger:#c92a2a;--rui-color-success:#2b8a3e;--rui-color-text:#212529;--rui-color-muted:#868e96;--rui-color-border:#dee2e6;--rui-color-bg:#ffffff;--rui-color-bg-alt:#f8f9fa;--rui-radius:8px;--rui-radius-sm:4px;--rui-shadow-sm:0 1px 3px rgba(0, 0, 0, 0.08);--rui-shadow-md:0 4px 12px rgba(0, 0, 0, 0.12);--rui-font:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}:host{display:block;font-family:var(--rui-font);color:var(--rui-color-text);-webkit-box-sizing:border-box;box-sizing:border-box}*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}";function n(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var o,l=(t,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=t[o],r=n(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);r&&Object.defineProperty(t,o,{get(){return r.get.call(this)},set(t){r.set.call(this,t)},configurable:!0,enumerable:!0}),e.l.has(o)?t[o]=e.l.get(o):void 0!==l&&(t[o]=l)}}))},r=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},i=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&l(t,e))},s=(t,e)=>e in t,c=(t,e)=>(0,console.error)(t,e),u=new Map,a=new Map,f=new Map,d="undefined"!=typeof window?window:{},p={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),m=(()=>{try{return!!d.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),b=!!m&&(()=>!!d.document&&Object.getOwnPropertyDescriptor(d.document.adoptedStyleSheets,"length").writable)(),v=!1,y=[],$=[],g=()=>{var t;return(null==(t=d.document)?void 0:t.hidden)?O(j):p.raf(j)},w=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&p.u?O(j):g())},S=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){c(t)}t.length=0},j=()=>{S(y),S($),(v=y.length>0)&&g()},O=t=>h().then(t),x=w($,!0);function k(){var t;const n=this.attachShadow({mode:"open"});if(void 0===o&&(o=null!=(t=function(t){if(!m)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?t:null),o)b?n.adoptedStyleSheets.push(o):n.adoptedStyleSheets=[...n.adoptedStyleSheets,o];else if(!m){const t=document.createElement("style");t.innerHTML=e,n.prepend(t)}}function M(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var E,C=new WeakMap,A=t=>"sc-"+t.h,N=t=>"object"==(t=typeof t)||"function"===t,R=(t,e,...n)=>{let o=null,l=null,r=!1,i=!1;const s=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(r="function"!=typeof t&&!N(o))o+="";else if("function"!=typeof t&&void 0===o.u){c("Invalid vNode child");continue}r&&i?s[s.length-1].m+=o:s.push(r?z(null,o):o),i=r}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const a=z(t,null);return a.v=e,s.length>0&&(a.$=s),a.S=l,a},z=(t,e)=>({u:0,j:t,m:null!=e?e:null,O:null,$:null,v:null,S:null}),H={},L=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},T=(t,e)=>null==t||N(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,D=t=>{var e;return null==(e=r(t))?void 0:e.$hostElement$},P=(t,e)=>{const n=D(t);return{emit:t=>U(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},U=(t,e,n)=>{const o=p.ce(e,n);return t.dispatchEvent(o),o},F=(t,e,n,o,l,i)=>{if(n===o)return;let c=s(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,l=B(n);let r=B(o);e.remove(...l.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let l;{const e=r(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(l=t[1])}}return l||(l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const r=N(o);if((c||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?c=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?(!1!==o||""===t.getAttribute(e)||4&i&&!V(e))&&t.removeAttribute(e):(!c||4&i||l)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}else if(e="-"===e[2]?e.slice(3):s(d,u)?u.slice(2):u[2]+e.slice(3),n||o){const l=e.endsWith(I);e=e.replace(G,""),n&&p.rel(t,e,n,l),o&&p.ael(t,e,o,l)}},W=new Set(["draggable","contenteditable","spellcheck"]),V=t=>W.has(t)||t.startsWith("aria-"),q=/\s/,B=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(q):[]),I="Capture",G=RegExp(I+"$"),Y=(t,e,n)=>{const o=11===e.O.nodeType&&e.O.host?e.O.host:e.O,l=t&&t.v||{},r=e.v||{};for(const t of Z(Object.keys(l)))t in r||F(o,t,l[t],void 0,n,e.u);for(const t of Z(Object.keys(r)))F(o,t,l[t],r[t],n,e.u)};function Z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,J=!1,K=(t,e,n)=>{const o=e.$[n];let l,r,i=0;if(null!=o.m)l=o.O=d.document.createTextNode(o.m);else{if(!d.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.O=d.document.createElement(o.j),Y(null,o,J),o.$){const e="template"===o.j?l.content:l;for(i=0;i<o.$.length;++i)r=K(t,o,i),r&&e.appendChild(r)}}return l["s-hn"]=E,l},Q=(t,e,n,o,l,r)=>{let i,s=t;for(s.shadowRoot&&s.tagName===E&&(s=s.shadowRoot),"template"===n.j&&(s=s.content);l<=r;++l)o[l]&&(i=K(null,n,l),i&&(o[l].O=i,nt(s,i,e)))},X=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.O;t&&t.remove()}}},tt=(t,e,n=!1)=>t.j===e.j&&(n?(n&&!t.S&&e.S&&(t.S=e.S),!0):t.S===e.S),et=(t,e,n=!1)=>{const o=e.O=t.O,l=t.$,r=e.$,i=e.m;null==i?("slot"!==e.j||_||t.k!==e.k&&(e.O["s-sn"]=e.k||"",(t=>{p.u|=1;const e=t.closest(E.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(nt(e,t,null!=n?n:null),t["s-sh"]=void 0)}p.u&=-2})(e.O.parentElement)),Y(t,e,J),null!==l&&null!==r?((t,e,n,o,l=!1)=>{let r,i,s=0,c=0,u=0,a=0,f=e.length-1,d=e[0],p=e[f],h=o.length-1,m=o[0],b=o[h];const v="template"===n.j?t.content:t;for(;s<=f&&c<=h;)if(null==d)d=e[++s];else if(null==p)p=e[--f];else if(null==m)m=o[++c];else if(null==b)b=o[--h];else if(tt(d,m,l))et(d,m,l),d=e[++s],m=o[++c];else if(tt(p,b,l))et(p,b,l),p=e[--f],b=o[--h];else if(tt(d,b,l))et(d,b,l),nt(v,d.O,p.O.nextSibling),d=e[++s],b=o[--h];else if(tt(p,m,l))et(p,m,l),nt(v,p.O,d.O),p=e[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(e[a]&&null!==e[a].S&&e[a].S===m.S){u=a;break}u>=0?(i=e[u],i.j!==m.j?r=K(e&&e[c],n,u):(et(i,m,l),e[u]=void 0,r=i.O),m=o[++c]):(r=K(e&&e[c],n,c),m=o[++c]),r&&nt(d.O.parentNode,r,d.O)}s>f?Q(t,null==o[h+1]?null:o[h+1].O,n,o,c,h):c>h&&X(e,s,f)})(o,l,e,r,n):null!==r?(null!==t.m&&(o.textContent=""),Q(o,null,e,r,0,r.length-1)):!n&&null!==l&&X(l,0,l.length-1)):t.m!==i&&(o.data=i)},nt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),ot=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.M=()=>{e["s-p"].splice(n-1,1),o()})))}},lt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);ot(t,t.C);const n=()=>rt(t,e);if(!e)return x(n);queueMicrotask((()=>{n()}))},rt=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.A.length&&t.A.forEach((t=>t(n))),l=dt(o,"componentWillLoad",void 0,n)):l=dt(o,"componentWillUpdate",void 0,n),l=it(l,(()=>dt(o,"componentWillRender",void 0,n))),it(l,(()=>ct(t,o,e)))},it=(t,e)=>st(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),st=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ct=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const r=A(e),i=f.get(r);if(!d.document)return r;if(t=11===t.nodeType?t:d.document,i)if("string"==typeof i){let l,s=C.get(t=t.head||t);if(s||C.set(t,s=new Set),!s.has(r)){l=d.document.createElement("style"),l.textContent=i;const c=null!=(n=p.N)?n:M(d.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(m){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(i),b?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=i+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(r)}}else{let e=C.get(t);if(e||C.set(t,e=new Set),!e.has(r)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===n.CSSStyleSheet)o=i;else{o=new n.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}b?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(r)}}return r})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ut(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>at(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},ut=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,r=t.R||z(null,null),i=(t=>t&&t.j===H)(e)?e:R(null,null,e);if(E=o.tagName,l.H&&(i.v=i.v||{},l.H.forEach((([t,e])=>{i.v[e]=o[t]}))),n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.j=null,i.u|=4,t.R=i,i.O=r.O=o.shadowRoot||o,_=!(!(1&l.u)||128&l.u),et(r,i,n)})(t,e,o)}catch(e){c(e,t.$hostElement$)}return null},at=t=>{const e=t.$hostElement$,n=t.i,o=t.C;dt(n,"componentDidRender",void 0,e),64&t.u?dt(n,"componentDidUpdate",void 0,e):(t.u|=64,pt(e),dt(n,"componentDidLoad",void 0,e),t.L(e),o||ft()),t.M&&(t.M(),t.M=void 0),512&t.u&&O((()=>lt(t,!1))),t.u&=-517},ft=()=>{O((()=>U(d,"appload",{detail:{namespace:"rui"}})))},dt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){c(t,o)}},pt=t=>t.classList.add("hydrated"),ht=(t,e,n,o)=>{const l=r(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=l.$hostElement$,s=l.l.get(e),u=l.u,a=l.i;if(n=T(n,o.t[e][0]),!(8&u&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n))){if(l.l.set(e,n),o.T){const t=o.T[e];t&&t.map((t=>{try{const[[o,r]]=Object.entries(t);(128&u||1&r)&&(a?a[o](n,s,e):l.A.push((()=>{l.i[o](n,s,e)})))}catch(t){c(t,i)}}))}if(2&u){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(n,s,e)&&!(16&u))return;16&u||lt(l,!1)}}},mt=(t,e,o)=>{var l,i;const s=t.prototype;{t.watchers&&!e.T&&(e.T=L(t.watchers)),t.deserializers&&!e.D&&(e.D=t.deserializers),t.serializers&&!e.P&&(e.P=t.serializers);const c=Object.entries(null!=(l=e.t)?l:{});if(c.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:c}=n(s,t)||{};i&&(e.t[t][0]|=2048),c&&(e.t[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>r(this).l.get(e))(0,t);const n=r(this),o=n?n.i:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(n){const i=r(this);if(i){if(c)return void 0===(32&l?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(n=i.l.get(t)),c.call(this,T(n,l)),void ht(this,t,n=32&l?this[t]:i.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return ht(this,t,n,e),void(1&o&&!i.i&&i.A.push((()=>{4096&e.t[t][0]&&i.i[t]!==i.l.get(t)&&(i.i[t]=n)})));const r=()=>{const o=i.i[t];!i.l.get(t)&&o&&i.l.set(t,o),i.i[t]=T(n,l),ht(this,t,i.i[t],e)};i.i?r():i.A.push((()=>{r()}))}}}})}})),1&o){const n=new Map;s.attributeChangedCallback=function(t,o,l){p.jmp((()=>{var i;const u=n.get(t),a=r(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&l!==o){const r=a.i,s=null==(i=e.T)?void 0:i[t];null==s||s.forEach((e=>{const[[i,s]]=Object.entries(e);null!=r[i]&&(128&n||1&s)&&r[i].call(r,l,o,t)}))}return}const f=c.find((([t])=>t===u)),d=f?f[1][0]:0,p=4&d;if(512&d&&8&d&&!N(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===l)return;const h=p&&null===l&&void 0===this[u];p&&(l=null!==l&&"false"!==l);const m=Object.getOwnPropertyDescriptor(s,u);h||l==this[u]||m.get&&!m.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=e.T)?i:{}),...c.filter((([t,e])=>31&e[0])).map((([t,o])=>{var l;const r=o[1]||t;return n.set(r,t),512&o[0]&&(null==(l=e.H)||l.push([t,r])),r}))]))}}return t},bt=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.U){const r=((t,e)=>{var n;const o=t.h.replace(/-/g,"_"),l=t.U;if(!l)return;const r=u.get(l);if(r)return r[o];const i=null!=(n=a.get(l))?n:0,s=[i>0?"s-retry="+i:"",""].filter(Boolean).join("&");
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
3
|
+
return import(`./${l}.entry.js${s?"?"+s:""}`).then((t=>(a.delete(l),u.set(l,t),t[o])),(t=>{a.set(l,i+1),c(t,e.$hostElement$)}))})(n,e);if(r&&"then"in r){const t=()=>{};l=await r,t()}else l=r;if(!l)throw e.u&=-33,e.F=(null!=(o=e.F)?o:0)+1,e.F<3&&(e.u|=1024),Error(`Constructor for "${n.h}#${e.W}" was not found`);l.isProxied||(n.T=L(l.watchers),n.P=l.serializers,n.D=l.deserializers,mt(l,n,2),l.isProxied=!0);const i=()=>{};e.u|=8;try{new l(e)}catch(e){c(e,t)}e.u&=-9,e.u|=128,i(),vt(e.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=A(n);if(!f.has(e)){const o=()=>{};((t,e,n)=>{let o=f.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,f.set(t,o)})(e,t,!!(1&n.u)),o()}}}const r=e.C,i=()=>lt(e,!0);r&&r["s-rc"]?r["s-rc"].push(i):i()}catch(n){c(n,t),e.M&&(e.M(),e.M=void 0),!e.L||1024&e.u||e.L(t)}},vt=(t,e)=>{dt(t,"connectedCallback",void 0,e)},yt=(t,e)=>{dt(t,"disconnectedCallback",void 0,e||t)},$t=(t,e={})=>{var n;if(!d.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],i=d.customElements,s=d.document.head,c=s.querySelector("meta[charset]"),u=d.document.createElement("style"),a=[];let f,h=!0;if(Object.assign(p,e),p.p=new URL(e.resourcesUrl||"./",d.document.baseURI).href,t.map((t=>{t[1].map((e=>{var n,s;const c={u:e[0],h:e[1],t:e[2],V:e[3]};c.t=e[2],c.H=[],c.T=L(e[4]),c.P=null!=(n=e[5])?n:{},c.D=null!=(s=e[6])?s:{};const u=c.h,d=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,q:new Map};n.B=new Promise((t=>n.L=t)),t["s-p"]=[],t["s-rc"]=[],n.A=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else k.call(t,c)}connectedCallback(){r(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),h?a.push(this):p.jmp((()=>(t=>{if(!(1&p.u)){const e=r(t);if(!e)return;const n=e.o,o=()=>{};if(1&e.u)(null==e?void 0:e.i)?vt(e.i,t):1024&e.u?setTimeout((()=>bt(t,e,n)),1e3):(null==e?void 0:e.B)&&e.B.then((()=>vt(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ot(e,e.C=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),bt(t,e,n)}o()}})(this))))}disconnectedCallback(){p.jmp((()=>(async t=>{if(!(1&p.u)){const e=r(t);(null==e?void 0:e.i)?yt(e.i,t):(null==e?void 0:e.B)&&e.B.then((()=>yt(e.i,t)))}C.has(t)&&C.delete(t),t.shadowRoot&&C.has(t.shadowRoot)&&C.delete(t.shadowRoot)})(this))),O((()=>{var t;const e=r(this);if(!e)return;const n=a.findIndex((t=>t===this));n>-1&&a.splice(n,1),(null==(t=null==e?void 0:e.R)?void 0:t.O)instanceof Node&&!e.R.O.isConnected&&delete e.R.O}))}componentOnReady(){var t;return null==(t=r(this))?void 0:t.B}};c.U=t[0],l.includes(u)||i.get(u)||(o.push(u),i.define(u,mt(d,c,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=p.N)?n:M(d.document);null!=t&&u.setAttribute("nonce",t),s.insertBefore(u,c?c.nextSibling:s.firstChild)}h=!1,a.length?a.map((t=>t.connectedCallback())):p.jmp((()=>f=setTimeout(ft,30)))},gt=t=>p.N=t;export{H,D as a,$t as b,P as c,t as g,R as h,h as p,i as r,gt as s}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?e(r.value):i(r.value).then(u,f)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return u.next=f(0),u["throw"]=f(1),u["return"]=f(2),typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(n){return o([r,n])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(e=0)),e)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;i=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){e.label=f[1];break}if(f[0]===6&&e.label<a[1]){e.label=a[1];a=f;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(f);break}if(a[2])e.ops.pop();e.trys.pop();continue}f=n.call(r,e)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return r.concat(a||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="rui";var i=/* rui */{hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:true,updatable:true};var a=r("g",(function(){}));var u=":root{--rui-color-primary:#16a34a;--rui-color-primary-hover:#15803d;--rui-color-primary-soft:#dcfce7;--rui-color-secondary:#1864ab;--rui-color-danger:#c92a2a;--rui-color-success:#2b8a3e;--rui-color-text:#212529;--rui-color-muted:#868e96;--rui-color-border:#dee2e6;--rui-color-bg:#ffffff;--rui-color-bg-alt:#f8f9fa;--rui-radius:8px;--rui-radius-sm:4px;--rui-shadow-sm:0 1px 3px rgba(0, 0, 0, 0.08);--rui-shadow-md:0 4px 12px rgba(0, 0, 0, 0.12);--rui-font:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}:host{display:block;font-family:var(--rui-font);color:var(--rui-color-text);-webkit-box-sizing:border-box;box-sizing:border-box}*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}";
|
|
2
|
+
/*
|
|
3
|
+
Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
4
|
+
*/
|
|
5
|
+
// src/utils/get-prop-descriptor.ts
|
|
6
|
+
function f(r,n,e){var t=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(r&&r!==t){var i=Object.getOwnPropertyDescriptor(r,n);if(i&&(!e||i.get))return i;r=Object.getPrototypeOf(r)}return void 0}
|
|
7
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
8
|
+
var o=function(r,n){var e;var t=n.t;var i=Object.entries((e=t.i)!=null?e:{});i.map((function(e){var t=e[0],i=e[1][0];if(i&31/* Prop */||i&32/* State */){var a=r[t];var u=f(Object.getPrototypeOf(r),t,true)||Object.getOwnPropertyDescriptor(r,t);if(u){Object.defineProperty(r,t,{get:function(){return u.get.call(this)},set:function(r){u.set.call(this,r)},configurable:true,enumerable:true})}if(n.u.has(t)){r[t]=n.u.get(t)}else if(a!==void 0){r[t]=a}}}))};
|
|
9
|
+
// src/client/client-host-ref.ts
|
|
10
|
+
var l=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var v=r("r",(function(r,n){if(!n)return;r.__stencil__getHostRef=function(){return n};n.o=r;if(n.t.l&512/* hasModernPropertyDecls */&&i.prop){o(r,n)}}));var c=function(r,n){var e={l:0,$hostElement$:r,t:n,u:new Map,v:new Map};{e.p=new Promise((function(r){return e.h=r}));r["s-p"]=[];r["s-rc"]=[]}{e.m=[]}var t=e;r.__stencil__getHostRef=function(){return t};return t};var s=function(r,n){return n in r};var d=function(r,n){return(0,console.error)(r,n)};
|
|
11
|
+
// src/client/client-load-module.ts
|
|
12
|
+
var p=new Map;var h=new Map;var y=function(r,e,t){var i;var a=r._.replace(/-/g,"_");var u=r.S;if(!u){return void 0}var f=p.get(u);if(f){return f[a]}var o=(i=h.get(u))!=null?i:0;var l=[o>0?"s-retry=".concat(o):"",""].filter(Boolean).join("&");
|
|
13
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import(
|
|
14
|
+
/* @vite-ignore */
|
|
15
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
16
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
17
|
+
/* webpackMode: "lazy" */
|
|
18
|
+
"./".concat(u,".entry.js").concat(l?"?"+l:"")).then((function(r){{h.delete(u);p.set(u,r)}return r[a]}),(function(r){h.set(u,o+1);d(r,e.$hostElement$)}))};
|
|
19
|
+
// src/client/client-style.ts
|
|
20
|
+
var b=new Map;var m="{visibility:hidden}.hydrated{visibility:inherit}";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g=3;var _=1e3;var S=typeof window!=="undefined"?window:{};var j={l:0,j:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var $=r("p",(function(r){return Promise.resolve(r)}));var O=function(){try{if(!S.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var x=O?function(){return!!S.document&&Object.getOwnPropertyDescriptor(S.document.adoptedStyleSheets,"length").writable}():false;var k=false;var A=[];var M=[];var C=function(){var r;return((r=S.document)==null?void 0:r.hidden)?z(T):j.raf(T)};var E=function(r,n){return function(e){r.push(e);if(!k){k=true;if(n&&j.l&4/* queueSync */){z(T)}else{C()}}}};var N=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){d(r)}}r.length=0};var T=function(){N(A);{N(M);if(k=A.length>0){C()}}};var z=function(r){return $().then(r)};var U=E(M,true);
|
|
21
|
+
// src/utils/style.ts
|
|
22
|
+
function H(r){if(!O)return void 0;var n=new CSSStyleSheet;n.replaceSync(r);return n}
|
|
23
|
+
// src/utils/shadow-root.ts
|
|
24
|
+
var L;function P(r){var n;var e={mode:"open"};var t=this.attachShadow(e);if(L===void 0)L=(n=H(u))!=null?n:null;if(L){if(x){t.adoptedStyleSheets.push(L)}else{t.adoptedStyleSheets=__spreadArray(__spreadArray([],t.adoptedStyleSheets,true),[L],false)}}else if(!O){var i=document.createElement("style");i.innerHTML=u;t.prepend(i)}}var R=function(r,n){if(n===void 0){n=""}{return function(){return}}};var D=function(r,n){{return function(){return}}};
|
|
25
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
26
|
+
function I(r){var n,e,t;return(t=(e=(n=r.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}
|
|
27
|
+
// src/runtime/styles.ts
|
|
28
|
+
var F=new WeakMap;var W=function(r,n,e){var t=b.get(r);if(O&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}b.set(r,t)};var V=function(r,n,e){var t,i,a;var u=B(n);var f=b.get(u);if(!S.document){return u}r=r.nodeType===11/* DocumentFragment */?r:S.document;if(f){if(typeof f==="string"){r=r.head||r;var o=F.get(r);var l=void 0;if(!o){F.set(r,o=new Set)}if(!o.has(u)){l=S.document.createElement("style");l.textContent=f;var v=(t=j.$)!=null?t:I(S.document);if(v!=null){l.setAttribute("nonce",v)}if(!(n.l&1/* shadowDomEncapsulation */)){if(r.nodeName==="HEAD"){var c=r.querySelectorAll("link[rel=preconnect]");var s=c.length>0?c[c.length-1].nextSibling:r.querySelector("style");r.insertBefore(l,(s==null?void 0:s.parentNode)===r?s:null)}else if("host"in r){if(O){var d=(i=r.defaultView)!=null?i:r.ownerDocument.defaultView;var p=new d.CSSStyleSheet;p.replaceSync(f);if(x){r.adoptedStyleSheets.unshift(p)}else{r.adoptedStyleSheets=__spreadArray([p],r.adoptedStyleSheets,true)}}else{var h=r.querySelector("style");if(h&&true){h.textContent=f+h.textContent}else{r.prepend(l)}}}else{r.append(l)}}if(n.l&1/* shadowDomEncapsulation */){r.insertBefore(l,null)}if(n.l&4/* hasSlotRelocation */){l.textContent+=w}if(o){o.add(u)}}}else{var o=F.get(r);if(!o){F.set(r,o=new Set)}if(!o.has(u)){var d=(a=r.defaultView)!=null?a:r.ownerDocument.defaultView;var p=void 0;if(f.constructor===d.CSSStyleSheet){p=f}else{p=new d.CSSStyleSheet;for(var y=0;y<f.cssRules.length;y++){p.insertRule(f.cssRules[y].cssText,y)}}if(x){r.adoptedStyleSheets.push(p)}else{r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[p],false)}o.add(u)}}}return u};var q=function(r){var n=r.t;var e=r.$hostElement$;var t=n.l;var i=R("attachStyles",n._);var a=V(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10/* needsScopedEncapsulation */){e["s-sc"]=a;e.classList.add(a+"-h")}i()};var B=function(r,n){return"sc-"+r._};var G=function(r){r=typeof r;return r==="object"||r==="function"};
|
|
29
|
+
// src/runtime/vdom/h.ts
|
|
30
|
+
var Y=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}if(typeof r==="string"){r=Br(r)}var i=null;var a=null;var u=false;var f=false;var o=[];var l=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!G(i)){i=String(i)}else if(typeof r!=="function"&&i.l===void 0){{d("Invalid vNode child")}continue}if(u&&f){o[o.length-1].O+=i}else{o.push(u?Z(null,i):i)}f=u}}};l(e);if(n){if(n.key){a=n.key}{var v=n.className||n.class;if(v){n.class=typeof v!=="object"?v:Object.keys(v).filter((function(r){return v[r]})).join(" ")}}}var c=Z(r,null);c.k=n;if(o.length>0){c.A=o}{c.M=a}return c}));var Z=function(r,n){var e={l:0,C:r,
|
|
31
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
32
|
+
O:n!=null?n:null,N:null,A:null};{e.k=null}{e.M=null}return e};var J=r("H",{});var K=function(r){return r&&r.C===J};
|
|
33
|
+
// src/runtime/normalize-watchers.ts
|
|
34
|
+
var Q=function(r){if(!r)return void 0;var n=Object.keys(r);if(n.length===0)return void 0;var e=false;for(var t=0,i=n;t<i.length;t++){var a=i[t];if(e)break;for(var u=0,f=r[a];u<f.length;u++){var o=f[u];if(typeof o==="string"){e=true;break}}}if(!e)return r;var l={};for(var v=0,c=n;v<c.length;v++){var a=c[v];l[a]=r[a].map((function(r){var n;return typeof r==="string"?(n={},n[r]=0,n):r}))}return l};
|
|
35
|
+
// src/runtime/parse-property-value.ts
|
|
36
|
+
var X=function(r,n,e){if(r!=null&&!G(r)){if(n&4/* Boolean */){{return r==="false"?false:r===""||!!r}}if(n&2/* Number */){return typeof r==="string"?parseFloat(r):typeof r==="number"?r:NaN}if(n&1/* String */){return String(r)}return r}return r};var rr=r("a",(function(r){var n;return(n=l(r))==null?void 0:n.$hostElement$}));
|
|
37
|
+
// src/runtime/event-emitter.ts
|
|
38
|
+
var nr=r("c",(function(r,n,e){var t=rr(r);return{emit:function(r){return er(t,n,{bubbles:true,composed:true,cancelable:true,detail:r})}}}));var er=function(r,n,e){var t=j.ce(n,e);r.dispatchEvent(t);return t};var tr=function(r,n,e,t,i,a,u){if(e===t){return}var f=s(r,n);var o=n.toLowerCase();if(n==="class"){var v=r.classList;var c=fr(e);var d=fr(t);{v.remove.apply(v,c.filter((function(r){return r&&!d.includes(r)})));v.add.apply(v,d.filter((function(r){return r&&!c.includes(r)})))}}else if(n==="key");else if(!f&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(s(S,o)){n=o.slice(2)}else{n=o[2]+n.slice(3)}if(e||t){var p=n.endsWith(or);n=n.replace(lr,"");if(e){j.rel(r,n,e,p)}if(t){j.ael(r,n,t,p)}}}else if(n[0]==="a"&&n.startsWith("attr:")){var h=n.slice(5);var y=void 0;{var b=l(r);if(b&&b.t&&b.t.i){var m=b.t.i[h];if(m&&m[1]){y=m[1]}}}if(!y){y=h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(t==null||t===false){if(t!==false||r.getAttribute(y)===""){r.removeAttribute(y)}}else{r.setAttribute(y,t===true?"":t)}return}else if(n[0]==="p"&&n.startsWith("prop:")){var h=n.slice(5);try{r[h]=t}catch(r){}return}else{var w=G(t);if((f||w&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var g=t==null?"":t;if(n==="list"){f=false}else if(e==null||r[n]!==g){if(typeof r.__lookupSetter__(n)==="function"){r[n]=g}else{r.setAttribute(n,g)}}}else if(r[n]!==t){r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""||a&4/* isHost */&&!ar(n)){{r.removeAttribute(n)}}}else if((!f||a&4/* isHost */||i)&&!w&&r.nodeType===1/* ElementNode */){t=t===true?"":t;{r.setAttribute(n,t)}}}};var ir=new Set(["draggable","contenteditable","spellcheck"]);var ar=function(r){return ir.has(r)||r.startsWith("aria-")};var ur=/\s/;var fr=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(ur)};var or="Capture";var lr=new RegExp(or+"$");
|
|
39
|
+
// src/runtime/vdom/update-element.ts
|
|
40
|
+
var vr=function(r,n,e,t){var i=n.N.nodeType===11/* DocumentFragment */&&n.N.host?n.N.host:n.N;var a=r&&r.k||{};var u=n.k||{};{for(var f=0,o=cr(Object.keys(a));f<o.length;f++){var l=o[f];if(!(l in u)){tr(i,l,a[l],void 0,e,n.l)}}}for(var v=0,c=cr(Object.keys(u));v<c.length;v++){var l=c[v];tr(i,l,a[l],u[l],e,n.l)}};function cr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):
|
|
41
|
+
// no need to sort, return the original array
|
|
42
|
+
r}var sr;var dr=false;var pr=false;var hr=function(r,n,e){var t=n.A[e];var i=0;var a;var u;if(t.O!=null){a=t.N=S.document.createTextNode(t.O)}else{if(!S.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}a=t.N=S.document.createElement(t.C);{vr(null,t,pr)}if(t.A){var f=t.C==="template"?a.content:a;for(i=0;i<t.A.length;++i){u=hr(r,t,i);if(u){f.appendChild(u)}}}}a["s-hn"]=sr;return a};var yr=function(r){j.l|=1/* isTmpDisconnected */;var n=r.closest(sr.toLowerCase());if(n!=null){var e=Array.from(n.__childNodes||n.childNodes).find((function(r){return r["s-cr"]}));var t=Array.from(r.__childNodes||r.childNodes);for(var i=0,a=e?t.reverse():t;i<a.length;i++){var u=a[i];if(u["s-sh"]!=null){Sr(n,u,e!=null?e:null);u["s-sh"]=void 0}}}j.l&=-2/* isTmpDisconnected */};var br=function(r,n,e,t,i,a){var u=r;var f;if(u.shadowRoot&&u.tagName===sr){u=u.shadowRoot}if(e.C==="template"){u=u.content}for(;i<=a;++i){if(t[i]){f=hr(null,e,i);if(f){t[i].N=f;Sr(u,f,n)}}}};var mr=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var a=i.N;if(a){a.remove()}}}};var wr=function(r,n,e,t,i){if(i===void 0){i=false}var a=0;var u=0;var f=0;var o=0;var l=n.length-1;var v=n[0];var c=n[l];var s=t.length-1;var d=t[0];var p=t[s];var h;var y;var b=e.C==="template"?r.content:r;while(a<=l&&u<=s){if(v==null){v=n[++a]}else if(c==null){c=n[--l]}else if(d==null){d=t[++u]}else if(p==null){p=t[--s]}else if(gr(v,d,i)){_r(v,d,i);v=n[++a];d=t[++u]}else if(gr(c,p,i)){_r(c,p,i);c=n[--l];p=t[--s]}else if(gr(v,p,i)){_r(v,p,i);Sr(b,v.N,c.N.nextSibling);v=n[++a];p=t[--s]}else if(gr(c,d,i)){_r(c,d,i);Sr(b,c.N,v.N);c=n[--l];d=t[++u]}else{f=-1;{for(o=a;o<=l;++o){if(n[o]&&n[o].M!==null&&n[o].M===d.M){f=o;break}}}if(f>=0){y=n[f];if(y.C!==d.C){h=hr(n&&n[u],e,f)}else{_r(y,d,i);n[f]=void 0;h=y.N}d=t[++u]}else{h=hr(n&&n[u],e,u);d=t[++u]}if(h){{Sr(v.N.parentNode,h,v.N)}}}}if(a>l){br(r,t[s+1]==null?null:t[s+1].N,e,t,u,s)}else if(u>s){mr(n,a,l)}};var gr=function(r,n,e){if(e===void 0){e=false}if(r.C===n.C){if(!e){return r.M===n.M}if(e&&!r.M&&n.M){r.M=n.M}return true}return false};var _r=function(r,n,e){if(e===void 0){e=false}var t=n.N=r.N;var a=r.A;var u=n.A;var f=n.C;var o=n.O;if(o==null){{if(f==="slot"&&!dr){if(r.T!==n.T){n.N["s-sn"]=n.T||"";yr(n.N.parentElement)}}vr(r,n,pr)}if(a!==null&&u!==null){wr(t,a,n,u,e)}else if(u!==null){if(r.O!==null){t.textContent=""}br(t,null,n,u,0,u.length-1)}else if(
|
|
43
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
44
|
+
!e&&i.updatable&&a!==null){mr(a,0,a.length-1)}else;}else if(r.O!==o){t.data=o}};var Sr=function(r,n,e,t){{return r==null?void 0:r.insertBefore(n,e)}};var jr=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var i=r.t;var a=r.U||Z(null,null);var u=K(n);var f=u?n:Y(null,null,n);sr=t.tagName;if(i.H){f.k=f.k||{};i.H.forEach((function(r){var n=r[0],e=r[1];{f.k[e]=t[n]}}))}if(e&&f.k){for(var o=0,l=Object.keys(f.k);o<l.length;o++){var v=l[o];if(t.hasAttribute(v)&&!["key","ref","style","class"].includes(v)){f.k[v]=t[v]}}}f.C=null;f.l|=4/* isHost */;r.U=f;f.N=a.N=t.shadowRoot||t;dr=!!(i.l&1/* shadowDomEncapsulation */)&&!(i.l&128/* shadowNeedsScopedCss */);_r(a,f,e)};
|
|
45
|
+
// src/runtime/update-component.ts
|
|
46
|
+
var $r=function(r,n){if(n&&!r.L&&n["s-p"]){var e=n["s-p"].push(new Promise((function(t){return r.L=function(){n["s-p"].splice(e-1,1);t()}})))}};var Or=function(r,n){{r.l|=16/* isQueuedForUpdate */}if(r.l&4/* isWaitingForChildren */){r.l|=512/* needsRerender */;return}$r(r,r.P);var e=function(){return xr(r,n)};if(n){queueMicrotask((function(){e()}));return}return U(e)};var xr=function(r,n){var e=r.$hostElement$;var t=R("scheduleUpdate",r.t._);var i=r.o;if(!i){throw new Error("Can't render component <".concat(e.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(n){{if(r.m.length){r.m.forEach((function(r){return r(e)}))}}a=Tr(i,"componentWillLoad",void 0,e)}else{a=Tr(i,"componentWillUpdate",void 0,e)}a=kr(a,(function(){return Tr(i,"componentWillRender",void 0,e)}));t();return kr(a,(function(){return Mr(r,i,n)}))};var kr=function(r,n){return Ar(r)?r.then(n).catch((function(r){console.error(r);n()})):n()};var Ar=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var Mr=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,f,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=R("update",r.t._);u=i["s-rc"];if(t){q(r)}f=R("render",r.t._);{Cr(r,n,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=void 0}f();a();{o=(e=i["s-p"])!=null?e:[];l=function(){return Er(r)};if(o.length===0){l()}else{Promise.all(o).then(l).catch(l);r.l|=4/* isWaitingForChildren */;o.length=0}}return[2/*return*/]}))}))};var Cr=function(r,n,e,t){try{n=n.render();{r.l&=-17/* isQueuedForUpdate */}{r.l|=2/* hasRendered */}{{{jr(r,n,t)}}}}catch(n){d(n,r.$hostElement$)}return null};var Er=function(r){var n=r.t._;var e=r.$hostElement$;var t=R("postUpdate",n);var i=r.o;var a=r.P;Tr(i,"componentDidRender",void 0,e);if(!(r.l&64/* hasLoadedComponent */)){r.l|=64/* hasLoadedComponent */;{zr(e)}Tr(i,"componentDidLoad",void 0,e);t();{r.h(e);if(!a){Nr()}}}else{Tr(i,"componentDidUpdate",void 0,e);t()}{if(r.L){r.L();r.L=void 0}if(r.l&512/* needsRerender */){z((function(){return Or(r,false)}))}r.l&=-517}};var Nr=function(r){z((function(){return er(S,"appload",{detail:{namespace:t}})}))};var Tr=function(r,n,e,t){if(r&&r[n]){try{return r[n](e)}catch(r){d(r,t)}}return void 0};var zr=function(r){var n;return r.classList.add((n=i.hydratedSelectorName)!=null?n:"hydrated")};
|
|
47
|
+
// src/runtime/set-value.ts
|
|
48
|
+
var Ur=function(r,n){return l(r).u.get(n)};var Hr=function(r,n,e,t){var i=l(r);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(t._,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var u=i.u.get(n);var f=i.l;var o=i.o;e=X(e,t.i[n][0]);var v=Number.isNaN(u)&&Number.isNaN(e);var c=e!==u&&!v;if((!(f&8/* isConstructingInstance */)||u===void 0)&&c){i.u.set(n,e);if(t.R){var s=t.R[n];if(s){s.map((function(r){try{var t=Object.entries(r)[0],l=t[0],v=t[1];if(f&128/* isWatchReady */||v&1/* Immediate */){if(!o){i.m.push((function(){i.o[l](e,u,n)}))}else{o[l](e,u,n)}}}catch(r){d(r,a)}}))}}if(f&2/* hasRendered */){if(o.componentShouldUpdate){var p=o.componentShouldUpdate(e,u,n);if(p===false&&!(f&16/* isQueuedForUpdate */)){return}}if(!(f&16/* isQueuedForUpdate */)){Or(i,false)}}}};
|
|
49
|
+
// src/runtime/proxy-component.ts
|
|
50
|
+
var Lr=function(r){return r==null||r===false?null:r===true?"":String(r)};var Pr=function(r,n,e){var t,a;var u=r.prototype;if(n.i||i.propChangeCallback){{if(r.watchers&&!n.R){n.R=Q(r.watchers)}if(r.deserializers&&!n.D){n.D=r.deserializers}if(r.serializers&&!n.I){n.I=r.serializers}}var o=Object.entries((t=n.i)!=null?t:{});o.map((function(r){var t=r[0],i=r[1][0];if(i&31/* Prop */||e&2/* proxyState */&&i&32/* State */){var a=f(u,t)||{},o=a.get,v=a.set;if(o)n.i[t][0]|=2048/* Getter */;if(v)n.i[t][0]|=4096/* Setter */;if(e&1/* isElementConstructor */||!o){Object.defineProperty(u,t,{get:function(){{if((n.i[t][0]&2048/* Getter */)===0){return Ur(this,t)}var r=l(this);var e=r?r.o:u;if(!e)return;return e[t]}},configurable:true,enumerable:true})}Object.defineProperty(u,t,{set:function(r){var a=this;var u=l(this);if(!u){return}if(v){var f=i&32/* State */?this[t]:u.$hostElement$[t];if(typeof f==="undefined"&&u.u.get(t)){r=u.u.get(t)}v.apply(this,[X(r,i)]);r=i&32/* State */?this[t]:u.$hostElement$[t];Hr(this,t,r,n);return}{if((e&1/* isElementConstructor */)===0||(n.i[t][0]&4096/* Setter */)===0){Hr(this,t,r,n);if(e&1/* isElementConstructor */&&!u.o){u.m.push((function(){if(n.i[t][0]&4096/* Setter */&&u.o[t]!==u.u.get(t)){u.o[t]=r}}))}return}var o=function(){var e=u.o[t];if(!u.u.get(t)&&e){u.u.set(t,e)}u.o[t]=X(r,i);Hr(a,t,u.o[t],n)};if(u.o){o()}else{u.m.push((function(){o()}))}}}})}}));if(e&1/* isElementConstructor */){var v=new Map;u.attributeChangedCallback=function(r,e,t){var a=this;j.jmp((function(){var f;var c=v.get(r);var s=l(a);if(a.hasOwnProperty(c)&&i.lazyLoad){t=a[c];delete a[c]}if(u.hasOwnProperty(c)&&typeof a[c]==="number"&&// cast type to number to avoid TS compiler issues
|
|
51
|
+
a[c]==t){return}else if(c==null){var d=s==null?void 0:s.l;if(s&&d&&!(d&8/* isConstructingInstance */)&&t!==e){var p=s.o;var h=(f=n.R)==null?void 0:f[r];h==null?void 0:h.forEach((function(n){var i=Object.entries(n)[0],a=i[0],u=i[1];if(p[a]!=null&&(d&128/* isWatchReady */||u&1/* Immediate */)){p[a].call(p,t,e,r)}}))}return}var y=o.find((function(r){var n=r[0];return n===c}));var b=y?y[1][0]:0;var m=b&4/* Boolean */;if(b&512/* ReflectAttr */&&b&8/* Any */&&// a complex value is never written to an attribute, so a change while the prop holds
|
|
52
|
+
// one is always external
|
|
53
|
+
!G(a[c])&&Lr(a[c])===t){return}var w=m&&t===null&&a[c]===void 0;if(m){t=t===null||t==="false"?false:true}var g=Object.getOwnPropertyDescriptor(u,c);if(!w&&t!=a[c]&&(!g.get||!!g.set)){a[c]=t}}))};r.observedAttributes=Array.from(
|
|
54
|
+
new Set(__spreadArray(__spreadArray([],Object.keys((a=n.R)!=null?a:{}),true),o.filter((function(r){var n=r[0],e=r[1];return e[0]&31}/* HasAttribute */)).map((function(r){var e=r[0],t=r[1];var i;var a=t[1]||e;v.set(a,e);if(t[0]&512/* ReflectAttr */){(i=n.H)==null?void 0:i.push([e,a])}return a})),true)))}}return r};
|
|
55
|
+
// src/runtime/initialize-component.ts
|
|
56
|
+
var Rr=function(r,n,t,a){return __awaiter(e,void 0,void 0,(function(){var e,a,u,f,o,l,v,c,s,p,h,m,w;return __generator(this,(function(_){switch(_.label){case 0:_.trys.push([0,7,,8]);if(!((n.l&32/* hasInitializedComponent */)===0))return[3/*break*/,6];n.l|=32/* hasInitializedComponent */;n.l&=-1025/* hasFailedLoad */;u=t.S;if(!u)return[3/*break*/,4];f=y(t,n);if(!(f&&"then"in f))return[3/*break*/,2];o=D();return[4/*yield*/,f];case 1:a=_.sent();o();return[3/*break*/,3];case 2:a=f;_.label=3;case 3:if(!a){n.l&=-33/* hasInitializedComponent */;n.F=((e=n.F)!=null?e:0)+1;if(n.F<g){n.l|=1024/* hasFailedLoad */}throw new Error('Constructor for "'.concat(t._,"#").concat(n.W,'" was not found'))}if(!a.isProxied){{t.R=Q(a.watchers);t.I=a.serializers;t.D=a.deserializers}Pr(a,t,2/* proxyState */);a.isProxied=true}l=R("createInstance",t._);{n.l|=8/* isConstructingInstance */}try{new a(n)}catch(n){d(n,r)}{n.l&=-9/* isConstructingInstance */}{n.l|=128/* isWatchReady */}l();{Dr(n.o,r)}return[3/*break*/,5];case 4:a=r.constructor;v=r.localName;customElements.whenDefined(v).then((function(){return n.l|=128}/* isWatchReady */));_.label=5;case 5:if(a&&a.style){c=void 0;if(typeof a.style==="string"){c=a.style}s=B(t);if(!b.has(s)||i.hotModuleReplacement){p=R("registerStyles",t._);W(s,c,!!(t.l&1/* shadowDomEncapsulation */));p()}}_.label=6;case 6:h=n.P;m=function(){return Or(n,true)};if(h&&h["s-rc"]){h["s-rc"].push(m)}else{m()}return[3/*break*/,8];case 7:w=_.sent();d(w,r);if(n.L){n.L();n.L=void 0}if(n.h&&!(n.l&1024/* hasFailedLoad */)){n.h(r)}return[3/*break*/,8];case 8:return[2/*return*/]}}))}))};var Dr=function(r,n){{Tr(r,"connectedCallback",void 0,n)}};
|
|
57
|
+
// src/runtime/connected-callback.ts
|
|
58
|
+
var Ir=function(r){if((j.l&1/* isTmpDisconnected */)===0){var n=l(r);if(!n){return}var e=n.t;var t=R("connectedCallback",e._);if(!(n.l&1/* hasConnected */)){n.l|=1/* hasConnected */;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){$r(n,n.P=i);break}}}if(e.i){Object.entries(e.i).map((function(n){var e=n[0],t=n[1][0];if(t&31/* Prop */&&Object.prototype.hasOwnProperty.call(r,e)){var i=r[e];delete r[e];r[e]=i}}))}{Rr(r,n,e)}}else{if(n==null?void 0:n.o){Dr(n.o,r)}else if(n.l&1024/* hasFailedLoad */){setTimeout((function(){return Rr(r,n,e)}),_)}else if(n==null?void 0:n.p){n.p.then((function(){return Dr(n.o,r)}))}}t()}};var Fr=function(r,n){{Tr(r,"disconnectedCallback",void 0,n||r)}};var Wr=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((j.l&1/* isTmpDisconnected */)===0){n=l(r);if(n==null?void 0:n.o){Fr(n.o,r)}else if(n==null?void 0:n.p){n.p.then((function(){return Fr(n.o,r)}))}}if(F.has(r)){F.delete(r)}if(r.shadowRoot&&F.has(r.shadowRoot)){F.delete(r.shadowRoot)}return[2/*return*/]}))}))};
|
|
59
|
+
// src/runtime/bootstrap-lazy.ts
|
|
60
|
+
var Vr=r("b",(function(r,n){if(n===void 0){n={}}var e;if(!S.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=R();var i=[];var a=n.exclude||[];var u=S.customElements;var f=S.document.head;var o=f.querySelector("meta[charset]");var v=S.document.createElement("style");var s=[];var d;var p=true;Object.assign(j,n);j.j=new URL(n.resourcesUrl||"./",S.document.baseURI).href;r.map((function(r){r[1].map((function(n){var e,t;var f={l:n[0],_:n[1],i:n[2],V:n[3]};{f.i=n[2]}{f.H=[]}{f.R=Q(n[4]);f.I=(e=n[5])!=null?e:{};f.D=(t=n[6])!=null?t:{}}var o=Br(f._);var v=/** @class */function(r){__extends(n,r);
|
|
61
|
+
// StencilLazyHost
|
|
62
|
+
function n(n){var e=r.call(this,n)||this;e.hasRegisteredEventListeners=false;n=e;c(n,f);if(f.l&1/* shadowDomEncapsulation */){{if(!n.shadowRoot){P.call(n,f)}else{if(n.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(f._,"! Mode is set to ").concat(n.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return e}n.prototype.connectedCallback=function(){var r=this;var n=l(this);if(!n){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(p){s.push(this)}else{j.jmp((function(){return Ir(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;j.jmp((function(){return Wr(r)}));z((function(){var n;var e=l(r);if(!e){return}var t=s.findIndex((function(n){return n===r}));if(t>-1){s.splice(t,1)}if(((n=e==null?void 0:e.U)==null?void 0:n.N)instanceof Node&&!e.U.N.isConnected){delete e.U.N}}))};n.prototype.componentOnReady=function(){var r;return(r=l(this))==null?void 0:r.p};return n}(HTMLElement);f.S=r[0];if(!a.includes(o)&&!u.get(o)){i.push(o);u.define(o,Pr(v,f,1/* isElementConstructor */))}}))}));if(i.length>0){{v.textContent+=i.sort()+m}if(v.innerHTML.length){v.setAttribute("data-styles","");var h=(e=j.$)!=null?e:I(S.document);if(h!=null){v.setAttribute("nonce",h)}f.insertBefore(v,o?o.nextSibling:f.firstChild)}}p=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{j.jmp((function(){return d=setTimeout(Nr,30)}))}}t()}));
|
|
63
|
+
// src/runtime/nonce.ts
|
|
64
|
+
var qr=r("s",(function(r){return j.$=r}));function Br(r){return r}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register([],(function(){"use strict";return{execute:function(){}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as r,h as i,H as a}from"./p-Cye74XUb.js";const t=class{constructor(i){e(this,i),this.ruiAddToPlan=r(this,"ruiAddToPlan"),this.ruiFavoriteToggle=r(this,"ruiFavoriteToggle"),this.isFavorite=!1,this.onAddToPlan=()=>{this.ruiAddToPlan.emit(this.recipe)},this.onFavToggle=()=>{this.isFavorite=!this.isFavorite,this.ruiFavoriteToggle.emit({recipe:this.recipe,isFavorite:this.isFavorite})}}render(){const e=this.recipe;return i(a,{key:"3cbe3361e6d88381fbec4fd8d282963933878de4"},i("article",{key:"ef3860f9752829fae37d374684f5b6e5045299e5",class:"rui-detail"},i("header",{key:"a14c496c15e23458956538926449bcecb742fd4c",class:"rui-detail__header"},i("div",{key:"e6766cf5e4d766fcd2b47a946122b0b108de6a73",class:"rui-detail__media"},e.image?i("img",{src:e.image,alt:e.name}):i("div",{class:"rui-detail__placeholder"},"No image")),i("div",{key:"3c0ccb26f0379d9ddd9cd29a05d237a9d377d516",class:"rui-detail__intro"},i("h2",{key:"108020c974704efc52907eb1f945ee3a7584436f",class:"rui-detail__title"},e.name),(e.category||e.area)&&i("p",{key:"fc381751090c3c067076967347db95907e048898",class:"rui-detail__meta"},[e.category,e.area].filter(Boolean).join(" · ")),i("div",{key:"a0084338478d82d0e7c4f738ff7650646805efe9",class:"rui-detail__actions"},i("slot",{key:"ba5ac7fba83204b9c7512837313238771d68a59c",name:"actions"}),i("button",{key:"1b2a17d3d7571e5d484a9a26bb13b69a9ec8d56a",type:"button",class:"rui-detail__fav "+(this.isFavorite?"is-fav":""),"aria-pressed":this.isFavorite?"true":"false",onClick:this.onFavToggle},this.isFavorite?"♥ Favorited":"♡ Add to favorites"),i("button",{key:"1f9e6eec95cf99ef6bad7197d488e4623d9c0381",type:"button",class:"rui-detail__plan",onClick:this.onAddToPlan},"+ Add to meal plan")))),i("section",{key:"8fa48000e6baaf8f22431b413d964c79ce2f9441",class:"rui-detail__section"},i("h3",{key:"44e655db0ee49e4a1f9f2e31a82a23c3c549060a"},"Ingredients"),e.ingredients&&e.ingredients.length>0?(()=>{const r=Math.ceil(e.ingredients.length/2),a=e.ingredients.slice(0,r),t=e.ingredients.slice(r),d=(e,r)=>i("table",{class:"rui-detail__table"},i("thead",null,i("tr",null,i("th",null,"#"),i("th",null,"Ingredient"),i("th",null,"Measure"))),i("tbody",null,e.map(((e,a)=>i("tr",null,i("td",{class:"rui-detail__td--index"},r+a+1),i("td",{class:"rui-detail__ing-name"},e.name),i("td",{class:"rui-detail__ing-measure"},e.measure||"—"))))));return i("div",{class:"rui-detail__tables"},d(a,0),t.length>0&&d(t,r))})():i("p",{class:"rui-detail__empty"},"No ingredients listed."),i("slot",{key:"58d20bb01497af2651f492d9e6520a587d3e21ce",name:"ingredients-extra"})),e.instructions&&i("section",{key:"54176a29fab9b1142b30994d0ae74acd2e881e69",class:"rui-detail__section"},i("h3",{key:"0f0900c1f6abb29cf8601d5d3e6fc44abc344105"},"Instructions"),i("p",{key:"e4f4e185a193ac818bc21e3974c957716a1b8fd6",class:"rui-detail__instructions"},e.instructions)),(e.youtube||e.source)&&i("section",{key:"f8db0b0a526a6e774e83d700325471dbc032170e",class:"rui-detail__section rui-detail__links"},e.youtube&&i("a",{key:"add83e9353e6294219dfb9304c98a49833913200",href:e.youtube,target:"_blank",rel:"noopener noreferrer"},"Watch on YouTube"),e.source&&i("a",{key:"b719435a049b54a4b5ec1500ea9a19da9c10f98d",href:e.source,target:"_blank",rel:"noopener noreferrer"},"Original source"))))}};t.style=":host{display:block}.rui-detail{background:var(--rui-color-bg);border-radius:var(--rui-radius);-webkit-box-shadow:var(--rui-shadow-sm);box-shadow:var(--rui-shadow-sm);overflow:hidden}.rui-detail__header{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;padding:1.5rem}@media (max-width: 640px){.rui-detail__header{grid-template-columns:1fr}}.rui-detail__media{aspect-ratio:4 / 3;background:var(--rui-color-bg-alt);border-radius:var(--rui-radius);overflow:hidden}.rui-detail__media img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.rui-detail__placeholder{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--rui-color-muted)}.rui-detail__title{margin:0 0 0.35rem;font-size:1.6rem;font-weight:700}.rui-detail__meta{margin:0 0 1rem;color:var(--rui-color-muted);font-size:0.95rem}.rui-detail__actions{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:0.6rem;-ms-flex-align:center;align-items:center}.rui-detail__fav,.rui-detail__plan{font-family:var(--rui-font);font-size:0.9rem;font-weight:600;padding:0.5rem 0.9rem;border-radius:var(--rui-radius);border:1px solid var(--rui-color-border);background:var(--rui-color-bg);cursor:pointer;-webkit-transition:background-color 0.15s ease, border-color 0.15s ease;transition:background-color 0.15s ease, border-color 0.15s ease}.rui-detail__fav:hover,.rui-detail__plan:hover{border-color:var(--rui-color-primary);background:var(--rui-color-primary-soft)}.rui-detail__fav.is-fav{color:var(--rui-color-danger);border-color:var(--rui-color-danger);background:#fff5f5}.rui-detail__section{padding:0 1.5rem 1.5rem}.rui-detail__section h3{margin:0 0 0.75rem;font-size:1.15rem;font-weight:700;border-bottom:2px solid var(--rui-color-primary-soft);padding-bottom:0.35rem}.rui-detail__tables{display:grid;grid-template-columns:1fr 1fr;gap:1rem;-ms-flex-align:start;align-items:start}@media (max-width: 700px){.rui-detail__tables{grid-template-columns:1fr}}.rui-detail__table{width:100%;border-collapse:collapse;font-size:0.9rem;background:var(--rui-color-bg, #ffffff);border:1px solid var(--rui-color-border, #dee2e6);border-radius:var(--rui-radius, 8px);overflow:hidden}.rui-detail__table thead{background:var(--rui-color-bg-alt, #f8f9fa)}.rui-detail__table th{text-align:left;padding:0.6rem 0.75rem;font-weight:700;font-size:0.82rem;text-transform:uppercase;letter-spacing:0.03em;color:var(--rui-color-muted, #868e96);border-bottom:2px solid var(--rui-color-border, #dee2e6)}.rui-detail__table td{padding:0.55rem 0.75rem;border-bottom:1px solid var(--rui-color-border, #dee2e6);vertical-align:middle}.rui-detail__table tbody tr:last-child td{border-bottom:none}.rui-detail__table tbody tr:hover{background:var(--rui-color-primary-soft, #dcfce7)}.rui-detail__td--index{width:36px;text-align:center;color:var(--rui-color-muted, #868e96);font-weight:600}.rui-detail__ing-measure{color:var(--rui-color-muted, #868e96);white-space:nowrap}.rui-detail__ing-name{font-weight:500;color:var(--rui-color-text, #212529)}.rui-detail__empty{color:var(--rui-color-muted, #868e96);font-size:0.9rem;margin:0.5rem 0 0}.rui-detail__ingredients{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));gap:0.4rem 1rem}.rui-detail__ingredients li{display:-ms-flexbox;display:flex;gap:0.5rem;font-size:0.9rem;padding:0.3rem 0;border-bottom:1px dashed var(--rui-color-border, #dee2e6)}.rui-detail__instructions{white-space:pre-line;line-height:1.6;font-size:0.95rem;margin:0}.rui-detail__links{display:-ms-flexbox;display:flex;gap:1rem}.rui-detail__links a{color:var(--rui-color-secondary);text-decoration:none;font-weight:500}.rui-detail__links a:hover{text-decoration:underline}";export{t as rui_recipe_detail}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as e,h as s,H as i,a}from"./p-Cye74XUb.js";const o=class{constructor(s){r(this,s),this.ruiSearchInput=e(this,"ruiSearchInput"),this.ruiSearchSubmit=e(this,"ruiSearchSubmit"),this.value="",this.placeholder="Search recipes...",this.debounceMs=300,this.onInput=r=>{this.value=r.target.value,clearTimeout(this.timer),this.timer=setTimeout((()=>{this.ruiSearchInput.emit(this.value)}),this.debounceMs)},this.onSubmit=r=>{r.preventDefault(),clearTimeout(this.timer),this.ruiSearchSubmit.emit(this.value)}}disconnectedCallback(){clearTimeout(this.timer)}render(){return s(i,{key:"42c4c7437175136a28e810f73417147e4e609870"},s("form",{key:"7b450f3e9fa9a3c63cda1169b3cecc5e2577ba96",class:"rui-search",onSubmit:this.onSubmit,role:"search"},s("input",{key:"861e092e1c537cedcbe3bf6b1cd580d00fd8d24d",class:"rui-search__input",type:"search",value:this.value,placeholder:this.placeholder,onInput:this.onInput,"aria-label":this.placeholder}),s("button",{key:"b6676deed915b99ecb22ca2c5d30851f51f04c74",class:"rui-search__btn",type:"submit","aria-label":"Search"},"Search")))}get el(){return a(this)}};o.style=":host{display:block}.rui-search{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;gap:0.5rem;width:100%;max-width:640px}.rui-search__input{-ms-flex:1;flex:1;min-width:0;padding:0.6rem 0.85rem;font-size:1rem;font-family:var(--rui-font);border:1px solid var(--rui-color-border);border-radius:var(--rui-radius);outline:none;-webkit-transition:border-color 0.15s ease, -webkit-box-shadow 0.15s ease;transition:border-color 0.15s ease, -webkit-box-shadow 0.15s ease;transition:border-color 0.15s ease, box-shadow 0.15s ease;transition:border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease}.rui-search__input:focus{border-color:var(--rui-color-primary);-webkit-box-shadow:0 0 0 3px var(--rui-color-primary-soft);box-shadow:0 0 0 3px var(--rui-color-primary-soft)}.rui-search__btn{padding:0.6rem 1.1rem;font-size:0.95rem;font-weight:600;font-family:var(--rui-font);background:var(--rui-color-primary);color:#fff;border:none;border-radius:var(--rui-radius);cursor:pointer;-webkit-transition:background-color 0.15s ease;transition:background-color 0.15s ease}.rui-search__btn:hover{background:var(--rui-color-primary-hover)}";export{o as rui_search_bar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,i,e){if(e||arguments.length===2)for(var o=0,a=i.length,t;o<a;o++){if(t||!(o in i)){if(!t)t=Array.prototype.slice.call(i,0,o);t[o]=i[o]}}return r.concat(t||Array.prototype.slice.call(i))};System.register(["./p-DMa34l4T.system.js"],(function(r){"use strict";var i,e,o,a;return{setters:[function(r){i=r.r;e=r.c;o=r.h;a=r.H}],execute:function(){var t=function(){return":host{display:block}.rui-chips{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:0.5rem}.rui-chip{font-family:var(--rui-font);font-size:0.85rem;font-weight:500;padding:0.35rem 0.85rem;border-radius:999px;border:1px solid var(--rui-color-border);background:var(--rui-color-bg);color:var(--rui-color-text);cursor:pointer;-webkit-transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.rui-chip:hover{border-color:var(--rui-color-primary)}.rui-chip--active{background:var(--rui-color-primary);border-color:var(--rui-color-primary);color:#fff}"};var s=r("rui_filter_chips",/** @class */function(){function r(r){var o=this;i(this,r);this.ruiFilterChange=e(this,"ruiFilterChange");this.categories=[];this.selected=[];this.toggle=function(r){var i=o.selected.includes(r)?o.selected.filter((function(i){return i!==r})):__spreadArray(__spreadArray([],o.selected,true),[r],false);o.selected=__spreadArray([],i,true);o.ruiFilterChange.emit(o.selected)}}r.prototype.render=function(){var r=this;return o(a,{key:"628063d481c07e5c80312a9a395ba7ad0ab859dc"},o("div",{key:"d3aa0f87f0e6b6bd55960dc91769f56b70e4ef67",class:"rui-chips",role:"group","aria-label":"Filters"},this.categories.map((function(i){var e=r.selected.includes(i.value);return o("button",{type:"button",class:"rui-chip ".concat(e?"rui-chip--active":""),"aria-pressed":e?"true":"false",onClick:function(){return r.toggle(i.value)}},i.label)}))))};return r}());s.style=t()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-DMa34l4T.system.js"],(function(e){"use strict";var r,a,i,s;return{setters:[function(e){r=e.r;a=e.c;i=e.h;s=e.H}],execute:function(){var o=function(){return":host{display:block}.rui-card{background:var(--rui-color-bg);border:1px solid var(--rui-color-border);border-radius:var(--rui-radius);overflow:hidden;-webkit-box-shadow:var(--rui-shadow-sm);box-shadow:var(--rui-shadow-sm);cursor:pointer;-webkit-transition:-webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;transition:-webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;transition:transform 0.15s ease, box-shadow 0.15s ease;transition:transform 0.15s ease, box-shadow 0.15s ease, -webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.rui-card:hover{-webkit-transform:translateY(-2px);transform:translateY(-2px);-webkit-box-shadow:var(--rui-shadow-md);box-shadow:var(--rui-shadow-md)}.rui-card__media{position:relative;aspect-ratio:16 / 10;background:var(--rui-color-bg-alt);overflow:hidden}.rui-card__media img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.rui-card__placeholder{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--rui-color-muted);font-size:0.85rem}.rui-card__fav{position:absolute;top:0.5rem;right:0.5rem;width:2rem;height:2rem;border-radius:50%;border:none;background:rgba(255, 255, 255, 0.9);color:var(--rui-color-danger);font-size:1.1rem;line-height:1;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.15s ease, -webkit-transform 0.1s ease;transition:background-color 0.15s ease, -webkit-transform 0.1s ease;transition:background-color 0.15s ease, transform 0.1s ease;transition:background-color 0.15s ease, transform 0.1s ease, -webkit-transform 0.1s ease}.rui-card__fav:hover{background:#fff;-webkit-transform:scale(1.08);transform:scale(1.08)}.rui-card__fav.is-fav{color:var(--rui-color-danger);background:#fff}.rui-card__body{padding:0.85rem 1rem;-ms-flex:1;flex:1}.rui-card__title{margin:0 0 0.25rem;font-size:1rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rui-card__meta{margin:0;font-size:0.8rem;color:var(--rui-color-muted)}.rui-card__footer{padding:0 1rem 0.85rem;display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-wrap:wrap;flex-wrap:wrap}.rui-card__footer:empty{display:none}"};var t=e("rui_recipe_card",/** @class */function(){function e(e){var i=this;r(this,e);this.ruiCardClick=a(this,"ruiCardClick");this.ruiFavoriteToggle=a(this,"ruiFavoriteToggle");this.isFavorite=false;this.onCardClick=function(){i.ruiCardClick.emit(i.recipe)};this.onFavClick=function(e){e.stopPropagation();i.isFavorite=!i.isFavorite;i.ruiFavoriteToggle.emit({recipe:i.recipe,isFavorite:i.isFavorite})}}e.prototype.render=function(){var e=this.recipe;return i(s,{key:"8ba2647d2fed8b0539287633a5591892109596fb"},i("article",{key:"8a58a35d34d08d0897bc7c68b82773bd361e2dcf",class:"rui-card",onClick:this.onCardClick},i("div",{key:"04b5aa4b9563847aa116bbf477fabd806092f90a",class:"rui-card__media"},e.image?i("img",{src:e.image,alt:e.name,loading:"lazy"}):i("div",{class:"rui-card__placeholder","aria-hidden":"true"},i("span",null,"No image")),i("button",{key:"ea6b5fe33ab2587f28491b75db84e87e3b1d193f",type:"button",class:"rui-card__fav ".concat(this.isFavorite?"is-fav":""),"aria-pressed":this.isFavorite?"true":"false","aria-label":this.isFavorite?"Remove from favorites":"Add to favorites",onClick:this.onFavClick},this.isFavorite?"♥":"♡")),i("div",{key:"2bd65d44934ee52a98cc2be459b770a8fe18dd0f",class:"rui-card__body"},i("h3",{key:"55bd4f5faf4ed06696c6ed22f828d811afa605a5",class:"rui-card__title"},e.name),(e.category||e.area)&&i("p",{key:"5184ee876bdfb90cdef9bc7f529be504ed18bf45",class:"rui-card__meta"},[e.category,e.area].filter(Boolean).join(" · "))),i("div",{key:"5e3fc6c1cc4559bd6260ebf99039908f2e9c82e2",class:"rui-card__footer"},i("slot",{key:"2567811b6ca78e06df4e2c51714dc1210fa65f00"}))))};return e}());t.style=o()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as e,h as i,H as a}from"./p-Cye74XUb.js";const o=class{constructor(i){r(this,i),this.ruiAssignMeal=e(this,"ruiAssignMeal"),this.ruiRemoveMeal=e(this,"ruiRemoveMeal"),this.ruiClearDay=e(this,"ruiClearDay"),this.ruiSelectMeal=e(this,"ruiSelectMeal"),this.plan={},this.days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],this.assign=r=>this.ruiAssignMeal.emit({day:r}),this.remove=(r,e)=>this.ruiRemoveMeal.emit({day:r,recipe:e}),this.clear=r=>this.ruiClearDay.emit({day:r}),this.selectMeal=(r,e)=>this.ruiSelectMeal.emit({day:r,recipe:e})}render(){return i(a,{key:"de032b8a71504aa8c7ce9ae269c299974c03e160"},i("div",{key:"178b5fc0a98d94cc2bb9666d7edcd74ca605df98",class:"rui-planner"},this.days.map((r=>{const e=this.plan[r];return i("div",{class:"rui-planner__day"},i("div",{class:"rui-planner__day-head"},i("h4",null,r)),e&&e.recipe?i("div",{class:"rui-planner__meal rui-planner__meal--clickable",onClick:()=>this.selectMeal(r,e.recipe),role:"button",tabindex:0,onKeyDown:i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.selectMeal(r,e.recipe))},title:"View recipe ingredients"},e.recipe.image&&i("img",{src:e.recipe.image,alt:e.recipe.name}),i("div",{class:"rui-planner__meal-info"},i("span",{class:"rui-planner__meal-name"},e.recipe.name),e.recipe.category&&i("span",{class:"rui-planner__meal-cat"},e.recipe.category)),i("div",{class:"rui-planner__meal-actions"},i("button",{type:"button",class:"rui-planner__view",onClick:i=>{i.stopPropagation(),this.selectMeal(r,e.recipe)}},"View"),i("button",{type:"button",onClick:i=>{i.stopPropagation(),this.remove(r,e.recipe)}},"Remove"),i("button",{type:"button",class:"rui-planner__clear",onClick:e=>{e.stopPropagation(),this.clear(r)}},"Clear"))):i("div",{class:"rui-planner__empty"},i("span",null,"No meal planned"),i("button",{type:"button",onClick:()=>this.assign(r)},"+ Assign recipe")))}))))}};o.style=":host{display:block}.rui-planner{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:1rem}.rui-planner__day{background:var(--rui-color-bg);border:1px solid var(--rui-color-border);border-radius:var(--rui-radius);-webkit-box-shadow:var(--rui-shadow-sm);box-shadow:var(--rui-shadow-sm);overflow:hidden}.rui-planner__day-head{padding:0.6rem 0.85rem;background:var(--rui-color-primary-soft);border-bottom:1px solid var(--rui-color-border)}.rui-planner__day-head h4{margin:0;font-size:0.95rem;font-weight:700;color:var(--rui-color-primary-hover)}.rui-planner__meal{display:-ms-flexbox;display:flex;gap:0.6rem;padding:0.75rem;-ms-flex-align:center;align-items:center}.rui-planner__meal--clickable{cursor:pointer;-webkit-transition:background-color 0.15s ease;transition:background-color 0.15s ease;border-radius:var(--rui-radius)}.rui-planner__meal--clickable:hover{background:var(--rui-color-primary-soft, #dcfce7)}.rui-planner__meal--clickable:focus-visible{outline:2px solid var(--rui-color-primary, #16a34a);outline-offset:-2px}.rui-planner__meal img{width:56px;height:56px;border-radius:var(--rui-radius-sm);-o-object-fit:cover;object-fit:cover;-ms-flex-negative:0;flex-shrink:0}.rui-planner__meal-info{-ms-flex:1;flex:1;min-width:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0.15rem}.rui-planner__meal-name{font-size:0.9rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rui-planner__meal-cat{font-size:0.75rem;color:var(--rui-color-muted)}.rui-planner__meal-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0.25rem}.rui-planner__meal-actions button{font-family:var(--rui-font);font-size:0.75rem;padding:0.25rem 0.5rem;border-radius:var(--rui-radius-sm);border:1px solid var(--rui-color-border);background:var(--rui-color-bg);cursor:pointer}.rui-planner__meal-actions button:hover{border-color:var(--rui-color-primary)}.rui-planner__view{color:var(--rui-color-primary-hover, #15803d);font-weight:600}.rui-planner__view:hover{background:var(--rui-color-primary, #16a34a) !important;color:#fff !important;border-color:var(--rui-color-primary, #16a34a) !important}.rui-planner__clear:hover{color:var(--rui-color-danger);border-color:var(--rui-color-danger) !important}.rui-planner__empty{padding:1rem 0.75rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:0.6rem;color:var(--rui-color-muted);font-size:0.85rem}.rui-planner__empty button{font-family:var(--rui-font);font-size:0.8rem;font-weight:600;padding:0.4rem 0.8rem;border-radius:var(--rui-radius);border:1px dashed var(--rui-color-border);background:var(--rui-color-bg-alt);color:var(--rui-color-primary-hover);cursor:pointer}.rui-planner__empty button:hover{border-color:var(--rui-color-primary);background:var(--rui-color-primary-soft)}";export{o as rui_meal_planner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as e,h as o,H as i,a as t}from"./p-Cye74XUb.js";const a=class{constructor(o){r(this,o),this.ruiClick=e(this,"ruiClick"),this.variant="primary",this.disabled=!1,this.loading=!1,this.type="button",this.handleClick=r=>{if(this.disabled||this.loading)return r.preventDefault(),void r.stopPropagation();this.ruiClick.emit(r)}}render(){return o(i,{key:"0ab23154d1836dfd9d0a691705a0e5cc6f91dae3"},o("button",{key:"986e600d39ed91200857739179c2e105207c0ebc",class:`rui-btn rui-btn--${this.variant}`,type:this.type,disabled:this.disabled||this.loading,onClick:this.handleClick,"aria-busy":this.loading?"true":"false"},this.loading&&o("span",{key:"406a34032a25dd05f986e53075e2c7cf45727c85",class:"rui-btn__spinner","aria-hidden":"true"}),o("span",{key:"7f9ae69c7824227e0b56f2abffb10b95c7a8b92d",class:"rui-btn__label"},o("slot",{key:"1498be76d79baf033b9913f5f61a5b64192b341e"}))))}get el(){return t(this)}};a.style=":host{display:inline-block}.rui-btn{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:0.5em;font-family:var(--rui-font);font-size:0.95rem;font-weight:600;padding:0.55rem 1.1rem;border-radius:var(--rui-radius);border:1px solid transparent;cursor:pointer;-webkit-transition:background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;transition:background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;line-height:1.2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rui-btn:disabled{opacity:0.6;cursor:not-allowed}.rui-btn--primary{background-color:var(--rui-color-primary);color:#fff}.rui-btn--primary:hover:not(:disabled){background-color:var(--rui-color-primary-hover)}.rui-btn--secondary{background-color:var(--rui-color-secondary);color:#fff}.rui-btn--secondary:hover:not(:disabled){background-color:#14538a}.rui-btn--danger{background-color:var(--rui-color-danger);color:#fff}.rui-btn--danger:hover:not(:disabled){background-color:#a52323}.rui-btn--ghost{background-color:transparent;color:var(--rui-color-text);border-color:var(--rui-color-border)}.rui-btn--ghost:hover:not(:disabled){background-color:var(--rui-color-bg-alt)}.rui-btn__spinner{width:1em;height:1em;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;-webkit-animation:rui-spin 0.7s linear infinite;animation:rui-spin 0.7s linear infinite}@-webkit-keyframes rui-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rui-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";export{a as rui_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as r,h as a,H as i}from"./p-Cye74XUb.js";const s=class{constructor(a){e(this,a),this.ruiCardClick=r(this,"ruiCardClick"),this.ruiFavoriteToggle=r(this,"ruiFavoriteToggle"),this.isFavorite=!1,this.onCardClick=()=>{this.ruiCardClick.emit(this.recipe)},this.onFavClick=e=>{e.stopPropagation(),this.isFavorite=!this.isFavorite,this.ruiFavoriteToggle.emit({recipe:this.recipe,isFavorite:this.isFavorite})}}render(){const e=this.recipe;return a(i,{key:"8ba2647d2fed8b0539287633a5591892109596fb"},a("article",{key:"8a58a35d34d08d0897bc7c68b82773bd361e2dcf",class:"rui-card",onClick:this.onCardClick},a("div",{key:"04b5aa4b9563847aa116bbf477fabd806092f90a",class:"rui-card__media"},e.image?a("img",{src:e.image,alt:e.name,loading:"lazy"}):a("div",{class:"rui-card__placeholder","aria-hidden":"true"},a("span",null,"No image")),a("button",{key:"ea6b5fe33ab2587f28491b75db84e87e3b1d193f",type:"button",class:"rui-card__fav "+(this.isFavorite?"is-fav":""),"aria-pressed":this.isFavorite?"true":"false","aria-label":this.isFavorite?"Remove from favorites":"Add to favorites",onClick:this.onFavClick},this.isFavorite?"♥":"♡")),a("div",{key:"2bd65d44934ee52a98cc2be459b770a8fe18dd0f",class:"rui-card__body"},a("h3",{key:"55bd4f5faf4ed06696c6ed22f828d811afa605a5",class:"rui-card__title"},e.name),(e.category||e.area)&&a("p",{key:"5184ee876bdfb90cdef9bc7f529be504ed18bf45",class:"rui-card__meta"},[e.category,e.area].filter(Boolean).join(" · "))),a("div",{key:"5e3fc6c1cc4559bd6260ebf99039908f2e9c82e2",class:"rui-card__footer"},a("slot",{key:"2567811b6ca78e06df4e2c51714dc1210fa65f00"}))))}};s.style=":host{display:block}.rui-card{background:var(--rui-color-bg);border:1px solid var(--rui-color-border);border-radius:var(--rui-radius);overflow:hidden;-webkit-box-shadow:var(--rui-shadow-sm);box-shadow:var(--rui-shadow-sm);cursor:pointer;-webkit-transition:-webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;transition:-webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;transition:transform 0.15s ease, box-shadow 0.15s ease;transition:transform 0.15s ease, box-shadow 0.15s ease, -webkit-transform 0.15s ease, -webkit-box-shadow 0.15s ease;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.rui-card:hover{-webkit-transform:translateY(-2px);transform:translateY(-2px);-webkit-box-shadow:var(--rui-shadow-md);box-shadow:var(--rui-shadow-md)}.rui-card__media{position:relative;aspect-ratio:16 / 10;background:var(--rui-color-bg-alt);overflow:hidden}.rui-card__media img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.rui-card__placeholder{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--rui-color-muted);font-size:0.85rem}.rui-card__fav{position:absolute;top:0.5rem;right:0.5rem;width:2rem;height:2rem;border-radius:50%;border:none;background:rgba(255, 255, 255, 0.9);color:var(--rui-color-danger);font-size:1.1rem;line-height:1;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.15s ease, -webkit-transform 0.1s ease;transition:background-color 0.15s ease, -webkit-transform 0.1s ease;transition:background-color 0.15s ease, transform 0.1s ease;transition:background-color 0.15s ease, transform 0.1s ease, -webkit-transform 0.1s ease}.rui-card__fav:hover{background:#fff;-webkit-transform:scale(1.08);transform:scale(1.08)}.rui-card__fav.is-fav{color:var(--rui-color-danger);background:#fff}.rui-card__body{padding:0.85rem 1rem;-ms-flex:1;flex:1}.rui-card__title{margin:0 0 0.25rem;font-size:1rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rui-card__meta{margin:0;font-size:0.8rem;color:var(--rui-color-muted)}.rui-card__footer{padding:0 1rem 0.85rem;display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-wrap:wrap;flex-wrap:wrap}.rui-card__footer:empty{display:none}";export{s as rui_recipe_card}
|
package/dist/rui/rui.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--rui-color-primary:#16a34a;--rui-color-primary-hover:#15803d;--rui-color-primary-soft:#dcfce7;--rui-color-secondary:#1864ab;--rui-color-danger:#c92a2a;--rui-color-success:#2b8a3e;--rui-color-text:#212529;--rui-color-muted:#868e96;--rui-color-border:#dee2e6;--rui-color-bg:#ffffff;--rui-color-bg-alt:#f8f9fa;--rui-radius:8px;--rui-radius-sm:4px;--rui-shadow-sm:0 1px 3px rgba(0, 0, 0, 0.08);--rui-shadow-md:0 4px 12px rgba(0, 0, 0, 0.12);--rui-font:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}:host{display:block;font-family:var(--rui-font);color:var(--rui-color-text);-webkit-box-sizing:border-box;box-sizing:border-box}*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,g as a,b as i}from"./p-Cye74XUb.js";export{s as setNonce}from"./p-Cye74XUb.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((async e=>(await a(),i([["p-044c45e5",[[1,"rui-recipe-list",{recipes:[16],favorites:[16],emptyMessage:[1,"empty-message"]},null,{recipes:[{recipesChanged:0}],favorites:[{favoritesChanged:0}]}]]],["p-d34e0888",[[257,"rui-button",{variant:[1],disabled:[516],loading:[4],type:[1]}]]],["p-9e0ffa92",[[1,"rui-filter-chips",{categories:[16],selected:[16]}]]],["p-d04fa46b",[[1,"rui-meal-planner",{plan:[16],days:[16]}]]],["p-40bf8db2",[[257,"rui-modal",{open:[1540],modalTitle:[1,"modal-title"],closeOnBackdrop:[4,"close-on-backdrop"]},null,{open:[{openChanged:0}]}]]],["p-a25c8161",[[257,"rui-recipe-detail",{recipe:[16],isFavorite:[516,"is-favorite"]}]]],["p-ad0253ac",[[1,"rui-search-bar",{value:[1025],placeholder:[1],debounceMs:[2,"debounce-ms"]}]]],["p-eac80bd7",[[257,"rui-recipe-card",{recipe:[16],isFavorite:[516,"is-favorite"]}]]]],e))));
|