1"use strict";(self["webpackChunkdow_platform_ui_frontend"]=self["webpackChunkdow_platform_ui_frontend"]||[]).push([[7698],{37758:function(e,t,i){i.r(t),i.d(t,{default:function(){return F}});var l=i(70683),a=(i(49671),i(20562),i(54880)),n=(i(73555),i(44968),i(84853),i(64418)),s=(i(30080),i(69368)),u=(i(83752),i(13802)),d=(i(1283),i(77128),i(77001));const o=(0,d.createElementVNode)("h3",null,"Deadload Calculator",-1);function r(e,t,i,r,c,h){const p=a.bZ,w=u.qi,v=(0,d.resolveComponent)("CalculatorInputNumber"),b=s.S2,g=n.S2,F=a.Mb,f=(0,d.resolveComponent)("CalculatorResultCard"),m=a.ZO,C=a.lX,S=l.Ik;return(0,d.openBlock)(),(0,d.createBlock)(d.Teleport,{to:".cmp-deadload-calculator"},[(0,d.createVNode)(S,{shadow:"always"},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(C,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(p,{class:"deadload-calculator-title"},{default:(0,d.withCtx)(()=>[o]),_:1}),(0,d.createVNode)(C,null,{default:(0,d.withCtx)(()=>[(0,d.createVNode)(p,{class:"deadload-calculator-system-of-unit-container"},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(w,{modelValue:c.isMetric,"onUpdate:modelValue":t[0]||(t[0]=e=>c.isMetric=e),size:"large","active-text":"Metric","inactive-text":"English",onChange:t[1]||(t[1]=e=>h.uomConversion())},null,8,["modelValue"])]),_:1}),(0,d.createVNode)(C,{class:"deadload-calculator-container"},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(F,{class:"deadload-calculator-user-input-panel"},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(c.inputFields,(e,t)=>((0,d.openBlock)(),(0,d.createBlock)(v,{isDisabled:e.isDisabled,labelTitle:e.labelTitle,inputValue:e.value,precision:e.precision,onChildDataChanged:e=>h.updateParentData(t,e)},null,8,["isDisabled","labelTitle","inputValue","precision","onChildDataChanged"]))),256)),(0,d.createVNode)(g,{class:"clear-input"},{default:(0,d.withCtx)(()=>[(0,d.createVNode)(b,{type:"primary",onClick:t[2]||(t[2]=e=>h.clearInput())},{default:(0,d.withCtx)(()=>[(0,d.createTextVNode)(" Clear All ")]),_:1})]),_:1})]),_:1}),(0,d.createVNode)(m,{class:"deadload-calculator-results-panel"},{default:(0,d.withCtx)(()=>[((0,d.openBlock)(!0),(0,d.createElementBlock)(d.Fragment,null,(0,d.renderList)(h.calculationResults,e=>((0,d.openBlock)(),(0,d.createBlock)(f,{labelTitle:e().labelTitle(),displayValue:e().calValue()},null,8,["labelTitle","displayValue"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}var c=i(49680),h=i(89174),p=i(31260),w=i(18470),v={extends:c.Ay,components:{CalculatorInputNumber:h.A,CalculatorResultCard:p.A},data(){return{isMetric:!1,inputFields:{windowLength:{isDisabled:!1,labelTitle:"Window Length (ft)",value:0,precision:3},windowWidth:{isDisabled:!1,labelTitle:"Window Width (ft)",value:0,precision:3},panelWeight:{isDisabled:!1,labelTitle:"Panel Weight (psf)",value:0,precision:3},biteShown:{isDisabled:!1,labelTitle:"Bite Shown on Proposed Detail (in)",value:0,precision:3},sealantDesignStrength:{isDisabled:!0,labelTitle:"Sealant DL Design Strength (psi)",value:1,precision:0}},calSealantStressValue:0}},mounted:function(){w.A.formLabelCalibration(".cmp-deadload-calculator")},watch:{isMetric:function(){this.inputFields["windowLength"].labelTitle="Window Length"+(this.isMetric?" (mm)":" (ft)"),this.inputFields["windowWidth"].labelTitle="Window Width"+(this.isMetric?" (mm)":" (ft)"),this.inputFields["panelWeight"].labelTitle="Panel Weight"+(this.isMetric?" (kg/m2)":" (psf)"),this.inputFields["sealantDesignStrength"].labelTitle="Sealant DL Design Strength"+(this.isMetric?" (kg/m2)":" (psi)"),this.inputFields["sealantDesignStrength"].value=this.isMetric?700:1,this.inputFields["biteShown"].labelTitle="Bite Shown on Proposed Detail"+(this.isMetric?" (mm)":" (in)")}},computed:{calculationResults:function(){var e=this;return{sealantStress:function(){return{labelTitle:function(){return"Sealant Stress"+(e.isMetric?" (kg/m2)":" (psi)")},calValue:function(){let t=(e.inputFields["windowLength"].value+e.inputFields["windowWidth"].value)*(e.isMetric?2:24)*e.inputFields["biteShown"].value,i=(e.inputFields["windowLength"].value*e.inputFields["windowWidth"].value*e.inputFields["panelWeight"].value/(0===t?1:t)).toFixed(3);return e.calSealantStressValue=Number(i),i}}},passOrFail:function(){return{labelTitle:function(){return"Pass or Fail"}
1,calValue:function(){return e.inputFields["sealantDesignStrength"].value>=e.calSealantStressValue?"Pass":"Fail"}}}}}},methods:{updateParentData(e,t){this.inputFields[e].value=t},clearInput:function(){this.inputFields["windowLength"].value=0,this.inputFields["windowWidth"].value=0,this.inputFields["panelWeight"].value=0,this.inputFields["biteShown"].value=0},uomConversion:function(){this.isMetric?(this.inputFields["windowLength"].value=304.8*this.inputFields["windowLength"].value,this.inputFields["windowWidth"].value=304.8*this.inputFields["windowWidth"].value,this.inputFields["panelWeight"].value=4.88*this.inputFields["panelWeight"].value,this.inputFields["biteShown"].value=25.4*this.inputFields["biteShown"].value):(this.inputFields["windowLength"].value=this.inputFields["windowLength"].value/304.8,this.inputFields["windowWidth"].value=this.inputFields["windowWidth"].value/304.8,this.inputFields["panelWeight"].value=this.inputFields["panelWeight"].value/4.88,this.inputFields["biteShown"].value=this.inputFields["biteShown"].value/25.4)}}},b=i(71786);const g=(0,b.A)(v,[["render",r]]);var F=g}}]); 2//# sourceMappingURL=clientlib-dependencies/resources/deadload-calculator.ac05b8a8f1c67059.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.