PageSourceSearch

https://simply-hub.ai/_next/static/chunks/7112-3ac23dc3f50c2fb3.js

js simply-hub.ai collected 2026-10-05 14:22:16 UTC 6,924 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7112],{14885:(e,l,t)=>{t.d(l,{Lv:()=>n,S$:()=>o,mu:()=>a});var r=t(46470);function n(e,l){let t={...l||{}};if(!e)return t;for(let l of e)t[l.key]=!(0,r.y)(l)&&"";return t}function o(e,l){var t;let n=(null!=e?e:[]).find(e=>(0,r.y)(e)&&e.required);return n&&!0===l[n.key]?(null!=(t=n.label)?t:"").trim():""}function a(e){let l=e.match(/^(\d+(?:\.\d+)?)%?$/);return l?parseFloat(l[1]):100}},46470:(e,l,t)=>{t.d(l,{P:()=>i,y:()=>c});var r=t(37876),n=t(14232),o=t(89875);let a=/\[([^\]]+)\]/;function i(e){var l;let{field:t,checked:i,onChange:c,labelStyle:s,requiredColor:d,markRequired:u,disabled:p}=e,x=t.linkUrl&&function(e){if(e.startsWith("/"))return!0;try{let l=new URL(e);return"http:"===l.protocol||"https:"===l.protocol}catch(e){return!1}}(t.linkUrl)?t.linkUrl:void 0,y="field-".concat(t.key);return(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.RXm,{id:y,checked:i,onChange:c,disabled:p}),(0,r.jsxs)("label",{htmlFor:y,className:"cursor-pointer text-sm leading-snug",style:{...s,display:"inline",marginBottom:0},children:[(function(e){let l=a.exec(e);if(!l)return[{text:e,isLink:!1}];let t=e.slice(0,l.index),r=e.slice(l.index+l[0].length);return[...t?[{text:t,isLink:!1}]:[],{text:l[1],isLink:!0},...r?[{text:r,isLink:!1}]:[]]})(null!=(l=t.label)?l:"").map((e,l)=>e.isLink&&x?(0,r.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"underline",onClick:e=>e.stopPropagation(),children:e.text},l):(0,r.jsx)(n.Fragment,{children:e.text},l)),t.required&&u&&(0,r.jsx)("span",{style:{color:d},children:" *"})]})]})}function c(e){return"checkbox"===e.type||"bool"===e.type||"boolean"===e.type}},57112:(e,l,t)=>{t.d(l,{S:()=>x});var r=t(37876),n=t(46470),o=t(14232),a=t(89875),i=t(21262);let c={marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"};function s(e){let{field:l,files:t,onFileChange:n,inputConfig:s,isMobile:d=!1}=e,[u,p]=(0,o.useState)(!1),x=(0,i._0)(s,d),y={border:"".concat(2,"px dashed ").concat(u?x.focusBorderColor:x.borderColor),borderRadius:x.borderRadius,padding:"24px",textAlign:"center",cursor:"pointer",backgroundColor:x.backgroundColor,transition:"all 0.2s ease",marginTop:"8px"},b={padding:"12px",backgroundColor:x.backgroundColor,border:"1px solid ".concat(x.borderColor),borderRadius:x.borderRadius,display:"flex",alignItems:"center",justifyContent:"space-between"};function m(){let e=document.createElement("input");e.type="file",e.accept=l.accept||"*/*",e.multiple=(l.maxFiles||1)>1,e.style.display="none",e.onchange=l=>{n(l.target.files),document.body.removeChild(e)},document.body.appendChild(e),e.click()}return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-label":"".concat(l.label," - Datei hochladen"),style:y,onDragOver:function(e){e.preventDefault(),p(!0)},onDragLeave:function(){p(!1)},onDrop:function(e){e.preventDefault(),p(!1),n(e.dataTransfer.files)},onClick:m,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m())},children:[(0,r.jsx)("div",{style:{fontSize:"16px",color:x.textColor,marginBottom:"8px"},children:u?"Dateien hier ablegen...":"Klicken oder Dateien hierher ziehen"}),(0,r.jsxs)("div",{style:{fontSize:"14px",color:x.placeholderColor},children:[l.accept&&"Erlaubte Formate: ".concat(l.accept),l.maxFileSize&&" • Max. ".concat(l.maxFileSize,"MB"),l.maxFiles&&" • Max. ".concat(l.maxFiles," Datei(en)")]})]}),t.length>0&&(0,r.jsx)("div",{style:c,children:t.map((e,l)=>(0,r.jsx)("div",{style:b,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:"14px",fontWeight:"500",color:x.textColor},children:e.name}),(0,r.jsx)("div",{style:{fontSize:"12px",color:x.placeholderColor},children:(0,a.bnw)(e.size)})]})},"".concat(e.name,"-").concat(l)))})]})}var d=t(14885),u=t(22040);let p={initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{duration:.2}};function x(e){var l,t,o,c,x,y,b,m;let{fields:h,form:f,inputStyle:v,errorColor:g,fieldSpacing:k=16,columnSpacing:C=16,isMobile:j=!1,disabled:F=!1,labelStyle:S,requiredColor:N,showInputLabels:q=!0,showRequiredMarker:D,fileData:w,onFileChange:B,inputConfig:z}=e,L=z?(0,i.b$)(z,j):null,R=null==L?void 0:L.className,E=null!=S?S:function(e,l){var t;if(null==l?void 0:l.label)return{color:e.labelColor,fontFamily:e.labelFontFamily,fontSize:e.labelFontSize,fontWeight:e.labelFontWeight,marginBottom:null!=(t=e.labelMarginBottom)?t:"4px"}}(v,z),M=q&&!!E,W=!M&&q,_=null!=(y=null!=g?g:null==z||null==(l=z.error)?void 0:l.textColor)?y:"#991b1b",U=null!=(b=null!=N?N:null==z||null==(t=z.label)?void 0:t.requiredColor)?b:"#ef4444",P=null==(m=null!=D?D:null==z||null==(o=z.label)?void 0:o.showRequiredMarker)||m,V=null==z||null==(c=z.error)?void 0:c.borderColor,T=null==z||null==(x=z.error)?void 0:x.backgroundColor;return(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",columnGap:j?0:"".concat(C,"px"),...null==L?void 0:L.variables},children:h.map(e=>{var l,t;let o=j?"100%":e.width||"100%",i=(0,d.mu)(o),c=!j&&i<100,x=c?"calc(".concat(i,"% - ").concat(Number((C*(1-i/100)).toFixed(2)),"px)"):o,y=f.getError(e.key),b=!!y,m=function(e){if(e&&(V||T))return{borderColor:V,backgroundColor:T}}(b);return(0,r.jsxs)("div",{style:{width:x,marginBottom:"".concat(k,"px"),flex:c?"0 0 ".concat(x):void 0},children:[M&&e.label&&!(0,n.y)(e)&&(0,r.jsxs)("label",{style:{...E,display:"block",marginBottom:null!=(l=null==E?void 0:E.marginBottom)?l:"4px"},children:[e.label,e.required&&P&&(0,r.jsx)("span",{style:{color:U},children:" *"})]}),"textarea"===e.type?(0,r.jsx)(a.eqU,{label:W&&null!=(t=e.label)?t:"",placeholder:e.placeholder,value:String(f.values[e.key]||""),onChange:l=>f.setValue(e.key,l),onBlur:()=>f.validateField(e.key),disabled:F,error:b,customStyle:v,className:R,style:m}):"file"===e.type?(0,r.jsxs)(r.Fragment,{children:[!M&&e.label&&(0,r.jsxs)("label",{className:"block text-sm font-medium mb-2",style:{color:v.labelColor},children:[e.label,e.required&&P&&(0,r.jsx)("span",{style:{color:U},children:" *"})]}),z&&B&&(0,r.jsx)(s,{field:e,files:(null==w?void 0:w[e.key])||[],onFileChange:l=>
1B(e.key,l),inputConfig:z,isMobile:j})]}):"select"===e.type?(0,r.jsx)(a.WRL,{label:W?e.required&&P?"".concat(e.label," *"):e.label:void 0,value:String(f.values[e.key]||""),onChange:l=>f.setValue(e.key,l),options:e.options||[],error:b,className:"w-full",triggerClassName:R,customStyle:v}):(0,n.y)(e)?(0,r.jsx)(n.P,{field:e,checked:!0===f.values[e.key],onChange:l=>f.setValue(e.key,l),labelStyle:E,requiredColor:U,markRequired:P,disabled:F}):(0,r.jsx)(a.A6i,{label:W?e.label:void 0,type:e.type,placeholder:e.placeholder,value:String(f.values[e.key]||""),onChange:l=>f.setValue(e.key,l),onBlur:()=>f.validateField(e.key),required:e.required,disabled:F,error:b,customStyle:v,className:R,style:m}),y&&(0,r.jsx)(u.P.div,{role:"alert","aria-live":"polite",className:"text-xs mt-1 ml-1",style:{color:_},...p,children:String(y)})]},e.key)})})}}}]);

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.