PageSourceSearch

https://www.patentexpress.com/_next/static/chunks/pages/search-6fc2f9cb442d3d7d.js

js patentexpress.com collected 2026-09-26 17:17:02 UTC 51,226 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{8044:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n(3775)}])},3775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Xe}});var s=n(4776),a=n.n(s),r=n(2322),l=n(2784),i=n(5632),o=n(7457),c=n(109),d=n(3470),x=n(6970),m=n(1385),p=n(8936),u=n(8978),h=n(5819),f=n(951),g=n(1407),b=n(6233);function v(e,t,n,s,a,r,l){try{var i=e[r](l),o=i.value}catch(c){return void n(c)}i.done?t(o):Promise.resolve(o).then(s,a)}var j=function(){var e,t=(0,l.useState)(""),n=t[0],s=t[1],i=(0,l.useState)(!1),j=i[0],w=i[1],y=(0,l.useState)(null),N=y[0],C=y[1],k=(0,m.F_)(),A=(0,p.j)(k.cartId,k.token),S=A.data,_=A.isLoading,L=A.error,P=(0,b.N)(),B=P.state,F=P.searchWithImage,E=P.resetSearch,D=B.isSearching,O=B.imageHash,M=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(t.name),w(!1),e.prev=2,e.next=5,F(t);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("Search failed:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[2,7]])})),function(){var t=this,n=arguments;return new Promise((function(s,a){var r=e.apply(t,n);function l(e){v(r,s,a,l,i,"next",e)}function i(e){v(r,s,a,l,i,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}(),z=!!O;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-full h-[80px] mb-[20px]"}),(0,r.jsx)("div",{className:"w-full z-20 bg-white flex justify-between fixed top-0",style:{boxShadow:"0px 4px 100px rgba(216, 216, 216, 0.25)"},children:(0,r.jsxs)("div",{className:"max-w-[1240px] mx-auto w-full px-5 py-3.5 flex justify-between items-center",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(o.D,{})}),(0,r.jsx)("div",{className:"hidden md:block flex-1 max-w-2xl mx-8",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex-1 relative flex items-center bg-white border border-grey-200 rounded-lg px-1.5 py-1.5",children:[(N||z)&&(0,r.jsxs)("div",{className:"flex items-center gap-1.5 bg-black-3A text-white rounded-md p-2 mr-2 shrink-0",children:[D?(0,r.jsx)(f.Z7b,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(u.bz6,{className:"w-4 h-4 fill-white"}),(0,r.jsx)("span",{className:"text-sm font-medium whitespace-nowrap",children:N?N.length>18?"".concat(N.slice(0,15),"..."):N:"1 File"}),(0,r.jsx)("button",{onClick:function(){C(null),E()},className:"ml-0.5 hover:opacity-80 flex items-center","aria-label":"Remove file",disabled:D,children:(0,r.jsx)("div",{className:"rounded-full bg-white p-0.5",children:(0,r.jsx)(h.QAE,{className:"w-4 h-4 fill-grey-600"})})})]}),(0,r.jsx)("input",{type:"text",onClick:function(){return w(!0)},value:n,onChange:function(e){return s(e.target.value)},placeholder:z?"":"Upload an image to search...",className:"flex-1 outline-none text-black-3A placeholder-grey-400 py-1",readOnly:!z})]}),(0,r.jsx)(x.z,{variant:"outline",color:"primary",className:"px-6 py-2.5",type:"button",onClick:function(){return w(!0)},disabled:D,children:D?(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)(f.Z7b,{className:"w-4 h-4 animate-spin"}),"Searching..."]}):"Search image"})]})}),(0,r.jsxs)("div",{className:"flex items-center space-x-3 sm:space-x-4",children:[(0,r.jsx)("button",{type:"button",onClick:function(){return w(!0)},disabled:D,"aria-label":"Search image",className:"md:hidden flex items-center justify-center w-9 h-9 rounded-lg border border-grey-200 text-black-3A disabled:opacity-60",children:D?(0,r.jsx)(f.Z7b,{className:"w-4 h-4 animate-spin"}):(0,r.jsx)(u.U41,{className:"w-4 h-4"})}),(0,r.jsx)(c.W,{isLoading:_,cartItems:(null===S||void 0===S||null===(e=S.body)||void 0===e?void 0:e.order_items)||[],cartFetchFailed:L||!1}),(0,r.jsx)(d.T,{})]})]})}),(0,r.jsx)(g.Z,{isOpen:j,onClose:function(){return w(!1)},onSubmit:M,isLoading:D})]})},w=n(1914),y=function(e){var t=e.className,n=void 0===t?"w-6 h-6":t;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:n,children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C12.9193 19 13.8295 18.8189 14.6788 18.4672C15.5281 18.1154 16.2997 17.5998 16.9497 16.9497C17.5998 16.2997 18.1154 15.5281 18.4672 14.6788C18.8189 13.8295 19 12.9193 19 12C19 11.0807 18.8189 10.1705 18.4672 9.32122C18.1154 8.47194 17.5998 7.70026 16.9497 7.05025C16.2997 6.40024 15.5281 5.88463 14.6788 5.53284C13.8295 5.18106 12.9193 5 12 5C10.1435 5 8.36301 5.7375 7.05025 7.05025C5.7375 8.36301 5 10.1435 5 12C5 13.856
15 5.7375 15.637 7.05025 16.9497C8.36301 18.2625 10.1435 19 12 19ZM10.087 7.38C10.6935 7.12899 11.3436 6.99986 12 7C12.1326 7 12.2598 6.94732 12.3536 6.85355C12.4473 6.75979 12.5 6.63261 12.5 6.5C12.5 6.36739 12.4473 6.24021 12.3536 6.14645C12.2598 6.05268 12.1326 6 12 6C10.4087 6 8.88258 6.63214 7.75736 7.75736C6.63214 8.88258 6 10.4087 6 12C6 12.1326 6.05268 12.2598 6.14645 12.3536C6.24021 12.4473 6.36739 12.5 6.5 12.5C6.63261 12.5 6.75979 12.4473 6.85355 12.3536C6.94732 12.2598 7 12.1326 7 12C6.99992 11.0109 7.29317 10.0441 7.84266 9.22171C8.39215 8.39934 9.1732 7.75841 10.087 7.38Z",fill:"#09ABAB"}),(0,r.jsx)("path",{d:"M20.5 20.5L17 17",stroke:"#3F3737",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M11 19.5C15.6944 19.5 19.5 15.6944 19.5 11C19.5 6.30558 15.6944 2.5 11 2.5C6.30558 2.5 2.5 6.30558 2.5 11C2.5 15.6944 6.30558 19.5 11 19.5Z",stroke:"#3F3737",strokeWidth:"1.5"})]})};var N=function(e){var t=e.onFiltersToggle,n=e.filtersOpen,s=void 0!==n&&n,a=(0,b.N)().state,l=a.totalResults,i=a.isSearching,o=a.imageHash,c=a.results&&a.results.length>0,d=i?{text:"Searching for similar patents",icon:(0,r.jsx)(y,{className:"w-6 h-6 animate-pulse"})}:c?{text:"".concat(l.toLocaleString()," Designs Matched Your Search"),icon:(0,r.jsx)(y,{className:"w-6 h-6"})}:{text:"Upload an image to search",icon:null};return(0,r.jsxs)("div",{className:"w-full bg-[#FDFDFD]",children:[(0,r.jsxs)("div",{className:"max-w-[1240px] mx-auto px-4 md:px-5 py-3 md:py-4 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3 sm:gap-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-black-3A font-bold text-sm md:text-base",children:d.text}),d.icon]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 flex-wrap",children:[o&&(0,r.jsx)(x.z,{type:"button",variant:s?"fill":"outline",color:s?"primary":"dark",className:"px-3 md:px-4 py-1.5 md:py-2 text-xs md:text-sm",onClick:t,children:(0,r.jsxs)("span",{className:"flex items-center gap-1.5 md:gap-2",children:[(0,r.jsx)("span",{className:"hidden sm:inline",children:s?"Hide Filters":"All Filters"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Filters"}),(0,r.jsx)(w.Lop,{className:"w-3.5 h-3.5 md:w-4 md:h-4"})]})}),(0,r.jsx)(x.z,{variant:"fill",color:"primary",className:"px-3 md:px-4 py-1.5 md:py-2 text-xs md:text-sm",disabled:!c,onClick:function(){o&&window.open("/ai-analysis?h=".concat(o),"_blank","noopener,noreferrer")},children:(0,r.jsxs)("span",{className:"flex items-center gap-1.5 md:gap-2",children:[(0,r.jsx)("span",{className:"sm:inline",children:"AI Analysis"}),(0,r.jsx)(w.kZR,{className:"w-3 h-3 flex-shrink-0"})]})})]})]}),(0,r.jsxs)("div",{className:"max-w-[1240px] mx-auto px-4 md:px-5 pt-3 md:pt-4 pb-6 md:pb-0",children:[(0,r.jsxs)("h2",{className:"text-black-3A font-bold text-base md:text-xl",children:["Explore, ",(0,r.jsx)("span",{className:"text-primary",children:"Analyze"}),", and Protect Your Design with Precision"]}),(0,r.jsx)("p",{className:"text-sm md:text-base text-black-3A mb-4 md:mb-6 max-w-2xl",children:"Explore verified design patents, gain insights, and make informed decisions before you file"}),(0,r.jsx)("div",{className:"text-secondary w-fit bg-[#FFF6F5] px-3 md:px-4 py-1.5 md:py-2 rounded-lg font-bold text-sm md:text-base",children:"#1 Top Design Patent Search Engine"})]})]})},C=n(8799),k=n(8732),A=n(158),S=n(1593),_=n(1464),L=n(3529),P=n(19);const B=(0,l.createContext)(!1),F=B.Provider;function E({children:e,openDelay:t=0,closeDelay:n=0}){return l.createElement(F,{value:!0},l.createElement(P.e0,{delay:{open:t,close:n}},e))}E.displayName="@mantine/core/TooltipGroup";var D=n(1319),O=Object.defineProperty,M=Object.defineProperties,z=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,W=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||(t={}))R.call(t,n)&&W(e,n,t[n]);if(I)for(var n of I(t))T.call(t,n)&&W(e,n,t[n]);return e};function H(e,t){if(!t)return{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[9],color:e.white};const n=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}var Y=(0,D.k)(((e,{color:t,radius:n,width:s,multiline:a})=>{return{tooltip:(r=Z(Z({},e.fn.fontStyles()),H(e,t)),l={lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(n),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:a?"unset":"nowrap",pointerEvents:"none",width:s},M(r,z(l))),arrow:{backgroundColor:"inherit",border:0,zIndex:1}};var r,l}));const U="Tooltip component children should be an element or a component that accepts ref, fragments, str
1ings, numbers and other primitive values are not supported";var G=n(189),q=n(771);var V=n(8137),X=n(1040),K=Object.defineProperty,Q=Object.defineProperties,$=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t)=>{for(var n in t||(t={}))ee.call(t,n)&&ne(e,n,t[n]);if(J)for(var n of J(t))te.call(t,n)&&ne(e,n,t[n]);return e},ae=(e,t)=>Q(e,$(t));const re={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:(0,_.w)("popover")};function le(e){var t;const n=(0,L.N4)("TooltipFloating",re,e),{children:s,refProp:a,withinPortal:r,style:i,className:o,classNames:c,styles:d,unstyled:x,radius:m,color:p,label:u,offset:h,position:f,multiline:g,width:b,zIndex:v,disabled:j}=n,w=((e,t)=>{var n={};for(var s in e)ee.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&J)for(var s of J(e))t.indexOf(s)<0&&te.call(e,s)&&(n[s]=e[s]);return n})(n,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:y,x:N,y:C,opened:k,boundaryRef:_,floating:B,setOpened:F}=function({offset:e,position:t}){const[n,s]=(0,l.useState)(!1),a=(0,l.useRef)(),{x:r,y:i,reference:o,floating:c,refs:d,update:x,placement:m}=(0,P.YF)({placement:t,middleware:[(0,G.uY)({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=m.includes("right")?e:t.includes("left")?-1*e:0,u=m.includes("bottom")?e:t.includes("top")?-1*e:0,h=(0,l.useCallback)((({clientX:e,clientY:t})=>{o({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+p,top:t+u,right:e,bottom:t})})}),[o]);return(0,l.useEffect)((()=>{if(d.floating.current){const e=a.current;e.addEventListener("mousemove",h);const t=(0,q.Kx)(d.floating.current);return t.forEach((e=>{e.addEventListener("scroll",x)})),()=>{e.removeEventListener("mousemove",h),t.forEach((e=>{e.removeEventListener("scroll",x)}))}}}),[o,d.floating,x,h,n]),{handleMouseMove:h,x:r,y:i,opened:n,setOpened:s,boundaryRef:a,floating:c}}({offset:h,position:f}),{classes:E,cx:D}=Y({radius:m,color:p,multiline:g,width:b},{name:"Tooltip",classNames:c,styles:d,unstyled:x});if(!(0,A.k)(s))throw new Error(U);const O=(0,S.Y)(_,s.ref);return l.createElement(l.Fragment,null,l.createElement(V.q,{withinPortal:r},l.createElement(X.x,ae(se({},w),{ref:B,className:D(E.tooltip,o),style:ae(se({},i),{zIndex:v,display:k&&!j?"block":"none",top:null!=C?C:"",left:null!=(t=Math.round(N))?t:""})}),u)),(0,l.cloneElement)(s,ae(se({},s.props),{[a]:O,onMouseEnter:e=>{var t,n;null==(n=(t=s.props).onMouseEnter)||n.call(t,e),y(e),F(!0)},onMouseLeave:e=>{var t,n;null==(n=(t=s.props).onMouseLeave)||n.call(t,e),F(!1)}})))}le.displayName="@mantine/core/TooltipFloating";var ie=n(298),oe=n(5227),ce=n(9584);function de(e){const[t,n]=(0,l.useState)(!1),s="boolean"===typeof e.opened?e.opened:t,a=(0,l.useContext)(B),r=(0,ie.M)(),{delay:i,currentId:o,setCurrentId:c}=(0,P.tj)(),d=(0,l.useCallback)((e=>{n(e),e&&c(r)}),[c,r]),{x:x,y:m,reference:p,floating:u,context:h,refs:f,update:g,placement:b}=(0,P.YF)({placement:e.position,open:s,onOpenChange:d,middleware:[(0,G.cv)(e.offset),(0,G.uY)({padding:8}),(0,G.RR)()]}),{getReferenceProps:v,getFloatingProps:j}=(0,P.NI)([(0,P.XI)(h,{enabled:e.events.hover,delay:a?i:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),(0,P.KK)(h,{enabled:e.events.focus,keyboardOnly:!0}),(0,P.qs)(h,{role:"tooltip"}),(0,P.bQ)(h,{enabled:void 0===typeof e.opened}),(0,P.Qu)(h,{id:r})]);(0,ce.L)({opened:s,positionDependencies:e.positionDependencies,floating:{refs:f,update:g}}),(0,oe.l)((()=>{var t;null==(t=e.onPositionChange)||t.call(e,b)}),[b]);return{x:x,y:m,reference:p,floating:u,getFloatingProps:j,getReferenceProps:v,isGroupPhase:s&&o&&o!==r,opened:s,placement:b}}var xe=n(8102),me=n(527),pe=n(4253),ue=Object.defineProperty,he=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,je=(e,t,n)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))be.call(t,n)&&je(e,n,t[n]);if(ge)for(var n of ge(t))ve.call(t,n)&&je(e,n,t[n]);return e};const ye={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:(0,_.w)("popover"),positionDependencies:[]},Ne=(0,l.forwardRef)(((e,t)=>{const n=(0,L.N4)("Tooltip",ye,e),{children:s,position:a,refProp:r,label:i,openDelay:o,closeDelay:c,onPositionChange:d,opened:x,withinPortal:m,radius:p,color:u,classNames:h,styles:f,unstyled:g,style:b,className:v,withArrow:j,arrowSize:w,arrowOffset:y,offset:N,transition:C,transitionDuration:k,multiline:_,width:P,events:B,zIndex:F,disabled:E,positionDependencies:D,onClick:O,onMouseEnter:M,onMouseLeave:z}=n,I=((e,t)=>{var n={};for(var s in e)be.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&ge)for(var s of ge(e))t.indexOf(s)<0&&ve.call(e,s)&&(n[s]=e[s]);return n})(n,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:R,cx:T,theme:W}=Y({radius:p,color:u,width:P,multiline:_},{name:"Tooltip",classNames:h,styles:f,unstyled:g}),Z=de({position:(0,xe._)(W.dir,a),closeDelay:c,openDelay:o,onPositionChange:d,opened:x,events:B,offset:N+(j?w/2:0),positionDependencies:[...D,s]});if(!(0,A.k)(s))throw new Error(U);const H=(0,S.Y)(Z.reference,s.ref,t);return l.createElement(l.Fragment,null,l.createElement(V.q,{withinPortal:m},l.createElement(me.u,{mounted:!E&&Z.opened,transition:C,duration:Z.isGroupPhase?10:k},(e=>{var t,n,s,a;return l.createElement(X.x,we(we({},I),Z.getFloatingProps({ref:Z.floating,className:R.tooltip,style:(s=we(we({},b),e),a={zIndex:F,top:null!=(t=Z.y)?t:"",left:null!=(n=Z.x)?n:""},he(s,fe(a)))})),i,l.createElement(pe.Y,{visible:j,withBorder:!1,position:Z.placement,arrowSize:w,arrowOffset:y,className:R.arrow}))}))),(0,l.cloneElement)(s,Z.getReferenceProps(we({onClick:O,onMouseEnter:M,onMouseLeave:z,[r]:H,className:T(v,s.props.className)},s.props))))}));
1Ne.Group=E,Ne.Floating=le,Ne.displayName="@mantine/core/Tooltip";const Ce=Ne;var ke=function(e){var t=e.domain,n=e.classCodes;if(!t||!n.length)return null;var s=n.join(", ");return(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-[#09ABAB]/30 bg-[#09ABAB]/10 px-2 py-1 text-[10px] md:text-[11px] text-[#1F2933]",children:[(0,r.jsx)("span",{className:"font-semibold text-[#09ABAB]",children:t}),(0,r.jsx)("span",{className:"h-3 w-px bg-[#09ABAB]/40"}),(0,r.jsx)("span",{className:"max-w-[160px] md:max-w-[220px] truncate",children:s})]})};function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,r=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(s=n.next()).done)&&(r.push(s.value),!t||r.length!==t);l=!0);}catch(o){i=!0,a=o}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return r}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(e,t)}(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 _e(e){if(!e)return"N/A";var t=new Date(1e3*e),n=String(t.getDate()).padStart(2,"0"),s=String(t.getMonth()+1).padStart(2,"0"),a=t.getFullYear();return"".concat(n,".").concat(s,".").concat(a)}var Le=function(e){var t=e.patent,n=(0,l.useState)(!1),s=n[0],a=n[1],i=t.patent_number,o=t.patent_type,c=t.invention_title,d=t.patent_status,x=t.publication_date,m=t.application_date,p=t.inventors,h=t.assignees,f=t.score,g=(t.confidence,t.cpc_classifications),b=t.forward_citation,v=t.backward_citation,j=function(){var e=new Map;return(g||[]).forEach((function(t){(t.classes||[]).forEach((function(t){var n,s=null===(n=t.class_code)||void 0===n?void 0:n.trim(),a=function(e){if(!e)return"";var t=e.split(";").map((function(e){return e.trim()})).filter(Boolean).join(" ")||"";return t?t.split(/\s+/).filter(Boolean).map((function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join(" "):""}(t.domain);s&&a&&(e.has(a)||e.set(a,new Set),e.get(a).add(s))}))})),Array.from(e.entries()).map((function(e){var t=Se(e,2),n=t[0],s=t[1];return{domain:n,classCodes:Array.from(s).sort()}}))}(),w=(0,k.FH)(f);return(0,r.jsxs)("a",{href:"/design-patent/".concat(i),rel:"noopener noreferrer",className:"group block w-full bg-[#FDFDFD] py-3 md:py-4 pt-0 cursor-pointer",children:[(0,r.jsx)("div",{className:"mb-2",children:(0,r.jsx)("h2",{className:"text-[14px] md:text-[16px] font-bold text-[#3F3737] leading-[133%]",children:c})}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 md:gap-6 items-start",children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-full sm:w-auto self-stretch",children:(0,r.jsx)("div",{className:"relative w-full sm:w-32 h-48 sm:h-full border border-gray-200 rounded overflow-hidden",children:(0,r.jsx)("img",{src:"".concat("https://images.patentexpress.com","/design-thumbnail/").concat(i,".png"),alt:c,className:"absolute inset-0 w-full h-full object-contain p-2"})})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0 space-y-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2 flex-wrap leading-5 md:leading-6",children:[(0,r.jsx)("span",{className:"text-[#09ABAB] group-hover:underline flex items-center gap-1 text-[12px] md:text-[13px] font-bold leading-5 md:leading-6",children:i}),(0,r.jsx)("span",{className:"text-gray-400 hidden sm:inline",children:"\u2022"}),p&&p.length>1?(0,r.jsxs)("div",{className:"relative inline-block",onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},children:[(0,r.jsx)("span",{onClick:function(e){return e.preventDefault()},className:"text-[#09ABAB] hover:underline text-[12px] md:text-[13px] font-medium leading-5 md:leading-6 cursor-pointer",children:(0,k.Mw)(p)}),s&&(0,r.jsx)("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-50 transition-opacity duration-200 ease-in-out",children:(0,r.jsxs)("div",{className:"bg-gray-900 text-white text-xs rounded-lg shadow-2xl py-3 px-4 border border-gray-700",children:[(0,r.jsx)("div",{className:"space-y-1.5",children:((null===p||void 0===p?void 0:p.map((function(e){return e.name})))||[]).map((function(e,t){return(0,r.jsx)("div",{className:"text-gray-100 text-[12px] leading-relaxed whitespace-nowrap",children:e},t)}))}),(0,r.jsx)("div",{className:"absolute top-full left-1/2 -translate-x-1/2 -mt-1.5",children:(0,r.jsx)("div",{className:"w-3 h-3 bg-gray-900 border-r border-b border-gray-700 rotate-45"})})]})})]}):(0,r.jsx)("span",{className:"text-[#09ABAB] text-[12px] md:text-[13px] font-medium leading-5 md:leading-6",children:(0,k.Mw)(p)}),(0,r.jsx)("span",{className:"text-gray-400 hidden sm:inline",children:"\u2022"}),(0,r.jsx)("span",{className:"text-[#09ABAB] text-[12px] md:text-[13px] font-medium leading-5 md:leading-6",children:(0,k.SQ)(h)})]}),(0,r.jsxs)("div",{className:"flex items-center gap-x-2 md:gap-x-4 gap-y-1 flex-wrap leading-5 md:leading-6",children:[(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] text-[#3A3A3A]",children:[(0,r.jsx)("span",{className:"font-bold",children:"Filing:"})," ",(0,r.jsx)("span",{className:"font-medium",children:_e(m)})]}),(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] text-[#3A3A3A]",children:[(0,r.jsx)("span",{className:"font-bold",children:"Grant:"})," ",(0,r.jsx)("span",{className:"font-medium",children:_e(x)})]}),(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] text-[#3A3A3A] hidden sm:inline",children:[(0,r.jsx)("span",{className:"font-bold",children:"Publication:"})," ",(0,r.jsx)("span",{className:"font-medium",children:_e(x)})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2 flex-wrap leading-5 md:leading-6 -mt-2",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1 md:gap-1.5 text-[11px] md:text-[13px] font-semibold text-[#909090] leading-5 md:leading-6",children:[(0,r.jsx)(u.gbA,{className:"text-[6px] md:text-[8px] ".concat({ACTIVE:"text-green-600",EXPIRED:"text-red-500",PENDING:"text-yellow-500",INACTIVE:"text-grey-400",UNKNOWN:"text-grey-400"}[d]||"text-grey-400")}),"ACTIVE"===d?"Granted":d]}),(0,r.jsx)("span",{className:"text-gray-400",children:"|"}),(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] font-semibold text-[#909090] leading-5 md:leading-6",children:[o," Patent"]}),(0,r.jsx)("span",{className:"text-gray-400 hidden sm:inline",children:"|"}),(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] font-semibold text-[#909090] leading-5 md:leading-6 hidden sm:inline",children:["Cited: ",b]}),(0,r.jsx)("span",{className:"text-gray-400 hidden sm:inline",children:"|"}),(0,r.jsxs)("span",{className:"text-[11px] md:text-[13px] font-semibold text-[#909090] leading-5 md:leading-6 hidden sm:inline",children:["Cited By: ",v]})]}),j.length>0&&(0,r.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1.5 md:gap-2",children:j.map((function(e){return(0,r.jsx)(ke,{domain:e.domain,classCodes:e.classCodes},e.domain)}))}),(0,r.jsxs)("div",{className:"text-[11px] md:text-[13px] text-[#3A3A3A] leading-5 md:leading-6 hidden sm:block",children:[(0,r.jsx)("span",{className:"font-bold",children:"Claim:"})," ",(0,r.jsxs)("span",{className:"font-medium",children:["The ornamental design for ",(null!==c&&void 0!==c?c:"").toLowerCase(),", as shown and described."]})]})]}),(0,r.jsx)("div",{className:"flex-shrink-0 w-full sm:w-auto",children:(0,r.jsxs)("div",{className:"bg-[#F6F6F6] rounded-lg px-3 md:px-4 py-2 md:py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 mb-1 md:mb-1.5",children:[(0,r.jsx)("span",{className:"text-[12px] md:text-[14px] font-bold text-[#3A3A3A] leading-5 md:leading-6 whitespace-nowrap",children:"Similarity Score"}),(0,r.jsx)(C.nfF,{size:14,className:"text-yellow-400 flex-shrink-0 ml-1 md:ml-2"}),(0,r.jsx)(Ce,{withArrow:!0,label:"The score is based on it's similarity with the design class.",children:(0,r.jsx)("div",{className:"flex items-center gap-1",children:(0,r.jsx)(C.Hfo,{size:10,
1className:"text-gray-400 flex-shrink-0 ml-2 md:ml-4"})})})]}),(0,r.jsxs)("div",{className:"text-[20px] md:text-[24px] font-bold text-[#3A3A3A] leading-normal mb-1 md:mb-1.5 whitespace-nowrap",children:[w,"%"]}),(0,r.jsx)("div",{className:"relative w-full h-[8px] md:h-[10px] bg-gray-200 rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full rounded-full",style:{width:"".concat(w,"%"),background:"linear-gradient(to right, #10b981 0%, #eab308 33%, #f97316 66%, #ef4444 100%)"}})})]})})]})]})};function Pe(e,t,n,s,a,r,l){try{var i=e[r](l),o=i.value}catch(c){return void n(c)}i.done?t(o):Promise.resolve(o).then(s,a)}function Be(e){return function(){var t=this,n=arguments;return new Promise((function(s,a){var r=e.apply(t,n);function l(e){Pe(r,s,a,l,i,"next",e)}function i(e){Pe(r,s,a,l,i,"throw",e)}l(void 0)}))}}var Fe=function(){return(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M2 6L5 9L10 2",stroke:"#09ABAB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ee=function(e){var t=e.direction;return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"desc"===t?"rotate-180":"",children:(0,r.jsx)("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#3A3A3A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},De=function(){return(0,r.jsx)("svg",{width:"10",height:"20",viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M2 4L5 7L8 4",stroke:"#3A3A3A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},Oe=function(){return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M7.33333 12.6667C10.2789 12.6667 12.6667 10.2789 12.6667 7.33333C12.6667 4.38781 10.2789 2 7.33333 2C4.38781 2 2 4.38781 2 7.33333C2 10.2789 4.38781 12.6667 7.33333 12.6667Z",stroke:"#D2D2D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14 14L11.1 11.1",stroke:"#D2D2D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},Me=function(e){var t=e.isOpen,n=e.onClose,s=(0,b.N)(),i=s.state,o=s.searchWithFilters,c=s.canSearch,d=i.facets,x=i.isSearching,m=i.activeFilters,p=(0,l.useState)(!0),u=p[0],h=p[1],f=(0,l.useState)(m.publication_date_from||""),g=f[0],v=f[1],j=(0,l.useState)(m.publication_date_to||""),w=j[0],y=j[1],N=(0,l.useState)(m.sort_by_score||null),C=N[0],k=N[1],A=(0,l.useState)(new Set(m.legal_status||[])),S=A[0],_=A[1],L=(0,l.useState)(new Set(m.cpc_codes||[])),P=L[0],B=L[1],F=(0,l.useState)(new Set(m.inventor_names||[])),E=F[0],D=F[1],O=(0,l.useState)(new Set(m.assignee_names||[])),M=O[0],z=O[1],I=(0,l.useState)(""),R=I[0],T=I[1],W=(0,l.useState)(""),Z=W[0],H=W[1];(0,l.useEffect)((function(){v(m.publication_date_from||""),y(m.publication_date_to||""),k(m.sort_by_score||null),_(new Set(m.legal_status||[])),B(new Set(m.cpc_codes||[])),D(new Set(m.inventor_names||[])),z(new Set(m.assignee_names||[]))}),[m]);var Y=function(e,t){var n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n},U=(0,l.useMemo)((function(){return(null===d||void 0===d?void 0:d.legal_status)?d.legal_status.map((function(e){return{value:e.status,label:e.status,count:e.count}})):[]}),[d]),G=(0,l.useMemo)((function(){return(null===d||void 0===d?void 0:d.cpc_codes)?d.cpc_codes.map((function(e){return{section:e.section,count:e.count||0,classes:e.classes}})):[]}),[d]),q=(0,l.useMemo)((function(){if(!(null===d||void 0===d?void 0:d.inventors))return[];var e=R.toLowerCase();return d.inventors.filter((function(t){return!e||t.name.toLowerCase().includes(e)})).slice(0,20)}),[d,R]),V=(0,l.useMemo)((function(){if(!(null===d||void 0===d?void 0:d.assignees))return[];var e=Z.toLowerCase();return d.assignees.filter((function(t){return!e||t.name.toLowerCase().includes(e)})).slice(0,20)}),[d,Z]),X=(0,l.useCallback)(function(){var e=Be(a().mark((function e(t){var n,s,r,l,i,d,x,m,p,u,h,f,b,v;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=2;break}return e.abrupt("return");case 2:return n={},r=null!==(s=t.legalStatus)&&void 0!==s?s:S,i=null!==(l=t.cpcCodes)&&void 0!==l?l:P,x=null!==(d=t.inventors)&&void 0!==d?d:E,p=null!==(m=t.assignees)&&void 0!==m?m:M,h=null!==(u=t.from)&&void 0!==u?u:g,b=null!==(f=t.to)&&void 0!==f?f:w,v=void 0!==t.sort?t.sort:C,r.size>0&&(n.legal_status=Array.from(r)),i.size>0&&(n.cpc_codes=Array.from(i)),x.size>0&&(n.inventor_names=Array.from(x)),p.size>0&&(n.assignee_names=Array.from(p)),h&&(n.publication_date_from=h),b&&(n.publication_date_to=b),v&&(n.sort_by_score=v),e.prev=23,e.next=26,o(n);case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(23),console.error("Failed to apply filters:",e.t0);case 31:case"end":return e.stop()}}),e,null,[[23,28]])})));return function(t){return e.apply(this,arguments)}}(),[c,o,S,P,E,M,g,w,C]),K=function(e){var t=C===e?null:e;k(t),X({sort:t})},Q=!!g||!!w||!!C||S.size>0||P.size>0||E.size>0||M.size>0,$=function(){var e=Be(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c&&Q){e.next=2;break}return e.abrupt("return");case 2:return v(""),y(""),k(null),_(new Set),B(new Set),D(new Set),z(new Set),T(""),H(""),e.prev=11,e.next=14,o({});case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(11),console.error("Failed to clear filters:",e.t0);case 19:case"end":return e.stop()}}),e,null,[[11,16]])})));return function(){return e.apply(this,arguments)}}();if(!t)return null;var J=(0,r.jsx)("button",{onClick:n,className:"lg:hidden text-gray-500 hover:text-gray-700 p-1 rounded-full hover:bg-gray-100 transition-colors","aria-label":"Close filters",children:(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ee=(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-[14px]",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("h2",{className:"text-black font-semibold text-[16px] md:text-[18px] leading-6",children:"Filters"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[Q&&(0,r.jsx)("button",{type:"button",onClick:$,disabled:x,className:"text-[#09ABAB] hover:underline text-[12px] md:text-[13px] font-semibold disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap",children:"Clear all"}),J]})]}),(0,r.jsxs)("div",{className:u?"pb-2":"",children:[(0,r.jsxs)("button",{onClick:function(){return h(!u)},className:"flex items-center justify-between w-full",children:[(0,r.jsx)("p",{className:"text-black font-bold text-[13px] md:text-[14px] leading-normal tracking-[-0.07px]",children:"Date Range"}),(0,r.jsx)("div",{className:"flex items-center justify-center w-[20px] h-[10px]",children:(0,r.jsx)("div",{className:u?"rotate-[270deg]":"rotate-90",children:(0,r.jsx)(De,{})})})]}),u&&(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("div",{className:"relative w-1/2",children:(0,r.jsx)("input",{type:"date",value:g,onChange:function(e){return t=e.target.value,v(t),void X({from:t});var t},className:"w-full h-8 border border-[#d0d0d0] rounded-lg px-2 py-1 text-[11px] md:text-[12px] text-black"})}),(0,r.jsx)("div",{className:"relative w-1/2",children:(0,r.jsx)("input",{type:"date",value:w,onChange:function(e){return t=e.target.value,y(t),void X({to:t});var t},className:"w-full h-8 border border-[#d0d0d0] rounded-lg px-2 py-1 text-[11px] md:text-[12px] text-black"})})]})})]}),U.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[(0,r.jsx)("p",{className:"text-black font-semibold text-[13px] md:text-[14px] leading-6",children:"Legal Status"}),(0,r.jsx)("div",{className:"flex flex-col gap-[5px] max-h-[140px] md:max-h-[160px] overflow-y-auto pr-4",children:U.map((function(e){return(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-[5px]",children:[(0,r.jsx)("span",{className:"text-black font-medium text-[11px] md:text-[12px] leading-6",children:e.label}),(0,r.jsxs)("span",{className:"text-[#09ABAB] font-medium text-[11px] md:text-[12px] leading-6",children:["(",e.count,")"]})]}),(0,r.jsx)("button",{onClick:function(){return function(e){var t=Y(S,e);_(t),X({legalStatus:t})}(e.value)},className:"w-[18px] h-[18px] border border-[#454545] rounded-[5px] flex items-center justify-center transition-colors ".concat(S.has(e.value)?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:S.has(e.value)&&(0,r.jsx)(Fe,{})})]},e.value)}))})]}),G.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[(0,r.jsx)("p",{className:"text-black font-semibold text-[13px] md:text-[14px] leading-6",children:"Design Classes"}),(0,r.jsx)("div",{className:"flex flex-col gap-[5px] max-h-[140px] md:max-h-[160px] overflow-y-auto pr-4",children:G.slice(0,10).map((function(e){return(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-[5px]",children:[(0,r.jsxs)("span",{className:"text-black font-medium text-[11px] md:text-[12px] leading-6",children:["Class ",e.section]}),(0,r.jsxs)("span",{className:"text-[#09ABAB] font-medium text-[11px] md:text-[12px] leading-6",children:["(",e.count,")"]})]}),(0,r.jsx)("button",{onClick:function(){return function(e){var t=Y(P,e);B(t),X({cpcCodes:t})}(e.section)},className:"w-[18px] h-[18px] border border-[#454545] rounded-[5px] flex items-center justify-center transition-colors ".concat(P.has(e.section)?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:P.has(e.section)&&(0,r.jsx)(Fe,{})})]},e.section)}))})]}),(0,r.jsx)("div",{className:"h-px bg-[#d0d0d0]"}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 md:gap-6",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,r.jsx)("p",{className:"text-black font-semibold text-[13px] md:text-[14px] leading-6",children:"Similarity Score"}),(0,r.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,r.jsxs)("button",{onClick:function(){return K("low_to_high")},className:"flex items-center justify-center gap-2 h-[28px] md:h-[30px] p-[4px] rounded-lg border border-[#d0d0d0] transition-colors ".concat("low_to_high"===C?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:[(0,r.jsx)("span",{className:"text-black font-semibold text-[11px] md:text-[12px] leading-6",children:"Low to High Score"}),(0,r.jsx)(Ee,{direction:"asc"})]}),(0,r.jsxs)("button",{onClick:function(){return K("high_to_low")},className:"flex items-center justify-center gap-2 h-[28px] md:h-[30px] p-[4px] rounded-lg border border-[#d0d0d0] transition-colors ".concat("high_to_low"===C?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:[(0,r.jsx)("span",{className:"text-black font-semibold text-[11px] md:text-[12px] leading-6",children:"High to Low Score"}),(0,r.jsx)(Ee,{direction:"desc"})]})]})]}),(0,r.jsx)("div",{className:"h-px bg-[#d0d0d0]"})]}),(null===d||void 0===d?void 0:d.inventors)&&d.inventors.length>0&&(0,r.jsx)("div",{className:"flex flex-col gap-4 md:gap-6",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("p",{className:"text-black font-semibold text-[13px] md:text-[14px] leading-6",children:"Inventor"}),E.size>0&&(0,r.jsxs)("span",{className:"text-[#FA6464] font-semibold text-[13px] md:text-[14px] leading-6",children:["(",E.size,")"]})]}),(0,r.jsxs)("div",{className:"bg-[#f9f9f9] border border-[#ebebeb] rounded-lg h-8 px-[11px] py-1 flex items-center gap-[6px]",children:[(0,r.jsx)(Oe,{}),(0,r.jsx)("input",{type:"text",placeholder:"Search",value:R,onChange:function(e){return T(e.target.value)},className:"flex-1 bg-transparent outline-none text-[11px] md:text-[12px] text-black placeholder:text-[#d2d2d2]"})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2 md:gap-3 max-h-[140px] md:max-h-[160px] overflow-y-auto pr-4",children:q.map((function(e){return(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-black font-medium text-[11px] md:text-[12px] leading-6 flex-1 truncate",title:e.name,children:e.name}),(0,r.jsx)("button",{onClick:function(){return function(e){var t=Y(E,e);D(t),X({inventors:t})}(e.name)},className:"w-[18px] h-[18px] border border-[#454545] rounded-[5px] flex-shrink-0 flex items-center justify-center transition-colors ".concat(E.has(e.name)?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:E.has(e.name)&&(0,r.jsx)(Fe,{})})]},e.name)}))})]})}),(null===d||void 0===d?void 0:d.assignees)&&d.assignees.length>0&&(0,r.jsx)("div",{className:"flex flex-col gap-4 md:gap-6",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("p",{className:"text-black font-semibold text-[13px] md:text-[14px] leading-6",children:"Assignee"}),M.size>0&&(0,r.jsxs)("span",{className:"text-[#FA6464] font-semibold text-[13px] md:text-[14px] leading-6",children:["(",M.size,")"]})]}),(0,r.jsxs)("div",{className:"bg-[#f9f9f9] border border-[#ebebeb] rounded-lg h-8 px-[11px] py-1 flex items-center gap-[6px]",children:[(0,r.jsx)(Oe,{}),(0,r.jsx)("input",{type:"text",placeholder:"Search",value:Z,onChange:function(e){return H(e.target.value)},className:"flex-1 bg-transparent outline-none text-[11px] md:text-[12px] text-black placeholder:text-[#d2d2d2]"})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2 md:gap-3 max-h-[140px] md:max-h-[160px] overflow-y-auto pr-4",children:V.map((function(e){return(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-black font-medium text-[11px] md:text-[12px] leading-6 flex-1 truncate",title:e.name,children:e.name}),(0,r.jsx)("button",{onClick:function(){return function(e){var t=Y(M,e);z(t),X({assignees:t})}(e.name)},className:"w-[18px] h-[18px] border border-[#454545] rounded-[5px] flex-shrink-0 flex items-center justify-center transition-colors ".concat(M.has(e.name)?"border-[#09ABAB] bg-[#09ABAB]/10":"bg-white"),children:M.has(e.name)&&(0,r.jsx)(Fe,{})})]},e.name)}))})]})})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 transition-opacity",onClick:n,"aria-hidden":"true"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 max-h-[90vh] overflow-y-auto bg-white rounded-t-2xl shadow-xl border border-b-0 border-[#d9d8d8] pb-6 md:pb-8 pt-4 px-4",onClick:function(e){return e.stopPropagation()},children:ee})]}),(0,r.jsx)("div",{className:"hidden lg:block bg-white border border-[#d9d8d8] rounded-[12px] pb-6 md:pb-[39px] pt-4 px-4 w-full lg:max-w-[249px]",children:ee})]})},ze=n(9097),Ie=n(9913),Re=n(8905),Te=n(7052),We=function(){return(0,r.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_8565_20822)",children:[(0,r.jsx)("path",{d:"M40.9811 18.7955C40.9811 23.302 39.1908 27.624 36.0042 30.8106C32.8176 33.9972 28.4956 35.7875 23.9891 35.7875C19.4825 35.7875 15.1605 33.9972 11.9739 30.8106C8.78729 27.624 6.99707 23.302 6.99707 18.7955C6.99707 14.2889 8.78729 9.96693 11.9739 6.78031C15.1605 3.59369 19.4825 1.80347 23.9891 1.80347C28.4956 1.80347 32.8176 3.59369 36.0042 6.78031C39.1908 9.96693 40.9811 14.2889 40.9811 18.7955Z",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.27044 27.1302L1.71387 40.2205L9.8773 38.0331L12.0682 46.1965L18.6236 34.8411M38.7287 27.1302L46.2853 40.2205L38.1184 38.0331L35.931 46.1965L29.3756 34.8411M24.6853 9.56906L27.027 14.2799C27.0779 14.3996 27.1602 14.5033 27.2652 14.58C27.3702 14.6566 27.4941 14.7034 27.6236 14.7153L32.8247 15.5039C32.9736 15.5229 33.1139 15.584 33.2292 15.68C33.3445 15.776 33.4301 15.9029 33.4758 16.0459C33.5215 16.1888 33.5255 16.3418 33.4873 16.4869C33.4491 16.632 33.3703 16.7632 33.2602 16.8651L29.4167 20.5131C29.3591 20.6218 29.3289 20.7431 29.3289 20.8662C
129.3289 20.9893 29.3591 21.1106 29.4167 21.2193L30.1539 26.3896C30.1859 26.5395 30.1735 26.6954 30.1183 26.8383C30.0631 26.9812 29.9675 27.105 29.8431 27.1944C29.7188 27.2839 29.571 27.3352 29.418 27.3421C29.2649 27.3489 29.1132 27.311 28.9813 27.2331L24.3527 24.7851C24.2331 24.7311 24.1034 24.7032 23.9722 24.7032C23.8409 24.7032 23.7112 24.7311 23.5916 24.7851L18.963 27.2331C18.8313 27.3089 18.6804 27.3451 18.5285 27.3372C18.3767 27.3293 18.2304 27.2777 18.1072 27.1886C17.984 27.0995 17.8892 26.9766 17.8342 26.8349C17.7793 26.6931 17.7664 26.5385 17.7973 26.3896L18.6682 21.2193C18.7059 21.0995 18.7132 20.9721 18.6892 20.8488C18.6653 20.7255 18.6109 20.61 18.531 20.5131L14.6944 16.8342C14.5913 16.7311 14.5188 16.6014 14.485 16.4596C14.4512 16.3177 14.4574 16.1693 14.5028 16.0307C14.5483 15.8922 14.6313 15.769 14.7426 15.6747C14.8539 15.5805 14.9891 15.519 15.1333 15.4971L20.331 14.7428C20.4605 14.7308 20.5843 14.684 20.6894 14.6074C20.7944 14.5307 20.8767 14.427 20.9276 14.3073L23.2693 9.59649C23.3316 9.46278 23.4302 9.34924 23.5539 9.26876C23.6775 9.18829 23.8212 9.14412 23.9687 9.14126C24.1162 9.1384 24.2616 9.17698 24.3882 9.2526C24.5149 9.32823 24.6178 9.43786 24.6853 9.56906Z",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_8565_20822",children:(0,r.jsx)("rect",{width:"48",height:"48",fill:"white"})})})]})},Ze=function(){return(0,r.jsxs)("div",{className:"relative rounded-xl overflow-hidden bg-cover bg-center",style:{backgroundImage:"url('/images/search/PEAdVaccume.png')",backgroundPosition:"center left"},children:[(0,r.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(136.45deg, #09ABAB 14.36%, rgba(29, 178, 178, 0.8) 49.36%, rgba(255, 255, 255, 0.5) 100%)"}}),(0,r.jsxs)("div",{className:"relative space-y-5 p-6 flex flex-col gap-24",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("p",{className:"text-lg text-white max-w-[200px] leading-snug",children:["File your ",(0,r.jsx)("br",{})," ",(0,r.jsx)("span",{className:"font-semibold",children:"DESIGN PATENT"})," ",(0,r.jsx)("br",{}),"at just"]}),(0,r.jsx)("p",{className:"text-white text-5xl font-bold ",children:"$899"})]}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(ze.default,{href:"/design-patents",children:(0,r.jsx)(x.z,{color:"primary",variant:"plain",className:"flex gap-2 whitespace-nowrap",size:"lg",children:(0,r.jsx)("span",{className:"flex items-center gap-2 text-sm",children:"Start Application"})})})})]})]})},He=function(){var e=(0,b.N)().state.imageHash;return(0,r.jsxs)("div",{className:"relative rounded-xl overflow-hidden bg-cover bg-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-secondary"}),(0,r.jsxs)("div",{className:"relative space-y-5 p-6",children:[(0,r.jsxs)("p",{className:"text-lg font-semibold text-white leading-snug",children:["Get a detailed data summary with our ",(0,r.jsx)("br",{})," AI Analysis"]}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(x.z,{color:"secondary",variant:"plain",className:"flex gap-2 w-full text-sm whitespace-nowrap",size:"lg",type:"button",disabled:!e,onClick:function(){e&&window.open("/ai-analysis?h=".concat(e),"_blank","noopener,noreferrer")},children:(0,r.jsxs)("span",{className:"flex items-center gap-2",children:["View AI Summary",(0,r.jsx)(C.nfF,{})]})})})]})]})},Ye=function(){var e=(0,l.useState)(!1),t=e[0],n=e[1],s=(0,l.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative rounded-xl overflow-hidden bg-cover bg-center",children:[(0,r.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, #015F5F, #09ABAB)"}}),(0,r.jsxs)("div",{className:"relative space-y-5 p-6",children:[(0,r.jsx)("p",{className:"text-lg text-white leading-snug font-semibold",children:"Not sure how to make your design better?"}),(0,r.jsxs)("div",{className:"relative text-white text-lg font-bold bg-white bg-opacity-25 rounded-xl p-3",children:[(0,r.jsx)("span",{className:"absolute -top-7 -right-3 ",children:(0,r.jsx)(We,{})}),"Let your Experts Guide you!"]}),(0,r.jsxs)("p",{className:"text-white text-lg leading-snug",children:["Schedule your"," ",(0,r.jsx)("span",{className:"font-bold",children:"15 Mins Free Consultation"})," with our Patent Experts Today!"]}),(0,r.jsx)("hr",{className:"border-white border-opacity-50"}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(x.z,{color:"primary",variant:"plain",className:"flex gap-2 text-sm whitespace-nowrap",size:"lg",type:"button",onClick:function(){return n(!0)},children:(0,r.jsx)("span",{className:"flex items-center gap-2",children:"Schedule Free Consult"})})})]})]}),t&&(0,r.jsx)(Ie.h,{setShowModal:n,showModal:t,form:s,onSubmit:function(e){var t=new FormData(s.current||void 0);(0,Re.MS)("consult_specialist_form",{name:t.get("from_name"),email:t.get("from_email"),phone:t.get("from_phone"),message:t.get("message")}),(0,Te.I)(e,s,(function(){return n(!1)}))}})]})},Ue=n(4543),Ge=n(9778);function qe(e,t,n,s,a,r,l){try{var i=e[r](l),o=i.value}catch(c){return void n(c)}i.done?t(o):Promise.resolve(o).then(s,a)}function Ve(){var e=(0,i.useRouter)(),t=(0,l.useState)(!1),n=t[0],s=t[1],o=(0,l.useState)(!1),c=o[0],d=o[1],m=(0,b.N)(),p=m.state,u=m.hasResults,h=m.hasMoreResults,v=m.loadMore,w=m.searchWithImage,y=m.restoreFromHash,C=p.results,k=p.isSearching,A=p.isLoadingMore,S=p.error,_=p.totalResults,L=p.imageHash,P=(0,l.useRef)(!1);(0,l.useEffect)((function(){if(e.isReady&&!P.current&&!L){var t=e.query.h;t&&(P.current=!0,y(t))}}),[e.isReady]),(0,l.useEffect)((function(){L&&e.replace({pathname:"/search",query:{h:L}},void 0,{shallow:!0,scroll:!1})}),[L]);var B=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w(t);case 3:d(!1),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to upload and search:",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})),function(){var t=this,n=arguments;return new Promise((function(s,a){var r=e.apply(t,n);function l(e){qe(r,s,a,l,i,"next",e)}function i(e){qe(r,s,a,l,i,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,r.jsxs)("div",{className:"min-h-screen bg-[#FDFDFD]",children:[(0,r.jsx)(j,{}),(0,r.jsx)(N,{onFiltersToggle:function(){s(!n)},filtersOpen:n}),(0,r.jsxs)("div",{className:"max-w-[1240px] mx-auto px-4 md:px-6 py-4 md:py-8",children:[(0,r.jsx)("h1",{className:"text-xl md:text-2xl font-bold text-black-3A mb-4 md:mb-6",children:"Design Patent Image Search"}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 md:gap-6 items-start",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0 
1w-full",children:[S&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mb-4",children:(0,r.jsx)("p",{className:"text-red-600 text-sm",children:S})}),k&&!u&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16",children:[(0,r.jsx)(f.Z7b,{className:"w-10 h-10 text-primary animate-spin mb-4"}),(0,r.jsx)("p",{className:"text-grey-400 text-sm",children:"Searching design patents..."})]}),!u&&!k&&!L&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:(0,r.jsx)(Ue.Re4,{className:"w-8 h-8 text-primary"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold text-black-3A mb-2",children:"Start Your Patent Search"}),(0,r.jsx)("p",{className:"text-grey-400 text-sm max-w-md mb-6",children:"Upload an image of your design to find visually similar patents. Click the button below to get started."}),(0,r.jsx)(x.z,{variant:"fill",color:"primary",className:"px-6 py-3",onClick:function(){return d(!0)},children:(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)(Ue.Re4,{className:"w-4 h-4"}),"Upload Image"]})})]}),!u&&!k&&L&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-grey-100 flex items-center justify-center mb-4",children:(0,r.jsx)("span",{className:"text-3xl",children:"\ud83d\udd0d"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold text-black-3A mb-2",children:"No matching patents found"}),(0,r.jsx)("p",{className:"text-grey-400 text-sm max-w-md",children:"Try uploading a different image or adjusting your filters."})]}),u&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"space-y-4",children:C.map((function(e,t){return(0,r.jsx)(Le,{patent:e},"".concat(e.patent_number,"-").concat(t))}))}),h&&(0,r.jsx)("div",{className:"flex justify-center mt-8",children:(0,r.jsx)(x.z,{variant:"outline",color:"primary",className:"px-8 py-3",onClick:v,disabled:A,children:A?(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)(f.Z7b,{className:"w-4 h-4 animate-spin"}),"Loading..."]}):"Load More (".concat(_-C.length," remaining)")})})]}),k&&u&&(0,r.jsx)("div",{className:"fixed inset-0 bg-white/50 flex items-center justify-center z-10",children:(0,r.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 flex flex-col items-center",children:[(0,r.jsx)(f.Z7b,{className:"w-8 h-8 text-primary animate-spin mb-2"}),(0,r.jsx)("p",{className:"text-sm text-grey-400",children:"Updating results..."})]})})]}),(0,r.jsx)("div",{className:"w-full lg:w-[220px] flex-shrink-0 space-y-4 lg:order-last ".concat(n&&L?"fixed inset-0 z-50 lg:static lg:inset-auto lg:z-auto":"order-first"),children:n&&L?(0,r.jsx)(Me,{isOpen:n,onClose:function(){return s(!1)}}):(0,r.jsxs)("div",{className:"hidden lg:block space-y-4",children:[(0,r.jsx)(Ze,{}),(0,r.jsx)(He,{}),(0,r.jsx)(Ye,{})]})})]})]}),(0,r.jsx)(g.Z,{isOpen:c,onClose:function(){return d(!1)},onSubmit:B,isLoading:k})]})}var Xe=function(){return(0,r.jsxs)(b.q,{children:[(0,r.jsx)(Ge.h,{title:"Design Patent Image Search | Patent Express",description:"Search millions of US design patents by image. Upload a design and instantly find visually similar registered patents with Patent Express."}),(0,r.jsx)(Ve,{})]})}}},function(e){e.O(0,[8898,2123,4872,6525,8917,9291,2694,2554,2926,3189,3151,5006,9774,2888,179],(function(){return t=8044,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.