1import{r as a,b as Kt,R as Pe,j as b}from"./index-C7et0YvW.js";import{useDispatch as Vt,useSelector as St}from"./react-redux-CS1suWcf.js";import{al as Jt,a as Qt}from"./App-JMGH_muH.js";import{aU as kt}from"./automationsSlice-OSI3L-em.js";import{a as Et}from"./Index-BvSloTEE.js";import{a9 as Zt}from"./api-Dx2b2VBE.js";import{U as er}from"./UpgradeButton-DJ-FVCu4.js";import{l as tr}from"./AddCustomerModal-DtbT0_uU.js";import{s as Ht,t as lt,v as te,c as he,q as pe,K as J,o as de,ac as rr,ab as Ze,B as Oe,A as ar,y as nr,ad as or,z as wt,a7 as Bt,b as lr,w as Ve,g as ir,E as sr,r as cr,u as fe,a9 as $t,a as ur,S as dr,ay as vr,as as Rt}from"./index-rIzmKL61.js";import{C as gr}from"./index-CHQgzyYX.js";import{D as fr}from"./createLucideIcon-BFENj1ee.js";import{z as Mt}from"./customerAPI-BAQk8BT6.js";import"./index-C5mr7J1Q.js";import"./index-Cak3wB_1.js";import"./useDocsSimplified-CndYjTIN.js";import"./objective2Slice-BQakqLBa.js";import"./redux-toolkit.modern-CeEKeRTX.js";import"./commentSlice-DLnPCA-a.js";import"./trash-2-CBdwQszW.js";import"./SubscriptionSlice-Y6nEygDA.js";import"./masterLoading-DrFNT5WY.js";import"./index-DaP0QanT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"6d0ea8a7c668838d9f8347666930d5b3c6122a1f"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="32138ebb-e8d0-4687-ba5d-652416fc4014",e._sentryDebugIdIdentifier="sentry-dbid-32138ebb-e8d0-4687-ba5d-652416fc4014")}catch{}})();function it(e,t,o){return(e-t)/(o-t)}function st(e,t,o,r){var i=it(t,o,r),u={};switch(e){case"rtl":u.right="".concat(i*100,"%"),u.transform="translateX(50%)";break;case"btt":u.bottom="".concat(i*100,"%"),u.transform="translateY(50%)";break;case"ttb":u.top="".concat(i*100,"%"),u.transform="translateY(-50%)";break;default:u.left="".concat(i*100,"%"),u.transform="translateX(-50%)";break}return u}function We(e,t){return Array.isArray(e)?e[t]:e}var Ae=a.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),mr=a.createContext({}),hr=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],jt=a.forwardRef(function(e,t){var o=e.prefixCls,r=e.value,i=e.valueIndex,u=e.onStartMove,m=e.onDelete,c=e.style,k=e.render,v=e.dragging,f=e.draggingDelete,x=e.onOffsetChange,S=e.onChangeComplete,y=e.onFocus,h=e.onMouseEnter,s=Ht(e,hr),n=a.useContext(Ae),d=n.min,l=n.max,p=n.direction,w=n.disabled,j=n.keyboard,H=n.range,L=n.tabIndex,I=n.ariaLabelForHandle,P=n.ariaLabelledByForHandle,R=n.ariaRequired,E=n.ariaValueTextFormatterForHandle,$=n.styles,z=n.classNames,G="".concat(o,"-handle"),W=function(F){w||u(F,i)},X=function(F){y==null||y(F,i)},g=function(F){h(F,i)},B=function(F){if(!w&&j){var D=null;switch(F.which||F.keyCode){case J.LEFT:D=p==="ltr"||p==="btt"?-1:1;break;case J.RIGHT:D=p==="ltr"||p==="btt"?1:-1;break;case J.UP:D=p!=="ttb"?1:-1;break;case J.DOWN:D=p!=="ttb"?-1:1;break;case J.HOME:D="min";break;case J.END:D="max";break;case J.PAGE_UP:D=2;break;case J.PAGE_DOWN:D=-2;break;case J.BACKSPACE:case J.DELETE:m==null||m(i);break}D!==null&&(F.preventDefault(),x(D,i))}},M=function(F){switch(F.which||F.keyCode){case J.LEFT:case J.RIGHT:case J.UP:case J.DOWN:case J.HOME:case J.END:case J.PAGE_UP:case J.PAGE_DOWN:S==null||S();break}},N=st(p,r,d,l),K={};if(i!==null){var le;K={tabIndex:w?null:We(L,i),role:"slider","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":r,"aria-disabled":w,"aria-label":We(I,i),"aria-labelledby":We(P,i),"aria-required":We(R,i),"aria-valuetext":(le=We(E,i))===null||le===void 0?void 0:le(r),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:X,onMouseEnter:g,onKeyDown:B,onKeyUp:M}}var Se=a.createElement("div",lt({ref:t,className:he(G,pe(pe(pe({},"".concat(G,"-").concat(i+1),i!==null&&H),"".concat(G,"-dragging"),v),"".concat(G,"-dragging-delete"),f),z.handle),style:te(te(te({},N),c),$.handle)},K,s));return k&&(Se=k(Se,{index:i,prefixCls:o,value:r,dragging:v,draggingDelete:f})),Se}),br=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onF
1ocus"],yr=a.forwardRef(function(e,t){var o=e.prefixCls,r=e.style,i=e.onStartMove,u=e.onOffsetChange,m=e.values,c=e.handleRender,k=e.activeHandleRender,v=e.draggingIndex,f=e.draggingDelete,x=e.onFocus,S=Ht(e,br),y=a.useRef({}),h=a.useState(!1),s=de(h,2),n=s[0],d=s[1],l=a.useState(-1),p=de(l,2),w=p[0],j=p[1],H=function(E){j(E),d(!0)},L=function(E,$){H($),x==null||x(E)},I=function(E,$){H($)};a.useImperativeHandle(t,function(){return{focus:function(E){var $;($=y.current[E])===null||$===void 0||$.focus()},hideHelp:function(){Kt.flushSync(function(){d(!1)})}}});var P=te({prefixCls:o,onStartMove:i,onOffsetChange:u,render:c,onFocus:L,onMouseEnter:I},S);return a.createElement(a.Fragment,null,m.map(function(R,E){var $=v===E;return a.createElement(jt,lt({ref:function(G){G?y.current[E]=G:delete y.current[E]},dragging:$,draggingDelete:$&&f,style:We(r,E),key:E,value:R,valueIndex:E},P))}),k&&n&&a.createElement(jt,lt({key:"a11y"},P,{value:m[w],valueIndex:null,dragging:v!==-1,draggingDelete:f,render:k,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Cr=function(t){var o=t.prefixCls,r=t.style,i=t.children,u=t.value,m=t.onClick,c=a.useContext(Ae),k=c.min,v=c.max,f=c.direction,x=c.includedStart,S=c.includedEnd,y=c.included,h="".concat(o,"-text"),s=st(f,u,k,v);return a.createElement("span",{className:he(h,pe({},"".concat(h,"-active"),y&&x<=u&&u<=S)),style:te(te({},s),r),onMouseDown:function(d){d.stopPropagation()},onClick:function(){m(u)}},i)},xr=function(t){var o=t.prefixCls,r=t.marks,i=t.onClick,u="".concat(o,"-mark");return r.length?a.createElement("div",{className:u},r.map(function(m){var c=m.value,k=m.style,v=m.label;return a.createElement(Cr,{key:c,prefixCls:u,style:k,value:c,onClick:i},v)})):null},pr=function(t){var o=t.prefixCls,r=t.value,i=t.style,u=t.activeStyle,m=a.useContext(Ae),c=m.min,k=m.max,v=m.direction,f=m.included,x=m.includedStart,S=m.includedEnd,y="".concat(o,"-dot"),h=f&&x<=r&&r<=S,s=te(te({},st(v,r,c,k)),typeof i=="function"?i(r):i);return h&&(s=te(te({},s),typeof u=="function"?u(r):u)),a.createElement("span",{className:he(y,pe({},"".concat(y,"-active"),h)),style:s})},Sr=function(t){var o=t.prefixCls,r=t.marks,i=t.dots,u=t.style,m=t.activeStyle,c=a.useContext(Ae),k=c.min,v=c.max,f=c.step,x=a.useMemo(function(){var S=new Set;if(r.forEach(function(h){S.add(h.value)}),i&&f!==null)for(var y=k;y<=v;)S.add(y),y+=f;return Array.from(S)},[k,v,f,i,r]);return a.createElement("div",{className:"".concat(o,"-step")},x.map(function(S){return a.createElement(pr,{prefixCls:o,key:S,value:S,style:u,activeStyle:m})}))},Dt=function(t){var o=t.prefixCls,r=t.style,i=t.start,u=t.end,m=t.index,c=t.onStartMove,k=t.replaceCls,v=a.useContext(Ae),f=v.direction,x=v.min,S=v.max,y=v.disabled,h=v.range,s=v.classNames,n="".concat(o,"-track"),d=it(i,x,S),l=it(u,x,S),p=function(L){!y&&c&&c(L,-1)},w={};switch(f){case"rtl":w.right="".concat(d*100,"%"),w.width="".concat(l*100-d*100,"%");break;case"btt":w.bottom="".concat(d*100,"%"),w.height="".concat(l*100-d*100,"%");break;case"ttb":w.top="".concat(d*100,"%"),w.height="".concat(l*100-d*100,"%");break;default:w.left="".concat(d*100,"%"),w.width="".concat(l*100-d*100,"%")}var j=k||he(n,pe(pe({},"".concat(n,"-").concat(m+1),m!==null&&h),"".concat(o,"-track-draggable"),c),s.track);return a.createElement("div",{className:j,style:te(te({},w),r),onMouseDown:p,onTouchStart:p})},kr=function(t){var o=t.prefixCls,r=t.style,i=t.values,u=t.startPoint,m=t.onStartMove,c=a.useContext(Ae),k=c.included,v=c.range,f=c.min,x=c.styles,S=c.classNames,y=a.useMemo(function(){if(!v){if(i.length===0)return[];var s=u??f,n=i[0];return[{start:Math.min(s,n),end:Math.max(s,n)}]}for(var d=[],l=0;l<i.length-1;l+=1)d.push({start:i[l],end:i[l+1]});return d},[i,v,u,f]);if(!k)return null;var h=y!=null&&y.length&&(S.tracks||x.tracks)?a.createElement(Dt,{index:null,prefixCls:o,start:y[0].start,end:y[y.length-1].end,replaceCls:he(S.tracks,"".concat(o,"-tracks")),style:x.tracks}):null;return a.createElement(a.Fragment,null,h,y.map(function(s,n){var d=s.start,l=s.end;return a.createElement(Dt,{index:n,prefixCls:o,style:te(te({},We(r,n)),x.track),start:d,end:l,key:n,onStartMove:m})}))},Er=130;function Pt(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function wr(e,t,o,r,i,u,m,c,k,v,f){var x=a.useState(null),S=de(x,2),y=S[0],h=S[1],s=a.useState(-1),n=de(s,2),d=n[0],l=n[1],p=a.useState(!1),w=de(p,2),j=w[0],H=w[1],L=a.useState(o),I=de(L,2),P=I[0],R=I[1],E=a.useState(o),$=de(E,2),z=$[0],G=$[1],W=a.useRef(null),X=a.useRef(null),g=a.useRef(null),B=a.useContext(mr),M=B.onDragStart,N=B.onDragChange;rr(function(){d===-1&&R(o)},[o,d]),a.useEffect(function(){return function(){document.removeEventListener("mousemove",W.current),document.removeEventListener("mouseup",X.current),g.current&&(g.current.removeEventListener("touchmove",W.current),g.current.removeEventListener("touchend",X.current))}},[]);var K=function(D,U,Y){U!==void 0&&h(U),R(D);var ae=D;Y&&(ae=D.filter(function(q,Q){return Q!==d})),m(ae),N&&N({rawValues:D,deleteIndex:Y?d:-1,draggingIndex:d,draggingValue:U})},le=Ze(function(F,D,U){if(F===-1){var Y=z[0],ae=z[z.length-1],q=r-Y,Q=i-ae,ie=D*(i-r);ie=Math.max(ie,q),ie=Math.min(ie,Q);var ve=u(Y+ie);ie=ve-Y;var be=z.map(function(me){return me+ie});K(be)}else{var ye=(i-r)*D,Ce=Oe(P);Ce[F]=z[F];var ke=k(Ce,ye,F,"dist");K(ke.values,ke.value,U)}}),Se=function(D,U,Y){D.stopPropagation();var ae=Y||o,q=ae[U];l(U),h(q),G(ae),R(ae),H(!1);var Q=Pt(D),ie=Q.pageX,ve=Q.pageY,be=!1;M&&M({rawValues:ae,draggingIndex:U,draggingValue:q});var ye=function(me){me.preventDefault();var se=Pt(me),Ne=se.pageX,Te=se.pageY,we=Ne-ie,ge=Te-ve,_=e.current.getBoundingClientRect(),Z=_.width,Ee=_.height,xe,ce;switch(t){case"btt":xe=-ge/Ee,ce=we;break;case"ttb":xe=ge/Ee,ce=we;break;case"rtl":xe=-we/Z,ce=ge;break;default:xe=we/Z,ce=ge}be=v?Math.abs(ce)>Er&&f<P.length:!1,H(be),le(U,xe,be)},Ce=function ke(me){me.preventDefault(),document.removeEventListener("mouseup",ke),document.removeEventListener("mousemove",ye),g.current&&(g.current.removeEventListener("touchmove",W.current),g.current.removeEventListener("touchend",X.current)),W.current=null,X.current=null,g.current=null,c(be),l(-1),H(!1)};document.addEventListener("mouseup",Ce),document.addEventListener("mousemove",ye),D.currentTarget.addEventListener("touchend",Ce),D.currentTarget.addEventListener("touchmove",ye),W.current=ye,X.current=Ce,g.current=D.currentTarget},re=a.useMemo(function(){var F=Oe(o).sort(function(q,Q){return q-Q}),D=Oe(P).sort(function(q,Q){return q-Q}),U={};D.forEach(function(q){U[q]=(U[q]||0)+1}),F.forEach(function(q){U[q]=(U[q]||0)-1});var Y=v?1:0,ae=Object.values(U).reduce(function(q,Q){return q+Math.abs(Q)},0);return ae<=Y?P:o},[o,P,v]);return[d,y,j,re,Se]}function $r(e,t,o,r,i,u){var m=a.useCallback(function(y){return Math.max(e,Math.min(t,y))},[e,t]),c=a.useCallback(function(y){if(o!==null){var h=e+Math.round((m(y)-e)/o)*o,s=function(p){return(String(p).split(".")[1]||"").length},n=Math.max(s(o),s(t),s(e)),d=Number(h.toFixed(n));return e<=d&&d<=t?d:null}return null},[o,e,t,m]),k=a.useCallback(function(y){var h=m(y),s=r.map(function(l){return l.value});o!==null&&s.push(c(y)),s.push(e,t);var n=s[0],d=t-e;
1return s.forEach(function(l){var p=Math.abs(h-l);p<=d&&(n=l,d=p)}),n},[e,t,r,o,m,c]),v=function y(h,s,n){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof s=="number"){var l,p=h[n],w=p+s,j=[];r.forEach(function(R){j.push(R.value)}),j.push(e,t),j.push(c(p));var H=s>0?1:-1;d==="unit"?j.push(c(p+H*o)):j.push(c(w)),j=j.filter(function(R){return R!==null}).filter(function(R){return s<0?R<=p:R>=p}),d==="unit"&&(j=j.filter(function(R){return R!==p}));var L=d==="unit"?p:w;l=j[0];var I=Math.abs(l-L);if(j.forEach(function(R){var E=Math.abs(R-L);E<I&&(l=R,I=E)}),l===void 0)return s<0?e:t;if(d==="dist")return l;if(Math.abs(s)>1){var P=Oe(h);return P[n]=l,y(P,s-H,n,d)}return l}else{if(s==="min")return e;if(s==="max")return t}},f=function(h,s,n){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=h[n],p=v(h,s,n,d);return{value:p,changed:p!==l}},x=function(h){return u===null&&h===0||typeof u=="number"&&h<u},S=function(h,s,n){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=h.map(k),p=l[n],w=v(l,s,n,d);if(l[n]=w,i===!1){var j=u||0;n>0&&l[n-1]!==p&&(l[n]=Math.max(l[n],l[n-1]+j)),n<l.length-1&&l[n+1]!==p&&(l[n]=Math.min(l[n],l[n+1]-j))}else if(typeof u=="number"||u===null){for(var H=n+1;H<l.length;H+=1)for(var L=!0;x(l[H]-l[H-1])&&L;){var I=f(l,1,H);l[H]=I.value,L=I.changed}for(var P=n;P>0;P-=1)for(var R=!0;x(l[P]-l[P-1])&&R;){var E=f(l,-1,P-1);l[P-1]=E.value,R=E.changed}for(var $=l.length-1;$>0;$-=1)for(var z=!0;x(l[$]-l[$-1])&&z;){var G=f(l,-1,$-1);l[$-1]=G.value,z=G.changed}for(var W=0;W<l.length-1;W+=1)for(var X=!0;x(l[W+1]-l[W])&&X;){var g=f(l,1,W+1);l[W+1]=g.value,X=g.changed}}return{value:l[n],values:l}};return[k,S]}function Rr(e){return a.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,o=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&o,r||0,i]},[e])}var Mr=a.forwardRef(function(e,t){var o=e.prefixCls,r=o===void 0?"rc-slider":o,i=e.className,u=e.style,m=e.classNames,c=e.styles,k=e.id,v=e.disabled,f=v===void 0?!1:v,x=e.keyboard,S=x===void 0?!0:x,y=e.autoFocus,h=e.onFocus,s=e.onBlur,n=e.min,d=n===void 0?0:n,l=e.max,p=l===void 0?100:l,w=e.step,j=w===void 0?1:w,H=e.value,L=e.defaultValue,I=e.range,P=e.count,R=e.onChange,E=e.onBeforeChange,$=e.onAfterChange,z=e.onChangeComplete,G=e.allowCross,W=G===void 0?!0:G,X=e.pushable,g=X===void 0?!1:X,B=e.reverse,M=e.vertical,N=e.included,K=N===void 0?!0:N,le=e.startPoint,Se=e.trackStyle,re=e.handleStyle,F=e.railStyle,D=e.dotStyle,U=e.activeDotStyle,Y=e.marks,ae=e.dots,q=e.handleRender,Q=e.activeHandleRender,ie=e.track,ve=e.tabIndex,be=ve===void 0?0:ve,ye=e.ariaLabelForHandle,Ce=e.ariaLabelledByForHandle,ke=e.ariaRequired,me=e.ariaValueTextFormatterForHandle,se=a.useRef(null),Ne=a.useRef(null),Te=a.useMemo(function(){return M?B?"ttb":"btt":B?"rtl":"ltr"},[B,M]),we=Rr(I),ge=de(we,5),_=ge[0],Z=ge[1],Ee=ge[2],xe=ge[3],ce=ge[4],ue=a.useMemo(function(){return isFinite(d)?d:0},[d]),$e=a.useMemo(function(){return isFinite(p)?p:100},[p]),Re=a.useMemo(function(){return j!==null&&j<=0?1:j},[j]),ee=a.useMemo(function(){return typeof g=="boolean"?g?Re:!1:g>=0?g:!1},[g,Re]),ne=a.useMemo(function(){return Object.keys(Y||{}).map(function(O){var C=Y[O],T={value:Number(O)};return C&&ar(C)==="object"&&!a.isValidElement(C)&&("label"in C||"style"in C)?(T.style=C.style,T.label=C.label):T.label=C,T}).filter(function(O){var C=O.label;return C||typeof C=="number"}).sort(function(O,C){return O.value-C.value})},[Y]),et=$r(ue,$e,Re,ne,W,ee),qe=de(et,2),He=qe[0],Ue=qe[1],Ye=nr(L,{value:H}),ct=de(Ye,2),Be=ct[0],_t=ct[1],oe=a.useMemo(function(){var O=Be==null?[]:Array.isArray(Be)?Be:[Be],C=de(O,1),T=C[0],A=T===void 0?ue:T,V=Be===null?[]:[A];if(_){if(V=Oe(O),P||Be===void 0){var Fe=P>=0?P+1:2;for(V=V.slice(0,Fe);
1V.length<Fe;){var Me;V.push((Me=V[V.length-1])!==null&&Me!==void 0?Me:ue)}}V.sort(function(je,De){return je-De})}return V.forEach(function(je,De){V[De]=He(je)}),V},[Be,_,ue,P,He]),Ie=function(C){return _?C:C[0]},Je=Ze(function(O){var C=Oe(O).sort(function(T,A){return T-A});R&&!or(C,oe,!0)&&R(Ie(C)),_t(C)}),ut=Ze(function(O){O&&se.current.hideHelp();var C=Ie(oe);$==null||$(C),wt(!$,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),z==null||z(C)}),Lt=function(C){if(!(f||!Z||oe.length<=xe)){var T=Oe(oe);T.splice(C,1),E==null||E(Ie(T)),Je(T);var A=Math.max(0,C-1);se.current.hideHelp(),se.current.focus(A)}},Wt=wr(Ne,Te,oe,ue,$e,He,Je,ut,Ue,Z,xe),Ge=de(Wt,5),dt=Ge[0],At=Ge[1],It=Ge[2],tt=Ge[3],vt=Ge[4],gt=function(C,T){if(!f){var A=Oe(oe),V=0,Fe=0,Me=$e-ue;oe.forEach(function(_e,Qe){var pt=Math.abs(C-_e);pt<=Me&&(Me=pt,V=Qe),_e<C&&(Fe=Qe)});var je=V;Z&&Me!==0&&(!ce||oe.length<ce)?(A.splice(Fe+1,0,C),je=Fe+1):A[V]=C,_&&!oe.length&&P===void 0&&A.push(C);var De=Ie(A);if(E==null||E(De),Je(A),T){var Le,ze;(Le=document.activeElement)===null||Le===void 0||(ze=Le.blur)===null||ze===void 0||ze.call(Le),se.current.focus(je),vt(T,je,A)}else $==null||$(De),wt(!$,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),z==null||z(De)}},zt=function(C){C.preventDefault();var T=Ne.current.getBoundingClientRect(),A=T.width,V=T.height,Fe=T.left,Me=T.top,je=T.bottom,De=T.right,Le=C.clientX,ze=C.clientY,_e;switch(Te){case"btt":_e=(je-ze)/V;break;case"ttb":_e=(ze-Me)/V;break;case"rtl":_e=(De-Le)/A;break;default:_e=(Le-Fe)/A}var Qe=ue+_e*($e-ue);gt(He(Qe),C)},qt=a.useState(null),ft=de(qt,2),rt=ft[0],mt=ft[1],Ut=function(C,T){if(!f){var A=Ue(oe,C,T);E==null||E(Ie(oe)),Je(A.values),mt(A.value)}};a.useEffect(function(){if(rt!==null){var O=oe.indexOf(rt);O>=0&&se.current.focus(O)}mt(null)},[rt]);var Yt=a.useMemo(function(){return Ee&&Re===null?!1:Ee},[Ee,Re]),ht=Ze(function(O,C){vt(O,C),E==null||E(Ie(oe))}),bt=dt!==-1;a.useEffect(function(){if(!bt){var O=oe.lastIndexOf(At);se.current.focus(O)}},[bt]);var Xe=a.useMemo(function(){return Oe(tt).sort(function(O,C){return O-C})},[tt]),Gt=a.useMemo(function(){return _?[Xe[0],Xe[Xe.length-1]]:[ue,Xe[0]]},[Xe,_,ue]),yt=de(Gt,2),Ct=yt[0],xt=yt[1];a.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var C,T=document,A=T.activeElement;(C=Ne.current)!==null&&C!==void 0&&C.contains(A)&&(A==null||A.blur())}}}),a.useEffect(function(){y&&se.current.focus(0)},[]);var Xt=a.useMemo(function(){return{min:ue,max:$e,direction:Te,disabled:f,keyboard:S,step:Re,included:K,includedStart:Ct,includedEnd:xt,range:_,tabIndex:be,ariaLabelForHandle:ye,ariaLabelledByForHandle:Ce,ariaRequired:ke,ariaValueTextFormatterForHandle:me,styles:c||{},classNames:m||{}}},[ue,$e,Te,f,S,Re,K,Ct,xt,_,be,ye,Ce,ke,me,c,m]);return a.createElement(Ae.Provider,{value:Xt},a.createElement("div",{ref:Ne,className:he(r,i,pe(pe(pe(pe({},"".concat(r,"-disabled"),f),"".concat(r,"-vertical"),M),"".concat(r,"-horizontal"),!M),"".concat(r,"-with-marks"),ne.length)),style:u,onMouseDown:zt,id:k},a.createElement("div",{className:he("".concat(r,"-rail"),m==null?void 0:m.rail),style:te(te({},F),c==null?void 0:c.rail)}),ie!==!1&&a.createElement(kr,{prefixCls:r,style:Se,values:oe,startPoint:le,onStartMove:Yt?ht:void 0}),a.createElement(Sr,{prefixCls:r,marks:ne,dots:ae,style:D,activeStyle:U}),a.createElement(yr,{ref:se,prefixCls:r,style:re,values:tt,draggingIndex:dt,draggingDelete:It,onStartMove:ht,onOffsetChange:Ut,onFocus:h,onBlur:s,handleRender:q,activeHandleRender:Q,onChangeComplete:ut,onDelete:Z?Lt:void 0}),a.createElement(xr,{prefixCls:r,marks:ne,onClick:gt})))});const jr=a.createContext({}),Ot=a.forwardRef((e,t)=>{const{open:o,draggingDelete:r,value:i}=e,u=a.useRef(null),m=o&&!r,c=a.useRef(null);function k(){Ve.cancel(c.current),c.current=null}function v(){c.current=Ve(()=>{var f;(f=u.current)===null||f===void 0||f.forceAlign(),c.current=null})}return a.useEffect(()=>(m?v():k(),k),[m,e.title,i]),a.createElement(Bt,Object.assign({ref:lr(u,t)},e,{open:m}))}),Dr=e=>{const{componentCls:t,antCls:o,controlSize:r,dotSize:i,marginFull:u,marginPart:m,colorFillContentHover:c,handleColorDisabled:k,calc:v,handleSize:f,handleSizeHover:x,handleActiveColor:S,handleActiveOutlineColor:y,handleLineWidth:h,handleLineWidthHover:s,motionDurationMid:n}=e;return{[t]:Object.assign(Object.assign({},cr(e)),{position:"relative",height:r,margin:`${fe(m)} ${fe(u)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${fe(u)} ${fe(m)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${n}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${n}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:c},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${fe(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:f,height:f,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0}
1,"&::before":{content:'""',position:"absolute",insetInlineStart:v(h).mul(-1).equal(),insetBlockStart:v(h).mul(-1).equal(),width:v(f).add(v(h).mul(2)).equal(),height:v(f).add(v(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:f,height:f,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${fe(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` 2 inset-inline-start ${n}, 3 inset-block-start ${n}, 4 width ${n}, 5 height ${n}, 6 box-shadow ${n}, 7 outline ${n} 8 `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:v(x).sub(f).div(2).add(s).mul(-1).equal(),insetBlockStart:v(x).sub(f).div(2).add(s).mul(-1).equal(),width:v(x).add(v(s).mul(2)).equal(),height:v(x).add(v(s).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${fe(s)} ${S}`,outline:`6px solid ${y}`,width:x,height:x,insetInlineStart:e.calc(f).sub(x).div(2).equal(),insetBlockStart:e.calc(f).sub(x).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${fe(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` 9 ${t}-dot 10 `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:f,height:f,boxShadow:`0 0 0 ${fe(h)} ${k}`,insetInlineStart:0,insetBlockStart:0},[` 11 ${t}-mark-text, 12 ${t}-dot 13 `]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}})}},Ft=(e,t)=>{const{componentCls:o,railSize:r,handleSize:i,dotSize:u,marginFull:m,calc:c}=e,k=t?"paddingBlock":"paddingInline",v=t?"width":"height",f=t?"height":"width",x=t?"insetBlockStart":"insetInlineStart",S=t?"top":"insetInlineStart",y=c(r).mul(3).sub(i).div(2).equal(),h=c(i).sub(r).div(2).equal(),s=t?{borderWidth:`${fe(h)} 0`,transform:`translateY(${fe(c(h).mul(-1).equal())})`}:{borderWidth:`0 ${fe(h)}`,transform:`translateX(${fe(e.calc(h).mul(-1).equal())})`};return{[k]:r,[f]:c(r).mul(3).equal(),[`${o}-rail`]:{[v]:"100%",[f]:r},[`${o}-track,${o}-tracks`]:{[f]:r},[`${o}-track-draggable`]:Object.assign({},s),[`${o}-handle`]:{[x]:y},[`${o}-mark`]:{insetInlineStart:0,top:0,[S]:c(r).mul(3).add(t?0:m).equal(),[v]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[S]:r,[v]:"100%",[f]:r},[`${o}-dot`]:{position:"absolute",[x]:c(r).sub(u).div(2).equal()}}},Pr=e=>{const{componentCls:t,marginPartWithMark:o}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Ft(e,!0)),{[`&${t}-with-marks`]:{marginBottom:o}})}},Or=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Ft(e,!1)),{height:"100%"})}},Nr=e=>{const o=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,u=e.lineWidth+1*1.5,m=e.colorPrimary,c=new $t(m).setA(.2).toRgbString();return{controlSize:o,railSize:4,handleSize:o,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:u,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:m,handleActiveOutlineColor:c,handleColorDisabled:new $t(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBg
13ContainerDisabled}},Tr=ir("Slider",e=>{const t=sr(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Dr(t),Pr(t),Or(t)]},Nr);function at(){const[e,t]=a.useState(!1),o=a.useRef(null),r=()=>{Ve.cancel(o.current)},i=u=>{r(),u?t(u):o.current=Ve(()=>{t(u)})};return a.useEffect(()=>r,[]),[e,i]}var Hr=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(o[r[i]]=e[r[i]]);return o};function Br(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}const Fr=Pe.forwardRef((e,t)=>{const{prefixCls:o,range:r,className:i,rootClassName:u,style:m,disabled:c,tooltipPrefixCls:k,tipFormatter:v,tooltipVisible:f,getTooltipPopupContainer:x,tooltipPlacement:S,tooltip:y={},onChangeComplete:h,classNames:s,styles:n}=e,d=Hr(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:l}=e,{getPrefixCls:p,direction:w,className:j,style:H,classNames:L,styles:I,getPopupContainer:P}=ur("slider"),R=Pe.useContext(dr),E=c??R,{handleRender:$,direction:z}=Pe.useContext(jr),W=(z||w)==="rtl",[X,g]=at(),[B,M]=at(),N=Object.assign({},y),{open:K,placement:le,getPopupContainer:Se,prefixCls:re,formatter:F}=N,D=K??f,U=(X||B)&&D!==!1,Y=Br(F,v),[ae,q]=at(),Q=_=>{h==null||h(_),q(!1)},ie=(_,Z)=>_||(Z?W?"left":"right":"top"),ve=p("slider",o),[be,ye,Ce]=Tr(ve),ke=he(i,j,L.root,s==null?void 0:s.root,u,{[`${ve}-rtl`]:W,[`${ve}-lock`]:ae},ye,Ce);W&&!d.vertical&&(d.reverse=!d.reverse),Pe.useEffect(()=>{const _=()=>{Ve(()=>{M(!1)},1)};return document.addEventListener("mouseup",_),()=>{document.removeEventListener("mouseup",_)}},[]);const me=r&&!D,se=$||((_,Z)=>{const{index:Ee}=Z,xe=_.props;function ce(ee,ne,et){var qe,He,Ue,Ye;et&&((He=(qe=d)[ee])===null||He===void 0||He.call(qe,ne)),(Ye=(Ue=xe)[ee])===null||Ye===void 0||Ye.call(Ue,ne)}const ue=Object.assign(Object.assign({},xe),{onMouseEnter:ee=>{g(!0),ce("onMouseEnter",ee)},onMouseLeave:ee=>{g(!1),ce("onMouseLeave",ee)},onMouseDown:ee=>{M(!0),q(!0),ce("onMouseDown",ee)},onFocus:ee=>{var ne;M(!0),(ne=d.onFocus)===null||ne===void 0||ne.call(d,ee),ce("onFocus",ee,!0)},onBlur:ee=>{var ne;M(!1),(ne=d.onBlur)===null||ne===void 0||ne.call(d,ee),ce("onBlur",ee,!0)}}),$e=Pe.cloneElement(_,ue),Re=(!!D||U)&&Y!==null;return me?$e:Pe.createElement(Ot,Object.assign({},N,{prefixCls:p("tooltip",re??k),title:Y?Y(Z.value):"",value:Z.value,open:Re,placement:ie(le??S,l),key:Ee,classNames:{root:`${ve}-tooltip`},getPopupContainer:Se||x||P}),$e)}),Ne=me?(_,Z)=>{const Ee=Pe.cloneElement(_,{style:Object.assign(Object.assign({},_.props.style),{visibility:"hidden"})});return Pe.createElement(Ot,Object.assign({},N,{prefixCls:p("tooltip",re??k),title:Y?Y(Z.value):"",open:Y!==null&&U,placement:ie(le??S,l),key:"tooltip",classNames:{root:`${ve}-tooltip`},getPopupContainer:Se||x||P,draggingDelete:Z.draggingDelete}),Ee)}:void 0,Te=Object.assign(Object.assign(Object.assign(Object.assign({},I.root),H),n==null?void 0:n.root),m),we=Object.assign(Object.assign({},I.tracks),n==null?void 0:n.tracks),ge=he(L.tracks,s==null?void 0:s.tracks);return be(Pe.createElement(Mr,Object.assign({},d,{classNames:Object.assign({handle:he(L.handle,s==null?void 0:s.handle),rail:he(L.rail,s==null?void 0:s.rail),track:he(L.track,s==null?void 0:s.track)},ge?{tracks:ge}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},I.handle),n==null?void 0:n.handle),rail:Object.assign(Object.assign({},I.rail),n==null?void 0:n.rail),track:Object.assign(Object.assign({},I.track),n==null?void 0:n.track)},Object.keys(we).length?{tracks:we}:{}),step:d.step,range:r,className:ke,style:Te,disabled:E,ref:t,prefixCls:ve,handleRender:se,activeHandleRender:Ne,onChangeComplete:Q})))}),_r={signal:{topbar:"Control how Signals are ranked by weighting revenue against customer demand.",body:"The priority score ranks your Signals by revenue and demand on a 0â100 scale. Pick a preset, or fine-tune the mix."},both:{topbar:"Control how Signals and Opportunities are ranked by weighting revenue against customer demand.",body:"The priority score ranks your Signals and Opportunities by revenue and demand on a 0â100 scale. Pick a preset, or fine-tune the mix."}},{GET_PRIORITY_WEIGHTS:Lr,UPDATE_PRIORITY_WEIGHTS:Wr}=Zt,Ar="#7c3aed",nt={revenue:30,demand:70},Ke="feedback",Nt=[{key:"revenue",label:"Revenue focused",revenue:70,demand:30,match:"gte"},{key:"demand",label:"Demand focused",revenue:30,demand:70,match:"lte",info:"Demand reflects either customer reach or feedback volume â you can customize which one below."},{key:"custom",label:"Custom",custom:!0}],Ir=(e,t)=>
13e.match==="gte"?t>=e.revenue:e.match==="lte"?t<=e.revenue:!1,ot={customers:{value:"customers",label:"Customer count",description:"Unique customers who submitted feedback"},feedback:{value:"feedback",label:"Feedback count",description:"Total feedback submissions"}},zr=({size:e=16})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:b.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M11.576 1.424a.6.6 0 0 1 .848 0l10.152 10.152a.6.6 0 0 1 0 .848L12.424 22.576a.6.6 0 0 1-.848 0L1.424 12.424a.6.6 0 0 1 0-.848zM12 7l4 4m-4-4l-4 4.167M12 7v9"})}),Tt=({size:e=14,className:t=""})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",className:t,children:b.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m6 9l6 6l6-6"})}),qr=({size:e=14})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:b.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{strokeLinecap:"round",d:"M12 11v5"}),b.jsx("circle",{cx:"12",cy:"7.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),ga=()=>{const e=Vt(),{subscription:t}=St(g=>g.subscription),{user:o}=St(g=>g.user),r=(t==null?void 0:t.planName)==="Starter",i=_r[Jt()?"both":"signal"],[u,m]=a.useState(!1),c=async()=>{m(!0);try{await tr({user:o})}finally{m(!1)}},[k,v]=a.useState(nt),[f,x]=a.useState(Ke),[S,y]=a.useState(null),[h,s]=a.useState(null),[n,d]=a.useState(!1),[l,p]=a.useState(!1);a.useEffect(()=>{(async()=>{var B;try{const M=await Et("GET",Lr()),N=(B=M==null?void 0:M.data)==null?void 0:B.data;if(N!=null&&N.priorityWeights){const K=N.demandSource??Ke;v(N.priorityWeights),y(N.priorityWeights),x(K),s(K),e(kt({priorityWeights:N.priorityWeights,demandSource:K}))}}catch(M){console.error("Failed to fetch priority weights",M)}})()},[e]);const w=r?nt:k,j=r?Ke:f,H=ot[j]??ot.customers,L=Nt.find(g=>!g.custom&&Ir(g,w.revenue)),I=L?L.key:"custom",P=S!==null&&(k.revenue!==S.revenue||k.demand!==S.demand||f!==h),R=g=>{v({revenue:g.revenue,demand:g.demand})},E=g=>v({revenue:g,demand:100-g}),$=g=>v({revenue:100-g,demand:g}),z=()=>{v(nt),x(Ke)},G=async()=>{var g;p(!0);try{const B=await Et("PUT",Wr(),{revenue:k.revenue,demand:k.demand,demandSource:f}),M=(g=B==null?void 0:B.data)==null?void 0:g.data;if(M!=null&&M.priorityWeights){const N=M.demandSource??Ke;v(M.priorityWeights),y(M.priorityWeights),x(N),s(N),e(kt({priorityWeights:M.priorityWeights,demandSource:N}))}Mt.success("Priority score weights saved.")}catch(B){console.error("Failed to save priority weights",B),Mt.error("Failed to save weights. Please try again.")}finally{p(!1)}},W={selectable:!0,selectedKeys:[j],items:Object.values(ot).map(g=>({key:g.value,label:g.label})),onClick:({key:g})=>x(g)},X=({heading:g,description:B,value:M,onChange:N})=>b.jsxs("div",{className:"flex items-start justify-between gap-6 py-2",children:[b.jsxs("div",{className:"flex w-[16rem] shrink-0 flex-col gap-y-0.5",children:[g,b.jsx("p",{className:"text-[12px] text-gray-500",children:B})]}),b.jsxs("div",{className:"flex flex-1 items-center gap-4",children:[b.jsx(Fr,{className:"flex-1",min:0,max:100,value:M,onChange:N,disabled:r,tooltip:{formatter:K=>`${K}%`}}),b.jsxs("span",{className:"w-12 text-right text-[14px] font-semibold text-gray-900",children:[M,b.jsx("span",{className:"text-gray-400",children:"%"})]})]})]});return b.jsx(vr,{theme:{token:{colorPrimary:Ar,colorPrimaryHover:"#6d28d9"}},children:b.jsx("div",{className:"w-full",children:b.jsxs("div",{className:"w-full flex flex-col items-center",children:[b.jsx(Qt,{title:"Prioritization",description:i.topbar,icon:b.jsx(zr,{size:18}),redirect:"https://docs.laneapp.co/prioritization"}),b.jsxs("div",{className:"w-[40rem] py-4",children:[b.jsx("h2",{className:"text-[16px] mb-2 pl-1",children:"Priority Score"}),b.jsx("h2",{className:"text-[14px] text-primary mb-4 pl-1",children:i.body}),b.jsxs(gr,{children:[b.jsx("div",{className:"flex gap-3",children:Nt.map(g=>{const B=I===g.key,M=B?`${w.revenue}% revenue · ${w.demand}% demand`:g.custom?"Set your own mix":`${g.revenue}% revenue · ${g.demand}% demand`;return b.jsxs("button",{type:"button",disabled:r,onClick:()=>g.custom?d(!0):R(g),className:`flex flex-1 flex-col rounded-lg border px-4 py-3 text-left transition-colors ${B?"border-[#7c3aed] bg-[#7c3aed0d]":"border-gray-200 hover:border-gray-300"} ${r?"cursor-not-allowed opacity-60":""}`,children:[b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("p",{className:"text-[14px] font-semibold text-gray-900",children:g.label}),g.info&&b.jsx(Bt,{title:g.info,children:b.jsx("span",{role:"button",tabIndex:-1,onClick:N=>N.stopPropagation(),className:"text-gray-400 transition-colors hover:text-gray-600",children:b.jsx(qr,{size:14})})})]}),b.jsx("p",{className:`mt-0.5 text-[12px] ${B?"text-[#7c3aed]":"text-gray-500"}`,children:M})]},g.key)})}),b.jsxs("div",{className:"mt-5 border-t border-gray-100 pt-4",children:[b.jsxs("div",{className:"flex items-center",children:[b.jsxs("button",{type:"button",onClick:()=>d(g=>!g),className:"flex items-center gap-2 text-gray-900",children:[b.jsx(Tt,{size:14,className:`transition-transform ${n?"":"-rotate-90"}`}),b.jsx("span",{className:"text-[14px] font-medium",children:"Customize weights"})]}),r&&b.jsx(er,{onClick:c,loading:u,label:"Upgrade to Pro"})]}),n&&b.jsxs("div",{className:"mt-3",children:[b.jsx("p",{className:"text-[12px] text-gray-400",children:"Revenue and demand always balance to 100%. Choose which metric defines demand."}),b.jsxs("div",{className:"mt-4",children:[X({heading:b.jsx("p",{className:"text-[13px] font-medium text-gray-800",children:"Revenue Impact"}),description:"Total revenue across all linked customers",value:w.revenue,onChange:E}),b.jsx("div",{className:"border-t border-gray-100"}),X({heading:b.jsx(fr,{menu:W,trigger:["click"],disabled:r,children:b.jsxs("button",{type:"button",disabled:r,className:"flex w-[8.5rem] items-center justify-between text-[13px] font-medium text-gray-800",children:[H.label,b.jsx(Tt,{size:12})]})}),description:H.description,value:w.demand,onChange:$})]}),b.jsxs("div",{className:"mt-1 flex items-center justify-between border-t border-gray-100 pt-3",children:[b.jsx("span",{className:"text-[13px] text-gray-500",children:"Weights stay balanced at 100% automatically."}),b.jsx("span",{className:"text-[13px] font-semibold text-green-600",children:"â 100%"})]})]})]}),b.jsxs("div",{className:"mt-3 flex items-center justify-between border-t border-gray-100 pt-3",children:[b.jsx(Rt,{type:"text",onClick:z,disabled:r,children:"Reset to defaults"}),!r&&P&&b.jsx(Rt,{type:"primary",loading:l,onClick:G,children:"Save"})]})]})]})]})})})};export{ga as default};
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.