PageSourceSearch

https://playground.pixazo.ai/static/js/5997.4f00f555.chunk.js

js pixazo.ai collected 2026-09-28 12:46:45 UTC 6,567 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkplayground_pixazo=self.webpackChunkplayground_pixazo||[]).push([[5997],{15997(e,t,r){r.r(t),r.d(t,{default:()=>d});var n=r(96540),a=r(13561),l=r(45249),o=(r(26833),r(44409)),s=r(94287);r(96540);var i=r(96540);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,s=[],i=!0,u=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(s.push(n.value),s.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const m=(0,n.lazy)(()=>r.e(3676).then(r.bind(r,1295)));function d(e){let t=e.open,r=e.onClose,c=e.onCreated;const d=function(e){let t="",r="",n="";if(e&&(t=(e.email||e.emailId||e.userEmail||"").toLowerCase(),r=e.first_name||"",n=e.last_name||"",!r)){const t=(e.userName||e.name||"").split(" ");r=t[0]||"",n=n||t.slice(1).join(" ")}if(!t){const e=(0,o.Ht)();if(e)try{const n="string"==typeof e?JSON.parse(e):e;t=n.email||n.emailId||n.userEmail||"",r=r||(n.name||n.userName||"").split(" ")[0]||""}catch(a){}}return t||(t=(0,s.getCookies)("emailId")||sessionStorage.getItem("emailId")||""),{email:t,firstname:r,lastname:n}}((0,a.d4)(e=>e.user.userInfo,a.bN)),b=d.email,f=d.firstname,p=d.lastname,y=u((0,n.useState)(""),2),g=y[0],x=y[1],v=u((0,n.useState)(""),2),h=v[0],w=v[1],E=u((0,n.useState)(!1),2),k=E[0],N=E[1],S=u((0,n.useState)(""),2),C=S[0],j=S[1];return(0,n.useEffect)(()=>{if(t){x(""),w(""),j(""),N(!1);const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[t]),(0,n.useEffect)(()=>{if(!t)return;const e=e=>{"Escape"!==e.key||k||r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,k,r]),t?i.createElement("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true"},i.createElement("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm",onClick:()=>!k&&r()}),i.createElement("div",{className:"relative w-full max-w-2xl bg-neutral-900 border border-neutral-800 rounded-2xl shadow-2xl max-h-[90vh] overflow-y-auto scrollbarY"},i.createElement("div",{className:"flex items-center justify-between px-6 py-5 border-b border-neutral-800"},i.createElement("h1",{className:"text-lg font-semibold text-white"},"Submit a request"),i.createElement("button",{onClick:()=>!k&&r(),className:"text-neutral-400 hover:text-white transition-colors p-1 rounded-lg hover:bg-neutral-800","aria-label":"Close"},i.createElement("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})))),i.createElement("form",{onSubmit:async function(e){if(e.preventDefault(),g.trim()&&function(e){if(!e)return!1;const t=(new DOMParser).parseFromString(e,"text/html");return!!t.body.textContent.trim()||!!t.body.querySelector("img,video")}(h)){N(!0),j("");try{const e=await(0,l.Z2)({firstname:f||b.split("@")[0],lastname:p||"",email:b,subject:g.trim(),body:(0,l.pn)(h)});if((null==e?void 0:e.success)||200===(null==e?void 0:e.status)||"string"==typeof(null==e?void 0:e.message)&&e.message.toLowerCase().includes("successfully"))c&&c(),r();else{const t=(null==e?void 0:e.message)||"",r=t.toLowerCase().includes("token")||t.toLowerCase().includes("auth");j(r?"Something went wrong. Please try again.":t||"Failed to create ticket.")}}catch(t){j((null==t?void 0:t.message)||"Something went wrong. Please try again.")}finally{N(!1)}}else j("Subject and description are required.")},className:"flex flex-col gap-5 px-6 py-6"},b&&i.createElement("div",null,i.createElement("label",{className:"block text-xs font-medium text-neutral-400 mb-1.5 uppercase tracking-wide"},"Your Email"),i.createElement("div",{className:"bg-neutral-950 border border-neutral-700 rounded-lg px-4 py-2.5 text-sm text-neutral-400"},b)),i.createElement("div",null,i.createElement("label",{className:"block text-xs font-medium text-neutral-400 mb-1.5 uppercase tracking-wide"},"Subject ",i.createElement("span",{className:"text-red-400 normal-case"},"*")),i.createElement("input",{type:"text",value:g,onChange:e=>x(e.target.value),placeholder:"Brief summary of your issue",maxLength:255,autoFocus:!0,className:"w-full bg-neutral-950 border border-neutral-700 rounded-lg px-4 py-2.5 text-sm text-white placeholder-neutral-500 focus:outline-none focus:border-lime-400/60 transition-colors"})),i.createElement("div",null,i.createElement("label",{className:"block text-xs font-medium text-neutral-400 mb-1.5 uppercase tracking-wide"},"Description ",i.createElement("span",{className:"text-red-400 normal-case"},"*")),i.createElement(n.Suspense,{fallback:i.createElement("div",{className:"h-48 rounded-xl border border-neutral-700 bg-neutral-950"})},i.createElement(m,{value:h,onChange:w,placeholder:"Describe your issue in detail. Include steps to reproduce, expected behavior, and any error messages.",minHeight:180}))),C&&i.createElement("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg px-4 py-3 text-sm text-red-400"},C),i.createElement("div",{className:"flex gap-3 pt-1"},i.createElement("button",{type:"button",onClick:()=>!k&&r(),className:"flex-1 py-2.5 rounded-xl border border-neutral-700 text-sm text-neutral-300 hover:bg-neutral-800 transition-colors"},"Cancel"),i.createElement("button",{type:"submit",disabled:k,className:"flex-1 py-2.5 rounded-xl bg-lime-400 text-neutral-900 text-sm font-semibold hover:bg-lime-300 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-2"},k?i.createElement(i.Fragment,null,i.createElement("div",{className:"w-4 h-4 border-2 border-neutral-900/30 border-t-neutral-900 rounded-full animate-spin"}),"Submitting..."):"Submit Ticket"))))):null}}}]);

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.