PageSourceSearch

https://ams-osram.com/o/ams-osram-frontend-loader/assets/myRegistrationProjects.1e3acca25561bb45480a.js

js ams-osram.com collected 2026-10-02 04:06:34 UTC 15,537 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4092],{30751:function(e,t,r){r.d(t,{default:function(){return X}});var a=r(16888),o=r(57080),l=(r(45639),r(70607),r(49717),r(45405)),n=r.n(l),s=r(75104),i=r(92129),c=r(19835),d=r(74090),u=r(61077),m=r(54121),p=r(2252),g=r(28310),f=r(57966),y=r(79950);const v={class:"registration-projects"},h={class:"registration-projects__filter-header"},V={class:"title is-2"},k={class:"registration-projects__filters"},N={class:"registration-projects__field registration-projects__field--wide"},b={class:"registration-projects__label"},x={for:"registration-project-search"},j=["aria-label"],_={key:0,class:"registration-projects__error",role:"alert"},E={class:"registration-projects__field"},D={for:"created-from"},S={class:"registration-projects__field"},C={for:"created-to"},w={key:0,class:"registration-projects__error",role:"alert"},P={class:"registration-projects__field"},T={class:"registration-projects__label"},B={for:"created-by"},A=["aria-label"],F={class:"registration-projects__field"},I={class:"registration-projects__label"},U={for:"product"},R=["aria-label"],L=["for"],O={class:"registration-projects__field"},q={for:"oli-id"},M={class:"registration-projects__actions"},H={key:1,class:"registration-projects__error registration-projects__load-error",role:"alert"},$={key:2,class:"registration-projects__results"},W={class:"orders__table registration-projects__table"},Y=["aria-sort"],K=["onClick"],z={key:0},G=["colspan"];var J={__name:"MyRegistrationProjects",setup(e){const{t:t}=(0,s.s9)(),r=()=>{const e=new Date,t=new Date(e);return t.setMonth(t.getMonth()-3),{createdFrom:t,createdTo:e}},o=r(),l=(0,a.reactive)({createdBy:"",createdFrom:o.createdFrom,createdTo:o.createdTo,extended:"",oliId:"",product:"",quoted:"",search:"",status:""}),J=(0,a.reactive)({...l}),Q=(0,a.ref)([]),X=(0,a.ref)(!1),Z=(0,a.ref)(!1),ee=(0,a.ref)(!1),te=(0,a.ref)(null),re=(0,a.ref)("ASC"),ae=[{key:"id",label:"registrationProjects.id"},{key:"name",label:"registrationProjects.name"},{key:"reference",label:"registrationProjects.reference"},{key:"customerId",label:"registrationProjects.customerId"},{key:"status",label:"registrationProjects.status"},{key:"startDate",label:"registrationProjects.startDate"},{key:"expiryDate",label:"registrationProjects.expiryDate"},{key:"endCustomer",label:"registrationProjects.endCustomer"}],oe=[{key:"quoted",label:"registrationProjects.quoted",options:[{label:"All",value:""},{label:"Yes",value:"yes"},{label:"No",value:"no"}]},{key:"extended",label:"registrationProjects.extended",options:[{label:"All",value:""},{label:"Yes",value:"yes"},{label:"No",value:"no"}]},{key:"status",label:"registrationProjects.status",options:[{label:"All",value:""},...["Approved","Cancelled","Close","Design Win","Lost","Mass Production","OEM Awarded","Open","Rejected"].map(e=>({label:e,value:e}))]}],le=(0,a.computed)(()=>te.value?[...Q.value].sort((e,t)=>{const r=e[te.value],a=t[te.value];if(null==r&&null==a)return 0;if(null==r)return 1;if(null==a)return-1;const o=new Date(r),l=new Date(a);if(["expiryDate","startDate"].includes(te.value)&&!isNaN(o)&&!isNaN(l))return"ASC"===re.value?o-l:l-o;const n=String(r).localeCompare(String(a),void 0,{numeric:!0,sensitivity:"base"});return"ASC"===re.value?n:-n}):Q.value),ne=(0,a.computed)(()=>J.search&&J.search.length<3?t("registrationProjects.minSearch"):""),se=(0,a.computed)(()=>J.createdFrom&&J.createdTo&&new Date(J.createdTo)<new Date(J.createdFrom)?t("registrationProjects.dateError"):"");const ie=e=>`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n            <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n                <sheetData>${e.map((e,t)=>`\n                    <row r="${t+1}">\n                        ${e.map((e,r)=>`<c r="${(e=>{let t="",r=e+1;for(;r>0;){const e=(r-1)%26;t=String.fromCharCode(65+e)+t,r=Math.floor((r-1)/26)}return t})(r)}${t+1}" t="inlineStr"><is><t>${(e=>String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))(e)}</t></is></c>`).join("")}\n                    </row>`).join("")}</sheetData>\n            </worksheet>`;async function ce(){Z.value=!0;try{const e=ae.map(e=>t(e.label)),r=Q.value.map(e=>ae.map(t=>{const r=e[t.key];return["expiryDate","startDate"].includes(t.key)?de(r):r??""})),a=new(n());a.file("[Content_Types].xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n                    <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n                        <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\n                        <Default Extension="xml" ContentType="application/xml"/>
1\n                        <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>\n                        <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>\n                    </Types>'),a.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n                    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n                        <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n                    </Relationships>'),a.file("xl/workbook.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n                    <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n                        <sheets><sheet name="Registration Projects" sheetId="1" r:id="rId1"/></sheets>\n                    </workbook>'),a.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n                    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n                        <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/>\n                    </Relationships>'),a.file("xl/worksheets/sheet1.xml",ie([e,...r]));const o=await a.generateAsync({mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",type:"blob"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download="registration-projects.xlsx",s.click(),URL.revokeObjectURL(l)}finally{Z.value=!1}}function de(e){return e?new Intl.DateTimeFormat(void 0,{dateStyle:"medium"}).format(new Date(e)):""}async function ue(){if(!ne.value&&!se.value){X.value=!0,ee.value=!1;try{const e=(await i.default.post("/o/get-my-accounts/projectList",(()=>{const e={createdBy:J.createdBy,createdDateFrom:J.createdFrom?.toISOString?.().slice(0,10)||J.createdFrom,createdDateTill:J.createdTo?.toISOString?.().slice(0,10)||J.createdTo,extendedOpp:J.extended,oliId:J.oliId,productNumber:J.product,searchKeyWord:J.search,status:J.status};return""!==J.quoted&&(e.quoted="yes"===J.quoted),e})())).data;Q.value=(e.data||[]).map(e=>({customerId:e.distiCustId,endCustomer:e.endCustName,expiryDate:e.validUntil,id:e.opportunityId,name:e.projectName,reference:e.distiReference,startDate:e.massProdStartDate,status:e.status}))}catch{ee.value=!0}finally{X.value=!1}}}function me(){const e=r();Object.assign(l,{createdBy:"",createdFrom:e.createdFrom,createdTo:e.createdTo,extended:"",oliId:"",product:"",quoted:"",search:"",status:""}),Object.assign(J,l),ue()}function pe(){Object.assign(J,l),ne.value||se.value||ue()}return(0,a.onMounted)(ue),(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)("section",v,[(0,a.createElementVNode)("form",{class:"registration-projects__filter-panel",onSubmit:(0,a.withModifiers)(pe,["prevent"])},[(0,a.createElementVNode)("header",h,[(0,a.createElementVNode)("h3",V,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.filterTitle")),1),(0,a.createVNode)(u.A,{variant:"secondary-outlined",type:"button",onClick:me},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.reset")),1)]),_:1})]),(0,a.createElementVNode)("div",k,[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("div",b,[(0,a.createElementVNode)("label",x,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.search")),1),(0,a.createVNode)(f.A,{content:(0,a.unref)(t)("registrationProjects.searchHelp"),placement:"top-center"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",{class:"registration-projects__info",tabindex:"0",role:"img","aria-label":(0,a.unref)(t)("registrationProjects.searchHelpLabel")},[...r[6]||(r[6]=[(0,a.createElementVNode)("svg",{"aria-hidden":"true",class:"icon icon-infos"},[(0,a.createElementVNode)("use",{"xlink:href":"#icon-infos"})],-1)])],8,j)]),_:1},8,["content"])]),(0,a.createVNode)(p.A,{id:"registration-project-search",modelValue:l.search,"onUpdate:modelValue":r[0]||(r[0]=e=>l.search=e),type:"search",error:Boolean(ne.value)},null,8,["modelValue","error"]),ne.value?((0,a.openBlock)(),(0,a.createElementBlock)("small",_,(0,a.toDisplayString)(ne.value),1)):(0,a.createCommentVNode)("v-if",!0)]),(0,a.createElementVNode)("div",E,[(0,a.createElementVNode)("label",D,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.createdFrom")),1),(0,a.createVNode)(m.A,{id:"created-from",modelValue:l.createdFrom,"onUpdate:modelValue":r[1]||(r[1]=e=>l.createdFrom=e),"auto-apply":"",clearable:""},null,8,["modelValue"])]),(0,a.createElementVNode)("div",S,[(0,a.createElementVNode)("label",C,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.createdTo")),1
1),(0,a.createVNode)(m.A,{id:"created-to",modelValue:l.createdTo,"onUpdate:modelValue":r[2]||(r[2]=e=>l.createdTo=e),"auto-apply":"",clearable:"","min-date":l.createdFrom},null,8,["modelValue","min-date"]),se.value?((0,a.openBlock)(),(0,a.createElementBlock)("small",w,(0,a.toDisplayString)(se.value),1)):(0,a.createCommentVNode)("v-if",!0)]),(0,a.createElementVNode)("div",P,[(0,a.createElementVNode)("div",T,[(0,a.createElementVNode)("label",B,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.createdBy")),1),(0,a.createVNode)(f.A,{content:(0,a.unref)(t)("registrationProjects.createdByHelp"),placement:"top-center"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",{class:"registration-projects__info",tabindex:"0",role:"img","aria-label":(0,a.unref)(t)("registrationProjects.createdByHelpLabel")},[...r[7]||(r[7]=[(0,a.createElementVNode)("svg",{"aria-hidden":"true",class:"icon icon-infos"},[(0,a.createElementVNode)("use",{"xlink:href":"#icon-infos"})],-1)])],8,A)]),_:1},8,["content"])]),(0,a.createVNode)(p.A,{id:"created-by",modelValue:l.createdBy,"onUpdate:modelValue":r[3]||(r[3]=e=>l.createdBy=e),type:"search"},null,8,["modelValue"])]),(0,a.createElementVNode)("div",F,[(0,a.createElementVNode)("div",I,[(0,a.createElementVNode)("label",U,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.product")),1),(0,a.createVNode)(f.A,{content:(0,a.unref)(t)("registrationProjects.productHelp"),placement:"top-center"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",{class:"registration-projects__info",tabindex:"0",role:"img","aria-label":(0,a.unref)(t)("registrationProjects.productHelpLabel")},[...r[8]||(r[8]=[(0,a.createElementVNode)("svg",{"aria-hidden":"true",class:"icon icon-infos"},[(0,a.createElementVNode)("use",{"xlink:href":"#icon-infos"})],-1)])],8,R)]),_:1},8,["content"])]),(0,a.createVNode)(p.A,{id:"product",modelValue:l.product,"onUpdate:modelValue":r[4]||(r[4]=e=>l.product=e),type:"search"},null,8,["modelValue"])]),((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(oe,e=>(0,a.createElementVNode)("div",{key:e.key,class:"registration-projects__field"},[(0,a.createElementVNode)("label",{for:e.key},(0,a.toDisplayString)((0,a.unref)(t)(e.label)),9,L),(0,a.createVNode)(g.A,{id:e.key,modelValue:l[e.key],"onUpdate:modelValue":t=>l[e.key]=t,options:e.options},null,8,["id","modelValue","onUpdate:modelValue","options"])])),64)),(0,a.createElementVNode)("div",O,[(0,a.createElementVNode)("label",q,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.oliId")),1),(0,a.createVNode)(p.A,{id:"oli-id",modelValue:l.oliId,"onUpdate:modelValue":r[5]||(r[5]=e=>l.oliId=e),type:"search"},null,8,["modelValue"])])]),(0,a.createElementVNode)("div",M,[(0,a.createVNode)(u.A,{type:"submit",disabled:X.value},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.searchButton")),1)]),_:1},8,["disabled"]),(0,a.createVNode)(u.A,{variant:"blue",type:"button",disabled:X.value||!Q.value.length||Z.value,onClick:ce},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.download")),1)]),_:1},8,["disabled"])])],32),X.value?((0,a.openBlock)(),(0,a.createBlock)((0,a.unref)(y.A),{key:0,class:"registration-projects__spinner"})):(0,a.createCommentVNode)("v-if",!0),ee.value?((0,a.openBlock)(),(0,a.createElementBlock)("div",H,(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.error")),1)):(0,a.createCommentVNode)("v-if",!0),X.value||ee.value?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",$,[(0,a.createElementVNode)("table",W,[(0,a.createElementVNode)("thead",null,[(0,a.createElementVNode)("tr",null,[((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(ae,e=>(0,a.createElementVNode)("th",{key:e.key,"aria-sort":te.value===e.key?"ASC"===re.value?"ascending":"descending":"none",class:"is-sortable",scope:"col"},[(0,a.createElementVNode)("button",{class:"registration-projects__sort-button",type:"button",onClick:t=>{return r=e.key,void(te.value===r?re.value="ASC"===re.value?"DESC":"ASC":(te.value=r,re.value="ASC"));var r}},[(0,a.createTextVNode)((0,a.toDisplayString)((0,a.unref)(t)(e.label))+" ",1),(0,a.createVNode)(c.default,{order:te.value===e.key?re.value:null,"aria-hidden":"true"},null,8,["order"])],8,K)],8,Y)),64))])]),(0,a.createElementVNode)("tbody",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(le.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e.id},[(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.id),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.name),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.reference),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.customerId),1),(0,a.createElementVNode)("td",null,[(0,a.createVNode)(d.A,{variant:"outline"},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.status),1)]),_:2},1024)]),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(de(e.startDate)),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(de(e.expiryDate)),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.endCustomer),1)]))),128)),Q.value.length?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createElementBlock)("tr",z,[(0,a.createElementVNode)("td",{colspan:ae.length,class:"text-center"},(0,a.toDisplayString)((0,a.unref)(t)("registrationProjects.empty")),9,G)]))])])]))]))}};var Q=(0,r(34777).A)(J,[["__scopeId","data-v-19f6a11a"]]);
1function X(){(0,a.createApp)(Q).use(o.R).mount("#app-my-registration-projects")}}}]);
2//# sourceMappingURL=myRegistrationProjects.1e3acca25561bb45480a.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.