1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63185],{15187:function(e,t,r){Promise.resolve().then(r.bind(r,14888)),Promise.resolve().then(r.bind(r,98087)),Promise.resolve().then(r.bind(r,47239)),Promise.resolve().then(r.t.bind(r,88003,23)),Promise.resolve().then(r.t.bind(r,36056,23)),Promise.resolve().then(r.t.bind(r,83900,23)),Promise.resolve().then(r.bind(r,42817)),Promise.resolve().then(r.bind(r,22193)),Promise.resolve().then(r.bind(r,99088)),Promise.resolve().then(r.bind(r,44435)),Promise.resolve().then(r.bind(r,64703)),Promise.resolve().then(r.t.bind(r,69268,23)),Promise.resolve().then(r.bind(r,7840))},42817:function(e,t,r){"use strict";r.d(t,{NuqsProvider:function(){return o}});var n=r(57437),s=r(84226);function o(e){let{children:t}=e;return(0,n.jsx)(s.Y,{children:t})}},51894:function(e,t,r){"use strict";r.d(t,{Ol:function(){return d},SZ:function(){return m},Zb:function(){return u},aY:function(){return x},eW:function(){return f},ll:function(){return c}});var n=r(57437),s=r(23882),o=r(90535),i=r(2265);let a=(0,o.j)("rounded-md",{variants:{variant:{filled:"bg-card text-card-foreground border-none",outline:"bg-background text-foreground border",dark:"bg-background text-foreground border bg-gray-950"}},defaultVariants:{variant:"outline"}}),l=(0,i.createContext)({variant:null,size:"default"}),u=(0,i.forwardRef)((e,t)=>{let{className:r,variant:o,size:i="default",...u}=e;return(0,n.jsx)(l.Provider,{value:{variant:null!=o?o:"outline",size:i},children:(0,n.jsx)("div",{ref:t,className:(0,s.cn)(a({variant:o}),r),...u})})});u.displayName="Card";let d=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{size:a}=(0,i.useContext)(l);return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col","sm"===a?"space-y-1 p-3":"space-y-1.5 p-6",r),...o})});d.displayName="CardHeader";let c=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{size:a}=(0,i.useContext)(l);return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight","sm"===a?"text-sm font-normal":"",r),...o})});c.displayName="CardTitle";let m=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{size:a}=(0,i.useContext)(l);return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("text-muted-foreground","sm"===a?"text-xs":"text-sm",r),...o})});m.displayName="CardDescription";let x=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{size:a}=(0,i.useContext)(l);return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("sm"===a?"p-3 pt-2":"p-6 pt-0",r),...o})});x.displayName="CardContent";let f=(0,i.forwardRef)((e,t)=>{let{className:r,...o}=e,{size:a}=(0,i.useContext)(l);return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center","sm"===a?"p-3 pt-2":"p-6 pt-0",r),...o})});f.displayName="CardFooter"},22193:function(e,t,r){"use strict";r.d(t,{Toaster:function(){return d}});var n=r(57437),s=r(92934),o=r(49322),i=r(76865),a=r(33245),l=r(51817),u=r(14438);function d(e){let{...t}=e;return(0,n.jsx)(u.x7,{icons:{success:(0,n.jsx)(s.Z,{className:"h-5 w-5 fill-green-400 text-black"}),error:(0,n.jsx)(o.Z,{className:"h-5 w-5 fill-red-400 text-black"}),warning:(0,n.jsx)(i.Z,{className:"h-5 w-5 fill-yellow-400 text-black"}),info:(0,n.jsx)(a.Z,{className:"h-5 w-5 fill-gray-400 text-black"}),loading:(0,n.jsx)(l.Z,{className:"h-5 w-5 text-white animate-spin"})},theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-gray-950 group-[.toaster]:text-white group-[.toaster]:border group-[.toaster]:border-gray-600 group-[.toaster]:shadow-lg",description:"group-[.toast]:text-gray-400",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-white",cancelButton:"group-[.toast]:bg-gray-800 group-[.toast]:text-gray-300"}},...t})}},32482:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(57437),s=r(2265),o=r(23882);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("textarea",{className:(0,o.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...s})});i.displayName="Textarea"}
1,99088:function(e,t,r){"use strict";r.d(t,{ThemeProvider:function(){return o}});var n=r(57437),s=r(25922);function o(e){let{children:t,...r}=e;return(0,n.jsx)(s.f,{...r,children:t})}r(2265)},44435:function(e,t,r){"use strict";r.d(t,{ProviderFeedbackProvider:function(){return v},J:function(){return b}});var n=r(57437),s=r(29618),o=r(51894),i=r(7443),a=r(32482);let l={1:{value:1,label:"Poor",description:"Very unsatisfied with the experience"},2:{value:2,label:"Fair",description:"Below expectations"},3:{value:3,label:"Good",description:"Met expectations"},4:{value:4,label:"Very Good",description:"Exceeded expectations"},5:{value:5,label:"Excellent",description:"Outstanding experience"}},u=e=>{var t,r;return null!==(r=null===(t=l[e])||void 0===t?void 0:t.label)&&void 0!==r?r:""};var d=r(32489),c=r(86595),m=r(2265),x=r(29501),f=r(14438);function p(e){let{isVisible:t,onClose:r,onSubmit:l,isSubmitting:p=!1,instanceName:h,providerName:g,podId:b,clusterId:v,resourceType:N="pod",autoDismissDelay:w=8e3}=e,{control:y,handleSubmit:j,watch:k,reset:P,setValue:C,formState:{errors:T}}=(0,x.cI)({defaultValues:{rating:0,comment:""}}),R=k("rating"),S=k("comment"),I=(e,t)=>e<5||t,E=I(R,S.trim().length>0),Z=e=>{!p&&(V(),C("rating",e),I(e,S.trim().length>0)||(l(e,void 0),P()))},[z,F]=(0,m.useState)(0),[_,H]=(0,m.useState)(!1),M=(0,m.useRef)(null),O=(0,m.useRef)(null),V=()=>{H(!0),M.current&&(clearTimeout(M.current),M.current=null)};(0,m.useEffect)(()=>(t&&(P(),F(0),H(!1),M.current=setTimeout(()=>{r()},w)),()=>{M.current&&(clearTimeout(M.current),M.current=null)}),[t,P,r,w]);let Y=z>0?z:R;return(0,n.jsx)("div",{ref:O,className:"fixed bottom-4 right-4 z-50 transition-all duration-300 ease-in-out transform",style:{transform:t?"translateY(0) scale(1)":"translateY(100%) scale(0.95)",opacity:t?1:0},onMouseEnter:V,children:(0,n.jsx)("div",{className:"relative w-80 max-w-sm",onClick:V,children:(0,n.jsx)(o.Zb,{className:"bg-gray-800 border-gray-600 shadow-2xl rounded-lg",children:(0,n.jsx)(o.aY,{className:"p-4",children:(0,n.jsxs)("form",{onSubmit:j(e=>{if(e.rating>0){let t=e.comment.trim();l(e.rating,t||void 0),f.Am.success("Thank you for your feedback!"),P(),r()}}),children:[(0,n.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-base font-semibold text-white mb-1",children:"Rate your experience"}),g?(0,n.jsxs)("p",{className:"text-sm text-muted-foreground",children:["How was your experience with"," ",(0,n.jsx)("span",{className:"font-medium text-white",children:g}),"?"]}):null]}),(0,n.jsx)(s.z,{type:"button",variant:"ghost",size:"sm",onClick:()=>{P(),r()},className:"text-muted-foreground hover:text-foreground hover:bg-gray-700 h-6 w-6 p-0 flex-shrink-0 mt-0.5",disabled:p,children:(0,n.jsx)(d.Z,{className:"h-4 w-4"})})]}),(0,n.jsx)("div",{className:"text-center mb-3",children:(0,n.jsx)(x.Qr,{name:"rating",control:y,rules:{required:"Please select a rating"},render:e=>{let{field:t}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex justify-center gap-1 mb-2",children:Array.from({length:5},(e,t)=>t+1).map(e=>(0,n.jsx)(s.z,{type:"button",variant:"ghost",size:"sm",onClick:()=>Z(e),onMouseEnter:()=>F(e),onMouseLeave:()=>F(0),className:"p-1 h-9 w-9",disabled:p,children:(0,n.jsx)(c.Z,{className:"h-7 w-7 ".concat(e<=Y?"text-purple-400 fill-purple-400":"text-muted-foreground hover:text-purple-300")})},e))}),(0,n.jsx)("p",{className:"text-xs text-white font-normal h-4",children:Y>0?u(Y):""}),T.rating&&(0,n.jsx)("p",{className:"text-xs text-red-400 mt-1",children:T.rating.message})]})}})}),(0,n.jsxs)("div",{className:"transition-all duration-300 ease-in-out overflow-hidden",style:{maxHeight:E?"200px":"0px",opacity:E?1:0,marginBottom:E?"12px":"0px"},children:[(0,n.jsx)(i._,{htmlFor:"floating-rating-comment",className:"text-sm font-medium text-muted-foreground mb-1 block",children:"How can we improve?"}),(0,n.jsx)(x.Qr,{name:"comment",control:y,render:e=>{let{field:t}=e;return(0,n.jsx)(a.g,{...t,id:"floating-rating-comment",placeholder:"Share your thoughts...",rows:2,className:"resize-none focus-visible:ring-purple-500 focus-visible:border-purple-500",disabled:p})}})]}),(0,n.jsx)("div",{className:"transition-all duration-300 ease-in-out overflow-hidden",style:{maxHeight:E?"50px":"0px",opacity:E?1:0},children:(0,n.jsx)(s.z,{type:"submit",disabled:0===R||p,className:"w-full",children:p?"Submitting...":"Submit"})})]})})})})})}var h=r(7840);let g=(0,m.createContext)(void 0);function b(){let e=(0,m.useContext)(g);if(!e)throw Error("useProviderFeedback must be used within a ProviderFeedbackProvider");return e}function v(e){let{children:t}=e,[r,s]=(0,m.useState)(null),[o,i]=(0,m.useState)(!1),{mutate:a}=h.h.providerFeedback.submitRating.useMutation({onSuccess:()=>{s(null),i(!1)},onError:e=>{console.error("Failed to submit rating:",e),i(!1)}});return(0,n.jsxs)(g.Provider,{value:{showRating:e=>{s(e)},hideRating:e=>{s(t=>(null==t?void 0:t.id)===e?(i(!1),null):t)}},children:[t,(0,n.jsx)(p,{isVisible:!!r,onClose:()=>{r&&(s(null),i(!1))},onSubmit:(e,t)=>
1{r&&(i(!0),"pod"===r.resourceType&&r.podId?a({resourceType:"pod",podId:r.podId,rating:e,comment:t}):"cluster"===r.resourceType&&r.clusterId&&a({resourceType:"cluster",clusterId:r.clusterId,rating:e,comment:t}))},isSubmitting:o,instanceName:null==r?void 0:r.instanceName,providerName:null==r?void 0:r.providerName,podId:null==r?void 0:r.podId,clusterId:null==r?void 0:r.clusterId,resourceType:null==r?void 0:r.resourceType})]})}},69268:function(){}},function(e){e.O(0,[7405,27825,29851,61678,75378,3347,11561,29501,13402,43759,92971,52117,1744],function(){return e(e.s=15187)}),_N_E=e.O()}]); 2//# sourceMappingURL=layout-8a01a0c878d9eaf2.js.map
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.