PageSourceSearch

https://olibr.com/_next/static/chunks/4960-804008e16875a0ed.js

js olibr.com collected 2026-10-01 23:48:59 UTC 9,259 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4960],{48198:(e,l,r)=>{r.d(l,{A:()=>o});var t=r(68001),a=r(58757),i=r(94868),n=r(30269);let o=e=>{let{isOpen:l,onClose:r,title:o,content:s,primaryButtonLabel:d,primaryButtonOnClick:c,secondaryButtonLabel:x="Cancel",secondaryButtonOnClick:u,maxWidth:p="md",height:m="90vh",hasFooter:f=!0,hasHeader:g=!0,primaryLoader:h=!1,primaryButtonClassName:b,primaryButtonDisabled:v=!1,customFooter:y,preventBackdropClose:j=!1}=e;return((0,a.useEffect)(()=>{if(l)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[l]),l)?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black bg-opacity-50 backdrop-blur-sm",onClick:e=>{e.target!==e.currentTarget||j||r()},children:(0,t.jsxs)("div",{className:"relative w-full ".concat({sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl",full:"max-w-full"}[p]," bg-white rounded-2xl shadow-2xl flex flex-col"),style:{maxHeight:"auto"===m?"90vh":m,..."5xl"===p?{maxWidth:"1024px"}:"6xl"===p?{maxWidth:"1152px"}:"full"===p?{maxWidth:"100%"}:{}},onClick:e=>e.stopPropagation(),children:[g&&(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 pb-4 flex-shrink-0",children:[(0,t.jsx)("h2",{className:"text-xl font-medium text-gray-900 truncate pr-4",children:o}),(0,t.jsx)("button",{onClick:r,className:"flex-shrink-0 p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors duration-200","aria-label":"Close modal",children:(0,t.jsx)(i.A,{size:20})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-2 min-h-0",children:(0,t.jsx)("div",{className:"text-gray-700",children:s})}),(d||x)&&f&&(0,t.jsx)("div",{className:"p-6 pt-4 flex-shrink-0",children:(0,t.jsxs)("div",{className:"flex justify-end space-x-3",children:[(0,t.jsx)("button",{disabled:h,onClick:()=>{u?u():r()},className:"px-4 py-2 text-gray-600 hover:text-gray-800 font-medium transition-colors duration-200",children:x}),d&&(0,t.jsx)("button",{disabled:h||v,onClick:c,className:b||"px-6 py-2 bg-blue-600 text-white rounded-sm hover:bg-blue-700 disabled:opacity-70 disabled:cursor-not-allowed font-medium transition-colors duration-200 shadow-md flex items-center justify-center min-w-[80px]",children:h?(0,t.jsx)(n.A,{size:15,className:"animate-spin"}):d})]})}),y&&(0,t.jsx)("div",{className:"border-t border-gray-200 px-1 py-3 sm:px-6 sm:py-4",children:y})]})}):null}},13173:(e,l,r)=>{r.d(l,{A:()=>s});var t=r(68001),a=r(58757),i=r(29517),n=r(76470),o=r(36875);let s=e=>{let{value:l,onChange:r,options:s,label:d,required:c=!1,createble:x=!1,fieldProp:u,state:p,setState:m,getValue:f,getValueName:g,fieldName:h="",optionArray:b,isCheckBoxes:v=!1,isMulti:y=!1,closeMenuOnSelect:j=!1,searchable:w=!0,maxMenuHeight:C=300,menuPlacement:k="auto",onChangeFunction:N,menuPortalTarget:S,disabled:A=!1,isClearable:z=!1,placeholder:R,onClick:I,setValue:F,className:M="",isTrans
1hparent:H=!1,themeStyle:L=!1,borderGray:V=!1,onFocus:_=!1,fontSizePlaceholder:W="14px",smallSize:O=!1,variant:P="",borderRed:T="",height:q="auto",onInputChange:D,leftIcon:E,rightIcon:B,appearance:G}=e,[J,K]=(0,a.useState)(!1),Q=s||b||[],U=(e,l)=>{(null==e?void 0:e.onChange)&&e.onChange(l)},X=e=>{if(!f||!g||!F)return;let l=f(g);if(!l)return;let r=[...l],t=r.findIndex(l=>(null==l?void 0:l.label)===(null==e?void 0:e.label));-1!==t&&(r[t].isRequired=!(null==e?void 0:e.isRequired),F(g,r))},Y=(null==Q?void 0:Q.filter(e=>{if(!g||!f)return!0;let l=f(g);return!l||(Array.isArray(l)||(l=[l]),!(null==l?void 0:l.some(l=>(null==l?void 0:l.label)===(null==e?void 0:e.label))))}))||[],Z=()=>void 0!==l&&Q.length>0?Array.isArray(l)?Q.filter(e=>l.includes(e.value)):Q.find(e=>e.value===l)||null:g&&f?f(g)||(y?[]:null):p||(y?[]:null),$=x?o.A:n.Ay,ee={onFocus:"function"==typeof _?_:void 0,isClearable:z,menuPortalTarget:"undefined"!=typeof document?document.querySelector("body"):void 0,formatOptionLabel:e=>v?(0,t.jsxs)("div",{style:{marginTop:L?"-4px":0},children:[(0,t.jsx)("input",{type:"checkbox",className:"react-select-cus-chek",onClick:()=>X(e),checked:(null==e?void 0:e.isRequired)||!1,readOnly:!0}),(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:"string"==typeof e.label?e.label.replace(/<[^>]*>/g,""):e.label}})]}):(0,t.jsx)("div",{style:{marginTop:L?"-4px":0},children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:"string"==typeof e.label?e.label.replace(/<[^>]*>/g,""):e.label}})}),isDisabled:A,styles:{menuPortal:e=>({...e,zIndex:999999}),control:(e,l)=>{let r="#F0F5F7",t=l.isFocused?"0 0 0 2px #3b82f6":"none",a="none";return"white"===G&&(r="#ffffff",a=l.isFocused?"1.5px solid #3b82f6":"1px solid #ecedf2",t="none"),"dark"===G&&(r="#1f2937",a="1px solid #374151",t=l.isFocused?"0 0 0 2px #3b82f6":"none"),{...e,fontSize:O?"0.75rem":"0.875rem",lineHeight:O?"1rem":"1.25rem",width:"100%",minHeight:O?"36px":"45px",height:y?"max-content":O?"36px":"45px",backgroundColor:r,border:a,boxShadow:t,borderRadius:"calc(var(--radius, 0.5rem) - 2px)",transition:"all 0.2s ease-in-out",paddingLeft:E?O?"1.5rem":"2rem":O?"0.5rem":"0.75rem",paddingRight:O?"0.5rem":"0.75rem"}},option:(e,l)=>{let{isFocused:r,isSelected:t}=l;return{...e,fontSize:"0.875rem",lineHeight:"1.25rem",letterSpacing:"0.025em",padding:O?"6px 10px":"8px 12px",backgroundColor:t?"#3b82f6":r?"#f3f4f6":"#ffffff",color:t?"#ffffff"
1:"#374151",cursor:"pointer"}},multiValue:e=>({...e,backgroundColor:"rgb(219 234 254)",border:"1px solid rgb(96 165 250)",borderRadius:"4px",margin:"1px 2px",display:"flex",alignItems:"center",paddingRight:"2px"}),multiValueLabel:e=>({...e,color:"#1d4ed8",fontSize:"0.75rem",fontWeight:"500",padding:"2px 4px"}),multiValueRemove:e=>({...e,color:"#6969697e",padding:0,":hover":{backgroundColor:"#6969697e",color:"#ffffff",borderRadius:"50%"}}),menu:e=>({...e,zIndex:999999,border:"1px solid rgb(236, 237, 242)",borderRadius:"calc(var(--radius, 0.5rem) - 2px)",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),valueContainer:e=>({...e,height:y?"max-content":O?"32px":"43px",padding:y?"3px 8px":O?"0 6px":"0 8px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"2px"}),input:e=>({...e,margin:0,padding:0,color:"#111827",fontSize:"0.875rem",lineHeight:"1.25rem",letterSpacing:"0.025em"}),placeholder:e=>({...e,fontSize:"0.875rem",lineHeight:"1.25rem",letterSpacing:"0.025em",color:"#9ca3af",fontWeight:"400",margin:0}),singleValue:e=>({...e,fontSize:"0.875rem",lineHeight:"1.25rem",letterSpacing:"0.025em",color:"#111827",fontWeight:"400",margin:0}),dropdownIndicator:(e,l)=>({...e,color:l.isFocused?"#3b82f6":"#6b7280",padding:"4px",marginRight:"-8px",":hover":{color:"#3b82f6"}}),clearIndicator:e=>({...e,color:"#6b7280",padding:"8px",":hover":{color:"#ef4444"}}),indicatorSeparator:()=>({display:"none"})},maxMenuHeight:C,isMulti:y,isSearchable:w,closeMenuOnSelect:!y&&j,menuPlacement:k,theme:e=>({...e,borderRadius:6,colors:{...e.colors,primary:"#3b82f6",primary25:"rgba(59, 130, 246, 0.1)",primary50:"rgba(59, 130, 246, 0.2)"}}),classNamePrefix:"custom-select",placeholder:R,value:Z(),onMenuOpen:I,options:Y,onChange:(e,l)=>{if(console.log("[v0] handleSelectChange called",{selectedOption:e,actionMeta:l,isMulti:y}),r){if(Array.isArray(e)){let l=e.map(e=>e.value);console.log("[v0] Multi-select onChange with values:",l),r(l)}else e&&"value"in e?(console.log("[v0] Single select onChange with value:",e.value),r(e.value)):(console.log("[v0] Cleared selection, isMulti:",y),r(y?[]:""))}N&&N(e),u&&(U(u,e),h&&m&&m(h,""))},filterOption:(e,l)=>"string"!=typeof(null==e?void 0:e.data.label)||(null==e?void 0:e.data.label.toLowerCase().includes(l.toLowerCase())),className:M,getOptionLabel:e=>e.label,onInputChange:D,components:y?{MultiValue:e=>{let{index:l,getValue:r,...a}=e,n=Z();if(!Array.isArray(n))return(0,t.jsx)(i.c.MultiValue,{...a});let o=n.length,s=o-10;return!J&&9===l&&s>0?(0,t.jsxs)("div",{className:"inline-flex items-center justify-center px-2 py-0.5 bg-blue-600 text-white text-xs font-medium rounded hover:bg-blue-700 transition-colors cursor-pointer",style:{margin:"1px 2px"},onClick:e=>{e.preventDefault(),e.stopPropagation(),K(!0)},children:["+",s+1]}):!J&&l>=10?null:J&&l===o-1&&o>10?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.c.MultiValue,{...a}),(0,t.jsx)("div",{className:"inline-flex items-center justify-center px-2 py-0.5 bg-gray-500 text-white text-xs font-medium rounded hover:bg-gray-600 transition-colors cursor-pointer",style:{margin:"1px 2px"},onClick:e=>{e.preventDefault(),e.stopPropagation(),K(!1)},children:"Show less"})]}):(0,t.jsx)(i.c.MultiValue,{...a})}}:void 0,...x?{formatCreateLabel:e=>'Add "'.concat(e,'"')}:{}},el=E?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10 pointer-events-none",children:(0,t.jsx)(E,{className:"w-5 h-5 text-gray-400"})}),(0,t.jsx)($,{...ee})]}):(0,t.jsx)($,{...ee});return d?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:[d,c&&(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),el]}):(0,t.jsx)(a.Fragment,{children:el})}}}]);

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.