PageSourceSearch

https://login.commonsku.com/dist/react/LicenseChangeApp.74d3c65f.chunk.js

js commonsku.com collected 2026-10-02 03:14:04 UTC 9,666 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[7749],{73813(e,t,s){s.d(t,{A:()=>d});var n=s(22224),i=(s(41594),s(75158)),a=s(29225),l=s(30107),r=s(63988);const c={nav_container_style:{maxWidth:"initial",fontSize:"14px",marginBottom:"10px",marginTop:"-35px"},nav_style:{marginBottom:"20px",height:"34px"},li_style:{position:"relative",display:"block",float:"left",borderBottom:"1px solid #eaeaea",borderWidth:"1px 0"},li_active_style:{position:"relative",display:"block",float:"left"},a_style:{color:"#5ba0b4",display:"inline-block",padding:"7px 7px",textDecoration:"none",whiteSpace:"nowrap",paddingBottom:"6px"},a_active_style:{color:"#5ba0b4",padding:"9px 4px",position:"relative",fontWeight:700,height:"17px",borderBottom:"3px solid #5ba0b4",paddingBottom:"7px",top:"7px"}},d=e=>{let{page:t,csku:s,style:d={},className:o=""}=e;const h=(0,i.Us)(),{nav_container_style:p,nav_style:_,li_style:m,li_active_style:x,a_style:g,a_active_style:y}=c,j=(0,l.h)(h.company_id);return(0,r.jsx)("div",{"data-test-name":"ReportTabsContainers",className:["row","collapse",o].join(" "),style:{...p,...d},children:(0,r.jsx)("div",{className:"cs-nav",style:_,children:s?(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_company_pages.php",children:"Company Pages"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_company_
1status.php",children:"Company Status"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_company_users.php",children:"Company Users"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_company_activities.php",children:"Activities"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_latest_products.php",children:"Latest Products"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"report_company_mailing_list.php",children:"Mailing List"})}),(0,r.jsx)("li",{style:"license_change"===t?x:m,className:"active",children:(0,r.jsx)("a",{style:"license_change"===t?y:g,href:"report_license_change.php",children:"License Change"})}),(0,r.jsx)("li",{style:"supplier_billing"===t?x:m,className:"active",children:(0,r.jsx)("a",{style:"supplier_billing"===t?y:g,href:"report_supplier_billing.php",children:"Supplier Billing"})})]}):(0,r.jsxs)("ul",{children:[j?null:(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin.php",children:"Users"})}),j?null:(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_groups.php",children:"Groups"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_settings.php",children:"Settings"})}),j?null:(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_permissions.php",children:"Permissions"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_templates.php",children:"Email Settings"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_commissions.php",children:"Commissions"})}),(0,r.jsx)("li",{style:m,children:(0,r.jsx)("a",{style:g,href:"admin_decoration_matrix.php",children:"Decoration Matrix"})}),((0,n.get)(a.A,"avalara.beta_companies")||[h.company_id]).indexOf(h.company_id)>-1&&(0,r.jsx)("li",{style:"admin_avalara"===t?x:m,children:(0,r.jsx)("a",{style:"admin_avalara"===t?y:g,href:"admin_avalara.php",children:"Avalara"})})]})})})}},30107(e,t,s){s.d(t,{A:()=>a,h:()=>i});const n={VANDELAY_COMPANY_ID:"60d613ea-c3db-4265-9a46-442553c8619a",MY_MACHINE_COMPANY_ID:"bb214e6d-7c4f-4769-862c-ebe342361d62",CONNECTED_CREATIVE_COMPANY_ID:"b62a8265-80ac-4a95-a8a8-83871d551f90",CHURN_IMMEDIATELY:"CHURN-IMMEDIATELY",CHURN_SET:"CHURN-SET",CHURN_UNSET:"CHURN-UNSET"},i=e=>[n.VANDELAY_COMPANY_ID,n.MY_MACHINE_COMPANY_ID,n.CONNECTED_CREATIVE_COMPANY_ID].includes(e),a=n},60790(e,t,s){s.r(t),s.d(t,{default:()=>k});var n=s(41594),i=s(98483),a=s(26926),l=s(73021),r=s(51904),c=s(28420),d=s(22224),o=s.n(d),h=s(73813),p=s(72361),_=s(30596),m=s(22078),x=s(63988);class g extends n.Component{constructor(e){super(e),this.state={loading:!1,license_changes:e.license_changes,tenant_id:"",effective_month:""},o().bindAll(this,["handleChangeFilter","handleFilterRows"])}handleChangeFilter(e,t){this.setState({[t]:e,loading:!0},function(){this.handleFilterRows()})}handleFilterRows(){let e=Object.values(this.props.license_changes).filter(e=>""!==this.state.tenant_id?e.tenant_id===this.state.tenant_id:e.tenant_id==e.tenant_id).filter(e=>""!==this.state.effective_month?(0,m.kq)(e.date_effective,"0000-00-00",!0)===this.state.effective_month:e.date_effective==e.date_effective);e=e.reduce((e,t)=>(e[t.license_change_id]=t,e),{}),this.setState({license_changes:e,loading:!1})}renderLoading(){return(0,x.jsx)("div",{"data-test-name":"LicenseChangeView.renderLoading",className:"row popup-content column",children:(0,x.jsx)("div",{className:"small-12 columns",children:(0,x.jsxs)("div",{className:"small-12 text-center",children:[(0,x.jsx)("br",{}),(0,x.jsx)("img",{src:"/images/gears.gif"}),(0,x.jsx)("br",{})]})})})}renderHeader(){const{headerStyle:e}=y;return(0,x.jsxs)("tr",{"data-test-name":"LicenseChangeView.renderHeader",className:"cursor-default",children:[(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"Tenant"}),(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"Change"}),(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"# of Licenses after change"}),(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"Date of change"}),(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"Effective month"}),(0,x.jsx)("td",{width:"10%",style:e,className:"table-cell-sticky",children:"Changed By"})]})}renderRow(e){return(0,x.jsxs)("tr",{"data-test-name":"LicenseChangeView.renderRow",children:[(0,x.jsx)("td",{children:(0,x.jsx)("b",{children:(0,x.jsx)("a",{target:"_blank",href:`/distributor.php?id=${e.tenant_id}`,onClick:e=>e.stopPropagation(),children:e.tenant_name})})}),(0,x.jsx)("td",{children:e.change}),(0,x.jsx)("td",{children:e.license_count_after}),(0,x.jsx)("td",{children:(0,m.kq)(e.date_created)}),(0,x.jsx)("td",{children:(0,m.kq)(e.date_effective,"0000-00-00",!0)}),(0,x.jsxs)("td",{children:[e.contact_first_name," ",e.contact_last_name]})]},e.license_change_id)}renderNoRow(){return(0,x.jsx)("tr",{"data-test-name":"LicenseChangeView.renderNoRow",children:(0,x.jsx)("td",{colSpan:"12",children:(0,x.jsx)("p",{children:"There is no license change record with these search criteria."})})})}render(){const{tenant_options:e,license_changes:t}=this.props,{summary_style:s}=y,n=[{key:"",value:"All"}].concat(e),i=Object.values(t).length>0?o().uniq(o().sortBy(Object.values(t),[function(e){return e.date_effective}]).map(e=>(0,m.kq)(e.date_effective,"0000-00-00",!0))).map(e=>({key:e,value:e})):[],a=[{key:"",value:"All"}].concat(i);return(0,x.jsxs)("div",{"data-test-name":"LicenseChangeView.render",className:"main-content",style:{paddingRight:"12px"},children:[(0,x.jsx)(h.A,{page:"license_change",csku:!0}),(0,x.jsxs)("div",{className:"row collapse",style:{maxWidth:"initial",marginTop:"10px",fontSize:"14px"},children:[(0,x.jsx)(p.A,{className:"small-12 medium-4 columns",placeholder:"Tenants",value:this.state.tenant_id,options:n,onChange:e=>this.handleChangeFilter(e,"tenant_id"),disabled:this.state.loading,withMarginBottom:!0,style:{marginRight:"8px"}}),(0,x.jsx)(p.A,{className:"small-12 medium-4 columns",placeholder:"Effective Month",value:this.state.effective_month,options:a,onChange:e=>this.handleChangeFilter(e,"effective_month"),disabled:this.state.loading,withMarginBottom:!0}),(0,x.jsx)("a",{target:"_blank",className:"button small",href:"/export_report.php?report_type=license-change&csku_report=true",style:{float:"right"},children:"Export"})]}),this.state.loading?this.renderLoading():(0,x.jsxs)("table",{style:{marginBottom:0},children:[(0,x.jsx)("thead",{style:{fontSize:"14px"},children:this.renderHeader()}),(0,x.jsx)("tbody",{style:{fontSize:"12px"},children:Object.values(this.state.license_changes).length>0?Object.values(this.state.license_changes).map(e=>this.renderRow(e)):this.renderNoRow()})]}),(0,x.jsx)("br",{}),(0,x.jsx)("br",{})]})}}
1const y={headerStyle:{top:"120px",background:"#EDF2F5"},summary_style:{float:"right",margin:"5 10px",backgroundColor:"#DFF1FB",padding:"5px 20px",listStyle:"none"}},j=(0,i.Ng)(e=>({license_changes:e.entities.license_changes,tenant_options:(0,_.fE)(e)}),(e,t)=>({}))(g);s(48982),s(46844),s(31128),s(75814);var f=s(97598),u=s(44356),v=s(67564),b=void 0===b?v.x.initialState:b;const N=(e,t)=>e,C=(e,t)=>e,A={display:f.A,dropdowns:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.dropdowns},entities:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.entities,t=arguments.length>1?arguments[1]:void 0;return Object.assign({},e,{license_changes:N(e.license_changes),tenants:C(e.tenants),bookmarks:(0,u.GP)(e.bookmarks,t),recent_orders:(0,u.bp)(e.recent_orders,t),reminders:(0,u.MN)(e.reminders,t),notifications:(0,u.fr)(e.notifications,t),notification_count:(0,u.bQ)(e.notification_count,t)})},identity:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.identity}};var w=s(64128);class E extends n.Component{render(){const{popups:e}=this.props;return(0,x.jsxs)("div",{"data-test-name":"LicenseChangeApp.render",children:[(0,x.jsx)(l.A,{}),(0,x.jsx)(r.A,{popups:e,children:(0,x.jsx)(j,{})}),(0,x.jsx)(c.A,{popups:e})]})}}const k=(0,w.A)((0,i.Ng)((e,t)=>({identity:e.identity,popups:(0,a.ag)(e)}))(E),A)}}]);
2//# sourceMappingURL=LicenseChangeApp.74d3c65f.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.