Your IP : 216.73.216.123


Current Path : /home/smartbloks/.trash/dist.1/_astro/
Upload File :
Current File : /home/smartbloks/.trash/dist.1/_astro/Faq.By1yCm_r.js

import{d as Y,t as $,c as _,r as x,s as P,o as O,w as A,a as d,b as C,e as j,f as W,n as q,g as Q,h as T,i as Z,j as f,k as h,F as G,l as K,m as L,p as J,q as B,u as I,v as U}from"./runtime-core.esm-bundler.EZcGeBMH.js";import{_ as b}from"./_plugin-vue_export-helper.DlAUqK2U.js";/* empty css                       */const N="--vc-auto-duration",X=`height var(${N}) cubic-bezier(0.33, 1, 0.68, 1)`,g={padding:0},ee=300,ae={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},ne=()=>typeof navigator<"u"&&navigator.userAgent.includes("Firefox");function E(a){return a.value?parseFloat(getComputedStyle(a.value).height):0}function H(a){var n;return{height:`${((n=a.value)==null?void 0:n.scrollHeight)||0}px`}}function M(a){if(!a.value)return{};const{transition:n}=getComputedStyle(a.value);return n==="all 0s ease 0s"||ne()&&n==="all"?{transition:X}:{transition:n}}function z(a){if(!a.value)return!0;const{transition:n}=getComputedStyle(a.value);return typeof window.requestAnimationFrame>"u"||window.matchMedia("(prefers-reduced-motion: reduce)").matches||n.includes("none")||n.includes("height 0s")}function te(a=0){if(a===0)return 0;const n=a/36,r=Math.round((4+15*n**.25+n/5)*10);return Number.isFinite(r)?r:0}const oe=Y({inheritAttrs:!0,__name:"Collapse",props:{when:{type:Boolean},baseHeight:{default:0},as:{default:"div"}},emits:["collapse","expand","collapsed","expanded"],setup(a,{emit:n}){const r=a,o=n,u=$(r,"when"),i=$(r,"baseHeight"),s=_(()=>({overflow:"hidden",height:`${i.value}px`})),l=_(()=>({...g,...i.value===0?{display:"none"}:s.value})),t=x(null),w=x(u.value?"expanded":"collapsed"),v=e=>w.value=e;function R(){return u.value?g:i.value===0?ae:l.value}const y=P(R()),c=e=>y.value=e,p=e=>c({...y.value,...e}),k=x(ee),V=e=>k.value=e,F=_(()=>({[N]:`${k.value}ms`}));function m(){c(g),v("expanded"),o("expanded")}function S(){c(l.value),v("collapsed"),o("collapsed")}O(()=>{if(!t.value)return;const e=te(t.value.scrollHeight-i.value);e>0&&V(e),!u.value&&i.value===0&&c(l.value)}),A(u,e=>{if(t.value)if(e){if(z(t))return m();v("expanding"),o("expand"),c({...g,...s.value,...F.value}),requestAnimationFrame(()=>{if(t.value.scrollHeight===0)return m();p({...H(t),...M(t),willChange:"height"})})}else{if(z(t)||(v("collapsing"),o("collapse"),p({...F.value,...H(t)}),t.value.scrollHeight===0))return S();requestAnimationFrame(()=>{p({...s.value,...M(t),willChange:"height"})})}}),A(i,e=>{u.value||(e>0?p({display:void 0,height:`${e}px`}):p({display:"none"}))});function D(e){e.target&&e.target===t.value&&e.propertyName==="height"&&(u.value?Math.abs(t.value.scrollHeight-E(t))<1&&m():Math.abs(i.value-E(t))<1&&S())}return(e,ke)=>(d(),C(Z(r.as),{ref_key:"collapseRef",ref:t,style:T(y.value),onTransitionend:D,"data-collapse":w.value},{default:j(()=>[W(e.$slots,"default",q(Q({state:w.value})))]),_:3},40,["style","data-collapse"]))}}),se=[{title:"Is there a free trial available?",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."},{title:"Can I change my plan later?",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."},{title:"What is your cancellation policy?",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."},{title:"How easy to use SmartBlocks",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."},{title:"Is SmartBlocks Windows & Mac compatible?",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."},{title:"Do I need to download and install SmartBlocks anywhere?",answer:"Yes, you can try us for free for 30 days. If you want, we’ll provide you with a free, personalized 30-minute onboarding call to get you up and running as soon as possible."}],le={},re={xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none"},ie=h("path",{d:"M9.39556 13.9344H18.4646M25.2665 13.9344C25.2665 20.1953 20.191 25.2707 13.9301 25.2707C7.66921 25.2707 2.59375 20.1953 2.59375 13.9344C2.59375 7.67348 7.66921 2.59802 13.9301 2.59802C20.191 2.59802 25.2665 7.67348 25.2665 13.9344Z",stroke:"#FF7347","stroke-width":"2.26727","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ue=[ie];function de(a,n){return d(),f("svg",re,ue)}const ce=b(le,[["render",de]]),pe={},fe={xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none"},he=h("path",{d:"M13.9301 9.24261V18.3117M9.39556 13.7772H18.4646M25.2665 13.7772C25.2665 20.038 20.191 25.1135 13.9301 25.1135C7.66921 25.1135 2.59375 20.038 2.59375 13.7772C2.59375 7.51625 7.66921 2.4408 13.9301 2.4408C20.191 2.4408 25.2665 7.51625 25.2665 13.7772Z",stroke:"#FF7347","stroke-width":"2.26727","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ve=[he];function ge(a,n){return d(),f("svg",fe,ve)}const we=b(pe,[["render",ge]]),ye=Y({__name:"Faq",setup(a,{expose:n}){n();const r=L(se.map(({title:i,answer:s},l)=>({title:i,answer:s,isExpanded:l===0})));function o(i){r.forEach((s,l)=>{r[l].isExpanded=l===i?!r[l].isExpanded:!1})}const u={questions:r,handleAccordion:o,get Collapse(){return oe},Close:ce,Open:we};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),me={class:"Wrapper w-full lg:max-w-[870.632px] 2xl:max-w-[67rem] font-Inter px-10 lg:px-0"},_e={class:"flex items-center justify-between"},xe=["onClick"],Ce={class:"CollapseContent text-[#667085] text-md lg:text-[18px] leading-[27.207px]"};function be(a,n,r,o,u,i){return d(),f("article",me,[(d(!0),f(G,null,K(o.questions,(s,l)=>(d(),f("div",{key:s.title,class:"Section !border-b !border-[#1E252B] py-2"},[h("div",_e,[h("button",{class:J(["Panel",{Active:s.isExpanded}]),onClick:()=>o.handleAccordion(l)},B(s.title),11,xe),s.isExpanded?I("",!0):(d(),C(o.Open,{key:0,onClick:()=>o.handleAccordion(l),class:"cursor-pointer"},null,8,["onClick"])),s.isExpanded?(d(),C(o.Close,{key:1,onClick:()=>o.handleAccordion(l),class:"cursor-pointer"},null,8,["onClick"])):I("",!0)]),U(o.Collapse,{class:"my-4",as:"section",when:s.isExpanded},{default:j(()=>[h("p",Ce,B(s.answer),1)]),_:2},1032,["when"])]))),128))])}const Ae=b(ye,[["render",be],["__scopeId","data-v-f2acdaed"]]);export{Ae as default};