PageSourceSearch

https://www.skribil.ai/_next/static/chunks/pages/value-prop-4b4b09451c80a4a6.js

js skribil.ai collected 2026-10-05 13:33:16 UTC 6,718 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4620],{62296:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/value-prop",function(){return s(35598)}])},92761:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});let i=(0,s(63759).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},83989:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});let i=(0,s(63759).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},92429:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});let i=(0,s(63759).Z)("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},9475:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});let i=(0,s(63759).Z)("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},76678:function(e,t,s){"use strict";var i=s(85893);s(67294);var a=s(9475),r=s(92429),n=s(92761),o=s(83989);t.Z=e=>{let{title:t,subtitle:s,children:l,currentStep:c,totalSteps:h,onNext:d,onBack:u,onSkip:m,onExit:x,showSkip:p=!1,isWalkthrough:g=!1,nextButtonText:f="Next →",hideExitButton:y=!1,aiInsights:N=[],hideNavigation:w=!1}=e;return(0,i.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,i.jsxs)("div",{className:"mb-6",children:["string"==typeof t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"text-3xl font-bold mb-2",children:t}),s&&(0,i.jsx)("p",{className:"text-gray-600",children:s})]}):t,g&&c&&h&&(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,i.jsxs)("div",{className:"text-sm text-gray-500",children:["Step ",c," of ",h]}),!y&&x&&(0,i.jsxs)("button",{onClick:x,className:"text-sm text-gray-500 hover:text-gray-700 flex items-center",children:[(0,i.jsx)(a.Z,{className:"w-4 h-4 mr-1"}),"Exit Walkthrough"]})]}),(0,i.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,i.jsx)("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:"".concat(c/h*100,"%")}})})]})]}),N&&N.length>0&&(0,i.jsxs)("div",{className:"mb-8 p-4 bg-indigo-50 rounded-lg border border-indigo-100",children:[(0,i.jsxs)("h3",{className:"font-medium mb-2 flex items-center text-indigo-800",children:[(0,i.jsx)(r.Z,{className:"w-5 h-5 mr-2 text-indigo-500"}),"AI Insights"]}),(0,i.jsx)("ul",{className:"space-y-2",children:N.map((e,t)=>(0,i.jsxs)("li",{className:"text-sm text-indigo-700 flex items-start",children:[(0,i.jsx)("span",{className:"text-indigo-500 mr-2",children:"•"}),e]},t))})]}),(0,i.jsx)("div",{className:"mb-8",children:l}),g&&!w&&(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsxs)("button",{onClick:u,className:"px-4 py-2 text-gray-600 flex items-center ".concat(u?"":"invisible"),children:[(0,i.jsx)(n.Z,{className:"w-4 h-4 mr-2"}),"Back"]}),(0,i.jsxs)("div",{className:"flex gap-4",children:[p&&m&&(0,i.jsx)("button",{onClick:m,className:"px-4 py-2 text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50",children:"Skip this step"}),d&&(0,i.jsxs)("button",{onClick:d,className:"px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 flex items-center",children:[f,!f.includes("→")&&(0,i.jsx)(o.Z,{className:"w-4 h-4 ml-2"})]})]})]})]})}},39752:function(e,t,s){"use strict";s.d(t,{k:function(){return o}});var i=s(67294);class a{async call(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let i=await fetch("/api/api_endpoints",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.getToken())},body:JSON.stringify({mode:e,data:t,writingStyle:s})});if(402===i.status){let e=await i.json().catch(()=>({})),t=e.upgradeUrl||"/billing",s=t.includes("?")?"".concat(t,"&reason=subscription_required"):"".concat(t,"?reason=subscription_required");this.options.showNotification&&this.options.showNotification(e.message||"Add a payment method to continue using the service.","warning"),window.location.href=s;let a=Error(e.message||"Subscription required");throw a.status=402,a.upgradeUrl=s,a}if(401===i.status){this.options.showNotification&&this.options.showNotification("Please log in to continue","error"),this.clearToken(),window.location.href="/login";let e=Error("Authentication required");throw e.status=401,e}if(!i.ok){let e=await i.json().catch(()=>({})),t=e.message||e.error||"API responded with status ".concat(i.status);this.options.showNotification&&this.options.showNotification(t,"error");let s=Error(t);throw s.status=i.status,s}return await i.json()}catch(t){throw console.error("Error calling ".concat(e,":"),t),t}}async callWithStrategicData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.call(e,t)}getToken(){return localStorage.getItem("token")||""}clearToken(){localStorage.removeItem("token"),localStorage.removeItem("user"),localStorage.removeItem("refreshToken")}updateOptions(e){this.options={...this.options,...e}}constructor(e={}){this.options=e}}new a;var r=s(13410);let n=()=>{let{showSubscriptionModal:e,showNotification:t}=(0,r.l)();return(0,i.useMemo)(()=>new a({showSubscriptionModal:e,showNotification:t}),[e,t])},o=()=>{let e=n();return{call:e.call.bind(e),callWithStrategicData:e.callWithStrategicData.bind(e)}}},35598:function(e,t,s){"use strict";s.r(t);var i=s(85893),a=s(67294),r=s(11163),n=s(33058),o=s(76678),l=s(6333);t.default=()=>{let e=(0,r.useRouter)(),[t,s]=(0,a.useState)({}),c=()=>{e.push("/ideal-customer")},h=()=>{e.push("/product")};return(0,i.jsx)("div",{className:"min-h-screen bg-gray-50",children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto px-2 sm:px-2 lg:px-2 py-8",children:[(0,i.jsx)("div",{className:"space-y-8 w-full",children:(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(n.Z,{className:"w-8 h-8 text-indigo-500"}),(0,i.jsx)("h1",{className:"text-2xl font-semibold text-gray-900",children:"Craft your value proposition"})]}),(0,i.jsx)("p",{className:"text-gray-600",children:"Create a compelling statement that explains why customers choose you"})]})}),(0,i.jsx)(o.Z,{title:"Value Proposition",subtitle:"Create a compelling statement that explains why customers choose you",onNext:c,onBack:h,isWalkthrough:!0,children:(0,i.jsx)(l.Z,{onNext:c,onBack:h,formData:t,setFormData:s})})]})})}}},function(e){e.O(0,[6333,2888,9774,179],function(){return e(e.s=62296)}),_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.