ai12z 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ai12z-bot_10.cjs.entry.js +3 -3
- package/dist/cjs/ai12z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/{ai12z-cta-7eb3dd6c.js → ai12z-cta-f9f94753.js} +16 -16
- package/dist/cjs/ai12z-cta-f9f94753.js.map +1 -0
- package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js → ai12z-knowledge-box-c33465fe.js} +3 -3
- package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js.map → ai12z-knowledge-box-c33465fe.js.map} +1 -1
- package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +3 -3
- package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
- package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/{index-f098743c.js → index-171f7ecf.js} +2 -2
- package/dist/cjs/index-171f7ecf.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/library.cjs.js +1 -1
- package/dist/cjs/list-data.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-f0adbba9.js → utils-c9b045e3.js} +2 -2
- package/dist/cjs/{utils-f0adbba9.js.map → utils-c9b045e3.js.map} +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +11 -11
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/collection/utils/logger.js +15 -1
- package/dist/collection/utils/logger.js.map +1 -1
- package/dist/esm/ai12z-bot_10.entry.js +4 -4
- package/dist/esm/ai12z-carousel.entry.js +1 -1
- package/dist/esm/{ai12z-cta-e143bfc1.js → ai12z-cta-b4e80b50.js} +14 -14
- package/dist/esm/ai12z-cta-b4e80b50.js.map +1 -0
- package/dist/esm/{ai12z-knowledge-box-704c29af.js → ai12z-knowledge-box-aceba174.js} +3 -3
- package/dist/esm/{ai12z-knowledge-box-704c29af.js.map → ai12z-knowledge-box-aceba174.js.map} +1 -1
- package/dist/esm/ai12z-knowledge-box.entry.js +3 -3
- package/dist/esm/ai12z-spinner.entry.js +1 -1
- package/dist/esm/dynamic-form.entry.js +1 -1
- package/dist/esm/{index-39265a7d.js → index-9f7965fd.js} +2 -2
- package/dist/esm/index-9f7965fd.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/library.js +2 -2
- package/dist/esm/list-data.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-96bbd030.js → utils-a4deff47.js} +2 -2
- package/dist/esm/{utils-96bbd030.js.map → utils-a4deff47.js.map} +1 -1
- package/dist/library/index.esm.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/{p-eeec7af3.js → p-23f2e962.js} +2 -2
- package/dist/library/{p-eeec7af3.js.map → p-23f2e962.js.map} +1 -1
- package/dist/library/p-682c54c0.js +3 -0
- package/dist/library/p-682c54c0.js.map +1 -0
- package/dist/library/{p-85691232.entry.js → p-7673db22.entry.js} +2 -2
- package/dist/library/{p-233361ad.entry.js → p-7f764876.entry.js} +2 -2
- package/dist/library/{p-4fc9c2e8.js → p-973b27e2.js} +2 -2
- package/dist/library/{p-cfcf9f4d.js → p-b5fa76af.js} +2 -2
- package/dist/library/{p-c42b9950.entry.js → p-de0be744.entry.js} +2 -2
- package/dist/library/p-dea64110.entry.js +2 -0
- package/dist/library/{p-8dc9633d.entry.js → p-ed972184.entry.js} +2 -2
- package/dist/library/{p-b46a067b.entry.js → p-ee0c4132.entry.js} +2 -2
- package/package.json +2 -2
- package/dist/cjs/ai12z-cta-7eb3dd6c.js.map +0 -1
- package/dist/cjs/index-f098743c.js.map +0 -1
- package/dist/esm/ai12z-cta-e143bfc1.js.map +0 -1
- package/dist/esm/index-39265a7d.js.map +0 -1
- package/dist/library/p-b48f3cde.js +0 -3
- package/dist/library/p-b48f3cde.js.map +0 -1
- package/dist/library/p-e6aa7d00.entry.js +0 -2
- /package/dist/library/{p-85691232.entry.js.map → p-7673db22.entry.js.map} +0 -0
- /package/dist/library/{p-233361ad.entry.js.map → p-7f764876.entry.js.map} +0 -0
- /package/dist/library/{p-4fc9c2e8.js.map → p-973b27e2.js.map} +0 -0
- /package/dist/library/{p-cfcf9f4d.js.map → p-b5fa76af.js.map} +0 -0
- /package/dist/library/{p-c42b9950.entry.js.map → p-de0be744.entry.js.map} +0 -0
- /package/dist/library/{p-e6aa7d00.entry.js.map → p-dea64110.entry.js.map} +0 -0
- /package/dist/library/{p-8dc9633d.entry.js.map → p-ed972184.entry.js.map} +0 -0
- /package/dist/library/{p-b46a067b.entry.js.map → p-ee0c4132.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as e}from"./p-682c54c0.js";const s=".carousel-container{display:flex;align-items:center;justify-content:space-between;width:100%;overflow:hidden;position:relative;flex-direction:column}.carousel{width:87%;display:flex;transition:transform 0.5s ease-in-out;transform:translateX(calc(-100% * var(--active-index) / var(--items-per-row)));}.carousel-item{flex:1 0 calc(100% / var(--items-per-row) - 30px);min-width:30%;background-color:#fff;border-radius:8px;margin-right:15px;min-height:500px;margin-left:15px}.carousel-more-item{min-height:350px;max-height:400px;overflow-y:auto}.carousel-item-des2{min-height:300px;overflow-y:auto}.carousel-item-img-container{justify-content:center;align-items:center;width:100%;display:flex}.carousel-item-img{width:250px;height:auto;border-radius:8px}.carousel-item-des{max-height:150px;overflow-y:auto}.prev,.next{background:#007bff;border:none;color:white;padding:10px;cursor:pointer;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);z-index:10}.prev{cursor:pointer;left:0px}.next{cursor:pointer;right:0px}button:disabled{opacity:0.5;cursor:not-allowed}.carousel-item-info{margin-left:10px}.carousel-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.carousel-item p{font-size:14px;line-height:1.5;white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.indicators{display:flex;justify-content:center;margin-top:10px}.indicator{width:10px;height:10px;background-color:gray;border-radius:50%;margin:0 5px;cursor:pointer}.indicator.active{background-color:black}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar{width:8px;}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-track{background:#f1f1f1;}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb:hover{background:#555;}";const r=s;const o=class{constructor(e){i(this,e);this.buttonClick=t(this,"buttonClick",7);this.sendQueryToBot=t(this,"sendQueryToBot",7);this.items=[];this.inputType="ai";this.itemsPerRow=1;this.activeIndex=0;this.activeButton=false;this.activeButtonIndex=0}next(){this.items.forEach((i=>{i.activeButton=false}));this.activeButton=false;if(this.activeIndex<this.items.length-this.itemsPerRow){this.activeIndex+=this.itemsPerRow}}prev(){this.items.forEach((i=>{i.activeButton=false}));this.activeButton=false;if(this.activeIndex>0){this.activeIndex-=this.itemsPerRow}}componentWillLoad(){this.activeButton=false}getQueryRes(i){if(this.inputType==="bot"){this.sendQueryToBot.emit(i)}else if(this.inputType==="ai"){this.buttonClick.emit(i)}}handleIndicatorClick(i){this.activeIndex=i}handleButtonClick(i,t){if(i.type==="panel"){t.activeButton=i.index===0?false:true;this.activeButton=i.index===0?false:true;this.activeButtonIndex=i.index}if(i.type==="url"){window.open(i.url,"_blank")}if(i.type==="compare"){const i=[];this.items.forEach((t=>{t.panels.forEach((t=>{if(t.buttons&&t.buttons.length>0){t.buttons.forEach((e=>{if(e.type==="compare"&&e.checked){i.push(t.title)}}))}}))}));if(this.inputType==="ai"){this.buttonClick.emit(i.join(", "))}else if(this.inputType==="bot"){this.sendQueryToBot.emit(i.join(", "))}}}handleCheckboxChange(i,t){console.log("Checkbox changed:",i.target.checked);t.checked=i.target.checked}render(){var i;if(!this.items||this.items.length===0){return e("div",null,"No items to display")}return e("div",{class:"carousel-container"},e("button",{onClick:()=>this.prev(),disabled:this.activeIndex===0,class:"prev"},"<"),e("div",{class:"carousel",style:{"--active-index":this.activeIndex.toString(),"--items-per-row":this.itemsPerRow.toString()}},(i=this.items)===null||i===void 0?void 0:i.map(((i,t)=>{var s,r,o;return e("div",{class:`carousel-item ${t>=this.activeIndex&&t<this.activeIndex+this.itemsPerRow?"active":""} ${this.activeButton?"carousel-more-item":""}`},i.activeButton&&e("div",{class:"carousel-item-info"},e("h3",null,(s=i.panels[this.activeButtonIndex])===null||s===void 0?void 0:s.title),e("p",{innerHTML:i.panels[this.activeButtonIndex].description,class:"carousel-item-des2"}),(r=i.panels[this.activeButtonIndex].buttons)===null||r===void 0?void 0:r.map((t=>{switch(t.type){default:return e("button",{class:"carousel-btn",onClick:()=>this.handleButtonClick(t,i)},t.label);case"compare":return e("div",null,e("button",{class:"carousel-btn",onClick:()=>this.handleButtonClick(t,i)},t.label),e("label",null,e("input",{type:"checkbox",checked:t.checked,onChange:i=>this.handleCheckboxChange(i,t)}),i.panels[this.activeButtonIndex].title))}}))),!this.activeButton&&e("div",{class:"carousel-item-img-container"},e("img",{src:i.images[0],alt:i.title,class:"carousel-item-img"})),!this.activeButton&&e("div",{class:"carousel-item-info"},e("h3",null,i.title),e("p",{innerHTML:i.description,class:"carousel-item-des"}),(o=i.buttons)===null||o===void 0?void 0:o.map((t=>{switch(t.type){case"url":return e("button",{class:"carousel-btn",onClick:()=>this.handleButtonClick(t,i)},t.label);case"query":return e("button",{class:"carousel-btn",onClick:()=>this.getQueryRes(t.value)},t.label);case"panel":return e("button",{class:"carousel-btn",onClick:()=>this.handleButtonClick(t,i)},t.label)}}))))}))),e("button",{onClick:()=>this.next(),disabled:this.activeIndex>=this.items.length-this.itemsPerRow,class:"next"},">"),e("div",{class:"indicators"},this.items.map(((i,t)=>e("span",{class:{indicator:true,active:t===this.activeIndex},onClick:()=>this.handleIndicatorClick(t)})))))}};o.style=r;export{o as ai12z_carousel};
|
|
2
|
+
//# sourceMappingURL=p-de0be744.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,h as o}from"./p-b48f3cde.js";const r=".pagination-controls{display:flex;justify-content:space-between;margin-top:20px}.pagination-controls button{padding:10px 20px;border:none;background-color:#007bff;color:white;cursor:pointer;border-radius:5px}.pagination-controls button:disabled{background-color:#ccc;cursor:not-allowed}.pagination-controls span{align-self:center;font-size:1.1em}.list-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px;max-width:100%;}.show-more{color:#007bff;text-decoration:none;font-weight:bold;cursor:pointer;transition:color 0.3s ease;}.show-more:hover{color:#0056b3;text-decoration:underline;}.show-more:focus{outline:2px dashed #007bff;outline-offset:2px}.listData-subtitle4{height:20px;width:100%}.carousel-container{justify-content:space-between;width:100%;overflow:hidden;position:relative;margin-left:auto;margin-right:auto}.carousel{width:100%;display:flex;transition:transform 0.5s ease-in-out;transform:translateX(calc(-100% * var(--active-index) / var(--items-per-row)))}.carousel-item{flex:1 0 100%;flex:1 0 calc(100% / var(--items-per-row) - 30px);min-width:30%;background-color:#fff;border-radius:8px;margin-right:15px;min-height:500px;margin-left:15px;overflow-y:auto;max-height:600px}.carousel-more-item{min-height:350px;max-height:400px;overflow-y:auto}.carousel-item-des2{min-height:300px;overflow-y:auto}.carousel-item-img{height:auto;border-radius:8px;width:100%}.prev,.next{background:#007bff;border:none;color:white;padding:10px;cursor:pointer;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);z-index:10}.prev{cursor:pointer;left:0px}.next{cursor:pointer;right:0px}button:disabled{opacity:0.5;cursor:not-allowed}.carousel-item-info{margin-left:10px}.carousel-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.carousel-item p{font-size:14px;line-height:1.5;white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.indicators{display:flex;justify-content:center;margin-top:10px}.indicator{width:10px;height:10px;background-color:gray;border-radius:50%;margin:0 5px;cursor:pointer}.indicator.active{background-color:black}.carousel-item::-webkit-scrollbar,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar{width:8px;}.carousel-item::-webkit-scrollbar-track,.carousel-more-item::-webkit-scrollbar-track,.carousel-item-des::-webkit-scrollbar-track{background:#f1f1f1;}.carousel-item::-webkit-scrollbar-thumb,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.carousel-item::-webkit-scrollbar-thumb:hover,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb:hover{background:#555;}@media (max-width: 768px){.pagination-controls button{padding:5px 5px}}";const s=r;const i='/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-bold);font-weight:600}.prose :where(astrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotestrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthstrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=As]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=as]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type=Is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose]*)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose]*)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquotep:first-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:open-quote}.prose :where(blockquotep:last-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose]*)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose]*)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:"`"}.prose :where(acode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h1code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h2code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.875em}.prose :where(h3code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.9em}.prose :where(h4code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotecode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthcode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-top:.8571429em;padding-inline-start:1.1428571em}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:none}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose]*)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:start;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(theadth):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em;vertical-align:bottom}.prose :where(tbodytr):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbodytr:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-width:0}.prose :where(tbodytd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose]*)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(.prose>ul>lip):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(ulul,ulol,olul,olol):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(theadth:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(theadth:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(tbodytd,tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-top:.5714286em;padding-inline-start:.5714286em}.prose :where(tbodytd:first-child,tfoottd:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(tbodytd:last-child,tfoottd:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.z-30{z-index:30}.m-4{margin:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mr-3{margin-right:.75rem}.ms-2{margin-inline-start:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-96{height:24rem}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.w-10{width:2.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-l{border-left-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.tracking-tight{letter-spacing:-.025em}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-slate-900\\/10{--tw-ring-color:rgba(15,23,42,.1)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[ko_memo\\:\\"\\+n\\+\\"\\]{ko_memo:"+n+"}.hover\\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\\:bg-indigo-300:hover{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}.hover\\:bg-gradient-to-t:hover{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:ring-slate-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-4:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-blue-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.focus\\:ring-sky-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity))}.peer:checked~.peer-checked\\:block{display:block}:is(.dark.dark\\:border-gray-700){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark.dark\\:bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}:is(.dark.dark\\:text-gray-400){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark.dark\\:text-gray-800){--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark.dark\\:text-slate-400){--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}:is(.dark.dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark.dark\\:hover\\:bg-blue-700:hover){--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}:is(.dark.dark\\:focus\\:ring-blue-800:focus){--tw-ring-opacity:1;--tw-ring-color:rgb(30 64 175/var(--tw-ring-opacity))}@media (min-width:640px){.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\\:col-span-2{grid-column:span 2/span 2}.md\\:ml-2{margin-left:.5rem}.md\\:mt-6{margin-top:1.5rem}.md\\:grid{display:grid}.md\\:h-96{height:24rem}.md\\:h-auto{height:auto}.md\\:w-48{width:12rem}.md\\:max-w-xl{max-width:36rem}.md\\:flex-none{flex:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:gap-4{gap:1rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}.rtl\\:rotate-180:where([dir=rtl],[dir=rtl]*){--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\\:space-x-reverse:where([dir=rtl],[dir=rtl]*)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}';const n=i;const a=class{constructor(o){e(this,o);this.sendQueryToBot=t(this,"sendQueryToBot",7);this.sendQueryToAI=t(this,"sendQueryToAI",7);this.template=undefined;this.inputType="ai";this.itemsPerRow=1;this.items=[];this.formSettings=undefined;this.itemsPerPage=10;this.emptyMessage="No items to display";this.currentPage=1;this.showMoreState=[];this.showPanel=[];this.activeIndex=0;this.activeButton=false;this.activeButtonIndex=0;this.showImageOnMore=false}changePage(e){const t=Math.ceil(this.items.length/this.itemsPerPage);if(e==="next"&&this.currentPage<t){this.currentPage++}else if(e==="prev"&&this.currentPage>1){this.currentPage--}}componentwillLoad(){this.items=this.items.map((e=>e.hideImageOnMore===undefined?Object.assign(Object.assign({},e),{hideImageOnMore:true}):e))}getCurrentPageItems(){const e=(this.currentPage-1)*this.itemsPerPage;const t=e+this.itemsPerPage;return this.items.slice(e,t)}toggleShowMore(e){const t=[...this.showMoreState];t[e]=!t[e];this.showMoreState=t;this.items=this.items.map((t=>t.title===this.items[e].title?Object.assign(Object.assign({},t),{hideImageOnMore:!t.hideImageOnMore}):t))}handleClick(e,t,o){switch(e.type){case"url":window.open(e.url,"_blank");break;case"query":if(this.inputType==="bot"){this.sendQueryToBot.emit(e.query)}else if(this.inputType==="ai"){this.sendQueryToAI.emit(e.query)}break;case"panel":const r=[...this.showPanel];r[o]=!r[o];this.showPanel=r;t.activeButton=true;this.activeButton=true;this.activeButtonIndex=e.index;break}}handlePanelClick(e,t,o){switch(e.type){case"url":window.open(e.url,"_blank");break;case"query":if(this.inputType==="bot"){this.sendQueryToBot.emit(e.query)}else if(this.inputType==="ai"){this.sendQueryToAI.emit(e.query)}break;case"panel":t.activeButton=e.index===0?false:true;this.activeButton=e.index===0?false:true;this.activeButtonIndex=e.index;break}}handleIndicatorClick(e){this.activeIndex=e}totalPages(){return Math.ceil(this.items.length/this.itemsPerPage)}handleCheckboxChange(e,t){t.checked=e.target.checked}next(){this.items.forEach((e=>{e.activeButton=false}));this.activeButton=false;if(this.activeIndex<this.items.length-this.itemsPerRow){this.activeIndex+=this.itemsPerRow}}prev(){this.items.forEach((e=>{e.activeButton=false}));this.activeButton=false;if(this.activeIndex>0){this.activeIndex-=this.itemsPerRow}}render(){var e;const t=this.getCurrentPageItems();const r=this.totalPages();if(!this.items||this.items.length===0){return o("div",null,this.emptyMessage)}if(this.template==="list"){return o("div",{class:"flex flex-col"},o("div",null,t.map(((e,t)=>{var r,s,i,n,a,l,p;return o("div",{class:`bg-white w-full mb-4 p-3 md:grid md:gap-4 shadow-md hover:shadow-lg transition-shadow ${!this.showPanel[t]&&this.items[t].hideImageOnMore&&!this.showMoreState[t]?"md:grid-cols-2":""}`},e.activeButton&&this.activeButton&&this.showPanel[t]&&o("div",{class:"w-full md:col-span-2"},o("h1",{class:"font-title font-bold text-2xl md:text-3xl"},(r=e.panels[this.activeButtonIndex])===null||r===void 0?void 0:r.title),o("p",{class:"font-light text-gray-500",innerHTML:(s=e.panels[this.activeButtonIndex])===null||s===void 0?void 0:s.description}),((i=e.panels[this.activeButtonIndex])===null||i===void 0?void 0:i.form)&&o("div",{class:"w-full md:col-span-2 h-fit"},o("dynamic-form",{form:(n=e.panels[this.activeButtonIndex])===null||n===void 0?void 0:n.form,formSettings:this.formSettings,formsettings:this.formSettings})),o("div",{class:"flex items-center my-4"},(l=(a=e.panels[this.activeButtonIndex])===null||a===void 0?void 0:a.buttons)===null||l===void 0?void 0:l.map((r=>{switch(r.type){case"url":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none"},r.label);case"panel":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label)}})))),!this.showPanel[t]&&this.items[t].hideImageOnMore&&!this.showMoreState[t]&&o("div",null,o("img",{src:e.images[0],alt:e.title,class:"w-full h-auto"})," "),!this.showPanel[t]&&o("div",null,o("h1",{class:"font-title font-bold text-2xl md:text-3xl"},e.title),e.subTitle&&e.subTitle.length>0&&e.subTitle.map((e=>o("p",{class:"font-title text-md md:text-xl"},e))),o("p",{class:"font-light text-gray-500",innerHTML:this.showMoreState[t]?e.description:e.shortDescription}),e.description&&o("a",{class:"show-more",onClick:()=>this.toggleShowMore(t)},this.showMoreState[t]?"Show Less":"Show More"),o("div",{class:"flex items-center my-4"},(p=e.buttons)===null||p===void 0?void 0:p.map((r=>{switch(r.type){case"url":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none"},r.label);case"panel":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label)}})))),!this.showPanel[t]&&e.form&&o("div",{class:"w-full md:col-span-2 h-fit"},o("dynamic-form",{form:e.form,formSettings:this.formSettings,formsettings:this.formSettings})))}))),o("div",{class:"pagination-controls"},o("button",{disabled:this.currentPage===1,onClick:()=>this.changePage("prev")},"Previous"," "),o("span",null,"Page ",this.currentPage," of ",r),o("button",{disabled:this.currentPage===r,onClick:()=>this.changePage("next")},"Next")))}else if(this.template==="carousel"){return o("div",{class:"carousel-container"},o("button",{onClick:()=>this.prev(),disabled:this.activeIndex===0,class:"prev"},"<"),o("div",{class:"carousel",style:{"--active-index":this.activeIndex.toString(),"--items-per-row":this.itemsPerRow.toString()}},(e=this.items)===null||e===void 0?void 0:e.map(((e,t)=>{var r,s,i,n,a,l,p;return o("div",{class:`carousel-item ${t>=this.activeIndex&&t<this.activeIndex+this.itemsPerRow?"active":""} ${this.activeButton?"carousel-more-item":""}`},e.activeButton&&o("div",{class:"carousel-item-info"},o("h3",null,(r=e.panels[this.activeButtonIndex])===null||r===void 0?void 0:r.title),((s=e.panels[this.activeButtonIndex])===null||s===void 0?void 0:s.description)&&o("p",{innerHTML:(i=e.panels[this.activeButtonIndex])===null||i===void 0?void 0:i.description,class:"carousel-item-des2"}),((n=e.panels[this.activeButtonIndex])===null||n===void 0?void 0:n.form)&&o("div",{class:"w-full md:col-span-2"},o("dynamic-form",{form:(a=e.panels[this.activeButtonIndex])===null||a===void 0?void 0:a.form,formSettings:this.formSettings,formsettings:this.formSettings})),o("div",null,(l=e.panels[this.activeButtonIndex].buttons)===null||l===void 0?void 0:l.map((r=>{switch(r.type){default:return o("button",{class:"carousel-btn",onClick:()=>this.handlePanelClick(r,e,t)},r.label);case"compare":return o("div",null,o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label),o("label",null,o("input",{type:"checkbox",checked:r.checked,onChange:e=>this.handleCheckboxChange(e,r)}),e.panels[this.activeButtonIndex].title))}})))),!this.activeButton&&o("div",{class:"carousel-item-img-container"},o("img",{src:e.images[0],alt:e.title,class:"carousel-item-img"})),!this.activeButton&&o("div",{class:"carousel-item-info"},o("h3",null,e.title),e.subTitle&&e.subTitle.length>0&&e.subTitle.map((e=>o("p",{class:"font-title text-md md:text-xl"},e))),o("p",{class:"carousel-item-des font-light text-gray-500",innerHTML:this.showMoreState[t]?e.description:e.shortDescription}),o("a",{class:"show-more",onClick:()=>this.toggleShowMore(t)},this.showMoreState[t]?"Show Less":"Show More"),(p=e.buttons)===null||p===void 0?void 0:p.map((r=>{switch(r.type){case"url":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label);case"panel":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label)}}))))}))),o("button",{onClick:()=>this.next(),disabled:this.activeIndex>=this.items.length-this.itemsPerRow,class:"next"},">"),o("div",{class:"indicators"},this.items.map(((e,t)=>o("span",{class:{indicator:true,active:t===this.activeIndex},onClick:()=>this.handleIndicatorClick(t)})))))}}};a.style=s+n;export{a as list_data};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as o}from"./p-682c54c0.js";const r=".pagination-controls{display:flex;justify-content:space-between;margin-top:20px}.pagination-controls button{padding:10px 20px;border:none;background-color:#007bff;color:white;cursor:pointer;border-radius:5px}.pagination-controls button:disabled{background-color:#ccc;cursor:not-allowed}.pagination-controls span{align-self:center;font-size:1.1em}.list-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px;max-width:100%;}.show-more{color:#007bff;text-decoration:none;font-weight:bold;cursor:pointer;transition:color 0.3s ease;}.show-more:hover{color:#0056b3;text-decoration:underline;}.show-more:focus{outline:2px dashed #007bff;outline-offset:2px}.listData-subtitle4{height:20px;width:100%}.carousel-container{justify-content:space-between;width:100%;overflow:hidden;position:relative;margin-left:auto;margin-right:auto}.carousel{width:100%;display:flex;transition:transform 0.5s ease-in-out;transform:translateX(calc(-100% * var(--active-index) / var(--items-per-row)))}.carousel-item{flex:1 0 100%;flex:1 0 calc(100% / var(--items-per-row) - 30px);min-width:30%;background-color:#fff;border-radius:8px;margin-right:15px;min-height:500px;margin-left:15px;overflow-y:auto;max-height:600px}.carousel-more-item{min-height:350px;max-height:400px;overflow-y:auto}.carousel-item-des2{min-height:300px;overflow-y:auto}.carousel-item-img{height:auto;border-radius:8px;width:100%}.prev,.next{background:#007bff;border:none;color:white;padding:10px;cursor:pointer;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);z-index:10}.prev{cursor:pointer;left:0px}.next{cursor:pointer;right:0px}button:disabled{opacity:0.5;cursor:not-allowed}.carousel-item-info{margin-left:10px}.carousel-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.carousel-item p{font-size:14px;line-height:1.5;white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.indicators{display:flex;justify-content:center;margin-top:10px}.indicator{width:10px;height:10px;background-color:gray;border-radius:50%;margin:0 5px;cursor:pointer}.indicator.active{background-color:black}.carousel-item::-webkit-scrollbar,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar{width:8px;}.carousel-item::-webkit-scrollbar-track,.carousel-more-item::-webkit-scrollbar-track,.carousel-item-des::-webkit-scrollbar-track{background:#f1f1f1;}.carousel-item::-webkit-scrollbar-thumb,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.carousel-item::-webkit-scrollbar-thumb:hover,.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb:hover{background:#555;}@media (max-width: 768px){.pagination-controls button{padding:5px 5px}}";const s=r;const i='/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-bold);font-weight:600}.prose :where(astrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotestrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthstrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=As]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=as]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type=Is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose]*)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose]*)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquotep:first-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:open-quote}.prose :where(blockquotep:last-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose]*)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose]*)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:"`"}.prose :where(acode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h1code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h2code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.875em}.prose :where(h3code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.9em}.prose :where(h4code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotecode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthcode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-top:.8571429em;padding-inline-start:1.1428571em}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:none}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose]*)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:start;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(theadth):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em;vertical-align:bottom}.prose :where(tbodytr):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbodytr:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-width:0}.prose :where(tbodytd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose]*)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(.prose>ul>lip):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(ulul,ulol,olul,olol):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(theadth:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(theadth:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(tbodytd,tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-top:.5714286em;padding-inline-start:.5714286em}.prose :where(tbodytd:first-child,tfoottd:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(tbodytd:last-child,tfoottd:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.z-30{z-index:30}.m-4{margin:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mr-3{margin-right:.75rem}.ms-2{margin-inline-start:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-96{height:24rem}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.w-10{width:2.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-l{border-left-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pb-1{padding-bottom:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.tracking-tight{letter-spacing:-.025em}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-slate-900\\/10{--tw-ring-color:rgba(15,23,42,.1)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[ko_memo\\:\\"\\+n\\+\\"\\]{ko_memo:"+n+"}.hover\\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\\:bg-indigo-300:hover{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}.hover\\:bg-gradient-to-t:hover{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:ring-slate-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-4:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-blue-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.focus\\:ring-sky-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity))}.peer:checked~.peer-checked\\:block{display:block}:is(.dark.dark\\:border-gray-700){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark.dark\\:bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}:is(.dark.dark\\:text-gray-400){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark.dark\\:text-gray-800){--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark.dark\\:text-slate-400){--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}:is(.dark.dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark.dark\\:hover\\:bg-blue-700:hover){--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}:is(.dark.dark\\:focus\\:ring-blue-800:focus){--tw-ring-opacity:1;--tw-ring-color:rgb(30 64 175/var(--tw-ring-opacity))}@media (min-width:640px){.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\\:col-span-2{grid-column:span 2/span 2}.md\\:ml-2{margin-left:.5rem}.md\\:mt-6{margin-top:1.5rem}.md\\:grid{display:grid}.md\\:h-96{height:24rem}.md\\:h-auto{height:auto}.md\\:w-48{width:12rem}.md\\:max-w-xl{max-width:36rem}.md\\:flex-none{flex:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:gap-4{gap:1rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}.rtl\\:rotate-180:where([dir=rtl],[dir=rtl]*){--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\\:space-x-reverse:where([dir=rtl],[dir=rtl]*)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}';const n=i;const a=class{constructor(o){e(this,o);this.sendQueryToBot=t(this,"sendQueryToBot",7);this.sendQueryToAI=t(this,"sendQueryToAI",7);this.template=undefined;this.inputType="ai";this.itemsPerRow=1;this.items=[];this.formSettings=undefined;this.itemsPerPage=10;this.emptyMessage="No items to display";this.currentPage=1;this.showMoreState=[];this.showPanel=[];this.activeIndex=0;this.activeButton=false;this.activeButtonIndex=0;this.showImageOnMore=false}changePage(e){const t=Math.ceil(this.items.length/this.itemsPerPage);if(e==="next"&&this.currentPage<t){this.currentPage++}else if(e==="prev"&&this.currentPage>1){this.currentPage--}}componentwillLoad(){this.items=this.items.map((e=>e.hideImageOnMore===undefined?Object.assign(Object.assign({},e),{hideImageOnMore:true}):e))}getCurrentPageItems(){const e=(this.currentPage-1)*this.itemsPerPage;const t=e+this.itemsPerPage;return this.items.slice(e,t)}toggleShowMore(e){const t=[...this.showMoreState];t[e]=!t[e];this.showMoreState=t;this.items=this.items.map((t=>t.title===this.items[e].title?Object.assign(Object.assign({},t),{hideImageOnMore:!t.hideImageOnMore}):t))}handleClick(e,t,o){switch(e.type){case"url":window.open(e.url,"_blank");break;case"query":if(this.inputType==="bot"){this.sendQueryToBot.emit(e.query)}else if(this.inputType==="ai"){this.sendQueryToAI.emit(e.query)}break;case"panel":const r=[...this.showPanel];r[o]=!r[o];this.showPanel=r;t.activeButton=true;this.activeButton=true;this.activeButtonIndex=e.index;break}}handlePanelClick(e,t,o){switch(e.type){case"url":window.open(e.url,"_blank");break;case"query":if(this.inputType==="bot"){this.sendQueryToBot.emit(e.query)}else if(this.inputType==="ai"){this.sendQueryToAI.emit(e.query)}break;case"panel":t.activeButton=e.index===0?false:true;this.activeButton=e.index===0?false:true;this.activeButtonIndex=e.index;break}}handleIndicatorClick(e){this.activeIndex=e}totalPages(){return Math.ceil(this.items.length/this.itemsPerPage)}handleCheckboxChange(e,t){t.checked=e.target.checked}next(){this.items.forEach((e=>{e.activeButton=false}));this.activeButton=false;if(this.activeIndex<this.items.length-this.itemsPerRow){this.activeIndex+=this.itemsPerRow}}prev(){this.items.forEach((e=>{e.activeButton=false}));this.activeButton=false;if(this.activeIndex>0){this.activeIndex-=this.itemsPerRow}}render(){var e;const t=this.getCurrentPageItems();const r=this.totalPages();if(!this.items||this.items.length===0){return o("div",null,this.emptyMessage)}if(this.template==="list"){return o("div",{class:"flex flex-col"},o("div",null,t.map(((e,t)=>{var r,s,i,n,a,l,p;return o("div",{class:`bg-white w-full mb-4 p-3 md:grid md:gap-4 shadow-md hover:shadow-lg transition-shadow ${!this.showPanel[t]&&this.items[t].hideImageOnMore&&!this.showMoreState[t]?"md:grid-cols-2":""}`},e.activeButton&&this.activeButton&&this.showPanel[t]&&o("div",{class:"w-full md:col-span-2"},o("h1",{class:"font-title font-bold text-2xl md:text-3xl"},(r=e.panels[this.activeButtonIndex])===null||r===void 0?void 0:r.title),o("p",{class:"font-light text-gray-500",innerHTML:(s=e.panels[this.activeButtonIndex])===null||s===void 0?void 0:s.description}),((i=e.panels[this.activeButtonIndex])===null||i===void 0?void 0:i.form)&&o("div",{class:"w-full md:col-span-2 h-fit"},o("dynamic-form",{form:(n=e.panels[this.activeButtonIndex])===null||n===void 0?void 0:n.form,formSettings:this.formSettings,formsettings:this.formSettings})),o("div",{class:"flex items-center my-4"},(l=(a=e.panels[this.activeButtonIndex])===null||a===void 0?void 0:a.buttons)===null||l===void 0?void 0:l.map((r=>{switch(r.type){case"url":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none"},r.label);case"panel":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label)}})))),!this.showPanel[t]&&this.items[t].hideImageOnMore&&!this.showMoreState[t]&&o("div",null,o("img",{src:e.images[0],alt:e.title,class:"w-full h-auto"})," "),!this.showPanel[t]&&o("div",null,o("h1",{class:"font-title font-bold text-2xl md:text-3xl"},e.title),e.subTitle&&e.subTitle.length>0&&e.subTitle.map((e=>o("p",{class:"font-title text-md md:text-xl"},e))),o("p",{class:"font-light text-gray-500",innerHTML:this.showMoreState[t]?e.description:e.shortDescription}),e.description&&o("a",{class:"show-more",onClick:()=>this.toggleShowMore(t)},this.showMoreState[t]?"Show Less":"Show More"),o("div",{class:"flex items-center my-4"},(p=e.buttons)===null||p===void 0?void 0:p.map((r=>{switch(r.type){case"url":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none"},r.label);case"panel":return o("button",{class:"list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none",onClick:()=>this.handleClick(r,e,t)},r.label)}})))),!this.showPanel[t]&&e.form&&o("div",{class:"w-full md:col-span-2 h-fit"},o("dynamic-form",{form:e.form,formSettings:this.formSettings,formsettings:this.formSettings})))}))),o("div",{class:"pagination-controls"},o("button",{disabled:this.currentPage===1,onClick:()=>this.changePage("prev")},"Previous"," "),o("span",null,"Page ",this.currentPage," of ",r),o("button",{disabled:this.currentPage===r,onClick:()=>this.changePage("next")},"Next")))}else if(this.template==="carousel"){return o("div",{class:"carousel-container"},o("button",{onClick:()=>this.prev(),disabled:this.activeIndex===0,class:"prev"},"<"),o("div",{class:"carousel",style:{"--active-index":this.activeIndex.toString(),"--items-per-row":this.itemsPerRow.toString()}},(e=this.items)===null||e===void 0?void 0:e.map(((e,t)=>{var r,s,i,n,a,l,p;return o("div",{class:`carousel-item ${t>=this.activeIndex&&t<this.activeIndex+this.itemsPerRow?"active":""} ${this.activeButton?"carousel-more-item":""}`},e.activeButton&&o("div",{class:"carousel-item-info"},o("h3",null,(r=e.panels[this.activeButtonIndex])===null||r===void 0?void 0:r.title),((s=e.panels[this.activeButtonIndex])===null||s===void 0?void 0:s.description)&&o("p",{innerHTML:(i=e.panels[this.activeButtonIndex])===null||i===void 0?void 0:i.description,class:"carousel-item-des2"}),((n=e.panels[this.activeButtonIndex])===null||n===void 0?void 0:n.form)&&o("div",{class:"w-full md:col-span-2"},o("dynamic-form",{form:(a=e.panels[this.activeButtonIndex])===null||a===void 0?void 0:a.form,formSettings:this.formSettings,formsettings:this.formSettings})),o("div",null,(l=e.panels[this.activeButtonIndex].buttons)===null||l===void 0?void 0:l.map((r=>{switch(r.type){default:return o("button",{class:"carousel-btn",onClick:()=>this.handlePanelClick(r,e,t)},r.label);case"compare":return o("div",null,o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label),o("label",null,o("input",{type:"checkbox",checked:r.checked,onChange:e=>this.handleCheckboxChange(e,r)}),e.panels[this.activeButtonIndex].title))}})))),!this.activeButton&&o("div",{class:"carousel-item-img-container"},o("img",{src:e.images[0],alt:e.title,class:"carousel-item-img"})),!this.activeButton&&o("div",{class:"carousel-item-info"},o("h3",null,e.title),e.subTitle&&e.subTitle.length>0&&e.subTitle.map((e=>o("p",{class:"font-title text-md md:text-xl"},e))),o("p",{class:"carousel-item-des font-light text-gray-500",innerHTML:this.showMoreState[t]?e.description:e.shortDescription}),o("a",{class:"show-more",onClick:()=>this.toggleShowMore(t)},this.showMoreState[t]?"Show Less":"Show More"),(p=e.buttons)===null||p===void 0?void 0:p.map((r=>{switch(r.type){case"url":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label);case"query":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label);case"panel":return o("button",{class:"carousel-btn",onClick:()=>this.handleClick(r,e,t)},r.label)}}))))}))),o("button",{onClick:()=>this.next(),disabled:this.activeIndex>=this.items.length-this.itemsPerRow,class:"next"},">"),o("div",{class:"indicators"},this.items.map(((e,t)=>o("span",{class:{indicator:true,active:t===this.activeIndex},onClick:()=>this.handleIndicatorClick(t)})))))}}};a.style=s+n;export{a as list_data};
|
|
2
|
+
//# sourceMappingURL=p-ed972184.entry.js.map
|