(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[799],{54440:function(e,t){var n;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0!==(n=(function(){return a}).apply(t,[]))&&(e.exports=n)}()},41791:function(e,t,n){Promise.resolve().then(n.bind(n,56453))},26711:function(e,t,n){"use strict";n.r(t);var r=n(57437),a=n(46145);n(47447);var s=n(65121),l=n(24033);t.default=function(e){let{faq:t}=e,n=(0,l.usePathname)();return(console.log("pathName",n),console.log("faq",t),t||null!==t)?(0,r.jsx)("section",{className:"faq_container",children:(0,r.jsx)("div",{className:"faq_section",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"faq_container",children:[(0,r.jsx)("div",{className:"faq_header",children:"/faq"===n?(0,r.jsx)("h1",{children:"Frequently Asked Questions"}):(0,r.jsx)("h4",{children:"Frequently Asked Questions"})}),t.data.map((e,t)=>(0,r.jsx)("div",{className:"faq_content",children:(0,r.jsx)(a.Z,{children:(0,r.jsxs)(a.Z.Item,{eventKey:t,title:e.attributes.questionAnswer.question,children:[(0,r.jsx)(a.Z.Header,{children:e.attributes.questionAnswer.question}),(0,r.jsx)(a.Z.Body,{children:(0,r.jsx)(s.Z,{richTextContent:e.attributes.questionAnswer.answer})})]},t)})}))]})})})}):null}},65121:function(e,t,n){"use strict";var r=n(57437);n(2265),t.Z=function(e){let{richTextContent:t}=e;return(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>{switch(e.type){case"paragraph":return(0,r.jsx)(r.Fragment,{children:e.children.map((e,n)=>e.bold&&"text"===e.type?(0,r.jsx)("b",{children:(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.text}},t)}):"link"===e.type?(0,r.jsx)("a",{href:e.url,children:e.children.map((e,n)=>{if("text"===e.type)return(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.text}},t)})}):"text"===e.type?(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.text}},t):void 0)});case"code":let n=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}},t);case"list":return(0,r.jsx)("ul",{children:e.children.map((e,t)=>(0,r.jsx)("li",{children:e.children.map((e,t)=>e.bold?(0,r.jsx)("b",{children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)}):(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t))},t))},t);case"heading":if(1===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h1",{dangerouslySetInnerHTML:{__html:t}})}if(2===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h2",{dangerouslySetInnerHTML:{__html:t}})}if(3===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h3",{dangerouslySetInnerHTML:{__html:t}})}if(4===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h4",{dangerouslySetInnerHTML:{__html:t}})}if(5===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h5",{dangerouslySetInnerHTML:{__html:t}})}else if(6===e.level){let t=e.children.map((e,t)=>e.text).join(" ");return(0,r.jsx)("h6",{dangerouslySetInnerHTML:{__html:t}})}break;default:return null}})})}},35684:function(e,t,n){"use strict";function r(e,t){let n=new URLSearchParams(window.location.search),r=n.get("query"),a=n.get("category");"category"===e.tag?r?t.push("?query=".concat(r,"&category=").concat(e.value,"#apps-container")):t.push("?category=".concat(e.value,"#apps-container")):"query"===e.tag?a?t.push("?query=".concat(e.value,"&category=").concat(a,"#apps-container")):t.push("?query=".concat(e.value,"#apps-container")):"blogQuery"===e.tag?t.push("?query=".concat(e.value)):"blog"===e.tag?t.push("?page=".concat(e.page)):"limit"===e.tag?t.push("?limit=".concat(e.value,"#apps-container")):"product"===e.tag?t.push("?product=".concat(e.value)):"/"===e.tag?t.push("/#apps-container"):"/apps"===e.tag&&t.push("/apps#apps-container")}n.d(t,{z:function(){return r}})},56453:function(e,t,n){"use strict";n.r(t);var r=n(57437);n(2265);var a=n(24033),s=n(35684),l=n(26711);t.default=function(e){let{searchParams:t,flowFaq:n,embedFaq:o}=e,i=(0,a.useRouter)(),c=e=>{let t={tag:"product",value:e.target.dataset.value};(0,s.z)(t,i)};return console.log("searchParams",t),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{children:(0,r.jsxs)("section",{className:"btn-group pricing-tabs d-flex justify-content-center",role:"group",children:[(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("button",{type:"button",className:"embed"===t.product||0===Object.keys(t).length?"active":"",onClick:e=>c(e),"data-value":"embed",children:"Klamp Embed"})}),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("button",{type:"button",onClick:e=>c(e),className:t&&"flow"===t.product?"active":"","data-value":"flow",children:"Klamp Flow"})})]})}),t&&"flow"===t.product?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.default,{faq:n})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.default,{faq:o})})]})}},47447:function(){},30622:function(e,t,n){"use strict";var r=n(2265),a=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!i.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:s,_owner:o.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},57437:function(e,t,n){"use strict";e.exports=n(30622)},24033:function(e,t,n){e.exports=n(15313)}},function(e){e.O(0,[204,6145,2971,4938,1744],function(){return e(e.s=41791)}),_N_E=e.O()}]);