1"use strict";(self.webpackChunkwebstore_ng=self.webpackChunkwebstore_ng||[]).push([[4222],{20542:(e,t,i)=>{i.d(t,{KK:()=>F,pu:()=>M,Ay:()=>N});var n=i(89379),o=i(80045),s=i(48451),r=i(65043),l=i(38517),a=i(78776),c=i(94799),d=i(80077),u=i(14961),h=i(73216),x=i(24343),p=i(12097),m=i(33699),v=i(18682),g=i(79623),j=i(55359),f=i(66446),y=i(90030),A=i(55895),b=i(22153),k=i(23344),w=i(14421),S=i(70579);const C=e=>{const t=(0,s.c)(89),{handleClose:i}=e,n=(0,d.wA)(),{t:o}=(0,u.B)(),l=(0,h.Zp)(),[a,c]=(0,r.useState)(""),[j,C]=(0,r.useState)(""),[I,W]=(0,r.useState)(!1),[z,B]=(0,r.useState)(!1),[P,O]=(0,r.useState)(!1),D=(0,d.d4)(_),H=(0,d.d4)(T),N=(0,d.d4)(E),F=(0,d.d4)(L);let M,U;t[0]!==n?(M=async(e,t)=>{const i=t.get("email"),o=t.get("password");return console.log(i,o),n((0,f.iDC)(i,o,null,null)),{submitted:!0}},t[0]=n,t[1]=M):M=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(U={submitted:!1},t[2]=U):U=t[2];const[,K,q]=(0,r.useActionState)(M,U);let G;t[3]!==F||t[4]!==l?(G=e=>{l((0,w.WE)("register",F))},t[3]=F,t[4]=l,t[5]=G):G=t[5];const R=G;let V;t[6]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{B(!0)},t[6]=V):V=t[6];const J=V;let Z;t[7]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{B(!1)},t[7]=Z):Z=t[7];const Y=Z;let Q;t[8]!==P?(Q=()=>{O(!P)},t[8]=P,t[9]=Q):Q=t[9];const $=Q;let X,ee,te,ie,ne;t[10]!==(null===H||void 0===H?void 0:H.status)?(X=()=>{401===(null===H||void 0===H?void 0:H.status)&&W(!0)},t[10]=null===H||void 0===H?void 0:H.status,t[11]=X):X=t[11],t[12]!==H?(ee=[H],t[12]=H,t[13]=ee):ee=t[13],(0,r.useEffect)(X,ee),t[14]!==N||t[15]!==H||t[16]!==I||t[17]!==i?(te=()=>{console.log("useEffect _authentication authenticationFailed = "+I),console.log("useEffect _authentication authenticationResponse = "+JSON.stringify(H)),N&&N.businessPartnerNumber&&(console.log("useEffect _authentication set authenticationFailed to false "),W(!1),i())},t[14]=N,t[15]=H,t[16]=I,t[17]=i,t[18]=te):te=t[18],t[19]!==N?(ie=[N],t[19]=N,t[20]=ie):ie=t[20],(0,r.useEffect)(te,ie),t[21]===Symbol.for("react.memo_cache_sentinel")?(ne={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:2,width:300,"& .MuiTextField-root":{margin:1,width:300,m:3},"& .MuiButtonBase-root":{margin:1,width:300,m:3},"& .MuiBox-root":{width:300}},t[21]=ne):ne=t[21];const oe=ne;let se;t[22]===Symbol.for("react.memo_cache_sentinel")?(se={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:2,width:"100%","& .MuiTextField-root":{margin:1,width:"70vw",m:3},"& .MuiButtonBase-root":{margin:1,width:"70vw",m:3},"& .MuiBox-root":{width:"70vw"}},t[22]=se):se=t[22];const re=se;let le;t[23]===Symbol.for("react.memo_cache_sentinel")?(le={display:"flex",flexDirection:"column",justifyContent:"center",mt:5,width:400},t[23]=le):le=t[23];const ae=le,ce="mobile"===F?re:oe;let de,ue,he,xe,pe,me;t[24]!==I||t[25]!==o?(de=I&&(0,S.jsx)(A.A,{sx:{pb:10},variant:"errorText",children:o("login.invalid")}),t[24]=I,t[25]=o,t[26]=de):de=t[26],t[27]!==o?(ue=o("login.name"),t[27]=o,t[28]=ue):ue=t[28],t[29]===Symbol.for("react.memo_cache_sentinel")?(he=e=>c(e.target.value),t[29]=he):he=t[29],t[30]===Symbol.for("react.memo_cache_sentinel")?(xe={autoFocus:!0},t[30]=xe):xe=t[30],t[31]!==a||t[32]!==q||t[33]!==ue?(pe=(0,S.jsx)(x.A,{name:"email",label:ue,variant:"outlined",type:"text",required:!0,value:a,onChange:he,disabled:q,inputProps:xe}),t[31]=a,t[32]=q,t[33]=ue,t[34]=pe):pe=t[34],t[35]!==o?(me=o("login.password"),t[35]=o,t[36]=me):me=t[36];const ve=P?"text":"password";let ge,je,fe,ye,Ae,be,ke;t[37]===Symbol.for("react.memo_cache_sentinel")?(ge=e=>C(e.target.value),t[37]=ge):ge=t[37],t[38]!==P?(je=P&&(0,S.jsx)(k.G3,{size:"lg"}),t[38]=P,t[39]=je):je=t[39],t[40]!==P?(fe=!P&&(0,S.jsx)(k.bM,{size:"lg"}),t[40]=P,t[41]=fe):fe=t[41],t[42]!==$||t[43]!==je||t[44]!==fe?(ye={input:{endAdornment:(0,S.jsxs)(m.A,{onClick:$,position:"end",children:[je,fe]})}},t[42]=$,t[43]=je,t[44]=fe,t[45]=ye):ye=t[45],t[46]!==q||t[47]!==j||t[48]!==me||t[49]!==ve||t[50]!==ye?(Ae=(0,S.jsx)(x.A,{name:"password",label:me,variant:"outlined",required:!0,value:j,type:ve,onChange:ge,disabled:q,slotProps:ye}),t[46]=q,t[47]=j,t[48]=me,t[49]=ve,t[50]=ye,t[51]=Ae):Ae=t[51],t[52]!==q||t[53]!==o?(be=q?"".concat(o("login.login"),"..."):o("login.login"),t[52]=q,t[53]=o,t[54]=be):be=t[54],t[55]!==q||t[56]!==be?(ke=(0,S.jsx)(p.A,{type:"submit",variant:"contained",disabled:q,children:be}),t[55]=q,t[56]=be,t[57]=ke):ke=t[57];const we=F===w.Pb?"#666666":y.A[500];let Se,Ce,_e;t[58]!==we?(Se={backgroundColor:we},t[58]=we,t[59]=Se):Se=t[59],t[60]!==o?(Ce=o("status.newcustomer"),t[60]=o,t[61]=Ce):Ce=t[61],t[62]!==R||t[63]!==Se||t[64]!==Ce?(_e=(0,S.jsx)(p.A,{variant:"contained",onClick:R,sx:Se,children:Ce}),t[62]=R,t[63]=Se,t[64]=Ce,t[65]=_e):_e=t[65];
1const Te=F===w.Pb?"#000000":D.appPrimaryColor;let Ee,Le,Ie,We,ze,Be,Pe;return t[66]!==Te?(Ee={backgroundColor:"transparent",color:Te},t[66]=Te,t[67]=Ee):Ee=t[67],t[68]!==o?(Le=o("login.forgotten"),t[68]=o,t[69]=Le):Le=t[69],t[70]!==Ee||t[71]!==Le?(Ie=(0,S.jsx)(p.A,{variant:"text",onClick:J,sx:Ee,children:Le}),t[70]=Ee,t[71]=Le,t[72]=Ie):Ie=t[72],t[73]!==ke||t[74]!==_e||t[75]!==Ie?(We=(0,S.jsx)(v.A,{sx:ae,children:(0,S.jsxs)(g.A,{spacing:10,children:[ke,_e,Ie]})}),t[73]=ke,t[74]=_e,t[75]=Ie,t[76]=We):We=t[76],t[77]!==pe||t[78]!==Ae||t[79]!==We?(ze=(0,S.jsxs)("form",{action:K,children:[pe,Ae,We]}),t[77]=pe,t[78]=Ae,t[79]=We,t[80]=ze):ze=t[80],t[81]!==a||t[82]!==z?(Be=(0,S.jsx)(b.A,{dialogOpen:z,userName:a,handleDialogClose:Y}),t[81]=a,t[82]=z,t[83]=Be):Be=t[83],t[84]!==ce||t[85]!==de||t[86]!==ze||t[87]!==Be?(Pe=(0,S.jsxs)(v.A,{sx:ce,children:[de,ze,Be]}),t[84]=ce,t[85]=de,t[86]=ze,t[87]=Be,t[88]=Pe):Pe=t[88],Pe};function _(e){return(0,j.qol)(e)}function T(e){return(0,j.W9c)(e)}function E(e){return(0,j.jhO)(e)}function L(e){return(0,j.jOB)(e)}var I=i(81911),W=i(9200),z=i(85877),B=i(91449),P=i(82693),O=i(68330),D=i(56185);const H=["okAction","cancelAction","msg","title","open"],N=e=>{const t=(0,s.c)(15),{open:i,handleClose:n,title:o}=e,r=(0,d.d4)(U),u=(0,d.d4)(K);let h;t[0]!==u||t[1]!==r?(h=(0,D.A)(u===w.Pb?(0,O.bV)(r):(0,O.D9)(r)),t[0]=u,t[1]=r,t[2]=h):h=t[2];const x=h;let p,m,v,g;return t[3]!==o?(p=(0,S.jsx)(I.A,{children:o}),t[3]=o,t[4]=p):p=t[4],t[5]!==n?(m=(0,S.jsx)(a.A,{children:(0,S.jsx)(c.A,{elevation:0,children:(0,S.jsx)(C,{handleClose:n})})}),t[5]=n,t[6]=m):m=t[6],t[7]!==n||t[8]!==i||t[9]!==p||t[10]!==m?(v=(0,S.jsxs)(l.A,{open:i,onClose:n,children:[p,m]}),t[7]=n,t[8]=i,t[9]=p,t[10]=m,t[11]=v):v=t[11],t[12]!==v||t[13]!==x?(g=(0,S.jsx)(P.A,{theme:x,children:v}),t[12]=v,t[13]=x,t[14]=g):g=t[14],g},F=e=>{const t=(0,s.c)(35);let i,r,c,d,h,x;if(t[0]!==e){var m=e;({okAction:c,cancelAction:i,msg:r,title:x,open:d}=m),h=(0,o.A)(m,H),t[0]=e,t[1]=i,t[2]=r,t[3]=c,t[4]=d,t[5]=h,t[6]=x}else i=t[1],r=t[2],c=t[3],d=t[4],h=t[5],x=t[6];const{t:v}=(0,u.B)();let g,j,f,y,A,b,k,w,C,_;return t[7]!==v||t[8]!==x?(g=v(x),t[7]=v,t[8]=x,t[9]=g):g=t[9],t[10]!==g?(j=(0,S.jsx)(I.A,{children:g}),t[10]=g,t[11]=j):j=t[11],t[12]!==r?(f=(0,S.jsx)(W.A,{id:"alert-dialog-description",dangerouslySetInnerHTML:{__html:r}}),t[12]=r,t[13]=f):f=t[13],t[14]!==v?(y=v("common.yes"),t[14]=v,t[15]=y):y=t[15],t[16]!==c||t[17]!==y?(A=(0,S.jsx)(p.A,{onClick:c,children:y}),t[16]=c,t[17]=y,t[18]=A):A=t[18],t[19]!==v?(b=v("common.no"),t[19]=v,t[20]=b):b=t[20],t[21]!==i||t[22]!==b?(k=(0,S.jsx)(p.A,{autoFocus:!0,onClick:i,children:b}),t[21]=i,t[22]=b,t[23]=k):k=t[23],t[24]!==A||t[25]!==k?(w=(0,S.jsxs)(z.A,{children:[A,k]}),t[24]=A,t[25]=k,t[26]=w):w=t[26],t[27]!==f||t[28]!==w?(C=(0,S.jsxs)(a.A,{children:[f,w]}),t[27]=f,t[28]=w,t[29]=C):C=t[29],t[30]!==d||t[31]!==h||t[32]!==j||t[33]!==C?(_=(0,S.jsxs)(l.A,(0,n.A)((0,n.A)({open:d,"aria-modal":"true"},h),{},{children:[j,C]})),t[30]=d,t[31]=h,t[32]=j,t[33]=C,t[34]=_):_=t[34],_},M=e=>{const t=(0,s.c)(20),{open:i,handleClose:n,title:o,message:r,severity:a,messageText:c}=e,{t:d}=(0,u.B)();let h;t[0]!==r||t[1]!==c||t[2]!==d?(h=r?d(r):c,t[0]=r,t[1]=c,t[2]=d,t[3]=h):h=t[3];const x=h;let m,v,g,j,f;return t[4]!==d||t[5]!==o?(m=o&&(0,S.jsx)(I.A,{children:d(o)}),t[4]=d,t[5]=o,t[6]=m):m=t[6],t[7]!==a||t[8]!==x?(v=(0,S.jsx)(B.A,{severity:a,children:x}),t[7]=a,t[8]=x,t[9]=v):v=t[9],t[10]!==d?(g=d("main.ok"),t[10]=d,t[11]=g):g=t[11],t[12]!==n||t[13]!==g?(j=(0,S.jsx)(p.A,{autoFocus:!0,onClick:n,children:g}),t[12]=n,t[13]=g,t[14]=j):j=t[14],t[15]!==i||t[16]!==m||t[17]!==v||t[18]!==j?(f=(0,S.jsxs)(l.A,{open:i,children:[m,v,j]}),t[15]=i,t[16]=m,t[17]=v,t[18]=j,t[19]=f):f=t[19],f};function U(e){return(0,j.qol)(e)}function K(e){return(0,j.jOB)(e)}},21839:(e,t,i)=>{i.d(t,{C0:()=>p,DG:()=>m,kn:()=>r,xs:()=>x});var n=i(89379),o=(i(65043),i(14057)),s=i(70579);async function r(e){return"image/svg+xml"===(await fetch(e,{method:"HEAD"})).headers.get("content-type")}const l=i(47391),a=i(71696);function c(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(e,t){if(!e||"string"!==typeof e)return;const i=e.split(";").map(e=>e.trim()).find(e=>e.toLowerCase().startsWith(t.toLowerCase()+":"));return i?i.substring(i.indexOf(":")+1).trim():void 0}function u(e){const t={};return e?(e.split(";
1").forEach(e=>{const i=e.indexOf(":");if(i>0){const n=e.slice(0,i).trim().toLowerCase(),o=e.slice(i+1).trim();n&&o&&(t[n]=o)}}),t):t}function h(e,t){var i,o,s,r,l,a,c,u,h,x,p,m,v,g;const j=null===e||void 0===e?void 0:e.style,f=function(e,t){if(!e||!t)return;let i;return String(e).trim().split(/\s+/).forEach(e=>{t[e]&&(i=(0,n.A)((0,n.A)({},i||{}),t[e]))}),i}(null===e||void 0===e?void 0:e.class,t);return{fill:null!==(i=null!==(o=null===e||void 0===e?void 0:e.fill)&&void 0!==o?o:d(j,"fill"))&&void 0!==i?i:null===f||void 0===f?void 0:f.fill,stroke:null!==(s=null!==(r=null===e||void 0===e?void 0:e.stroke)&&void 0!==r?r:d(j,"stroke"))&&void 0!==s?s:null===f||void 0===f?void 0:f.stroke,strokeWidth:null!==(l=null!==(a=null===e||void 0===e?void 0:e["stroke-width"])&&void 0!==a?a:d(j,"stroke-width"))&&void 0!==l?l:null===f||void 0===f?void 0:f["stroke-width"],strokeLinecap:null!==(c=null!==(u=null===e||void 0===e?void 0:e["stroke-linecap"])&&void 0!==u?u:d(j,"stroke-linecap"))&&void 0!==c?c:null===f||void 0===f?void 0:f["stroke-linecap"],strokeLinejoin:null!==(h=null!==(x=null===e||void 0===e?void 0:e["stroke-linejoin"])&&void 0!==x?x:d(j,"stroke-linejoin"))&&void 0!==h?h:null===f||void 0===f?void 0:f["stroke-linejoin"],fillOpacity:null!==(p=null!==(m=null===e||void 0===e?void 0:e["fill-opacity"])&&void 0!==m?m:d(j,"fill-opacity"))&&void 0!==p?p:null===f||void 0===f?void 0:f["fill-opacity"],opacity:null!==(v=null!==(g=null===e||void 0===e?void 0:e.opacity)&&void 0!==g?g:d(j,"opacity"))&&void 0!==v?v:null===f||void 0===f?void 0:f.opacity}}async function x(e){console.log("readSVG: "+e);return(await fetch(e)).text().then(e=>{var t,i,o;const s=JSON.parse(l.xml2json(e,{compact:!0})),r=function(e){const t={};if(!e)return t;const i=e.replace(/\/\*[\s\S]*?\*\//g,""),o=/([^{}]+)\{([^{}]*)\}/g;let s;for(;null!==(s=o.exec(i));){const e=u(s[2]);if(0===Object.keys(e).length)continue;const i=/\.([A-Za-z0-9_-]+)/g;let o;for(;null!==(o=i.exec(s[1]));)t[o[1]]=(0,n.A)((0,n.A)({},t[o[1]]||{}),e)}return t}((e.match(/<style[^>]*>[\s\S]*?<\/style>/gi)||[]).map(e=>e.replace(/<\/?style[^>]*>/gi,"")).join("\n"));let d={},x=a(s);d.path=c(null===x||void 0===x?void 0:x.checkKey("path")).filter(e=>{var t;return null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.d}).map(e=>(0,n.A)({d:e._attributes.d},h(e._attributes,r))),d.circle=c(null===x||void 0===x?void 0:x.checkKey("circle")).filter(e=>{var t;return null!=(null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.cx)}).map(e=>(0,n.A)({cx:e._attributes.cx,cy:e._attributes.cy,r:e._attributes.r},h(e._attributes,r))),d.rect=c(null===x||void 0===x?void 0:x.checkKey("rect")).filter(e=>{var t,i;return null!=(null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.x)||null!=(null===e||void 0===e||null===(i=e._attributes)||void 0===i?void 0:i.width)}).map(e=>(0,n.A)({x:e._attributes.x,y:e._attributes.y,width:e._attributes.width,height:e._attributes.height,rx:e._attributes.rx,ry:e._attributes.ry},h(e._attributes,r))),d.polygon=c(null===x||void 0===x?void 0:x.checkKey("polygon")).filter(e=>{var t;return null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.points}).map(e=>(0,n.A)({points:e._attributes.points},h(e._attributes,r))),d.polyline=c(null===x||void 0===x?void 0:x.checkKey("polyline")).filter(e=>{var t;return null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.points}).map(e=>(0,n.A)({points:e._attributes.points},h(e._attributes,r))),d.ellipse=c(null===x||void 0===x?void 0:x.checkKey("ellipse")).filter(e=>{var t,i;return null!=(null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.cx)||null!=(null===e||void 0===e||null===(i=e._attributes)||void 0===i?void 0:i.rx)}).map(e=>(0,n.A)({cx:e._attributes.cx,cy:e._attributes.cy,rx:e._attributes.rx,ry:e._attributes.ry},h(e._attributes,r))),d.line=c(null===x||void 0===x?void 0:x.checkKey("line")).filter(e=>{var t,i;return null!=(null===e||void 0===e||null===(t=e._attributes)||void 0===t?void 0:t.x1)||null!=(null===e||void 0===e||null===(i=e._attributes)||void 0===i?void 0:i.x2)}).map(e=>(0,n.A)({x1:e._attributes.x1,y1:e._attributes.y1,x2:e._attributes.x2,y2:e._attributes.y2},h(e._attributes,r)));
1let p=null===x||void 0===x?void 0:x.checkKey("viewBox");if(!p){const e=parseFloat(null===x||void 0===x?void 0:x.checkKey("width")),t=parseFloat(null===x||void 0===x?void 0:x.checkKey("height"));e>0&&t>0&&(p="0 0 ".concat(e," ").concat(t))}return d.viewBox=p,d.strokeWidth=null===x||void 0===x||null===(t=x.checkKey("stroke-width"))||void 0===t?void 0:t.toString(),d.strokeLinecap=null===x||void 0===x||null===(i=x.checkKey("stroke-linecap"))||void 0===i?void 0:i.toString(),d.strokeLinejoin=null===x||void 0===x||null===(o=x.checkKey("stroke-linejoin"))||void 0===o?void 0:o.toString(),console.log("return svg = "+JSON.stringify(d)),d}).catch(e=>{console.log(e)})}const p=e=>{console.log("createSVGIcon ..."),console.log(e.svg);const t=e.svg,i=t.fill;let r=1;const l=e=>"none"===e||"transparent"===e?"none":i,a=e=>{if(e&&"none"!==e)return i},c=(0,o.A)((0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:null===t||void 0===t?void 0:t.viewBox,alt:"",children:[t.path.map(e=>{var i,n,o;return(0,s.jsx)("path",{d:e.d,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth,strokeLinecap:null!==(n=e.strokeLinecap)&&void 0!==n?n:null===t||void 0===t?void 0:t.strokeLinecap,strokeLinejoin:null!==(o=e.strokeLinejoin)&&void 0!==o?o:null===t||void 0===t?void 0:t.strokeLinejoin,fillOpacity:e.fillOpacity,opacity:e.opacity},r++)}),t.circle.map(e=>{var i;return(0,s.jsx)("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth},r++)}),t.rect.map(e=>{var i;return(0,s.jsx)("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:e.rx,ry:e.ry,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth},r++)}),(t.polygon||[]).map(e=>{var i,n;return(0,s.jsx)("polygon",{points:e.points,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth,strokeLinejoin:null!==(n=e.strokeLinejoin)&&void 0!==n?n:null===t||void 0===t?void 0:t.strokeLinejoin,fillOpacity:e.fillOpacity,opacity:e.opacity},r++)}),(t.polyline||[]).map(e=>{var i,n,o;return(0,s.jsx)("polyline",{points:e.points,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth,strokeLinecap:null!==(n=e.strokeLinecap)&&void 0!==n?n:null===t||void 0===t?void 0:t.strokeLinecap,strokeLinejoin:null!==(o=e.strokeLinejoin)&&void 0!==o?o:null===t||void 0===t?void 0:t.strokeLinejoin,fillOpacity:e.fillOpacity,opacity:e.opacity},r++)}),(t.ellipse||[]).map(e=>{var i;return(0,s.jsx)("ellipse",{cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,fill:l(e.fill),stroke:a(e.stroke),strokeWidth:null!==(i=e.strokeWidth)&&void 0!==i?i:null===t||void 0===t?void 0:t.strokeWidth,fillOpacity:e.fillOpacity,opacity:e.opacity},r++)}),(t.line||[]).map(e=>{var n,o;return(0,s.jsx)("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,stroke:a(e.stroke)||i,strokeWidth:null!==(n=e.strokeWidth)&&void 0!==n?n:null===t||void 0===t?void 0:t.strokeWidth,strokeLinecap:null!==(o=e.strokeLinecap)&&void 0!==o?o:null===t||void 0===t?void 0:t.strokeLinecap,opacity:e.opacity},r++)})]}),t.name);return(0,s.jsx)(c,(0,n.A)({},e))};async function m(e){console.log("readSVGFromFile: "+e);const t=(await fetch(e)).text();return console.log("readSVGFromFile: "+t),t}},22153:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(48451),o=i(65043),s=i(80077),r=i(14961),l=i(82693),a=i(56185),c=i(68330),d=i(66446),u=i(55359),h=i(38517),x=i(91449),p=i(78776),m=i(85877),v=i(12097),g=i(9200),j=i(81911),f=i(24343),y=i(4030),A=i(70579);const b=e=>{const t=(0,n.c)(60),{userName:i,handleDialogClose:u,dialogOpen:b}=e,S=(0,s.wA)(),{t:C}=(0,r.B)(),_=(0,s.d4)(k),T=(0,s.d4)(w),[E,L]=(0,o.useState)(i),[I,W]=(0,o.useState)(!1),[z,B]=(0,o.useState)(!1),[P,O]=(0,o.useState)("");let D;t[0]!==_?(D=(0,a.A)((0,c.D9)(_)),t[0]=_,t[1]=D):D=t[1];const H=D;let N,F,M,U,K,q,G,R;t[2]!==i?(N=()=>{L(i)},F=[i],t[2]=i,t[3]=N,t[4]=F):(N=t[3],F=t[4]),(0,o.useEffect)(N,F),t[5]!==T?(M=()=>
1{if(console.log(T),T.success)B(!0);else if(T.errors){let e="";T.errors.forEach(function(t){console.log("ERROR: "+t.text),e+=t.text+"<br />"}),O(e),W(!0)}},U=[T],t[5]=T,t[6]=M,t[7]=U):(M=t[6],U=t[7]),(0,o.useEffect)(M,U),t[8]!==b?(K=()=>{!1===b&&(W(!1),B(!1))},q=[b],t[8]=b,t[9]=K,t[10]=q):(K=t[9],q=t[10]),(0,o.useEffect)(K,q),t[11]!==S?(G=async(e,t)=>{const i=t.get("userName");return S((0,d.M2G)(i)),{submitted:!0}},t[11]=S,t[12]=G):G=t[12],t[13]===Symbol.for("react.memo_cache_sentinel")?(R={submitted:!1},t[13]=R):R=t[13];const[,V,J]=(0,o.useActionState)(G,R);let Z,Y,Q;if(t[14]!==P||t[15]!==I){Z=()=>(0,A.jsxs)(h.A,{open:I,onClose:e,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,A.jsx)(x.A,{severity:"warning"}),(0,A.jsx)(p.A,{dangerouslySetInnerHTML:{__html:P}}),(0,A.jsx)(m.A,{children:(0,A.jsx)(v.A,{sx:{textTransform:"none"},variant:"navigationAction",onClick:e,children:"Ok"})})]});const e=()=>{O(!1),W(!1)};t[14]=P,t[15]=I,t[16]=Z}else Z=t[16];if(t[17]!==u||t[18]!==z||t[19]!==C){Y=()=>(0,A.jsxs)(h.A,{open:z,onClose:e,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,A.jsx)(x.A,{severity:"warning"}),(0,A.jsx)(p.A,{children:(0,A.jsx)(g.A,{id:"alert-dialog-description",children:C("login.reminderSent")})}),(0,A.jsx)(m.A,{children:(0,A.jsx)(v.A,{sx:{textTransform:"none"},variant:"navigationAction",onClick:e,children:"Ok"})})]});const e=()=>{B(!1),u()};t[17]=u,t[18]=z,t[19]=C,t[20]=Y}else Y=t[20];t[21]===Symbol.for("react.memo_cache_sentinel")?(Q={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:2,width:300,"& .MuiTextField-root":{margin:1,width:300,m:3},"& .MuiButtonBase-root":{margin:1,width:300,m:3},"& .MuiBox-root":{width:300}},t[21]=Q):Q=t[21];const $=Q;let X;t[22]===Symbol.for("react.memo_cache_sentinel")?(X={display:"flex",flexDirection:"column",justifyContent:"center",width:300},t[22]=X):X=t[22];const ee=X;let te,ie,ne,oe,se,re,le,ae,ce,de,ue,he,xe,pe;return t[23]!==C?(te=C("customerdata.account.password.title"),t[23]=C,t[24]=te):te=t[24],t[25]!==te?(ie=(0,A.jsx)(j.A,{children:te}),t[25]=te,t[26]=ie):ie=t[26],t[27]===Symbol.for("react.memo_cache_sentinel")?(ne={width:"300px",pb:15},t[27]=ne):ne=t[27],t[28]!==C?(oe=C("customerdata.account.userName"),t[28]=C,t[29]=oe):oe=t[29],t[30]===Symbol.for("react.memo_cache_sentinel")?(se=e=>L(e.target.value),t[30]=se):se=t[30],t[31]!==J||t[32]!==oe||t[33]!==E?(re=(0,A.jsx)(f.A,{name:"userName",sx:ne,variant:"filled",label:oe,type:"text",value:E,onChange:se,disabled:J}),t[31]=J,t[32]=oe,t[33]=E,t[34]=re):re=t[34],t[35]!==J||t[36]!==C?(le=J?"".concat(C("customerdata.account.password.request"),"..."):C("customerdata.account.password.request"),t[35]=J,t[36]=C,t[37]=le):le=t[37],t[38]!==J||t[39]!==le?(ae=(0,A.jsx)(y.A,{sx:ee,children:(0,A.jsx)(v.A,{type:"submit",variant:"contained",disabled:J,children:le})}),t[38]=J,t[39]=le,t[40]=ae):ae=t[40],t[41]!==re||t[42]!==ae?(ce=(0,A.jsx)(p.A,{children:(0,A.jsxs)("form",{action:V,children:[re,ae]})}),t[41]=re,t[42]=ae,t[43]=ce):ce=t[43],t[44]!==b||t[45]!==u||t[46]!==ie||t[47]!==ce?(de=(0,A.jsxs)(h.A,{maxWidth:"md",open:b,onClose:u,children:[ie,ce]}),t[44]=b,t[45]=u,t[46]=ie,t[47]=ce,t[48]=de):de=t[48],t[49]!==de||t[50]!==H?(ue=(0,A.jsx)(l.A,{theme:H,children:de}),t[49]=de,t[50]=H,t[51]=ue):ue=t[51],t[52]!==Z?(he=(0,A.jsx)(Z,{}),t[52]=Z,t[53]=he):he=t[53],t[54]!==Y?(xe=(0,A.jsx)(Y,{}),t[54]=Y,t[55]=xe):xe=t[55],t[56]!==ue||t[57]!==he||t[58]!==xe?(pe=(0,A.jsxs)(y.A,{sx:$,children:[ue,he,xe]}),t[56]=ue,t[57]=he,t[58]=xe,t[59]=pe):pe=t[59],pe};function k(e){return(0,u.qol)(e)}function w(e){return(0,u.fDv)(e)}},54222:(e,t,i)=>{i.d(t,{A:()=>ie});var n=i(65043),o=i(80077),s=i(73216),r=i(38289),l=i(40854),a=i.n(l),c=i(88648),d=i(66446),u=i(55359),h=i(38517),x=i(78776),p=i(81911),m=i(55895),v=i(9200),g=i(79623),j=i(85877),f=i(12097),y=i(91449),A=i(41968),b=i(46471),k=i(86554),w=i(47471),S=i(66185),C=i(79801),_=i(94527),T=i(26020),E=i(4030),L=i(31202),I=i(26887),W=i(23182),z=i(42579),B=i(26529),P=i(32911),O=i(41729),D=i(23344),H=(i(15705),i(35913),i(85465)),N=i(14961),F=i(21839),M=i(70579);const U=()=>{const e=(0,o.d4)(e=>(0,u.qol)(e)),t=(0,o.d4)(e=>
1(0,u.mZ2)(e)),[i,s]=(0,n.useState)("_blank"),[r,l]=(0,n.useState)(!1),[a,c]=(0,n.useState)("");(0,n.useEffect)(()=>{!async function(){let e=await(0,F.kn)("/webstore/service/v1/masterdata/resources/image/logo.png");l(e),e&&async function(){let e;e=await(0,F.DG)("/webstore/service/v1/masterdata/resources/image/logo.png"),e.startsWith("<?xml")&&(e=e.slice(e.indexOf(">")+1));c(e)}()}()},[]),(0,n.useEffect)(()=>{if(console.log(window.location.href),console.log(e.appLogoLink),e.appLogoLink&&0!==e.appLogoLink){var t=window.location.href.split("/"),i=null===e||void 0===e?void 0:e.appLogoLink.split("/");console.log(t),console.log(i),s(null===e||void 0===e||!e.appLogoLink.startsWith("http")||(null===i||void 0===i?void 0:i.length)>2&&i[2]===t[2]?"_self":"_blank")}},[null===e||void 0===e?void 0:e.appLogoLink]);const d=e=>(0,M.jsx)("div",{style:{maxHeight:50,maxWidth:250,width:200,marginRight:5},dangerouslySetInnerHTML:{__html:a}}),h=()=>(0,M.jsxs)(M.Fragment,{children:[r&&(0,M.jsx)(d,{}),!r&&(0,M.jsx)("img",{style:{maxHeight:50},alt:t,src:"/webstore/service/v1/masterdata/resources/image/logo.png"})]});return(0,M.jsxs)(E.A,{sx:{backgroundCcolor:e.logoBackgroundColor},children:[void 0!==e.appLogoLink&&0!==e.appLogoLink&&(0,M.jsx)(L.A,{href:e.appLogoLink,target:i,children:(0,M.jsx)(h,{})}),!e.appLogoLink&&(0,M.jsx)(h,{})]})};var K=i(65019),q=i(20542),G=i(50036),R=i(14421),V=i(61197);const J=e=>{let{menuAnchor:t}=e;const i=(0,s.zy)(),{t:r}=(0,N.B)(),l=(0,s.Zp)(),c=(0,o.wA)(),p=(0,o.d4)(e=>(0,u.jhO)(e)),g=(0,o.d4)(e=>(0,u.w4c)(e)),A=(0,o.d4)(e=>(0,u.lT9)(e)),_=(0,o.d4)(e=>(0,u.hYQ)(e)),T=(0,o.d4)(e=>(0,u.jOB)(e)),L=(0,o.d4)(e=>(0,u.qT2)(e)),I=(0,o.d4)(e=>(0,u.AK$)(e)),W=(0,o.d4)(e=>(0,u.O3s)(e)),B=(0,o.d4)(e=>(0,u.n35)(e)),P=(0,o.d4)(e=>(0,u.E0U)(e)),O=(0,o.d4)(e=>(0,u.TD_)(e)),H=(0,o.d4)(e=>(0,u.cFc)(e)),F=(0,o.d4)(e=>(0,u.qol)(e)),U=(0,o.d4)(e=>(0,u.$ph)(e)),J=(0,o.d4)(e=>(0,u.TiC)(e)),Z=(0,o.d4)(e=>(0,u.nTV)(e)),[Y,Q]=(0,n.useState)(null),[$,X]=(0,n.useState)(!1),[ee,te]=(0,n.useState)(!1),[ie,ne]=n.useState(null),[oe,se]=(0,n.useState)(!1),re=Boolean(ie),[le,ae]=(0,n.useState)(null),[ce,de]=(0,n.useState)(!1),[ue,he]=(0,n.useState)(!1),xe=(0,R.WE)("customer",T),pe=(0,R.WE)("register",T),me=n.useRef(!0);(0,n.useEffect)(()=>(me.current=!0,()=>{me.current=!1}),[]),(0,n.useEffect)(()=>{A&&p&&p.roles&&c((0,d.iDC)(A.userName,null,"CIC",A.businessPartnerNo))},[A,p]);const ve=null===p||void 0===p?void 0:p.customerType;(0,n.useEffect)(()=>{B||P||ue||!_||!ve||_===ve||he(!0)},[_,ve,ue,B,P]),(0,n.useEffect)(()=>{se(i.pathname.startsWith(xe)||i.pathname.startsWith(pe)||i.pathname.startsWith((0,R.WE)("register-mail",T))||i.pathname.startsWith((0,R.WE)("register-contact",T))||i.pathname.startsWith((0,R.WE)("register-payment",T)))},[i.pathname]);const ge=()=>(0,M.jsxs)(h.A,{open:ce,children:[(0,M.jsx)(y.A,{severity:"warning",children:r("auth.sessionExpired.title")}),(0,M.jsx)(x.A,{children:(0,M.jsx)(v.A,{children:(0,M.jsx)(m.A,{variant:"text",children:r("auth.sessionExpired")})})}),(0,M.jsx)(j.A,{children:(0,M.jsx)(f.A,{variant:"text",onClick:fe,children:r("main.ok")})})]}),je="private"===_?"main.loginDifferentCustomerTypePrivate":"main.loginDifferentCustomerTypeBusiness",fe=()=>{de(!1),c((0,d.rig)()).then(()=>{l((0,R.WE)("templates",T))})},ye=()=>{ae(setTimeout(()=>{de(!0)},1e3*p.sessionTimeoutSeconds))};(0,n.useEffect)(()=>{p&&p.sessionTimeoutSeconds&&ye()},[p]),(0,n.useEffect)(()=>{g&&p&&p.sessionTimeoutSeconds&&le&&(clearTimeout(le),ye())},[g]),(0,n.useEffect)(()=>(window.addEventListener("message",Ae),()=>{window.removeEventListener("message",Ae)}),[]),(0,n.useEffect)(()=>(J&&Q(setInterval(()=>{a().get("/webstore/service/index").then(e=>{})},1e3*J-1e3)),()=>{Y&&clearInterval(Y)}),[J]);const Ae=e=>{switch(e.data){case"oauthSuccess":a()({url:U.getAuthentication.href,headers:{"content-type":"application/json"}}).then(e=>{if(200===e.status){let t=e.data;c((0,d.BV6)(t)),t.businessPartnerNumber||a()({url:U.userProfile.href,headers:{"content-type":"application/json"}}).then(e=>{if(200===e.status){let t=e.data;l((0,R.WE)("register",T)),c((0,d.paV)(t))}},e=>{console.log(e)})}},e=>{console.log(e)}),te(!1);break;case"oauthCancelled":case"oauthError":te(!1)}},be=()=>{me.current&&ne(null)},ke=e=>{ne(document.getElementById(t))},we=()=>{L.OAUTH2_AUTHENTICATION&&L.OAUTH2_AUTHENTICATION.active?te(!0):X(!0)},Se=async()=>{be(),null!==p&&void 0!==p&&p.clientLogoutUrl&&(document.getElementById("sso-status").src=p.clientLogoutUrl),c((0,d.rig)()),oe&&l(-1)},Ce=e=>{i.pathname!==xe&&(l(xe),c((0,d.goM)(e)))},_e=e=>{X(!1),te(!1)},Te=()=>{let e="";return P?e="Gast":(e=(null===Z||void 0===Z?void 0:Z.length)>0?Z:"",!e||R.mn!==T&&R.Pb!==T||(e=e.split(" ")[0]),I&&(e+=" "+r("status.for"))),e?(0,M.jsxs)(f.A,{variant:"menu",disabled:oe,onClick:ke,startIcon:B?(0,M.jsx)(G.A,{style:{color:"red"}}):(0,M.jsx)(D.JM,{}),children:[" ",e]}):(0,M.jsx)(M.Fragment,{})},Ee=()=>O||W?(0,M.jsx)(M.Fragment,{}):"desktop"===T?(0,M.jsx)(f.A,{variant:"menu",color:"inherit",disabled:oe,onClick:we,startIcon:(0,M.jsx)(D.Ti,{}),children:r("status.login")}):R.mn===T||R.Pb===T?(0,M.jsx)(z.A,{onClick:we,disabled:oe,sx:{"&.MuiButtonBase-root":{color:Le}},"aria-label":r("accessibility.appHeader.loginIcon"),children:(0,M.jsx)(D.Ti,{})}):void 0,Le=()=>T===R.Pb?F.appAccToolbarContrast:F.appToolbarContrast,Ie=()=>(0,M.jsx)(b.A,{anchorEl:ie,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:"menu",keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:re,onClose:be,children:(0,M.jsxs)(k.A,{dense:!0,children:[(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:()=>Ce("home"),children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.JM,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("status.myAccount")}
1)]},"CustomerData"),"desktop"===T&&(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:()=>Ce("orders"),children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.fB,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("status.myOrders")})]},"Orders"),"desktop"===T&&((null===L||void 0===L?void 0:L.ASE_1992.active)||H&&L.DRAFTS.active)&&(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:()=>Ce("drafts"),children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.EV,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("status.myDrafts")})]},"Drafts"),!H&&"desktop"===T&&(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:()=>Ce("invoices"),children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.jp,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("status.myInvoices")})]},"Invoices"),I&&"desktop"===T&&(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:()=>Ce("advertizers"),children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.Tz,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("customerdata.advertizers.title")})]},"Advertizers"),!P&&(0,M.jsxs)(w.A,{disabled:i.pathname.startsWith(xe),onClick:Se,children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.o4,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:r("status.logout")})]},"Logout")]})});return(0,M.jsxs)(E.A,{id:"ID_AUTHENTICATION_STATUS",children:[(0,M.jsx)(Te,{}),I&&(0,M.jsx)(K.gR,{}),!P&&!oe&&(0,M.jsx)(Ie,{}),!P&&!W&&(0,M.jsx)(Ee,{}),$&&(0,M.jsx)(q.Ay,{open:$,handleClose:_e,title:r("login.title")}),ee&&(0,M.jsx)(V.A,{url:U.ssoLogin.href.replace(window.location.href,""),closeHandler:_e,properties:F}),(0,M.jsx)(ge,{}),(0,M.jsxs)(h.A,{open:ue,children:[(0,M.jsx)(y.A,{severity:"warning",children:r("main.loginDifferentCustomerType")}),(0,M.jsx)(x.A,{children:(0,M.jsx)(v.A,{children:(0,M.jsx)(m.A,{variant:"text",dangerouslySetInnerHTML:{__html:r(je)}})})}),(0,M.jsxs)(j.A,{children:[(0,M.jsx)(f.A,{variant:"text",onClick:()=>{he(!1),c((0,d.YPV)());const e=T===R.mn||T===R.Pb?"markets":"templates";l((0,R.WE)(e,T))},children:r("main.ok")}),(0,M.jsx)(f.A,{variant:"text",onClick:()=>{he(!1),c((0,d.rig)())},children:r("main.cancel")})]})]})]})};var Z=i(48451),Y=i(18682);const Q=e=>{const t=(0,Z.c)(7),{t:i}=(0,N.B)(),n=(0,s.zy)();let o;if(t[0]!==n.pathname||t[1]!==i){const e=n.pathname.split("/"),s=$;let r,l;t[3]!==i?(r=i("accessibility.appHeader.hiddenButton.mainContent"),t[3]=i,t[4]=r):r=t[4],t[5]!==r?(l=(0,M.jsx)(Y.A,{variant:"outlined",sx:s,children:(0,M.jsx)(f.A,{href:"#maincontent",tabIndex:0,children:r})}),t[5]=r,t[6]=l):l=t[6],o=(0,M.jsxs)(M.Fragment,{children:[l,(e.includes("schedule")||e.includes("editions")||e.includes("order")&&!e.includes("orders"))&&(0,M.jsx)(Y.A,{variant:"outlined",sx:s,children:(0,M.jsx)(f.A,{href:"#summary",tabIndex:0,children:i("accessibility.appHeader.hiddenButton.summary")})}),(e.includes("creative")||e.includes("order")&&!e.includes("orders"))&&(0,M.jsx)(Y.A,{variant:"outlined",sx:s,children:(0,M.jsx)(f.A,{href:"#preview",tabIndex:0,children:i("accessibility.appHeader.hiddenButton.preview")})}),e.includes("creative")&&(0,M.jsx)(Y.A,{variant:"outlined",sx:s,children:(0,M.jsx)(f.A,{href:"#options",tabIndex:0,children:i("accessibility.appHeader.hiddenButton.options")})}),e.includes("creative")&&(0,M.jsx)(Y.A,{variant:"outlined",sx:s,children:(0,M.jsx)(f.A,{href:"#form",tabIndex:0,children:i("accessibility.appHeader.hiddenButton.form")})})]}),t[0]=n.pathname,t[1]=i,t[2]=o}else o=t[2];return o};function $(){return{position:"absolute",top:10,width:"1px",height:"1px",transform:"translate(-250px)",".MuiButton-root":{"&:focus":{width:"350px",height:"40px",transform:"translate(250px)",color:"black",backgroundColor:"red !important",border:"3px solid #000000"}}}}const X=()=>{const e=(0,Z.c)(26),{t:t}=(0,N.B)(),i=(0,o.d4)(ee),[s,r]=(0,n.useState)(!1);let l,a,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{localStorage.getItem("cookiesAccepted")&&r(!0)},a=[],e[0]=l,e[1]=a):(l=e[0],a=e[1]),(0,n.useEffect)(l,a),e[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{localStorage.setItem("cookiesAccepted","true"),r(!0)},e[2]=c):c=e[2];const d=c;if(s)return null;let u,h,x,p,v,j,y,A,b,k,w;return e[3]!==i.appPrimaryColor?(u={fontSize:18,position:"fixed",bottom:0,left:0,width:"100%",backgroundColor:i.appPrimaryColor,color:"#fff",textAlign:"center",padding:"10px",zIndex:te},e[3]=i.appPrimaryColor,e[4]=u):u=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(h={"& a":{color:"white"}},e[5]=h):h=e[5],e[6]!==t?(x=t("cookies.required"),e[6]=t,e[7]=x):x=e[7],e[8]!==x?(p=(0,M.jsx)(m.A,{sx:h,dangerouslySetInnerHTML:{__html:x}}),e[8]=x,e[9]=p):p=e[9],e[10]===Symbol.for("react.memo_cache_sentinel")?(v={justifyContent:"center",alignItems:"center"}
1,e[10]=v):v=e[10],e[11]===Symbol.for("react.memo_cache_sentinel")?(j={fontSize:18},e[11]=j):j=e[11],e[12]!==t?(y=t("cookies.accepted"),e[12]=t,e[13]=y):y=e[13],e[14]!==y?(A=(0,M.jsx)(f.A,{variant:"navigationBack",onClick:d,sx:j,children:y}),e[14]=y,e[15]=A):A=e[15],e[16]!==i.cookieDeclineUrl||e[17]!==t?(b=i.cookieDeclineUrl&&(0,M.jsx)("a",{style:{color:"white"},target:"_blank",href:i.cookieDeclineUrl,children:t("cookies.information")}),e[16]=i.cookieDeclineUrl,e[17]=t,e[18]=b):b=e[18],e[19]!==A||e[20]!==b?(k=(0,M.jsxs)(g.A,{direction:"row",spacing:20,sx:v,children:[A,b]}),e[19]=A,e[20]=b,e[21]=k):k=e[21],e[22]!==k||e[23]!==u||e[24]!==p?(w=(0,M.jsxs)(g.A,{direction:"column",spacing:"1em",sx:u,children:[p,k]}),e[22]=k,e[23]=u,e[24]=p,e[25]=w):w=e[25],w};function ee(e){return(0,u.qol)(e)}function te(e){return e.zIndex.tooltip+1}const ie=()=>{const{t:e}=(0,N.B)(),t=(0,s.zy)(),i=(0,o.wA)(),l=(0,o.d4)(e=>(0,u.amS)(e)),F=((0,o.d4)(e=>(0,u.hE5)(e)),(0,o.d4)(e=>(0,u.S2P)(e))),K=(0,o.d4)(e=>(0,u.jWH)(e)),q=(0,o.d4)(e=>(0,u.jOB)(e)),G=(0,o.d4)(e=>(0,u.xRb)(e)),V=(0,o.d4)(e=>(0,u.IzT)(e)),Z=(0,o.d4)(e=>(0,u.BHQ)(e)),Y=(0,o.d4)(e=>(0,u.qol)(e)),$=(0,o.d4)(e=>(0,u.Tcv)(e)),[ee,te]=n.useState(G),[ie,ne]=n.useState(null),oe=Boolean(ie),[se,re]=n.useState(null),le=Boolean(se),ae=()=>{ne(document.getElementById(Be))},ce=()=>{ne(null)},de=()=>{re(null)},ue=e=>{(0,c.fH)(e),ce(),de(),document.documentElement.setAttribute("lang",e)};(0,n.useEffect)(()=>{},[Z]);const he=()=>{i((0,d.rig)());const e=window.location.host.includes("3000")?"".concat(window.location.protocol,"//").concat(window.location.host,"?mobile=true&ac"):"".concat(window.location.protocol,"//").concat(window.location.host,"/webstore/app/index.html?mobile=true&ac");window.location=e},[xe,pe]=n.useState("");(0,n.useEffect)(()=>{let n=t.pathname.split("/"),o=n[n.length-1],s="app.pages.".concat(o,".title"),r=e(s),l=(null===Y||void 0===Y?void 0:Y.appTitle)||e("app.title");document.title=r!==s?l+" - "+r:l;let a="accessibility.appHeader.".concat(o,".description"),c=e(a);pe(c!==a?c:l),i((0,d.IrJ)(o))},[t.pathname,null===Y||void 0===Y?void 0:Y.appTitle]);const[me,ve]=n.useState(!1),ge=()=>(0,M.jsxs)(h.A,{fullWidth:!0,maxWidth:"large",open:me,onClose:()=>{ve(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,M.jsxs)(x.A,{children:[(0,M.jsx)(p.A,{children:(0,M.jsx)(m.A,{sx:{fontSize:60},children:e("accessibility.title")})}),(0,M.jsx)(v.A,{id:"alert-dialog-description",children:(0,M.jsx)(g.A,{alignItems:"center",spacing:5,children:(0,M.jsx)(m.A,{sx:{fontSize:30},variant:"text",children:e("accessibility.description")})})})]}),(0,M.jsxs)(j.A,{sx:{justifyContent:"center"},children:[(0,M.jsx)(f.A,{sx:{textTransform:"none",fontSize:30,fontWeight:"bold"},"aria-label":e("status.login"),variant:"contained",color:"secondary",onClick:he,children:e("main.ok")}),(0,M.jsx)(f.A,{sx:{textTransform:"none",fontSize:30},"aria-label":e("status.choose"),variant:"contained",autoFocus:!0,onClick:()=>{ve(!1)},children:e("main.cancel")})]})]}),[je,fe]=n.useState(!1),ye=()=>(0,M.jsxs)(h.A,{fullWidth:!0,maxWidth:"sm",open:je,onClose:()=>{fe(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,M.jsxs)(x.A,{children:[(0,M.jsxs)(g.A,{alignItems:"center",spacing:5,children:[(0,M.jsx)(U,{}),(0,M.jsx)("div",{style:{backgroundImage:"url(../public/webstore-splash.png)"}})]}),(0,M.jsx)(p.A,{}),(0,M.jsx)(v.A,{id:"alert-dialog-description",children:(0,M.jsxs)(g.A,{alignItems:"center",spacing:5,children:[(0,M.jsx)(m.A,{variant:"text",children:"Powered by alfa WebStore Plus"}),(0,M.jsxs)(m.A,{variant:"text",children:["Version: ",$.version," "]}),(0,M.jsxs)(m.A,{variant:"text",children:["\xa9 alfa Media Partner GmbH \xb7 ",(new Date).getFullYear()," "]})]})})]}),(0,M.jsx)(j.A,{children:(0,M.jsx)(f.A,{sx:{textTransform:"none"},variant:"text",onClick:()=>{fe(!1)},children:"OK"})})]}),[Ae,be]=(0,n.useState)(!1),[ke,we]=(0,n.useState)(""),[Se,Ce]=n.useState(!1),_e=()=>(0,M.jsx)(h.A,{open:Se,onClose:()=>{Ce(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:(0,M.jsxs)(y.A,{severity:"error",children:[(0,M.jsx)(A.A,{children:e("main.error.title")}),ke]})}),Te=()=>(0,M.jsx)(b.A,{anchorEl:ie,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:"language-menu",keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:oe,onClose:ce,children:(0,M.jsxs)(k.A,{dense:!0,children:[c.eo.map(e=>e.key!==r.Ay.language?(0,M.jsx)(w.A,{children:(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},variant:"menu",inset:!0,onClick:()=>{ue(e.key)},color:"inherit",children:e.name})},e.key):(0,M.jsxs)(w.A,{children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(H.A,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:e.name})]},e.key)),t.pathname.includes("templates")&&(0,M.jsx)(_.A,{}),(0,M.jsxs)(w.A,{onClick:()=>{fe(!0),ne(null)},children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.mo,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:e("admin.settings.about")})]},"Info"),V&&(0,M.jsxs)(w.A,{onClick:()=>{(()=>{ne(null);try{navigator.clipboard.writeText(K).then(()=>{we(e("main.directLink.success",{link:K})),be(!0)}).catch(e=>{Ce(!0)})}catch(t){console.log(t.message,K),we(e("main.directLink.error")),Ce(!0)}})()},children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(D.s2,{})}),(0,M.jsx)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:e("main.directLink.title")}),"desktop"===q&&(0,M.jsxs)(S.A,{primaryTypographyProps:{fontSize:"14px"},children:[": ",K]})]})]})}),Ee=()=>(0,M.jsx)(b.A,{anchorEl:se,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:"mobile-menu",keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:le,onClose:de,children:(0,M.jsxs)(k.A,{dense:!0,children:[c.eo.map(e=>
1e.key!==r.Ay.language?(0,M.jsx)(w.A,{children:(0,M.jsx)(S.A,{sx:{color:"red",fontSize:14},inset:!0,onClick:()=>{ue(e.key)},color:"inherit",children:e.name})},e.key):(0,M.jsxs)(w.A,{children:[(0,M.jsx)(C.A,{children:(0,M.jsx)(H.A,{})}),e.name]},e.key)),(0,M.jsx)(_.A,{}),(0,M.jsx)(w.A,{children:(0,M.jsx)(f.A,{color:"inherit",startIcon:(0,M.jsx)(Le,{}),children:r.Ay.language.toUpperCase()})})]})}),Le=()=>{let e=r.Ay.language||"";if(!e){const t=navigator.language;e=t.length>2?t.substring(3,5):t.substring(0,2)}"en"===e&&(e="gbr");let t=e.toUpperCase()+".svg";return(0,M.jsx)("img",{src:"/webstore/app/flags/m/"+t,alt:e})},Ie=()=>F?(0,M.jsx)(T.A,{variant:"query",color:"secondary"}):(0,M.jsx)(E.A,{sx:{height:"4px"}}),We=()=>q===R.Pb?Y.appAccToolbarContrast:Y.appToolbarContrast;(0,n.useEffect)(()=>{let e=t.pathname.split("/"),i=e[e.length-1];a().get("/webstore/service/v1/admin/help/url?page=".concat(i,"&baseUrl=").concat(encodeURI(G))).then(e=>{te(e.data)}).catch(e=>{te(G)})},[t]);const ze=()=>(0,M.jsx)(L.A,{id:"ID-HELP",style:{visibility:"hidden"},rel:"noreferrer",href:ee,target:"_blank",alt:""}),Be="app-bar-id",Pe="button-id";return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(X,{}),(0,M.jsx)(E.A,{id:"page-description","aria-live":"assertive",sx:O.A,children:xe}),(0,M.jsxs)(I.A,{id:Be,position:"static",sx:{color:We},"aria-describedby":"page-description",children:[(0,M.jsx)(Ie,{}),(0,M.jsxs)(W.A,{sx:{ml:{lg:"5%",sm:"2%"},mr:{lg:"5%",sm:"2%"}},children:[q===R.Pb&&(0,M.jsx)(Q,{}),(0,M.jsx)(U,{}),l&&(0,M.jsx)(E.A,{tabIndex:-1,color:We,size:"small",children:(0,M.jsx)(D.cu,{})}),(0,M.jsx)(E.A,{sx:{flexGrow:1}}),(0,M.jsx)(E.A,{id:Pe,children:(0,M.jsx)(J,{menuAnchor:Pe})}),(R.mn===q||q===R.Pb)&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z.A,{onClick:ae,sx:{"&.MuiButtonBase-root":{color:We}},"aria-haspopup":"true","aria-controls":"language-menu","aria-label":e("accessibility.appHeader.settingsIcon"),children:(0,M.jsx)(D.Ze,{})}),(0,M.jsx)("a",{href:ee,target:"_blank",children:(0,M.jsx)(z.A,{color:"inherit","aria-label":e("accessibility.appHeader.helpIcon"),children:(0,M.jsx)(D.NT,{})})})]}),R.ue===q&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(f.A,{color:"inherit",xvariant:"menu",onClick:ae,startIcon:(0,M.jsx)(Le,{}),children:r.Ay.language.toUpperCase()}),(0,M.jsx)(z.A,{color:"inherit",onClick:ae,size:"small",children:(0,M.jsx)(D.Ze,{})}),G&&(0,M.jsx)(z.A,{color:"inherit",onClick:()=>{let e=document.getElementById("ID-HELP");e&&e.click()},"aria-label":e("accessibility.appHeader.helpIcon"),children:(0,M.jsx)(D.NT,{})}),(0,M.jsx)(B.A,{title:e("accessibility.tooltip"),children:(0,M.jsx)(z.A,{color:"inherit",onClick:()=>{ve(!0)},size:"small",autoFocus:!0,children:(0,M.jsx)(D.cu,{})})})]}),(0,M.jsx)(Te,{}),(0,M.jsx)(Ee,{}),(0,M.jsx)(ye,{}),(0,M.jsx)(ge,{}),(0,M.jsx)(ze,{})]}),(0,M.jsx)(P.A,{open:Ae,autoHideDuration:q!==R.Pb?1e4:null,onClose:()=>{be(!1),we("")},message:ke}),(0,M.jsx)(_e,{})]})]})}},61197:(e,t,i)=>{i.d(t,{A:()=>v});var n=i(65043),o=i(97950),s=i(80077),r=(i(66446),i(55359)),l=i(14421),a=i(4030),c=i(26887),d=i(23182),u=i(94799),h=i(42579),x=i(83910),p=i(87699),m=i(70579);const v=e=>{let{url:t,closeHandler:i}=e;const v=window.innerWidth,g=((0,s.wA)(),(0,s.d4)(e=>(0,r.qol)(e))),j=(0,s.d4)(e=>(0,r.jOB)(e));(0,n.useEffect)(()=>(window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}),[]);const f=e=>{"Escape"===e.key&&i()},y="".concat(t,"?auto=true"),A=()=>"mobile"===j?{border:"none",height:"100vh",left:0,top:0,width:v}:{border:"none",height:"80vh",left:0,top:0,width:"60vh"},b="authentication-app-bar-id";return o.createPortal("mobile"===j?(0,m.jsxs)(a.A,{style:{left:0,position:"fixed",top:0,width:v},children:[(0,m.jsx)(c.A,{id:b,position:"static",sx:{color:j===l.Pb?g.appAccToolbarContrast:g.appToolbarContrast},children:(0,m.jsxs)(d.A,{children:[(0,m.jsx)(a.A,{sx:{ml:"1rem",flexGrow:1},children:(0,m.jsx)(h.A,{onClick:i,size:"large",color:"primary",children:(0,m.jsx)(x.g,{icon:p.Wzs})})}),(0,m.jsx)(h.A,{sx:{mr:"1rem"},onClick:i,size:"large",color:"primary",children:(0,m.jsx)(x.g,{icon:p.Jyw})})]})}),(0,m.jsx)("iframe",{title:"Login",style:A(),src:y})]}):(0,m.jsxs)(a.A,{sx:{zIndex:99,height:"100vh",left:0,position:"fixed",top:0,width:"100vw"},children:[(0,m.jsx)(c.A,{id:b,position:"static",sx:{color:j===l.Pb?g.appAccToolbarContrast:g.appToolbarContrast},children:(0,m.jsxs)(d.A,{children:[(0,m.jsx)(a.A,{sx:{ml:"1rem",flexGrow:1},children:(0,m.jsx)(h.A,{onClick:i,size:"large",color:"primary",children:(0,m.jsx)(x.g,{icon:p.Wzs})})}),(0,m.jsx)(h.A,{sx:{mr:"1rem"},onClick:i,size:"large",color:"primary",children:(0,m.jsx)(x.g,{icon:p.Jyw})})]})}
1),(0,m.jsx)(u.A,{elevation:4,sx:{backgroundColor:g.appBackgroundColor,height:"100vh",display:"grid",placeItems:"center"},children:(0,m.jsx)("iframe",{title:"Login",style:A(),src:y})})]}),document.getElementById("portal"))}},65019:(e,t,i)=>{i.d(t,{R$:()=>A,Yf:()=>y,gR:()=>b});var n=i(48451),o=i(65043),s=i(80077),r=i(14961),l=(i(88648),i(79623)),a=i(55895),c=i(4030),d=i(95169),u=i(10256),h=i(67203),x=i(47471),p=i(53876),m=i(45262),v=i(66446),g=i(55359),j=i(70579);const f=(e,t)=>e.map(e=>({id:e.businessPartnerNo,name:e.name,businessPartnerNo:e.businessPartnerNo})),y=e=>{const t=(0,n.c)(31),{showBusyIndicator:i}=e,{t:d}=(0,r.B)(),u=(0,s.d4)(k),h=(0,s.d4)(w);let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=[],t[0]=x):x=t[0];const[p,v]=(0,o.useState)(x);let g,y,A,b,S,C,_;t[1]!==u||t[2]!==i||t[3]!==d?(g=()=>{v(f(u)),i(!1)},t[1]=u,t[2]=i,t[3]=d,t[4]=g):g=t[4],t[5]!==u?(y=[u],t[5]=u,t[6]=y):y=t[6],(0,o.useEffect)(g,y),t[7]!==d?(A=d("cutomerdata.advertizers.grid.name"),t[7]=d,t[8]=A):A=t[8],t[9]!==A?(b={field:"name",headerName:A,width:200,type:Date},t[9]=A,t[10]=b):b=t[10],t[11]!==d?(S=d("cutomerdata.advertizers.grid.businessPartnerNo"),t[11]=d,t[12]=S):S=t[12],t[13]!==S?(C={field:"businessPartnerNo",headerName:S,width:200},t[13]=S,t[14]=C):C=t[14],t[15]!==b||t[16]!==C?(_=[b,C],t[15]=b,t[16]=C,t[17]=_):_=t[17];const T=_;let E,L,I,W,z,B;return t[18]===Symbol.for("react.memo_cache_sentinel")?(E={m:"1em"},t[18]=E):E=t[18],t[19]!==d?(L=d("customerdata.advertizers.title"),t[19]=d,t[20]=L):L=t[20],t[21]!==L?(I=(0,j.jsx)(l.A,{direction:"row",alignItems:"center",children:(0,j.jsx)(a.A,{variant:"pageTitleBold",children:L})}),t[21]=L,t[22]=I):I=t[22],t[23]===Symbol.for("react.memo_cache_sentinel")?(W={height:500,width:"100%"},t[23]=W):W=t[23],t[24]!==h||t[25]!==T||t[26]!==p?(z=(0,j.jsx)(c.A,{sx:W,children:(0,j.jsx)(m.z,{rows:p,columns:T,localeText:h})}),t[24]=h,t[25]=T,t[26]=p,t[27]=z):z=t[27],t[28]!==I||t[29]!==z?(B=(0,j.jsxs)(l.A,{sx:E,direction:"column",justifyContent:"space-between",spacing:"0.5em",alignItems:"left",children:[I,z]}),t[28]=I,t[29]=z,t[30]=B):B=t[30],B},A=()=>{const e=(0,n.c)(9),{t:t}=(0,r.B)(),i=(0,s.d4)(S);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];const[a,u]=(0,o.useState)(l);let h,x,p;return e[1]!==i||e[2]!==t?(h=()=>{const e=[];f(i).forEach(function(t,i,n){i<3&&e.push(t)}),u(e)},e[1]=i,e[2]=t,e[3]=h):h=e[3],e[4]!==i?(x=[i],e[4]=i,e[5]=x):x=e[5],(0,o.useEffect)(h,x),e[6]!==i||e[7]!==a?(p=i?(0,j.jsx)(c.A,{children:a.map(C)}):(0,j.jsxs)(c.A,{children:[(0,j.jsx)(d.A,{variant:"text",sx:{fontSize:"1rem"}}),(0,j.jsx)(d.A,{variant:"text",sx:{fontSize:"1rem"}}),(0,j.jsx)(d.A,{variant:"text",sx:{fontSize:"1rem"}})]}),e[6]=i,e[7]=a,e[8]=p):p=e[8],p},b=()=>{const e=(0,n.c)(10),{t:t}=(0,r.B)(),i=(0,s.wA)(),l=(0,s.d4)(_),[a,c]=(0,o.useState)(null);let d,x,p;e[0]!==l?(d=()=>{l&&c(l[0])},x=[l],e[0]=l,e[1]=d,e[2]=x):(d=e[1],x=e[2]),(0,o.useEffect)(d,x),e[3]!==i?(p=e=>{c(e.target.value),e.target.value&&e.target.value.businessPartnerNo&&i((0,v.xoH)(e.target.value.businessPartnerNo))},e[3]=i,e[4]=p):p=e[4];const m=p;let g;return e[5]!==l||e[6]!==m||e[7]!==t||e[8]!==a?(g=a?(0,j.jsx)(u.A,{variant:"standard",children:(0,j.jsx)(h.A,{labelId:"advertizers-select",id:"advertizers-select",value:a,label:t("status.for"),onChange:m,displayEmpty:!0,children:l.map(T)})}):(0,j.jsx)(j.Fragment,{}),e[5]=l,e[6]=m,e[7]=t,e[8]=a,e[9]=g):g=e[9],g};function k(e){return(0,g.yOU)(e)}function w(e){return(0,g.COc)(e)}function S(e){return(0,g.yOU)(e)}function C(e){return(0,j.jsxs)(p.Ay,{container:!0,width:"100%",children:[(0,j.jsx)(p.Ay,{item:!0,xs:4,children:(0,j.jsx)(a.A,{variant:"cardData",children:e.businessPartnerNo})}),(0,j.jsx)(p.Ay,{item:!0,xs:8,children:(0,j.jsx)(a.A,{variant:"cardData",children:e.name})})]},e.businessPartnerNo)}function _(e){return(0,g.H0Q)(e)}function T(e){return(0,j.jsxs)(x.A,{sx:{height:"2rem",fontSize:"14px"},value:e,children:[e.businessPartnerNo," ",e.name]},e.businessPartnerNo)}}}]); 2//# sourceMappingURL=4222.6e67c676.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.