PageSourceSearch

https://davafoods.com/static/js/blocks32.19761b2a.chunk.js

js davafoods.com collected 2026-09-30 22:55:27 UTC 7,171 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk_danishagro_cms=globalThis.webpackChunk_danishagro_cms||[]).push([[9442],{4432(e,t,n){n.d(t,{t:()=>b});var r=n(1462),i=n(7768),a=n(766),o=n(9255);const l="Input_inputWrapper__pRa5M",s="Input_disabled__k4GDg",u="Input_invalid__OWctU",c="Input_showAsFocused__aUv3-",d="Input_highlighted__4JwEq",p="Input_input__DTgFU",m="Input_hasIcon__mYNy4",_="Input_rightText__s0n11",v="Input_icon__SVcgd";var h=n(9334);const b=(0,r.forwardRef)((e,t)=>{const n=(0,r.useId)(),{label:b,id:N,name:x,helperText:g,tooltip:S,icon:f,defaultValue:I,className:j,inputClassName:C,invalid:y,highlighted:T,showAsFocused:k,readOnly:W,onChange:w,type:D,inputMode:A,pattern:M,rightText:O,onBlur:L,...E}=e;return(0,h.jsxs)(o.W,{label:b,forId:N||n,helperText:g,tooltip:S,invalid:y,className:j,children:[(0,h.jsxs)("div",{className:(0,i.cn)(l,f&&m,E.disabled&&s,y&&u,k&&c,T&&d,j),children:[(0,h.jsx)("input",{id:N||n,name:x||N,readOnly:W,ref:t,defaultValue:I,className:(0,i.cn)(p,C),onChange:({target:e})=>w?w(e.value):null,type:D,onBlur:L,inputMode:"number"===D?A||"numeric":A,pattern:"number"===D?M||"[0-9]*":M,...E}),O&&(0,h.jsx)("div",{className:_,children:O})]}),f&&(0,h.jsx)(a.o,{name:f,className:v})]})});b.displayName="DA_Input"},9255(e,t,n){n.d(t,{W:()=>v});n(1462);var r=n(7768),i=n(7206);const a="InputWrapper_wrapper__z78Uv",o="InputWrapper_header__nVGWz",l="InputWrapper_label__FGGjP",s="InputWrapper_tooltip__H5zrD",u="InputWrapper_inputWrapper__YnYHw",c="InputWrapper_helperText__LSSf2",d="InputWrapper_invalid__CxGY5",p="InputWrapper_fullWidth__2iPYu",m="InputWrapper_overlayHidden__mvxJA";var _=n(9334);const v=({label:e,forId:t,helperText:n,tooltip:v,className:h,invalid:b,fullWidth:N,children:x,overlayHidden:g})=>(0,_.jsxs)("div",{className:(0,r.cn)(a,h,N&&p),children:[(e||v)&&(0,_.jsxs)("div",{className:o,children:[e&&(0,_.jsx)("label",{htmlFor:t,className:l,children:e}),v&&(0,_.jsx)(i.m,{className:s,text:v})]}),(0,_.jsx)("div",{className:(0,r.cn)(u,g&&m),children:x}),n&&(0,_.jsx)("div",{className:(0,r.cn)(c,b&&d),children:n})]})},7206(e,t,n){n.d(t,{m:()=>g});var r=n(1462),i=n(213),a=n(1380),o=n(7768),l=n(8165),s=n(766);const u="Tooltip_tooltipWithChildren__QXbC0",c="Tooltip_tooltipButton__DqfSp",d="Tooltip_onTopOfChildren__uvm7I",p="Tooltip_standAlone__+5xNJ",m="Tooltip_popUp__+M3nV",_="Tooltip_icon__W8iCv",v="Tooltip_arrow__SWIWg",h="Tooltip_textAlignLeft__g6FD1",b="Tooltip_textAlignCenter__f3bi6",N="Tooltip_textAlignRight__YfL46";var x=n(9334);const g=({text:e,icon:t=s.Q.Info,onClick:n,className:g,children:S,placement:f,textAlign:I="left"})=>{const[j,C]=(0,r.useState)(!1),y=(0,r.useRef)(null),T=(0,r.useRef)(null),{isMobile:k}=(0,l.UJ)(),W=(0,r.useMemo)(()=>({opacity:0,config:{tension:200,friction:15}}),[]),[w,D]=(0,a.zh)(()=>W),A=(0,r.useMemo)(()=>({left:h,center:b,right:N}[I]||h),[I]),M=(0,r.useCallback)(e=>{T.current=setTimeout(()=>C(!0),"mouseenter"===e.type?300:0)},[]),O=(0,r.useCallback)(()=>{clearTimeout(T.current),C(!1)},[]),L=(0,r.useCallback)(()=>{D.start({...W,opacity:1})},[D,W]),E=(0,r.useCallback)(({unmount:e})=>{D.start({...W,onRest:e})},[D,W]),G=(0,r.useCallback)(e=>{"undefined"===typeof n?k&&(j?O():M(e)):n()},[O,k,n,M,j]);return(0,x.jsx)(i.Ay,{arrow:!0,visible:j,placement:f||"auto",onClickOutside:O,onMount:L,onHide:E,popperOptions:{modifiers:[{name:"arrow",options:{element:y.current}}]},render:t=>(0,x.jsxs)(a.CS.div,{className:(0,o.cn)(m,A),style:w,...t,children:[e,(0,x.jsx)("div",{className:v,ref:y,"data-popper-arrow":""})]}),children:S?(0,x.jsxs)("div",{className:(0,o.cn)(u,g),children:[S,(0,x.jsx)("button",{type:"button",onClick:G,onMouseEnter:k?void 0:M,onMouseLeave:k?void 0:O,onFocus:k?void 0:M,onBlur:k?void 0:O,className:(0,o.cn)(c,d,g)})]}):(0,x.jsx)("button",{type:"button",onClick:G,onMouseEnter:k?void 0:M,onMouseLeave:k?void 0:O,onFocus:k?void 0:M,onBlur:k?void 0:O,className:(0,o.cn)(c,p,g),children:(0,x.jsx)(s.o,{name:t,className:_})})})}},7296(e,t,n){n.r(t),n.d(t,{SupplierService:()=>x});var r=n(1462),i=n(4800),a=n(4432),o=n(7144),l=n(3054),s=n(4505),u=n(3032),c=n(1594),d=n(9255),p=n(3441),m=n(1024);const _="SupplierService_supplierService__7K08E",v="SupplierService_form__b+DAD",h="SupplierService_spinner__gRIou",b="SupplierService_select__u2Dgq";var N=n(9334);const x=()=>{var e;const{getDictionaryString:t}=(0,c.c)(),[n,x]=(0,r.useState)("NONE"),{cvrAndCustomerNumbers:g}=(0,p.d)(),S=globalThis.isAuthenticated,f=null===g||void 0===g||null===(e=g.accounts)||void 0===e?void 0:e.reduce((e,t)=>
1{var n;const r=null===t||void 0===t||null===(n=t.customers)||void 0===n?void 0:n.map(e=>null===e||void 0===e?void 0:e.number);return e.concat(r)},[]),{validationErrorMessages:I,validate:j,onInputChange:C}=(()=>{const{getDictionaryString:e}=(0,c.c)(),[t,n]=(0,r.useState)([]),i=async e=>{if(!e)return!1;const t=`${m.bM}/user/isvalidcustomernumber?customerNumber=${e}`;try{const e=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});return e.ok?await e.json():(console.error(`Error: ${e.status} - ${e.statusText}`),!1)}catch(n){return!1}},a=e=>{let r=t;r="undefined"!==typeof e?null===t||void 0===t?void 0:t.filter(t=>t.key!==e):[],n(r)};return{validationErrorMessages:t,validate:async t=>{const r=[];t.customerNumber||r.push({key:"customerNumber",value:e("SupplierService.ValidationRequired")});const o=await i(String(t.customerNumber));return o||r.push({key:"customerNumber",value:e("SupplierService.ValidationInvalid")}),n(r),0===r.length&&o&&a("customerNumber"),[0===r.length,o]},getError:e=>null===t||void 0===t?void 0:t.find(t=>t.key===e),resetErrors:a,onInputChange:e=>{const r=t.filter(t=>t.key!==e);n(r)}}})(),y=I.find(e=>"customerNumber"===e.key);return(0,N.jsxs)("div",{className:_,children:[(0,N.jsx)(u.je,{h2:!0,noMargin:!0,children:t("SupplierService.Headline")}),(0,N.jsx)(s.O,{html:t("SupplierService.NetsSignup"),noPadding:!0}),"LOADING"===n?(0,N.jsx)(l.C,{className:h}):(0,N.jsxs)("form",{noValidate:!0,onSubmit:async e=>{e.preventDefault();const t={};new FormData(e.target).forEach((e,n)=>t[n]=e);const[n]=await j(t);if(n){x("LOADING");const e=`https://tilmeld.leverandoerservice.dk/DOB/LS?id=-1803361592&pbs=1ad63ca01b554e849c4dbb7e9e4cd2a9&kundenrLabel=Kundenr.&cvr=&dbnr=${t.customerNumber}&knmin=&knmax=`;window.location.href=e}},className:v,children:[S?(0,N.jsx)(N.Fragment,{children:"LOADING"===n?(0,N.jsx)(l.C,{className:h}):(0,N.jsx)(d.W,{invalid:!!y,helperText:y?y.value:void 0,children:(0,N.jsx)(o.v,{id:"customerNumber",name:"customerNumber",placeholder:t("SupplierService.SelectPlaceholder"),onChange:()=>C("customerNumber"),invalid:!!y,options:[...(null===f||void 0===f?void 0:f.map(e=>({value:e,label:e})))||[]],className:b})})}):(0,N.jsx)(a.t,{id:"customerNumber",name:"customerNumber",type:"number",placeholder:t("SupplierService.InputPlaceholder"),invalid:!!y,label:`${t("SupplierService.CustomerNumberLabel")}`,onChange:()=>C("customerNumber"),disabled:"LOADING"===n,helperText:y?y.value:void 0,autoComplete:"off"}),(0,N.jsx)("div",{children:(0,N.jsx)(i.r,{title:t("SupplierService.Continue"),disabled:"LOADING"===n,submit:!0,showSpinner:"LOADING"===n})})]})]})}}}]);
2//# sourceMappingURL=blocks32.19761b2a.chunk.js.map

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.