1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6918],{2390:function(e,t,r){"use strict";var n=r(25809),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,s,l,c,u,d,p=!1;t||(t={}),i=t.debug||!1;try{if(l=n(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(n){i&&console.error("unable to copy using execCommand: ",n),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(n){i&&console.error("unable to copy using clipboardData: ",n),i&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return p}},66918:function(e,t,r){"use strict";r.r(t);var n=r(26705),o=r(20955),a=r(68143),i=r.n(a),s=r(90774),l=r(63108),c=r(65539),u=r(86781),d=r(95241);let p=[{_id:"",content:""}];t.default=(0,s.$j)(function(e,t){let{auth:r}=e,{offerHTE:n}=t;return{token:"token"in r?r.token:""}})(function(e){let{offerHTE:t,dispatch:r,token:a,isOpen:s,readOnly:f=!1,showCopyTextBtns:y=!1}=e,[x,m]=(0,o.useState)(t.productName),[b,g]=(0,o.useState)(t.preQualifyingStatement),[h,w]=(0,o.useState)(t.productMission),[v,j]=(0,o.useState)(t.futureSelfVision),[C,k]=(0,o.useState)(t.birdsEyeView),[P,N]=(0,o.useState)(t.productPricePoint),O=(0,o.useRef)(x),S=(0,o.useRef)(b),E=(0,o.useRef)(h),F=(0,o.useRef)(v),T=(0,o.useRef)(C),_=(0,o.useRef)(P);(0,o.useEffect)(()=>{O.current=x,S.current=b,E.current=h,F.current=v,T.current=C,_.current=P},[x,b,h,v,C,P]);let[R,D]=(0,o.useState)(t.suggestedPaymentPlan),[M,V]=(0,o.useState)({}),[Q,A]=(0,o.useState)(p),I={productName:m,preQualifyingStatement:g,productMission:w,futureSelfVision:j,birdsEyeView:k,productPricePoint:N,content:e=>{}},U=e=>{let{key:t,stepId:r,onlyLocalUpdate:n=!1}=e;return e=>{let o;let a=e.target.value;r?A(o=Q.map(e=>e._id===r?{...e,[t]:a}:e)):(I[t](a),o=Q),n||B(t,a,r,o)}},B=(0,o.useMemo)(()=>i()(async(e,n,o,i)=>{let s={offerId:null==t?void 0:t._id,updates:{key:e,value:n,stepId:o},token:a},u={...t,productName:O.current,preQualifyingStatement:S.current,productMission:E.current,futureSelfVision:F.current,birdsEyeView:T.current,productPricePoint:_.current};o?r((0,c.Ml)({...u,birdsEyeViewSteps:i})):r((0,c.Ml)({...u,[e]:n}));try{let e=await (0,l.xot)(s),t=await e.json();(null==t?void 0:t.status)!=="OK"&&(r((0,c.Ml)({...u})),console.error("Failed to update product idea: ",null==t?void 0:t.message))}catch(e){r((0,c.Ml)({...u})),console.error("Error while updating product idea: ",e)}},100),[t,r,a]);return(0,o.useEffect)(()=>{m(t.productName),g(t.preQualifyingStatement),w(t.productMission),j(t.futureSelfVision),k(t.birdsEyeView),N(t.productPricePoint),A(t.birdsEyeViewSteps)},[t.productName,t.preQualifyingStatement,t.productMission,t.futureSelfVision,t.birdsEyeView,t.productPricePoint,t.suggestedPaymentPlan,t.birdsEyeViewSteps]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mt-4 text-sm flex-col flex items-center border border-gray-200 bg-white rounded-md dark:bg-slate-900 dark:border-gray-700",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsx)("div",{className:"bg-transparent text-[#98a2b3] font-medium text-[14px] justify-start items-start w-full truncate whitespace-nowrap px-3 py-3 border-gray-200 dark:bg-slate-800 dark:text-gray-400",children:"Product Name"}
1),y&&(0,n.jsx)(u.CopyToClipboard,{text:x,onCopy:()=>{V(e=>({...e,productName:"Copied!"})),setTimeout(()=>{V(e=>({...e,productName:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M.productName||"Copy"})})]}),(0,n.jsx)("input",{value:x,onChange:U({key:"productName"}),className:"px-4 scrollbar-custom text-[12px] lg:text-[14px] leading-normal text-[#101928d9] bg-transparent w-full outline-none rounded-none border-transparent focus:border-transparent focus:ring-0 overflow-y-auto resize-none max-h-[200px]",readOnly:f})]}),(0,n.jsxs)("div",{className:"mt-4 text-sm flex-col flex items-center border border-gray-200 bg-white rounded-md dark:bg-slate-900 dark:border-gray-700",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsx)("div",{className:"bg-transparent text-[#98a2b3] font-medium text-[14px] justify-start items-start w-full truncate whitespace-nowrap px-3 py-3 border-gray-200 dark:bg-slate-800 dark:text-gray-400",children:"Pre-Qualifying Statement"}),y&&(0,n.jsx)(u.CopyToClipboard,{text:b,onCopy:()=>{V(e=>({...e,preQualifyingStatement:"Copied!"})),setTimeout(()=>{V(e=>({...e,preQualifyingStatement:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M.preQualifyingStatement||"Copy"})})]}),(0,n.jsx)(d.Z,{value:b,onChange:e=>U({key:"preQualifyingStatement"})(e),isOpen:s,readOnly:f})]}),(0,n.jsxs)("div",{className:"mt-4 text-sm flex-col flex items-center border border-gray-200 bg-white rounded-md dark:bg-slate-900 dark:border-gray-700",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsx)("div",{className:"bg-transparent text-[#98a2b3] font-medium text-[14px] justify-start items-start w-full truncate whitespace-nowrap px-3 py-3 border-gray-200 dark:bg-slate-800 dark:text-gray-400",children:"Product Mission"}),y&&(0,n.jsx)(u.CopyToClipboard,{text:h,onCopy:()=>{V(e=>({...e,productMission:"Copied!"})),setTimeout(()=>{V(e=>({...e,productMission:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M.productMission||"Copy"})})]}),(0,n.jsx)(d.Z,{value:h,onChange:e=>U({key:"productMission"})(e),isOpen:s,readOnly:f})]}),(0,n.jsxs)("div",{className:"mt-4 text-sm flex-col flex items-center border border-gray-200 bg-white rounded-md dark:bg-slate-900 dark:border-gray-700",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsx)("div",{className:"bg-transparent text-[#98a2b3] font-medium text-[14px] justify-start items-start w-full truncate whitespace-nowrap px-3 py-3 border-gray-200 dark:bg-slate-800 dark:text-gray-400",children:"Future Self Vision"}),y&&(0,n.jsx)(u.CopyToClipboard,{text:v,onCopy:()=>{V(e=>({...e,futureSelfVision:"Copied!"})),setTimeout(()=>{V(e=>({...e,futureSelfVision:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M.futureSelfVision||"Copy"})})]}),(0,n.jsx)(d.Z,{value:v,onChange:e=>U({key:"futureSelfVision"})(e),isOpen:s,readOnly:f})]}),(0,n.jsxs)("div",{className:"mt-4 text-sm flex-col flex items-center border border-gray-200 bg-white rounded-md dark:bg-slate-900 dark:border-gray-700",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsx)("div",{className:"bg-transparent text-[#98a2b3] font-medium text-[14px] justify-start items-start w-full truncate whitespace-nowrap px-3 py-3 border-gray-200 dark:bg-slate-800 dark:text-gray-400",children:"Product Price Point"}),y&&(0,n.jsx)(u.CopyToClipboard,{text:P,onCopy:()=>{V(e=>({...e,productPricePoint:"Copied!"})),setTimeout(()=>{V(e=>({...e,productPricePoint:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M.productPricePoint||"Copy"})})]}),(0,n.jsx)("input",{value:P,onChange:U({key:"productPricePoint"}),type:"text",readOnly:f,className:"px-4 scrollbar-custom text-[12px] lg:text-[14px] leading-normal text-[#101928d9] bg-transparent w-full outline-none rounded-none border-transparent focus:border-transparent focus:ring-0 overflow-y-auto resize-none max-h-[200px]"})]}),(0,n.jsx)("div",{className:"hs-accordion-group","data-hs-accordion-always-open":!0,
1children:(0,n.jsxs)("div",{className:"hs-accordion ",id:"steps-accordion",children:[(0,n.jsxs)("button",{className:"hs-accordion-toggle text-[14px] ring-0 hs-accordion-active:text-primary-500 py-3 inline-flex items-center gap-x-3 w-full font-medium text-start text-gray-600 hover:text-gray-500 rounded-lg disabled:opacity-50 disabled:pointer-events-none ","aria-controls":"steps-accordion-content",children:[(0,n.jsxs)("svg",{className:"hs-accordion-active:hidden block w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{d:"M5 12h14"}),(0,n.jsx)("path",{d:"M12 5v14"})]}),(0,n.jsx)("svg",{className:"hs-accordion-active:block hidden w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M5 12h14"})}),"Bird's Eye View Steps"]}),(0,n.jsx)("div",{className:"hs-accordion-content w-full overflow-hidden transition-[height] duration-300 hidden",id:"steps-accordion-content","aria-labelledby":"steps-accordion",children:(0,n.jsx)("div",{className:"grid gap-2",children:Q.map((e,t)=>(0,n.jsx)("article",{className:"flex justify-between items-center gap-4",children:(0,n.jsxs)("article",{className:"rounded-[6px] border border-[#e4e7ec] flex flex-col gap-0 w-full",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row justify-between",children:[(0,n.jsxs)("label",{className:"py-2 px-3 shrink-0 text-[#98a2b3] font-medium text-[12px] leading-[145%]",children:["Step ",t+1]}),y&&(0,n.jsx)(u.CopyToClipboard,{text:null==e?void 0:e.content,onCopy:()=>{V(t=>({...t,[e._id]:"Copied!"})),setTimeout(()=>{V(t=>({...t,[e._id]:"Copy"}))},1e3)},children:(0,n.jsx)("button",{className:"flex justify-center items-center px-3 text-xs text-[#2454FF] hover:text-[#2454FF]/75 font-medium",children:M[e._id]||"Copy"})})]}),(0,n.jsx)("input",{className:"py-2 px-3 text-[12px] bg-white leading-[145%] text-[#101928d9] w-full outline-none rounded-[6px] border-0 border-transparent focus:border-transparent focus:ring-0",onChange:U({key:"content",stepId:null==e?void 0:e._id}),value:null==e?void 0:e.content,readOnly:f})]})},null==e?void 0:e._id))})})]})})]})})},95241:function(e,t,r){"use strict";var n=r(26705),o=r(20955);t.Z=e=>{let{value:t,onChange:r,isOpen:a,className:i,readOnly:s=!1}=e,l=(0,o.useRef)(null),c=()=>{if(l.current){l.current.style.height="auto";let e=Math.min(l.current.scrollHeight,200);l.current.style.height="".concat(e,"px")}};return(0,o.useEffect)(()=>{c()},[t]),(0,o.useEffect)(()=>{a&&c()},[a]),(0,n.jsx)("textarea",{readOnly:s,className:"".concat(i||"px-4 scrollbar-custom text-[12px] lg:text-[14px] leading-normal text-[#101928d9] bg-transparent w-full outline-none rounded-none border-transparent focus:border-transparent focus:ring-0 overflow-y-auto resize-none"," max-h-[200px]"),ref:l,value:t,onChange:r})}},22303:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(20955)),a=s(r(2390)),i=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(x,e);var t,r,s,l=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(x);if(t){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function x(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,x);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(p(e=l.call.apply(l,[this].concat(r))),"onClick",function(t){var r=e.props,n=r.text,i=r.onCopy,s=r.children,l=r.options,c=o.default.Children.only(s),u=(0,a.default)(n,l);i&&i(n,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)}),e}return r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),n=o.default.Children.only(t);return o.default.cloneElement(n,c(c({},r),{},{onClick:this.onClick}))}}],u(x.prototype,r),s&&u(x,s),Object.defineProperty(x,"prototype",{writable:!1}),x}(o.default.PureComponent);t.CopyToClipboard=x,y(x,"defaultProps",{onCopy:void 0,options:void 0})},86781:function(e,t,r){"use strict";var n=r(22303).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},25809:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}}}]);
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.