PageSourceSearch

https://intdecor.ai/_next/static/chunks/187-908009142df6368e.js

js intdecor.ai collected 2026-10-05 15:22:28 UTC 11,284 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{7516:function(e,t,a){async function r(){let e=await fetch("/api/countries"),t=await e.json();return 200===e.status?t:(console.error(t.error),[])}async function n(e){let t=await fetch("/api/countries/states?country_id=".concat(e)),a=await t.json();return 200===t.status?a:(console.error(a.error),[])}a.d(t,{P:function(){return n},o:function(){return r}})},8277:function(e,t,a){async function r(e,t){let a=await fetch("/api/users/signup",{method:"POST",body:JSON.stringify({userData:e,haveCompany:t})}),r=await a.json();return 200===a.status?r.message:r.error}async function n(e,t){let a=await fetch("/api/users/login",{method:"POST",body:JSON.stringify({email:e,password:t})}),r=await a.json();return 200===a.status?r.message:r.error}async function s(e,t){return 200===(await fetch("/api/users/verify",{method:"POST",body:JSON.stringify({email:e,verificationCode:t})})).status}async function l(e){return 200===(await fetch("/api/users/reset-password",{method:"POST",body:JSON.stringify({email:e})})).status}async function o(e,t,a){return 200===(await fetch("/api/users/reset-password/verify",{method:"POST",body:JSON.stringify({userId:e,passwordResetCode:t,newPassword:a})})).status}async function i(e){let t=new FormData;t.append("file",e),await fetch("/api/users/upload-logo",{method:"POST",body:t})}async function c(){let e=await fetch("/api/users/me"),t=await e.json();return 200===e.status&&null!==t.logoUrl&&void 0!==t.logoUrl?t.logoUrl:null}async function u(){await fetch("/api/users/logout",{method:"POST"})}async function d(e,t){return 200===(await fetch("/api/users/me",{method:"PATCH",body:JSON.stringify({name:e,commercialCom:t})})).status}async function f(e,t,a,r,n,s,l){return 200===(await fetch("/api/users/me/company",{method:"PATCH",body:JSON.stringify({NIF:e,name:t,address:a,country:r,state:n,phone:s,PC:l})})).status}a.d(t,{$C:function(){return c},A9:function(){return s},NR:function(){return i},Nq:function(){return d},OU:function(){return o},SS:function(){return u},Ty:function(){return l},cK:function(){return r},j1:function(){return f},n$:function(){return n}})},7969:function(e,t,a){a.d(t,{S:function(){return r}});let r=(0,a(9099).Ue)(e=>({}))},7230:function(e,t,a){a.d(t,{default:function(){return s}});var r=a(7437);let n=(0,a(9099).Ue)(e=>({renders:0,decrement:()=>e(e=>({renders:e.renders-1}))}));function s(e){let{userRenders:t}=e;n.setState({renders:t});let{renders:a}=n();return(0,r.jsxs)("div",{className:"relative mx-2 p-4",children:[(0,r.jsx)("span",{className:"badge badge-primary absolute right-0 top-3 md:text-base",children:a}),(0,r.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-[url('/assets/intdecor-coin-n.svg')] bg-contain bg-center bg-no-repeat md:h-12 md:w-12"})]})}},8356:function(e,t,a){a.d(t,{default:function(){return s}});var r=a(7437),n=a(8277);function s(e){let{text:t}=e;return(0,r.jsx)("a",{onClick:async()=>{await (0,n.SS)(),window.location.href="/"},children:t},"logout")}},7772:function(e,t,a){a.d(t,{Z:function(){return u}});var r=a(7437),n=a(7516),s=a(7969),l=a(2265),o=a(5127),i=a(4539),c=a(6648);function u(e){let{id:t,open:a,disabled:u,onToggle:d,onChange:f,selectedValue:h,lang:m}=e,p=(0,l.useRef)(null),{countriesStore:b}=(0,s.S)(),[x,g]=(0,l.useState)([]),[v,y]=(0,l.useState)("");return(0,l.useEffect)(()=>{void 0===b&&(0,n.o)().then(e=>{s.S.setState({countriesStore:e})}),b&&b.length>0&&g(b.map(e=>{var t;return{title:null!==(t=e.translations[m])&&void 0!==t?t:e.name,value:e.iso2}}))},[b,m]),(0,l.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&a&&(d(),y(""))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,a,p]),(0,r.jsx)("div",{ref:p,children:(0,r.jsxs)("div",{className:"relative mt-1",children:[(0,r.jsxs)("button",{type:"button",className:"".concat(u?"bg-neutral-100":"bg-white"," relative w-full cursor-default rounded-md border border-gray-300 py-2 pl-3 pr-10 text-left shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 sm:text-sm"),"aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label",onClick:d,disabled:u,children:[(0,r.jsxs)("span",{className:"flex items-center truncate",children:[(0,r.jsx)(c.default,{alt:"".concat(null==h?void 0:h.value),src:"/assets/flags/".concat(null==h?void 0:h.value,".svg"),className:"mr-2 inline h-4 rounded-sm",width:24,height:16}),null==h?void 0:h.title]}),(0,r.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ".concat(u?"hidden":""),children:(0,r.jsx)("svg",{className:"h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(0,r.jsx)(o.M,{children:a&&(0,r.jsxs)(i.E.ul,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"absolute z-10 mt-1 max-h-80 w-full rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",tabIndex:-1,role:"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3",children:[(0,r.jsxs)("div",{className:"sticky top-0 z-10 bg-white",children:[(0,r.jsx)("li",{className:" relative cursor-default select-none px-3 py-2 text-gray-900",children:(0,r.jsx)("input",{type:"search",name:"search",autoComplete:"off",className:"block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500 sm:text-sm",placeholder:"Search a country",onChange:e=>y(e.target.value)})}),(0,r.jsx)("hr",{})]}),(0,r.jsx)("div",{className:"scrollbar scrollbar-track-gray-100 scrollbar-thumb-gray-300 hover:scrollbar-thumb-gray-600 scrollbar-thumb-rounded scrollbar-thin max-h-64 overflow-y-scroll",children:0===x.filter(e=>e.title.toLowerCase().startsWith(v.toLowerCase())).length?(0,r.jsx)("li",{className:"relative cursor-default select-none py-2 pl-3 pr-9 text-gray-900",children:"No countries found"}):x.filter(e=>e.title.toLowerCase().startsWith(v.toLowerCase())).map((e,a)=>(0,r.jsxs)("li",{className:"relative flex cursor-default select-none items-center py-2 pl-3 pr-9 text-gray-900 transition hover:bg-gray-50",id:"listbox-option-0",role:"option","aria-selected":"true",onClick:()=>{f(e.value),y(""),d()},children:[(0,r.jsx)(c.default,{alt:"".concat(e.value),src:"/assets/flags/".concat(e.value,".svg"),className:"mr-2 inline h-4 rounded-sm",width:24,height:16}),(0,r.jsx)("span",{className:"truncate font-normal",children:e.title}),e.value===(null==h?void 0:h.value)?(0,r.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-8 text-blue-600",children:(0,r.jsx)("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):null]},"".concat(t,"-").concat(a)))})]})})]})})}},838:function(e,t,a){a.d(t,{Z:function(){return c}});var r=a(7437),n=a(7516),s=a(7969),l=a(5127),o=a(4539),i=a(2265);function c(e){let{id:t,open:a,disabled:c,onToggle:u,onChange:d,selectedValue:f,lang:h}=e,m=(0,i.useRef)(null),{countrySelected:p,statesStore:b}=(0,s.S)(),[x,g]=(0,i.useState)([]),[v,y]=(0,i.useState)("");return(0,i.useEffect)(()=>{void 0===b&&p&&(0,n.P)(p._id).then(e=>{s.S.setState({statesStore:e})}),b&&b.length>0&&g(b.map(e=>({title:e.name,value:e.name})))},[b,p]),(0,i.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&a&&(u(),y(""))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u,a,m]),(0,r.jsx)("div",{ref:m,children:(0,r.jsxs)("div",{className:"relative mt-1",children:[(0,r.jsxs)("button",{type:"button",className:"".concat(c?"bg-neutral-100":"bg-white"," relative w-full cursor-default rounded-md border border-gray-300 py-2 pl-3 pr-10 text-left shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 sm:text-sm"),"aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label",onClick:u,disabled:c,children:[(0,r.jsx)("span",{className:"flex items-center truncate",children:null==f?void 0:f.title}),(0,r.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 ".concat(c?"hidden":""),children:(0,r.jsx)("svg",{className:"h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(0,r.jsx)(l.M,{children:a&&(0,r.jsxs)(o.E.ul,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"absolute z-10 mt-1 max-h-80 w-full rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",tabIndex:-1,role:"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3",children:[(0,r.jsxs)("div",{className:"sticky top-0 z-10 bg-white",children:[(0,r.jsx)("li",{className:" relative cursor-default select-none px-3 py-2 text-gray-900",children:(0,r.jsx)("input",{type:"search",name:"search",autoComplete:"off",className:"block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500 sm:text-sm",placeholder:"Search a state",onChange:e=>y(e.target.value)})}),(0,r.jsx)("hr",{})]}),(0,r.jsx)("div",{className:"scrollbar scrollbar-track-gray-100 scrollbar-thumb-gray-300 hover:scrollbar-thumb-gray-600 scrollbar-thumb-rounded scrollbar-thin max-h-64 overflow-y-scroll",children:0===x.filter(e=>e.title.toLowerCase().startsWith(v.toLowerCase())).length?(0,r.jsx)("li",{className:"relative cursor-default select-none py-2 pl-3 pr-9 text-gray-900",children:"No state found"}):x.filter(e=>e.title.toLowerCase().startsWith(v.toLowerCase())).map((e,a)=>(0,r.jsxs)("li",{className:"relative flex cursor-default select-none items-center py-2 pl-3 pr-9 text-gray-900 transition hover:bg-gray-50",id:"listbox-option-0",role:"option","aria-selected":"true",onClick:()=>{d(e.value),y(""),u()},children:[(0,r.jsx)("span",{className:"truncate font-normal",children:e.title}),e.value===(null==f?void 0:f.value)?(0,r.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-8 text-blue-600",children:(0,r.jsx)("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):null]},"".concat(t,"-").concat(a)))})]})})]})})}}}]);

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.