1"use strict";(self["webpackChunkdow_platform_ui_frontend"]=self["webpackChunkdow_platform_ui_frontend"]||[]).push([[4589],{25821:function(e,t,l){l.r(t),l.d(t,{default:function(){return F}});var i=l(70683),a=(l(49671),l(20562),l(54880)),n=(l(73555),l(44968),l(84853),l(64418)),s=(l(30080),l(69368)),u=(l(83752),l(13802)),o=(l(1283),l(77128),l(77001));const r=(0,o.createElementVNode)("h3",null,"Triangular Panel Calculations",-1);function c(e,t,l,c,d,p){const h=a.bZ,g=u.qi,b=(0,o.resolveComponent)("CalculatorInputNumber"),v=s.S2,f=n.S2,F=a.Mb,w=(0,o.resolveComponent)("CalculatorResultCard"),m=a.ZO,C=a.lX,B=i.Ik;return(0,o.openBlock)(),(0,o.createBlock)(o.Teleport,{to:".cmp-triangular-panel-calculation"},[(0,o.createVNode)(B,{shadow:"always"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(C,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(h,{class:"triangular-panel-calculation-title"},{default:(0,o.withCtx)(()=>[r]),_:1}),(0,o.createVNode)(C,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(h,{class:"triangular-panel-calculation-system-of-unit-container"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(g,{modelValue:d.isMetric,"onUpdate:modelValue":t[0]||(t[0]=e=>d.isMetric=e),size:"large","active-text":"Metric","inactive-text":"English",onChange:t[1]||(t[1]=e=>p.uomConversion())},null,8,["modelValue"])]),_:1}),(0,o.createVNode)(C,{class:"triangular-panel-calculation-container"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(F,{class:"triangular-panel-calculation-user-input-panel"},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(d.inputFields,(e,t)=>((0,o.openBlock)(),(0,o.createBlock)(b,{isDisabled:e.isDisabled,labelTitle:e.labelTitle,inputValue:e.value,precision:e.precision,onChildDataChanged:e=>p.updateParentData(t,e)},null,8,["isDisabled","labelTitle","inputValue","precision","onChildDataChanged"]))),256)),(0,o.createVNode)(f,{class:"clear-input"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(v,{type:"primary",onClick:t[2]||(t[2]=e=>p.clearInput())},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)(" Clear All ")]),_:1})]),_:1})]),_:1}),(0,o.createVNode)(m,{class:"triangular-panel-calculation-results-panel"},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(p.calculationResults,e=>((0,o.openBlock)(),(0,o.createBlock)(w,{labelTitle:e().labelTitle(),displayValue:e().calValue()},null,8,["labelTitle","displayValue"]))),256))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}var d=l(49680),p=l(89174),h=l(31260),g=l(18470),b={extends:d.Ay,components:{CalculatorInputNumber:p.A,CalculatorResultCard:h.A},data(){return{isMetric:!1,inputFields:{shortBaseLeg:{isDisabled:!1,labelTitle:"Shortest Base Leg (ft)",value:0,precision:3},angle1Leg:{isDisabled:!1,labelTitle:"Angle 1 Leg (deg)",value:0,precision:3},angle2Leg:{isDisabled:!1,labelTitle:"Angle 2 Leg (deg)",value:0,precision:3},winload:{isDisabled:!1,labelTitle:"Windload (psf)",value:0,precision:3},biteShown:{isDisabled:!1,labelTitle:"Bite Shown on Proposed Detail (in)",value:0,precision:3},sealantDesignStrength:{isDisabled:!0,labelTitle:"Sealant Design Strength (psi)",value:20,precision:0}},calBiteValue:0}},mounted:function(){g.A.formLabelCalibration(".cmp-triangular-panel-calculation")},watch:{isMetric:function(){this.inputFields["shortBaseLeg"].labelTitle="Shortest Base Leg"+(this.isMetric?" (mm)":" (ft)"),this.inputFields["winload"].labelTitle="Windload"+(this.isMetric?" (kPa)":" (psf)"),this.inputFields["sealantDesignStrength"].labelTitle="Sealant Design Strength"+(this.isMetric?" (kPa)":" (psi)"),this.inputFields["sealantDesignStrength"].value=this.isMetric?138:20,this.inputFields["biteShown"].labelTitle="Bite Shown on Proposed Detail"+(this.isMetric?" (mm)":" (in)")}},computed:{calculationResults:function(){var e=this;return{bite:function(){return{labelTitle:function(){return"Calculated Bite"+(e.isMetric?" (mm)":" (in)")},calValue:function(){let t=(e.inputFields["winload"].value*e.inputFields["shortBaseLeg"].value*(e.isMetric?1:12)/e.inputFields["sealantDesignStrength"].value/(1/Math.tan(e.inputFields["angle1Leg"].value/2*(Math.PI/180)
1)+1/Math.tan(e.inputFields["angle2Leg"].value/2*(Math.PI/180)))).toFixed(3);return e.calBiteValue=Number(t),t}}},passOrFail:function(){return{labelTitle:function(){return"Pass or Fail"},calValue:function(){return e.inputFields["biteShown"].value>=e.calBiteValue?"Pass":"Fail"}}}}}},methods:{updateParentData(e,t){this.inputFields[e].value=t},clearInput:function(){this.inputFields["shortBaseLeg"].value=0,this.inputFields["angle1Leg"].value=0,this.inputFields["angle2Leg"].value=0,this.inputFields["winload"].value=0,this.inputFields["biteShown"].value=0},uomConversion:function(){this.isMetric?(this.inputFields["shortBaseLeg"].value=304.8*this.inputFields["shortBaseLeg"].value,this.inputFields["winload"].value=.047880258888889*this.inputFields["winload"].value,this.inputFields["biteShown"].value=25.4*this.inputFields["biteShown"].value):(this.inputFields["shortBaseLeg"].value=this.inputFields["shortBaseLeg"].value/304.8,this.inputFields["winload"].value=this.inputFields["winload"].value/.047880258888889,this.inputFields["biteShown"].value=this.inputFields["biteShown"].value/25.4)}}},v=l(71786);const f=(0,v.A)(b,[["render",c]]);var F=f}}]); 2//# sourceMappingURL=clientlib-dependencies/resources/triangular-panel-calculation.372d85ab91e621c7.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.