diff --git a/assets/index-cpZ_BDTi.js b/assets/index-C9ZKj4Qb.js similarity index 96% rename from assets/index-cpZ_BDTi.js rename to assets/index-C9ZKj4Qb.js index 57e1206..daf4793 100644 --- a/assets/index-cpZ_BDTi.js +++ b/assets/index-C9ZKj4Qb.js @@ -14,12 +14,12 @@ * @vue/runtime-dom v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const kd="http://www.w3.org/2000/svg",jd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,Al=Ot&&Ot.createElement("template"),Fd={insert:(e,n,s)=>{n.insertBefore(e,s||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,s,o)=>{const l=n==="svg"?Ot.createElementNS(kd,e):n==="mathml"?Ot.createElementNS(jd,e):s?Ot.createElement(e,{is:s}):Ot.createElement(e);return e==="select"&&o&&o.multiple!=null&&l.setAttribute("multiple",o.multiple),l},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,s,o,l,a){const u=s?s.previousSibling:n.lastChild;if(l&&(l===a||l.nextSibling))for(;n.insertBefore(l.cloneNode(!0),s),!(l===a||!(l=l.nextSibling)););else{Al.innerHTML=o==="svg"?``:o==="mathml"?``:e;const h=Al.content;if(o==="svg"||o==="mathml"){const m=h.firstChild;for(;m.firstChild;)h.appendChild(m.firstChild);h.removeChild(m)}n.insertBefore(h,s)}return[u?u.nextSibling:n.firstChild,s?s.previousSibling:n.lastChild]}},Rd=Symbol("_vtc");function Hd(e,n,s){const o=e[Rd];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?e.removeAttribute("class"):s?e.setAttribute("class",n):e.className=n}const Cl=Symbol("_vod"),Bd=Symbol("_vsh"),Vd=Symbol(""),Wd=/(^|;)\s*display\s*:/;function Ud(e,n,s){const o=e.style,l=Te(s);let a=!1;if(s&&!l){if(n)if(Te(n))for(const u of n.split(";")){const h=u.slice(0,u.indexOf(":")).trim();s[h]==null&&Ws(o,h,"")}else for(const u in n)s[u]==null&&Ws(o,u,"");for(const u in s)u==="display"&&(a=!0),Ws(o,u,s[u])}else if(l){if(n!==s){const u=o[Vd];u&&(s+=";"+u),o.cssText=s,a=Wd.test(s)}}else n&&e.removeAttribute("style");Cl in e&&(e[Cl]=a?o.display:"",e[Bd]&&(o.display="none"))}const Tl=/\s*!important$/;function Ws(e,n,s){if(z(s))s.forEach(o=>Ws(e,n,o));else if(s==null&&(s=""),n.startsWith("--"))e.setProperty(n,s);else{const o=zd(e,n);Tl.test(s)?e.setProperty(vn(o),s.replace(Tl,""),"important"):e[o]=s}}const Ol=["Webkit","Moz","ms"],zi={};function zd(e,n){const s=zi[n];if(s)return s;let o=_n(n);if(o!=="filter"&&o in e)return zi[n]=o;o=Rl(o);for(let l=0;l
const predictWeather =
+**/const kd="http://www.w3.org/2000/svg",jd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,Al=Ot&&Ot.createElement("template"),Fd={insert:(e,n,s)=>{n.insertBefore(e,s||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,s,o)=>{const l=n==="svg"?Ot.createElementNS(kd,e):n==="mathml"?Ot.createElementNS(jd,e):s?Ot.createElement(e,{is:s}):Ot.createElement(e);return e==="select"&&o&&o.multiple!=null&&l.setAttribute("multiple",o.multiple),l},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,s,o,l,a){const u=s?s.previousSibling:n.lastChild;if(l&&(l===a||l.nextSibling))for(;n.insertBefore(l.cloneNode(!0),s),!(l===a||!(l=l.nextSibling)););else{Al.innerHTML=o==="svg"?``:o==="mathml"?``:e;const h=Al.content;if(o==="svg"||o==="mathml"){const m=h.firstChild;for(;m.firstChild;)h.appendChild(m.firstChild);h.removeChild(m)}n.insertBefore(h,s)}return[u?u.nextSibling:n.firstChild,s?s.previousSibling:n.lastChild]}},Rd=Symbol("_vtc");function Hd(e,n,s){const o=e[Rd];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?e.removeAttribute("class"):s?e.setAttribute("class",n):e.className=n}const Cl=Symbol("_vod"),Bd=Symbol("_vsh"),Vd=Symbol(""),Wd=/(^|;)\s*display\s*:/;function Ud(e,n,s){const o=e.style,l=Te(s);let a=!1;if(s&&!l){if(n)if(Te(n))for(const u of n.split(";")){const h=u.slice(0,u.indexOf(":")).trim();s[h]==null&&Ws(o,h,"")}else for(const u in n)s[u]==null&&Ws(o,u,"");for(const u in s)u==="display"&&(a=!0),Ws(o,u,s[u])}else if(l){if(n!==s){const u=o[Vd];u&&(s+=";"+u),o.cssText=s,a=Wd.test(s)}}else n&&e.removeAttribute("style");Cl in e&&(e[Cl]=a?o.display:"",e[Bd]&&(o.display="none"))}const Tl=/\s*!important$/;function Ws(e,n,s){if(z(s))s.forEach(o=>Ws(e,n,o));else if(s==null&&(s=""),n.startsWith("--"))e.setProperty(n,s);else{const o=zd(e,n);Tl.test(s)?e.setProperty(vn(o),s.replace(Tl,""),"important"):e[o]=s}}const Ol=["Webkit","Moz","ms"],zi={};function zd(e,n){const s=zi[n];if(s)return s;let o=_n(n);if(o!=="filter"&&o in e)return zi[n]=o;o=Rl(o);for(let l=0;lKi||(Qd.then(()=>Ki=0),Ki=Date.now());function Zd(e,n){const s=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=s.attached)return;dt(eh(o,s.value),n,5,[o])};return s.value=e,s.attached=Jd(),s}function eh(e,n){if(z(n)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},n.map(o=>l=>!l._stopped&&o&&o(l))}else return n}const Pl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,th=(e,n,s,o,l,a)=>{const u=l==="svg";n==="class"?Hd(e,o,u):n==="style"?Ud(e,s,o):Ys(n)?ro(n)||Xd(e,n,s,o,a):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):nh(e,n,o,u))?(Kd(e,n,o),!e.tagName.includes("-")&&(n==="value"||n==="checked"||n==="selected")&&Ll(e,n,o,u,a,n!=="value")):(n==="true-value"?e._trueValue=o:n==="false-value"&&(e._falseValue=o),Ll(e,n,o,u))};function nh(e,n,s,o){if(o)return!!(n==="innerHTML"||n==="textContent"||n in e&&Pl(n)&&G(s));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return Pl(n)&&Te(s)?!1:n in e}const sh=Fe({patchProp:th},Fd);let Ml;function ih(){return Ml||(Ml=od(sh))}const oh=(...e)=>{const n=ih().createApp(...e),{mount:s}=n;return n.mount=o=>{const l=lh(o);if(!l)return;const a=n._component;!G(a)&&!a.render&&!a.template&&(a.template=l.innerHTML),l.innerHTML="";const u=s(l,!1,rh(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),u},n};function rh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lh(e){return Te(e)?document.querySelector(e):e}const io="/carousel-api-vue/assets/logo-lyd2C0Gv.png",oi=(e,n)=>{const s=e.__vccOpts||e;for(const[o,l]of n)s[o]=l;return s},ah={},ch={class:"container-fluid d-flex py-2 py-xxl-3 px-4 justify-content-between align-items-center border-bottom"},uh=To('',1),fh=[uh];function dh(e,n){return St(),Lt("header",ch,fh)}const hh=oi(ah,[["render",dh],["__scopeId","data-v-ac0b819e"]]),ph="https://fakestoreapi.com/products",gh=async e=>{try{const n=await fetch(`${ph}?limit=${e}`);if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(n){throw console.error("Failed to fetch products:",n),n}},mh="/carousel-api-vue/assets/card-bg-vG8uixen.jpg",Da=e=>(wo("data-v-20b837a7"),e=e(),xo(),e),_h={class:"card card--first border-0 rounded-5 overflow-hidden"},bh=Da(()=>se("img",{class:"card-img-top w-100 h-100 object-fit-cover",src:mh,alt:"Card image cap",style:{transform:"scaleX(-1) scale(1.5)","margin-left":"-18%"}},null,-1)),vh={class:"card-img-overlay d-flex"},yh={class:"input-group align-self-end align-items-center rounded-5"},wh=["value"],xh=["disabled"],Eh=Da(()=>se("i",{class:"bi bi-arrow-right"},null,-1)),Ah=[Eh],Ch=To(' Train your AI smarter
const predictWeather =
(temperature) => {
- return temperature > 30 ? "Hot"
-: "Cold";
+ return temperature > 30 ? "Hot"
+: "Cold";
}
-console.log(predictWeather(35))
`,2),Th={__name:"StaticCards",props:["modelValue"],emits:["update:modelValue"],setup(e,{emit:n}){const s=e;return(o,l)=>(St(),Lt(ft,null,[se("div",_h,[bh,se("div",vh,[se("div",yh,[se("input",{type:"text",class:"form-control position-relative z-0 py-3 ps-4 rounded-5",placeholder:"Tap to import a prompt.","aria-label":"User answer","aria-describedby":"button-addon2",value:s.modelValue,onInput:l[0]||(l[0]=a=>o.$emit("update:modelValue",a.target.value)),style:{"padding-right":"60px"}},null,40,wh),se("button",{class:"btn btn-dark position-absolute end-0 me-1",type:"button",id:"button-addon2",style:{"border-radius":"50%",width:"50px",height:"50px"},"data-bs-toggle":"modal","data-bs-target":"#exampleModal",disabled:s.modelValue.length===0},Ah,8,xh)])])]),Ch],64))}},Oh=oi(Th,[["__scopeId","data-v-28a969bc"]]),Sh={key:0},Lh=se("div",{class:"spinner-border text-secondary",role:"status"},[se("span",{class:"visually-hidden"},"Loading...")],-1),Ih=[Lh],$h={key:1},Ph=["src","alt"],Mh={class:"card-img-overlay d-flex flex-column align-items-center justify-content-center card-content p-2 text-white text-center"},Nh=["title"],Dh=["title"],kh={class:"card-text product-price"},jh=se("strong",null,"Price:",-1),Fh={class:"card-text product-rating"},Rh=se("strong",null,"Rating:",-1),Hh={__name:"LoadedCards",props:{products:{type:Array,required:!0,default:()=>[]},isLoaded:{type:Boolean,required:!0,default:!1}},setup(e){const n=e,s=(o,l)=>o.length>l?o.slice(0,l)+"...":o;return(o,l)=>(St(!0),Lt(ft,null,Bf(n.products,(a,u)=>(St(),Lt("div",{class:Qs(["card justify-content-center align-items-center rounded-5 overflow-hidden",{"bg-body-secondary":!e.isLoaded}]),key:u},[n.isLoaded?(St(),Lt("div",$h,[se("img",{src:a.image,alt:a.title,class:"card-img product-image h-100 object-fit-contain"},null,8,Ph),se("div",Mh,[se("h2",{class:"card-title fs-5 fw-bold",title:a.title},dn(s(a.title,30)),9,Nh),se("p",{class:"card-text product-description",title:a.description},dn(s(a.description,150)),9,Dh),se("p",kh,[jh,Ks(" $"+dn(a.price),1)]),se("p",Fh,[Rh,Ks(" "+dn(a.rating.rate)+" ("+dn(a.rating.count)+" reviews) ",1)])])])):(St(),Lt("div",Sh,Ih))],2))),128))}},Bh={class:"card-container d-flex mb-5"},Vh={class:"card-container-scroll position-absolute start-0 d-flex w-100 gap-4 overflow-scroll"},Nl=9,Wh={__name:"ScrollableCards",props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:n}){const s=e,o=n,l=Fs([]),a=Fs(Array.from({length:Nl})),u=Fs(!1),h=m=>{o("update:modelValue",m)};return Eo(async()=>{try{l.value=await gh(Nl),l.value.forEach((m,v)=>{a.value[v]={...m}}),u.value=!0}catch(m){console.error("Failed to fetch products:",m)}}),(m,v)=>(St(),Lt("div",Bh,[se("div",Vh,[Qe(Oh,{modelValue:s.modelValue,"onUpdate:modelValue":h},null,8,["modelValue"]),Qe(Hh,{products:a.value,"is-loaded":u.value},null,8,["products","is-loaded"])])]))}},Uh=e=>(wo("data-v-e06eac1f"),e=e(),xo(),e),zh={class:"modal fade",id:"exampleModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},Kh={class:"modal-dialog"},qh={class:"modal-content"},Yh=Uh(()=>se("div",{class:"modal-header"},[se("h1",{class:"modal-title fs-5",id:"exampleModalLabel"},"Your answer"),se("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})],-1)),Xh={class:"modal-body"},Gh={__name:"Modal",props:{userAnswer:{type:String,default:""}},emits:["close"],setup(e,{emit:n}){const s=n,o=()=>{s("close")};return Eo(()=>{document.getElementById("exampleModal").addEventListener("hidden.bs.modal",o)}),pa(()=>{document.getElementById("exampleModal").removeEventListener("hidden.bs.modal",o)}),(l,a)=>(St(),Lt("div",zh,[se("div",Kh,[se("div",qh,[Yh,se("div",Xh,dn(e.userAnswer),1),se("div",{class:"modal-footer"},[se("button",{type:"button",class:"btn btn-primary px-4 py-2 py-xxl-3 rounded-5 text-uppercase fw-bold","data-bs-dismiss":"modal",onClick:o}," Close ")])])])]))}},Qh=oi(Gh,[["__scopeId","data-v-e06eac1f"]]),Jh=e=>(wo("data-v-4354276a"),e=e(),xo(),e),Zh={class:"bg-white"},ep={class:"hero py-3 py-sm-5"},tp=Jh(()=>se("h1",{class:"hero__title d-flex mb-3 mb-sm-5 flex-column display-1 fw-bold"},[se("span",null,"Build an AI product"),se("span",null,[se("span",{class:"highlight"},"faster"),Ks(" then ever.")])],-1)),np=To('Design and develope your AI product in the area of spatial computing.Bring your ideas to life with real hands - simply think, see, and create!
Get started',1),sp={__name:"App",setup(e){const n=Fs(""),s=()=>{n.value=""};return(o,l)=>(St(),Lt("div",Zh,[Qe(hh),se("main",null,[se("section",ep,[tp,Qe(Wh,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a)},null,8,["modelValue"]),np])]),Qe(Qh,{"user-answer":n.value,onClose:s},null,8,["user-answer"])]))}},ip=oi(sp,[["__scopeId","data-v-4354276a"]]);var op=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rp={exports:{}};/*!
+console.log(predictWeather(35))
Design and develope your AI product in the area of spatial computing.Bring your ideas to life with real hands - simply think, see, and create!
Get started