1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4169],{16228:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps/stack-builder/review",function(){return n(46893)}])},85094:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(11527),l=n(68925),r=n(82187),a=n.n(r);function i(e){let{children:t,disabled:n,onClick:r=()=>{},small:i,type:c="button",isPending:o,isPendingText:u}=e;return(0,s.jsx)("div",{className:"mx-auto flex items-center justify-center py-6",children:(0,s.jsxs)("button",{className:a()("btn btn-yellow",{"btn-small":i,"btn-disabled":n||o}),onClick:r,type:c,children:[o&&u||t,(0,s.jsx)(l.Z,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})}},27845:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(11527),l=n(68925),r=n(82187),a=n.n(r),i=n(82710),c=n.n(i);function o(e){let{center:t,children:n,disabled:r=!1,href:i="",pad:o,prefetch:u=!0,secondary:d,small:x}=e;return(0,s.jsx)("span",{className:a()("block",{"py-9":o,"text-center":t}),children:(0,s.jsxs)(c(),{href:i,className:a()("btn",{"btn-secondary":d,"btn-yellow":!d,"btn-small":x,"pointer-events-none opacity-50 cursor-not-allowed":r}),tabIndex:r?-1:void 0,prefetch:u,disabled:r,"aria-disabled":r,children:[n,(0,s.jsx)(l.Z,{className:"ml-2 h-5 w-5 transition-transform group-hover:translate-x-1"})]})})}},95106:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(11527),l=n(82187),r=n.n(l);function a(e){let{children:t,narrow:n,stretch:l,wide:a}=e;return(0,s.jsx)("section",{className:r()("mx-auto px-3 py-32 sm:py-36 md:px-6",{"lg:max-w-3xl":n,"lg:max-w-6xl":!n&&!a,"lg:max-w-7xl":a,"min-h-[calc(100vh/3*2)]":l}),children:t})}},35965:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(11527),l=n(82187),r=n.n(l),a=n(75431);function i(e){let{caption:t,title:n,inheritColour:l}=e;return(0,s.jsxs)("div",{className:"w-full px-3",children:[(0,s.jsx)(a.xv,{as:"h2",bold:!0,size:8,className:r()({"text-inherit":l}),children:n}),t&&(0,s.jsx)(a.xv,{as:"p",size:4,className:r()({"text-inherit":l}),children:t})]})}},17723:function(e){"use strict";e.exports={titleSuffix:"\xb7 App Advisory Plus"}},46893:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var s=n(11527),l=n(99585),r=n(46567),a=n(55111),i=n(50959);let c=i.forwardRef(function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 11l3-3m0 0l3 3m-3-3v8m0-13a9 9 0 110 18 9 9 0 010-18z"}))}),o=i.forwardRef(function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 13l-3 3m0 0l-3-3m3 3V8m0 13a9 9 0 110-18 9 9 0 010 18z"}))});var u=n(13924),d=n(66361),x=n(54189),p=n.n(x),h=n(95568),m=n(68563),f=n(75431),v=n(17723),g=n(18108),j=n(16524),w=n(29082),b=n.n(w);function k(e){var t,n,l,r,a,i,c,o,u;let{data:d={},removeApp:x=()=>{}}=e;return(0,s.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,s.jsx)("div",{className:"h-[200px] max-w-[400px] rounded-xl border-[1px] border-neutral-300 bg-white px-6",children:(0,s.jsx)("div",{className:"relative h-full w-full p-3",children:(0,s.jsx)(b(),{alt:"".concat(d.name," logo"),layout:"fill",objectFit:"contain",src:null===(t=d.logo)||void 0===t?void 0:t.url})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(f.xv,{as:"h3",size:6,bold:!0,children:d.name}),d.url&&(0,s.jsx)(f.xv,{as:"p",size:3,children:(0,s.jsx)("a",{className:"inline-flex cursor-pointer items-center space-x-1 font-light text-neutral-600",href:d.url,rel:"noreferrer",target:"_blank",children:(null===(n=d.url)||void 0===n?void 0:n.split("//").length)>1?null===(r=d.url)||void 0===r?void 0:null===(l=r.split("//")[1])||void 0===l?void 0:l.split("/")[0]:null===(a=d.url)||void 0===a?void 0:a.split("/")[0]})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(f.xv,{as:"h4",size:4,bold:!0,children:"Description"}),(0,s.jsx)(f.xv,{as:"p",size:3,children:d.blurb})]}),!!(null===(i=d.ai)||void 0===i?void 0:i.length)&&(0,s.jsxs)("div",{children:[(0,s.jsx)(f.xv,{as:"h4",size:4,bold:!0,children:"Accounting Platforms"}),(0,s.jsx)(f.xv,{as:"p",size:3,children:null===(c=d.ai)||void 0===c?void 0:c.map(e=>" ".concat(e.name)).toString()})]}),!!(null===(o=d.oi)||void 0===o?void 0:o.length)&&(0,s.jsxs)("div",{children:[(0,s.jsx)(f.xv,{as:"h4",size:4,bold:!0,children:"Other Integrations"}),(0,s.jsx)(f.xv,{as:"p",size:3,children:null===(u=d.oi)||void 0===u?void 0:u.map(e=>" ".concat(e.name)).toString()})]}),(0,s.jsx)("div",{children:(0,s.jsx)("a",{className:"inline-block cursor-pointer p-0 text-xs text-neutral-500 hover:underline",onClick:x,children:(0,s.jsx)(j.Z,{className:"h-8 w-8"})})})]})}var N=n(95106),y=n(85094),z=n(27845),C=n(35965);function S(e){let{builderChoices:t={},deselectStackedApp:n,openStack:x,shiftStackedCategoryDown:j=()=>{},shiftStackedCategoryUp:w=()=>{},stackedApps:b}=e,S=(0,d.useSupabaseClient)(),Z=(0,d.useUser)(),O=(0,u.useRouter)(),A=(0,i.useMemo)(()=>Object.keys(t).length?"/apps/stack-builder/industry/".concat(t.industry).concat(t.case?"/case/".concat(t.case):"").concat(t.platform?"/platform/".concat(t.platform):""):"",[t]),[E,_]=(0,i.useState)("");async function L(e){if(e&&e.preventDefault(),!E)return l.NY.scrollToTop(),m.ZP.success("Please name your App Stack before saving.");let{data:t={}}=await S.from("profiles").select("stacks").eq("id",Z.id).single(),{stacks:n=[]}=t||{};n||(n=[]);let s=h.generate({length:9,capitalization:"lowercase"});n.push({stack:Object.values(b).map(e=>({category:e.slug,apps:e.posts.map(e=>e.slug)})),name:E,id:s}),await (0,g.Vx)(S,Z.id,n),m.ZP.success('App Stack "'.concat(E,'" added!')),O.push("/account/stacks?added=".concat(s),"/account/stacks")}return(0,i.useEffect)(()=>{x(!1)},[x]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p(),{children:(0,s.jsx)("title",{children:"App Stack Builder Review ".concat(v.titleSuffix
1)})}),(0,s.jsxs)(N.Z,{children:[!!Object.values(b).length&&(0,s.jsx)("p",{className:"space-x-1 p-0 text-left text-base sm:text-lg",children:(0,s.jsxs)("a",{onClick:()=>O.back(),className:"inline-flex items-center space-x-2 text-neutral-700",children:[(0,s.jsx)(r.Z,{className:"h-5 w-5"}),(0,s.jsx)("span",{children:"Add more"})]})}),(0,s.jsxs)("div",{className:"my-8 flex items-center space-x-4 rounded-xl bg-white px-6 shadow-md",children:[(0,s.jsx)(a.Z,{className:"h-8 w-8 text-neutral-400"}),(0,s.jsx)("form",{className:"w-full",onSubmit:L,children:(0,s.jsx)("input",{autoComplete:"false",autoCorrect:"false",className:"w-full bg-white py-6 pr-1 text-3xl font-extrabold leading-snug tracking-tighter text-neutral-700 outline-none sm:text-4xl sm:leading-snug lg:text-5xl lg:leading-snug",onChange:function(e){let{target:t}=e;_(t.value)},placeholder:"New App Stack",spellCheck:!1,type:"text",value:E})})]}),Object.values(b).length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.Z,{onClick:L,children:"Save Stack"}),Object.values(b).length>1&&(0,s.jsx)("div",{className:"z-10 my-16 rounded-xl text-center lg:sticky lg:top-[120px] lg:float-right lg:my-0 lg:mt-6 lg:ml-6 lg:max-h-[calc(100vh-130px)] lg:overflow-y-scroll lg:text-left",children:(0,s.jsxs)("div",{className:"flex flex-col items-end space-y-3 rounded-xl border-[1px] border-neutral-100 bg-white p-6 pb-3 shadow-md",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(f.xv,{as:"span",size:2,bold:!0,className:"uppercase",children:"Re-order categories"})}),(0,s.jsx)("div",{className:"w-full",children:Object.values(b).map((e,t)=>(0,s.jsxs)("div",{className:"flex w-full items-center justify-between space-x-3 border-b-[1px] border-neutral-200 py-3 last:border-none",children:[(0,s.jsx)(f.xv,{as:"span",size:2,children:e.name}),(0,s.jsxs)("div",{className:"flex flex-col",children:[0!==t&&(0,s.jsx)("div",{className:"inline-block cursor-pointer text-neutral-400 sm:hover:text-neutral-800",onClick:()=>w(e.slug),children:(0,s.jsx)(c,{className:"h-6 w-6"})}),t!==Object.values(b).length-1&&(0,s.jsx)("div",{className:"inline-block cursor-pointer text-neutral-400 sm:hover:text-neutral-800",onClick:()=>j(e.slug),children:(0,s.jsx)(o,{className:"h-6 w-6"})})]})]},"reorder-".concat(e.slug)))})]})}),(0,s.jsxs)("div",{className:"flex flex-col items-start space-y-6 pb-8 lg:pt-16",children:[(0,s.jsx)("ul",{className:"w-full list-none space-y-32 p-0 sm:space-y-52",children:Object.values(b).map(e=>(0,s.jsx)("li",{className:"group",children:(0,s.jsxs)("div",{className:"w-full space-y-16",children:[(0,s.jsx)("div",{className:"flex w-full border-b-[1px] border-neutral-300 pb-4",children:(0,s.jsx)(C.Z,{alignLeft:!0,caption:e.description,title:"".concat(e.name," Apps")})}),e.posts.map(t=>(0,s.jsx)(k,{category:e,data:t,removeApp:()=>n(t.slug,e.slug)},t.name))]})},e.name))}),(0,s.jsx)(y.Z,{onClick:L,children:"Save Stack"})]})]}):(0,s.jsxs)("div",{className:"pt-9 text-center",children:[Object.keys(t).length?(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)(f.xv,{as:"p",size:4,children:["You were using the App Stack Builder -",(0,s.jsx)(z.Z,{href:"".concat(A,"#builder-step-1"),center:!0,pad:!0,children:"Continue adding"})]})}):(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)(f.xv,{as:"p",size:4,children:["Use our App Stack Builder to guide you through creating an App Stack -",(0,s.jsx)(z.Z,{href:"/apps/stack-builder",center:!0,pad:!0,children:"Start Adding"})]})}),(0,s.jsx)(f.xv,{as:"span",size:2,className:"uppercase",children:"or"}),(0,s.jsx)(z.Z,{href:"/apps/industry/all/case/all/category/all",center:!0,pad:!0,children:"Browse the directory"})]})]})]})}},20002:function(e,t,n){"use strict";n.d(t,{Dd:function(){return u},MY:function(){return l},Nt:function(){return i},Yq:function(){return r},jz:function(){return c},nN:function(){return a},zs:function(){return o}});var s=n(95568);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort(function(e){let{slug:t=""}=e,{slug:n=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.localeCompare(n)})}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((e,t)=>
1new Date(t.rawDate)-new Date(e.rawDate))}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n==={}?e:e.filter(e=>t.map(e=>({...e,hide:!1})).map(t=>(n[t.slug]&&(t.hide=!n[t.slug].split(",").every(n=>{var s;return"offer"===t.slug?!!e[n]:null===(s=e[t.slug])||void 0===s?void 0:s.some(e=>e.slug===n)})),t)).every(e=>!e.hide))}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&e.length?e.filter(e=>Object.keys(e).some(n=>!Array.isArray(e[n])&&e.name.toLowerCase().includes(t.toLowerCase()))):e}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((e,t)=>!!t.featured-!!e.featured),e.sort((e,t)=>!!t.silver-!!e.silver),e.sort((e,t)=>!!t.gold-!!e.gold),e.sort((e,t)=>!!t.platinum-!!e.platinum),e.sort((e,t)=>!!t.aotm-!!e.aotm),e}function o(){return s.generate({length:9,capitalization:"lowercase"})}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.includes(t.slug)||e.some(e=>{var n;return null===(n=t.previousSlugs)||void 0===n?void 0:n.includes(e)})}},18108:function(e,t,n){"use strict";async function s(e,t){let{data:n=[]}=await e.from("profiles").select("stacks").eq("id",t).single();return(null==n?void 0:n.stacks)||[]}async function l(e,t,n){return e.from("profiles").upsert({id:t,stacks:n,updated_at:new Date().toISOString()})}n.d(t,{U2:function(){return s},Vx:function(){return l}}),n(95075),n(46229)},46567:function(e,t,n){"use strict";var s=n(50959);let l=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}))});t.Z=l},55111:function(e,t,n){"use strict";var s=n(50959);let l=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))});t.Z=l}},function(e){e.O(0,[9585,9216,1230,9774,2888,179],function(){return e(e.s=16228)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.