PageSourceSearch

https://www.xlbygg.se/_next/static/chunks/5921.b25cd7b06abb6e56.js

js xlbygg.se collected 2026-09-24 21:19:26 UTC 11,454 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ec288c35-f1e3-40c8-9f5a-ec09a1ff1f7b",e._sentryDebugIdIdentifier="sentry-dbid-ec288c35-f1e3-40c8-9f5a-ec09a1ff1f7b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5921],{22297:function(e,n,r){"use strict";var t=r(85893);r(67294);var c=r(93967),i=r.n(c),o=r(81076),s=r.n(o);n.Z=e=>{let{children:n,className:r}=e;return(0,t.jsx)("main",{className:i()(s().root,r),children:n})}},55134:function(e,n,r){"use strict";r.d(n,{Di:function(){return f},FR:function(){return a},Fz:function(){return x},GZ:function(){return h},Hh:function(){return d},QQ:function(){return u},Ql:function(){return l},RX:function(){return m},S2:function(){return s},Ti:function(){return o},aX:function(){return j},dw:function(){return N},h2:function(){return p},zu:function(){return E}});var t=r(85893);r(67294);var c=r(65014);let i="myPage",o=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customers/heading"),children:"Kunder"}),s=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customers/description"),children:"H\xe4r kan du hantera dina befintliga kunder och kan l\xe4gga till nya kunder."}),a=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customers/new"),children:"Ny kund"}),l=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customers/search"),children:"S\xf6k efter kund"}),d=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customer-create/heading"),children:"Ny kund"}),u=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customer-create/description"),children:"Fyll i de uppgifter som kr\xe4vs f\xf6r att skapa din kund. Du kan \xe4ndra dessa uppgifter n\xe4r som helst."}),m=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customer-section/heading"),children:"Kunduppgifter"}),f=(0,t.jsx)(c.NB,{uri:"".concat(i,"/company-reference-section/heading"),children:"Referensperson"}),h={IS_CUSTOMER:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/is-customer/label"),children:"F\xf6retagskund"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/is-customer/placeholder"),children:"F\xf6retagskund"})},NAME_COMPANY:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name-company/label"),children:"F\xf6retagsnamn"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name-company/placeholder"),children:"F\xf6retagsnamn"})},NAME1:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name1/label"),children:"F\xf6rnamn"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name1/placeholder"),children:"F\xf6rnamn"})},NAME2:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name2/label"),children:"Efternamn"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/name2/placeholder"),children:"Efternamn"})},PHONE:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/phone/label"),children:"Telefonnummer"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/phone/placeholder"),children:"Telefonnummer"})},EMAIL:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/email/label"),children:"E-postadress"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/email/placeholder"),children:"E-postadress"})},IDENTITY_NUMBER_COMPANY:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/idenity-number-company/label"),children:"Organisationsnummer"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/idenity-number-company/placeholder"),children:"Organisationsnummer"})},IDENTITY_NUMBER:{LABEL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/idenity-number/label"),children:"Personnummer"}),PLACEHOLDER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/idenity-number/placeholder"),children:"12 siffror, XXXXXXXX-XXXX"})}},E={RECEIVER:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/receiver"),children:"Mottagarens namn"}),WORKPLACE_NAME:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/workplace-name"),children:"Arbetsplatsnamn"}),STREET_ADDRESS:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/street-address"),children:"Gatuadress"}),STREET_ADDRESS_CO:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/street-address-co"),children:"Box c/o"}),POSTAL_CODE:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/postal-code"),children:"Postnummer"}),CITY:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/city"),children:"Stad"}),PHONE:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/phone"),children:"Telefon"}
1),EMAIL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-address/email"),children:"E-post"})},N={NAME:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-contact/name"),children:"Namn"}),EMAIL:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-contact/email"),children:"E-postadress"}),PHONE:(0,t.jsx)(c.NB,{uri:"".concat(i,"/form-fields/store-customer-contact/phone"),children:"Telefonnummer"})};c.NB,c.NB,c.NB,c.NB,c.NB,c.NB;let p=(0,t.jsx)(c.NB,{uri:"".concat(i,"/submit-form/create"),children:"Skapa ny kund"}),x=(0,t.jsx)(c.NB,{uri:"".concat(i,"/submit-form/update"),children:"Spara"}),j=(0,t.jsx)(c.NB,{uri:"".concat(i,"/customer-edit/description"),children:"H\xe4r kan du \xe4ndra befintliga uppgifter f\xf6r din kund."})},75921:function(e,n,r){"use strict";r.r(n);var t=r(85893);r(67294);var c=r(89250),i=r(75197),o=r(51648),s=r(97718),a=r(55134),l=r(95012),d=r(10157),u=r(31134),m=r(4512),f=r(49769),h=r.n(f);n.default=()=>{let e=(0,c.s0)();return(0,t.jsx)(m.Z,{children:(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(u.Z,{heading:a.Hh,lower:(0,t.jsx)(s.Z,{block:!0,className:h().description,children:a.QQ})}),(0,t.jsx)(i.Z,{className:h().container,children:(0,t.jsx)(d.ZP,{afterSubmit:()=>{e(l.$.CUSTOMERS)}})})]})})}},10157:function(e,n,r){"use strict";r.d(n,{hj:function(){return N},wr:function(){return p}});var t=r(85893);r(67294);var c=r(66688),i=r(65014),o=r(95142),s=r(43285),a=r(15160),l=r(70076),d=r(51326),u=r(26145),m=r(97718),f=r(347),h=r(55134),E=r(60675);let N=e=>{let{children:n,heading:r,subheading:c}=e;return(0,t.jsxs)(u.Z,{spacing:2,children:[(0,t.jsx)(m.Z,{block:!0,bold:!0,children:r}),c&&(0,t.jsx)(m.Z,{block:!0,color:"dark-grey",children:c}),(0,t.jsx)(u.Z,{spacing:2,children:n})]})},p=e=>{let{children:n,prefix:r="",isUpdateView:i=!1}=e,{values:s}=(0,c.cI)().getState(),a=e=>[r,e].filter(Boolean).join("."),l=(0,o.u9)(s,a("is_company"));return(0,t.jsxs)(u.Z,{spacing:3,children:[!i&&(0,t.jsx)(c.gN,{type:"checkbox",label:h.GZ.IS_CUSTOMER.LABEL,name:a("is_company"),component:d.Eo}),(0,t.jsxs)(u.Z,{spacing:8,children:[(0,t.jsxs)(N,{heading:void 0,children:[(0,t.jsx)(c.gN,{placeholder:l?h.GZ.IDENTITY_NUMBER_COMPANY.PLACEHOLDER:h.GZ.IDENTITY_NUMBER.PLACEHOLDER,label:l?h.GZ.IDENTITY_NUMBER_COMPANY.LABEL:h.GZ.IDENTITY_NUMBER.LABEL,block:!0,name:a("identity_number"),component:d.l8}),l?(0,t.jsx)(c.gN,{placeholder:h.GZ.NAME_COMPANY.PLACEHOLDER,label:h.GZ.NAME_COMPANY.LABEL,block:!0,name:a("name"),component:d.l8,validate:(0,E.C1)("Ange f\xf6retagsnamn"),required:!0}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.gN,{placeholder:h.GZ.NAME1.PLACEHOLDER,label:h.GZ.NAME1.LABEL,block:!0,name:a("name1"),component:d.l8,validate:(0,E.C1)("Ange f\xf6rnamn"),required:!0}),(0,t.jsx)(c.gN,{placeholder:h.GZ.NAME2.PLACEHOLDER,label:h.GZ.NAME2.LABEL,block:!0,name:a("name2"),component:d.l8,validate:(0,E.C1)("Ange efternamn"),required:!0})]}),(0,t.jsx)(c.gN,{placeholder:h.GZ.PHONE.PLACEHOLDER,label:h.GZ.PHONE.LABEL,block:!0,name:a("phone"),component:d.l8,validate:(0,E.C1)("Ange telefonnummer"),required:!0}),(0,t.jsx)(c.gN,{placeholder:h.GZ.EMAIL.PLACEHOLDER,label:h.GZ.EMAIL.LABEL,block:!0,name:a("email"),component:d.l8,validate:(0,E.C1)("Ange E-postadress"),required:!0})]}),l&&(0,t.jsxs)(N,{heading:h.Di,children:[(0,t.jsx)(c.gN,{placeholder:h.GZ.NAME1.PLACEHOLDER,label:h.GZ.NAME1.LABEL,block:!0,name:a("name1"),component:d.l8}),(0,t.jsx)(c.gN,{placeholder:h.GZ.NAME2.PLACEHOLDER,label:h.GZ.NAME2.LABEL,block:!0,name:a("name2"),component:d.l8})]}),n]})]})},x={name1:"",name2:"",email:"",phone:"",is_company:!1,id:void 0};n.ZP=e=>{let{store:n}=(0,f.o)(),{external_id:r}=n,{afterSubmit:o,initialValues:d=x}=e,u=!!d.id,m=async e=>{let{identity_number:n=null}=e;try{let t=await (u?(0,s.uG)({...e,external_id:r,id:e.id,identity_number:n}):(0,s.wK)({...e,external_id:r,identity_number:n}));o(t.data)}catch(e){if((0,a.N0)(e))return e.response.data}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.l0,{initialValues:d,onSubmit:m,children:e=>{let{handleSubmit:n,submitting:r,pristine:c}=e;return(0,t.jsx)("form",{onSubmit:n,children:(0,t.jsx)(p,{isUpdateView:u,children:(0,t.jsx)(l.Z,{disabled:r||c,type:"submit",block:!0,color:"action",children:u?h.Fz:h.h2})})})}}),(0,t.jsxs)(i.qB,{children:[h.RX,h.GZ,h.h2,h.Fz]})]})}},31134:function(e,n,r){"use strict";var t=r(85893);r(67294);var c=r(93967),i=r.n(c),o=r(75197),s=r(97718),a=r(85150),l=r.n(a);n.Z=e=>{let{heading:n,actions:r,lower:c,border:a=!0}=e;return(0,t.jsxs)(o.Z,{padding:"less",component:"header",className:i()(l().root,a&&l().hasBorder),children:[(0,t.jsxs)("section",{className:l().row,children:[n&&(0,t.jsx)(s.Z,{variant:"superheading",children:n}),r&&(0,t.jsx)("section",{className:l().actions,children:r})]}),c&&(0,t.jsx)("section",{children:c})]})}},4512:function(e,n,r){"use strict";r.d(n,{Z:function(){return N}});var t=r(85893);r(67294);
1var c=r(75197),i=r(51648),o=r(22297),s=r(89250),a=r(12599),l=r(79655),d=r(35293),u=r(76137),m=r(61039),f=e=>{let{alterCurrentRoute:n,omitRoutes:r,...c}=e,{routes:i,flattenedRoutes:o}=(0,m.Iw)(),f=(0,s.TH)(),h=(0,s.UO)(),E=Object.entries(h),N=i.map(e=>(0,u.M6)(e)),p=(0,u.tO)(N).filter(e=>{let{path:n}=e;return(0,a.LX)(n,f.pathname)}).find(e=>{var n;let[,r=""]=null!==(n=e.path.match(/:([a-z,A-Z]+)/))&&void 0!==n?n:[];return E.length?null!=h[r]:!r});p&&n&&(p=n(p));let x=p?[...p.breadcrumbs,p]:[],j=(null==r?void 0:r.length)?x.filter(e=>!(null==r?void 0:r.includes(e.path))):x;return(0,t.jsx)(d.Z,{...c,children:j.map((e,n)=>o.some(n=>n.path===e.path)?(0,t.jsx)(l.rU,{to:(0,a.Gn)(e.path,h),children:e.name},n):null)})},h=r(60280),E=r.n(h),N=e=>{let{children:n,breadcrumbsProps:r={}}=e;return(0,t.jsxs)(o.Z,{className:E().root,children:[(0,t.jsx)(i.Z,{component:"section",children:(0,t.jsx)(c.Z,{padding:"less",children:(0,t.jsx)(f,{...r,desktopOnly:!1})})}),n]})}},60675:function(e,n,r){"use strict";r.d(n,{C1:function(){return t},Qf:function(){return o},Ql:function(){return a},ib:function(){return c},jG:function(){return i},v7:function(){return l}});let t=e=>n=>null!=n&&""!==n.trim()?void 0:e,c=e=>{let n=new Date;return r=>r instanceof Date&&null!=r&&r>n?void 0:e},i=e=>n=>Number.isInteger(n)?void 0:e,o=e=>n=>null!=n&&/^.*[^@\s]@[^@\s]+\.[^@\s.]+$/.test(n.trim())?void 0:e,s=/^[A-Za-zÅÄÖåäö0-9.,\/ -]+$/,a=e=>n=>{let r=null==n?void 0:n.trim();return!r||s.test(r)?void 0:e};function l(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e=>{for(let r of n){let n=r(e);if(null!=n)return n}}}},81076:function(e){e.exports={root:"Content_root__zWkMT"}},49769:function(e){e.exports={description:"CreateCustomer_description__kmw92",container:"CreateCustomer_container__ZpAkk"}},85150:function(e){e.exports={root:"Header_root__E2EgY",row:"Header_row__ZqhGC",hasBorder:"Header_hasBorder__VEGbv",heading:"Header_heading__xl3w4",actions:"Header_actions__2bcOs"}},60280:function(e){e.exports={root:"Layout_root__2Ecup"}}}]);
2//# sourceMappingURL=5921.b25cd7b06abb6e56.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.