PageSourceSearch

https://www.unioncarbide.com/etc.clientlibs/dow-platform/clientlib…/formulation-compass.cc74bc6e7a754a1f.js

js unioncarbide.com collected 2026-09-24 21:57:30 UTC 144,568 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkdow_platform_ui_frontend"]=self["webpackChunkdow_platform_ui_frontend"]||[]).push([[4574],{9450:function(e,t,o){o.d(t,{A:function(){return m}});var a=o(77001);const n={width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=(0,a.createElementVNode)("path",{d:"M14.938 2.432v3.8h-3.8M1 12.568v-3.8h3.8",stroke:"#E80033","stroke-width":"2"},null,-1),r=(0,a.createElementVNode)("path",{d:"M2.59 5.596A5.7 5.7 0 0 1 12 3.471l2.94 2.762M1 8.768l2.94 2.762a5.7 5.7 0 0 0 9.409-2.129",stroke:"#E80033","stroke-width":"2"},null,-1),s=[l,r];function i(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,s)}var c=o(71786);const d={},u=(0,c.A)(d,[["render",i]]);var m=u},20954:function(e,t,o){o.d(t,{A:function(){return u}});var a=o(77001);const n={class:"download-icon"},l=(0,a.createStaticVNode)('<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g id="Icon_feather-download" data-name="Icon feather-download" transform="translate(1)"><path id="Path_6368" data-name="Path 6368" d="M20.5,22.5v3.556a1.778,1.778,0,0,1-1.778,1.778H6.278A1.778,1.778,0,0,1,4.5,26.056V22.5" transform="translate(-4.5 -10.833)" fill="none" stroke-linecap="square" stroke-width="2"></path><path id="Path_6369" data-name="Path 6369" d="M10.5,15l4.444,4.444L19.389,15" transform="translate(-6.944 -8.778)" fill="none" stroke-linecap="square" stroke-width="2"></path><path id="Path_6370" data-name="Path 6370" d="M18,15.167V4.5" transform="translate(-10 -4.5)" fill="none" stroke-linejoin="round" stroke-width="2"></path></g></svg>',1),r=[l];function s(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("span",n,r)}var i=o(71786);const c={},d=(0,i.A)(c,[["render",s]]);var u=d},28462:function(e,t,o){o.d(t,{A:function(){return u}});var a=o(77001);const n={xmlns:"http://www.w3.org/2000/svg",width:"18.681",height:"22.851",viewBox:"0 0 18.681 22.851",class:"feather-text feather-icon document-icon"},l=(0,a.createStaticVNode)('<g id="Icon_feather-file-text" data-name="Icon feather-file-text" transform="translate(1 1)"><path id="Path_176" data-name="Path 176" d="M16.426,3H8.085A2.085,2.085,0,0,0,6,5.085V21.766a2.085,2.085,0,0,0,2.085,2.085H20.6a2.085,2.085,0,0,0,2.085-2.085V9.255Z" transform="translate(-6 -3)" fill="none" stroke="#2c2a29" stroke-width="2" class="tabIcon"></path><path id="Path_177" data-name="Path 177" d="M21,3V9.3h6.3" transform="translate(-10.619 -3)" fill="none" stroke="#2c2a29" stroke-width="2" class="tabIcon"></path><path id="Path_178" data-name="Path 178" d="M20.4,19.5H12" transform="translate(-7.86 -8.032)" fill="none" stroke="#2c2a29" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_179" data-name="Path 179" d="M20.4,25.5H12" transform="translate(-7.86 -9.862)" fill="none" stroke="#2c2a29" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_180" data-name="Path 180" d="M15.043,13.5H12" transform="translate(-7.834 -6.202)" fill="none" stroke="#2c2a29" stroke-width="2" class="tabIcon"></path></g>',1),r=[l];function s(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,r)}var i=o(71786);const c={},d=(0,i.A)(c,[["render",s]]);var u=d},28639:function(e,t,o){function a(e,t){const o=t??"en-US",a=window.Granite.I18n.getLocale();window.Granite.I18n.setLocale(o);const n=window.Granite.I18n.get(e);return window.Granite.I18n.setLocale(a),n}o.d(t,{L:function(){return a}})},33772:function(e,t,o){o.d(t,{A:function(){return h}});var a=o(77001);const n={class:"compare-icon-box"},l=["y"],r=["y"],s={key:0,class:"compare-title"},i={key:1,class:"compare-title"};function c(e,t,o,c,d,u){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{onClick:t[0]||(t[0]=e=>u.toggleProductCompare()),onKeydown:t[1]||(t[1]=(0,a.withKeys)((0,a.withModifiers)((...e)=>u.toggleProductCompare&&u.toggleProductCompare(...e),["prevent"]),["enter"])),onMouseover:t[2]||(t[2]=e=>d.compareHover=!0),onMouseleave:t[3]||(t[3]=e=>d.compareHover=!1),class:(0,a.normalizeClass)(["compare-wrapper",{disabled:o.isDisabled}]),tabindex:"0"},[(0,a.createElementVNode)("div",n,[((0,a.openBlock)(),(0,a.createElementBlock)("svg",{id:"compare-icon",class:(0,a.normalizeClass)(["compare-icon",{selected:d.compareSelected||d.compareHover}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 22",width:"24",height:"22"},[(0,a.createElementVNode)("g",null,[(0,a.createElementVNode)("rect",{x:"2px",y:d.compareSelected||d.compareHover&&!o.isDisabled?"4px":"2px",width:"7px",height:"15px"},null,8,l),(0,a.createElementVNode)("rect",{x:"14px",y:d.compareSelected||d.compareHover&&!o.isDisabled?"4px":"5px",width:"7px",height:"15px"},null,8,r)])],2))]),!o.overrideCompareLabel||o.overrideCompareLabel&&!d.compareSelected?((0,a.openBlock)(),(0,a.createElementBlock)("span",s,(0,a.toDisplayString)(d.compareLabel),
11)):((0,a.openBlock)(),(0,a.createElementBlock)("span",i,(0,a.toDisplayString)(u.getLabel("text.added")),1))],34)}var d={data(){return{compareSelected:!1,compareHover:!1,compareLabel:this.getLabel("productCompare.compareFilter")}},props:{isSelectedForCompare:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},overrideCompareLabel:{type:Boolean,default:!1},areMaxProductsSelected:{type:Boolean,default:!1}},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},toggleProductCompare:u},watch:{isSelectedForCompare(e){this.compareSelected=e}}};function u(){if(!this.isDisabled){if((!this.compareSelected||!this.isSelectedForCompare)&&this.areMaxProductsSelected)return;this.compareSelected&&this.isSelectedForCompare?this.$emit("compare-remove"):this.$emit("compare-add"),this.compareSelected=!this.compareSelected}}var m=o(71786);const p=(0,m.A)(d,[["render",c]]);var h=p},46388:function(e,t,o){o.d(t,{A:function(){return u}});var a=o(77001);const n={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=(0,a.createElementVNode)("path",{d:"M7 .416v13m6.5-6.5H.5",stroke:"#FEBB12","stroke-width":"2"},null,-1),r=[l];function s(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,r)}var i=o(71786);const c={},d=(0,i.A)(c,[["render",s]]);var u=d},47380:function(e,t,o){o.d(t,{A:function(){return m}});var a=o(77001);const n={width:"15",height:"17",viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",tabindex:"0"},l=(0,a.createElementVNode)("path",{d:"M6.633 12.9035C9.74402 12.9035 12.266 10.3815 12.266 7.27051C12.266 4.15949 9.74402 1.63751 6.633 1.63751C3.52198 1.63751 1 4.15949 1 7.27051C1 10.3815 3.52198 12.9035 6.633 12.9035Z",stroke:"#808080","stroke-width":"2"},null,-1),r=(0,a.createElementVNode)("path",{d:"M10.178 11.5765L13.964 15.3625",stroke:"#808080","stroke-width":"2"},null,-1),s=[l,r];function i(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,s)}var c=o(71786);const d={},u=(0,c.A)(d,[["render",i]]);var m=u},69093:function(e,t,o){o.d(t,{A:function(){return u}});var a=o(77001);const n={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=(0,a.createElementVNode)("path",{d:"M7 .416v13m6.5-6.5H.5",stroke:"#FEBB12","stroke-width":"2"},null,-1),r=[l];function s(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,r)}var i=o(71786);const c={},d=(0,i.A)(c,[["render",s]]);var u=d},87696:function(e,t,o){o.d(t,{A:function(){return u}});var a=o(77001);const n={class:"downArrow",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=(0,a.createElementVNode)("path",{d:"M8.14893 0.869005L4.88793 4.13L1.62793 0.869005",stroke:"#E80033","stroke-width":"2"},null,-1),r=[l];function s(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",n,r)}var i=o(71786);const c={},d=(0,i.A)(c,[["render",s]]);var u=d},99556:function(e,t,o){o.r(t),o.d(t,{default:function(){return Nc}});var a=o(77001);function n(e,t,o,n,l,r){const s=(0,a.resolveComponent)("FormulationSelection"),i=(0,a.resolveComponent)("ProductCompare");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`#${e.cmpId}`},[e.isFormulationSearch?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,onNextPage:r.nextPage},null,8,["onNextPage"])):(0,a.createCommentVNode)("",!0),e.isProductCompare?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,onStartOver:r.startOver},null,8,["onStartOver"])):(0,a.createCommentVNode)("",!0)],8,["to"])}var l=o(31839),r=o(49680);const s={class:"cmp-formulationcompass__formulationselection"},i={class:"header-row"},c={class:"formulation-select-title"},d=(0,a.createElementVNode)("div",null,null,-1),u={class:"formulation-select-desc"},m={class:"formulation-select-filters"},p={class:"search"},h={class:"search__title"},g={class:"search__box"},f=["placeholder"],k=(0,a.createElementVNode)("span",{class:"dividing_line"},null,-1),C={class:"checkbox_containers"},b={class:"regulations_container"},v={key:0,class:"tooltip"},w={class:"tooltiptext regulation_tooltiptext"},y={class:"search__title"},V={class:"pesticide"},S={key:0,class:"tooltip"},E={class:"tooltiptext pesticide_tooltiptext"},N={class:"search__title"},B={class:"pesticide_checkbox"},P={class:"selection_container"},L={key:0,class:"tooltip"},x={class:"tooltiptext pesticide_tooltiptext"},D={class:"search__title"},M={class:"formulation-select-cards"};function I(e,t,o,n,l,r){const I=(0,a.resolveComponent)("CloseIcon"),T=(0,a.resolveComponent)("SearchIcon"),F=(0,a.resolveComponent)("CheckBox"),A=(0,a.resolveComponent)("SimpleDropdown"),_=(0,a.resolveComponent)("FormulationCard"),$=(0,a.resolveComponent)("FormulationQuickview"),H=(0,a.resolveComponent)("CloseBoxButton"),R=(0,a.resolveComponent)("ProductQuickview"),W=(0,a.resolveComponent)("Modal"),q=(0,a.resolveComponent)("SearchSamplePanel");return(0,a.openBlock)(),(0,a.createElementBlock)("div",s,[(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("div",c,(0,a.toDisplayString)(r.getLabel("formulation.select.title")),1),d]),(0,a.createElementVNode)("div",u,(0,a.toDisplayString)(r.getLabel("formulation.select.desc")),1
1),(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("p",h,(0,a.toDisplayString)(r.getLabel("filter.active.ingredient")),1),(0,a.createElementVNode)("div",g,[(0,a.withDirectives)((0,a.createElementVNode)("input",{class:"search__text","aria-label":"input search query",type:"text","onUpdate:modelValue":t[0]||(t[0]=t=>e.query=t),placeholder:r.getLabel("ingredient.cas.number"),onKeyup:t[1]||(t[1]=(0,a.withKeys)(t=>r.search(e.query),["enter"]))},null,40,f),[[a.vModelText,e.query]]),(0,a.createVNode)(I,{class:"search__close","aria-label":"clear search",onClick:r.resetSearch,onKeyup:(0,a.withKeys)(r.resetSearch,["enter"])},null,8,["onClick","onKeyup"]),k,(0,a.createVNode)(T,{class:"search__icon","aria-label":"submit search",onClick:t[2]||(t[2]=t=>r.search(e.query)),onKeyup:t[3]||(t[3]=(0,a.withKeys)(t=>r.search(e.query),["enter"]))})])]),(0,a.createElementVNode)("div",C,[(0,a.createElementVNode)("div",b,[e.regulationError?((0,a.openBlock)(),(0,a.createElementBlock)("div",v,[(0,a.createElementVNode)("span",w,(0,a.toDisplayString)(e.errorMessage),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("p",y,(0,a.toDisplayString)(r.getLabel("productCompare.regulations")),1),(0,a.createVNode)(F,{id:"firstCheckbox",label:r.getLabel("EPA"),value:"EPA",modelValue:e.selectedRegulations,"onUpdate:modelValue":[t[4]||(t[4]=t=>e.selectedRegulations=t),t[5]||(t[5]=e=>r.updateFilters(e))]},null,8,["label","modelValue"])]),(0,a.createElementVNode)("div",V,[e.pesticideError?((0,a.openBlock)(),(0,a.createElementBlock)("div",S,[(0,a.createElementVNode)("span",E,(0,a.toDisplayString)(e.errorMessage),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("p",N,(0,a.toDisplayString)(r.getLabel("type.of.pesticide")),1),(0,a.createElementVNode)("div",B,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.pesticides,o=>((0,a.openBlock)(),(0,a.createBlock)(F,{label:r.getLabel(o),value:o,modelValue:e.selectedPesticides,"onUpdate:modelValue":[t[6]||(t[6]=t=>e.selectedPesticides=t),t[7]||(t[7]=e=>r.updateFilters(e))],key:o},null,8,["label","value","modelValue"]))),128))])])]),(0,a.createElementVNode)("div",P,[e.pesticideError?((0,a.openBlock)(),(0,a.createElementBlock)("div",L,[(0,a.createElementVNode)("span",x,(0,a.toDisplayString)(e.errorMessage),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("p",D,(0,a.toDisplayString)(r.getLabel("type.of.formulation")),1),(0,a.createVNode)(A,{class:"",items:e.formulationTypes,selectedOption:e.selectedFormulation,hasArrow:!0,hasDivider:"true",onChange:t[8]||(t[8]=e=>r.formulationSelected(e))},null,8,["items","selectedOption"])])]),(0,a.createElementVNode)("div",M,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.formulationResults,t=>((0,a.openBlock)(),(0,a.createBlock)(_,{key:t.mdmsId,formulationId:t.mdmsId,formulationName:t.name,activeIngredient:t.activeIngredient,compositionCategory:t.category,onFormulationClick:()=>{e.$store.state.formulation.formulationId=t.mdmsId,e.formulationModalDisplayed=!0}},null,8,["formulationId","formulationName","activeIngredient","compositionCategory","onFormulationClick"]))),128))]),(0,a.withDirectives)((0,a.createElementVNode)("p",null,(0,a.toDisplayString)(r.getLabel("No Results Found")),513),[[a.vShow,0===e.formulationResults.length]]),(0,a.createVNode)($,{onViewProduct:r.displayProductModal,"show-modal":e.formulationModalDisplayed,"onUpdate:showModal":[t[9]||(t[9]=t=>e.formulationModalDisplayed=t),r.closeFormulation],onReturnToFormulationSelection:r.returnToFormulationSelection,onPrint:r.printFormulationModal},null,8,["onViewProduct","show-modal","onReturnToFormulationSelection","onPrint","onUpdate:showModal"]),(0,a.createVNode)(W,{"show-modal":e.productModalDisplayed,class:"product-modal","onUpdate:showModal":r.closeProductModal},{close:(0,a.withCtx)(()=>[(0,a.createVNode)(H,{tabindex:"-1"})]),default:(0,a.withCtx)(()=>[(0,a.createVNode)(R,{onShowModal:t[10]||(t[10]=t=>e.productModalDisplayed=t),onReturnToFormulation:r.returnToFormulation,onRedirectToCompare:r.compareProducts},null,8,["onReturnToFormulation","onRedirectToCompare"])]),_:1},8,["show-modal","onUpdate:showModal"]),(0,a.createVNode)(q,{class:"formulation-sample-panel",defaultMarketCode:r.defaultMarketCode,defaultSubmarketCode:r.defaultSubmarketCode,currentPage:"crop-solver/formulation-finder",parentPageId:"cropSolver"},null,8,["defaultMarketCode","defaultSubmarketCode"])])}o(44114);var T=o(84840),F={namespaced:!0,state:{data:{actives:[],formulations:[],webProducts:[]},filteredFormulations:[],regulationFilter:[],pesticideFilter:[],formulationId:"",webProductId:null},mutations:{setData:_,setFilteredFormulations:R,setRegulationFilter:function(e,t){e.regulationFilter=t},setPesticideFilter:function(e,t){e.pesticideFilter=t},commitWebProductId:function(e,t){e.webProductId=t}},actions:{fetchData:A,setWebProductId:H},getters:{getAllActives:function(e){return e.data.actives},getFilteredFormulations:function(e){return e.filteredFormulations},getFormulation:function(e){return e.formulationId?e.data.formulations.filter(t=>t.mdmsId===e.formulationId)[0]:{}},getWebProduct:function(e){return e.data.webProducts.filter(t=>t.webProductId===e.webProductId)[0]}}};async function A(e,t){try{const o=await T.A.get(t);e.commit("setData",o.data)}catch(o){console.log("Failed to load data.")}}function _(e,t){e.data=t}function H(e,t){e.commit("commitWebProductId",t)}function R(e){e.filteredFormulations=[];var t=e.regulationFilter||[];if(t.length>0){var o=[];
1e.data.webProducts.forEach(e=>{var a=e.properties.filter(e=>e.name.toLowerCase().indexOf(t[0].toLowerCase())>-1&&1==parseInt(e.value));0==a.length&&o.push(e.webProductId)}),e.data.formulations.forEach(t=>{var a=t.ingredients.filter(e=>o.includes(e.webProductId));0==a.length&&e.filteredFormulations.push(t)})}else e.filteredFormulations=e.data.formulations}const W={class:"close-modal"},q={class:"back-icon-pos"},U={class:"close-icon-pos"};function O(e,t,o,n,l,r){const s=(0,a.resolveComponent)("Clickable"),i=(0,a.resolveComponent)("CloseIconButton"),c=(0,a.resolveComponent)("CardModal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",W,[(0,a.createVNode)(c,{showModal:o.showModal,disableMaskClose:o.disableMaskClose,"onUpdate:showModal":t[3]||(t[3]=t=>e.$emit("update:showModal",t))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",q,[e.$slots["back"]?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,id:"back-button",onClick:t[0]||(t[0]=t=>e.$emit("back-to-formulation"))},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,"back",{tabindex:"-1"})]),_:3})):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",U,[e.$slots["close"]?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,id:"close-modal-button",onClick:t[1]||(t[1]=t=>e.$emit("update:showModal",!1))},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,"close",{tabindex:"-1"})]),_:3})):((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,id:"close-modal-button",class:"close-icon-color",onClick:t[2]||(t[2]=t=>e.$emit("update:showModal",!1))}))]),(0,a.renderSlot)(e.$slots,"default")]),_:3},8,["showModal","disableMaskClose"])])}const z={class:"card-modal"},Z={class:"card"};function G(e,t,o,n,l,r){const s=(0,a.resolveComponent)("BaseModal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",z,[(0,a.createVNode)(s,{showModal:o.showModal,disableMaskClose:o.disableMaskClose,"onUpdate:showModal":t[0]||(t[0]=t=>e.$emit("update:showModal",t))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",Z,[(0,a.renderSlot)(e.$slots,"default")])]),_:3},8,["showModal","disableMaskClose"])])}const j={key:0,class:"base-modal-container"};function K(e,t,o,n,l,r){return o.showModal?((0,a.openBlock)(),(0,a.createElementBlock)("div",j,[(0,a.renderSlot)(e.$slots,"default"),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["base-modal-mask",{visible:o.showModal}]),onClick:t[0]||(t[0]=(...e)=>r.onCloseModal&&r.onCloseModal(...e))},null,2)])):(0,a.createCommentVNode)("",!0)}var Q={props:{showModal:{type:Boolean,required:!0},disableMaskClose:{type:Boolean,required:!1,default:!1}},methods:{onCloseModal:function(){this.disableMaskClose||this.$emit("update:showModal",!1)}},created(){document.addEventListener("keydown",e=>{"Escape"===e.key&&this.$emit("update:showModal",!1)})}},X=o(71786);const J=(0,X.A)(Q,[["render",K]]);var Y=J,ee={components:{BaseModal:Y},props:["showModal","disableMaskClose"]};const te=(0,X.A)(ee,[["render",G]]);var oe=te;function ae(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseIcon"),i=(0,a.resolveComponent)("Clickable");return(0,a.openBlock)(),(0,a.createBlock)(i,null,{default:(0,a.withCtx)(()=>[(0,a.createVNode)(s)]),_:1})}var ne=o(1229);function le(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:"clickable",tabindex:"0",onClick:t[0]||(t[0]=(0,a.withModifiers)(t=>e.$emit("click",t),["self"])),onKeydown:t[1]||(t[1]=(0,a.withKeys)(t=>e.$emit("click",t),["enter"]))},[(0,a.renderSlot)(e.$slots,"default")],32)}const re={},se=(0,X.A)(re,[["render",le]]);var ie=se,ce={components:{CloseIcon:ne.A,Clickable:ie}};const de=(0,X.A)(ce,[["render",ae]]);var ue=de,me={components:{CardModal:oe,CloseIconButton:ue,Clickable:ie},props:["showModal","disableMaskClose"],mounted(){var e=this.$el.querySelector("#close-modal-button");if(e){var t=e.querySelector(".close-symbol");t&&t.setAttribute("tabindex","-1"),e.focus()}}};const pe=(0,X.A)(me,[["render",O]]);var he=pe;const ge={class:"product-quickview-wrapper"},fe={class:"info-wrapper"},ke={class:"header-wrapper"},Ce={class:"title-wrapper"},be={class:"product-header"},ve={class:"description-wrapper"},we={class:"description"},ye={class:"options-wrapper"},Ve={class:"contact-sample-wrapper"},Se=["href"],Ee={class:"contact",tabindex:"-1"},Ne={class:"uses-applications-wrapper"},Be={key:0},Pe={class:"uses-applications-title"},Le={key:1},xe={class:"uses-applications-title"},De={id:"main",class:"properties-wrapper"};function Me(e,t,o,n,l,r){const s=(0,a.resolveComponent)("RightArrow"),i=(0,a.resolveComponent)("ProductBox"),c=(0,a.resolveComponent)("FavoriteIcon"),d=(0,a.resolveComponent)("Compare"),u=(0,a.resolveComponent)("OrderSample"),m=(0,a.resolveComponent)("EyeIcon"),p=(0,a.resolveComponent)("ListIcon"),h=(0,a.resolveComponent)("DocumentIcon"),g=(0,a.resolveComponent)("reusable-table"),f=(0,a.resolveComponent)("TechContent"),k=(0,a.resolveComponent)("Tabs");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ge,[(0,a.createElementVNode)("div",fe,[(0,a.createElementVNode)("div",null,[(0,a.createElementVNode)("div",ke,[(0,a.createVNode)(s,{class:"arrow_icon",onClick:(0,a.withModifiers)(r.returnToFormulation,["prevent"])},null,8,["onClick"]),(0,a.createElementVNode)("a",{class:"formulation-link",href:"#",onClick:t[0]||(t[0]=(0,a.withModifiers)((...e)=>r.returnToFormulation&&r.returnToFormulation(...e),["prevent"])),onKeydown:t[1]||(t[1]=(0,a.withKeys)((0,a.withModifiers)((...e)=>r.returnToFormulation&&r.returnToFormulation(...e),["prevent"]),["enter"])),tabindex:"0"},[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("back.to")),1),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(r.formulation.name),1)],32)]),(0,a.createElementVNode)("div",Ce,[(0,a.createVNode)(i),(0,a.createElementVNode)("span",be,(0,a.toDisplayString)(r.webProduct.name),1)]),(0,a.createElementVNode)("div",ve,[(0,a.createElementVNode)("div",we,(0,a.toDisplayString)(r.webProduct.description),1)]),(0,a.createElementVNode)("div",ye,[r.webProduct?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,class:"favorite",itemId:r.webProduct.webProductId,dispatchFavorites:!0},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.getLabel("text.favorite")),1)]),_:1},8,["itemId"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("span",null,[(0,a.createVNode)(d,{onCompareAdd:r.redirectToCompare},null,8,["onCompareAdd"])])])])]),(0,a.createElementVNode)("div",Ve,[(0,a.createElementVNode)("a",{href:r.contactUsLink,target:"_blank"},[(0,a.createElementVNode)("button",Ee,(0,a.toDisplayString)(r.getLabel("contact.us.title")),1)],8,Se),(0,a.createVNode)(u,{productName:r.webProduct.name,webProductId:r.webProduct.webProductId},null,8,["productName","webProductId"])]),(0,a.createVNode)(k,{tabs:["one","two","three"],selectedTab:l.selectedTab,"onUpdate:selectedTab":t[2]||(t[2]=e=>l.selectedTab=e)},{tab_one:(0,a.withCtx)(()=>[(0,a.createVNode)(m),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("overview")),1)]),tab_two:(0,a.withCtx)(()=>[(0,a.createVNode)(p),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("properties.Title")),1)]),tab_three:(0,a.withCtx)(()=>[(0,a.createVNode)(h),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("tds.and.sds")),1)]),content_one:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",Ne,[r.webProduct.benefits.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Be,[(0,a.createElementVNode)("div",Pe,(0,a.toDisplayString)(r.getLabel("pdp.benef
1its")),1),(0,a.createElementVNode)("ul",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.webProduct.benefits,e=>((0,a.openBlock)(),(0,a.createElementBlock)("li",null,(0,a.toDisplayString)(e),1))),256))])])):(0,a.createCommentVNode)("",!0),r.webProduct.uses.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Le,[(0,a.createElementVNode)("div",xe,(0,a.toDisplayString)(r.getLabel("applications")),1),(0,a.createElementVNode)("ul",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.webProduct.uses,e=>((0,a.openBlock)(),(0,a.createElementBlock)("li",null,(0,a.toDisplayString)(e),1))),256))])])):(0,a.createCommentVNode)("",!0)])]),content_two:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",De,[(0,a.createVNode)(g,{"table-sets":r.propertySets,"no-margin":!0,canDrag:!1},null,8,["table-sets"])])]),content_three:(0,a.withCtx)(()=>[(0,a.createVNode)(f,{"product-code":r.productCode},null,8,["product-code"])]),_:1},8,["selectedTab"])])}const Ie={class:"tabs-component"},Te={class:"tabs-container"},Fe={class:"content-container"},Ae=["onClick"];function _e(e,t,o,n,l,r){const s=(0,a.resolveComponent)("Clickable");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ie,[(0,a.createElementVNode)("div",Te,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.tabs,t=>((0,a.openBlock)(),(0,a.createElementBlock)("span",{class:(0,a.normalizeClass)(["tab",{activeTab:o.selectedTab==t}]),key:`tab-button-${t}`},[e.$slots[r.tabSlot(t)]?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,onClick:o=>e.$emit("update:selectedTab",t)},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,r.tabSlot(t),{tabindex:"-1"})]),_:2},1032,["onClick"])):((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,onClick:o=>e.$emit("update:selectedTab",t)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t),1)]),_:2},1032,["onClick"]))],2))),128))]),(0,a.createElementVNode)("div",Fe,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.tabs,t=>((0,a.openBlock)(),(0,a.createElementBlock)("span",{key:`tab-content-${t}`,class:"content",onClick:o=>e.$emit("update:selectedTab",t)},[o.selectedTab==t?(0,a.renderSlot)(e.$slots,r.contentSlot(t),{key:0}):(0,a.createCommentVNode)("",!0)],8,Ae))),128))])])}function $e(e){return"tab_"+e}function He(e){return"content_"+e}var Re={props:{tabs:Array,selectedTab:String},methods:{tabSlot:$e,contentSlot:He},components:{Clickable:ie}};const We=(0,X.A)(Re,[["render",_e]]);var qe=We,Ue={extends:qe};const Oe=Ue;var ze=Oe;const Ze={width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ge=(0,a.createElementVNode)("path",{d:"M1 1L6 5.99999L1 11",stroke:"#E80033","stroke-width":"2"},null,-1),je=[Ge];function Ke(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",Ze,je)}const Qe={},Xe=(0,X.A)(Qe,[["render",Ke]]);var Je=Xe,Ye=o(91616);const et={class:"eye-icon",xmlns:"http://www.w3.org/2000/svg",width:"18.351",height:"13.72",viewBox:"0 0 18.351 13.72"},tt=(0,a.createElementVNode)("g",{transform:"translate(-0.382 1)"},[(0,a.createElementVNode)("path",{class:"overview-icon-a tabIcon",d:"M1.5,11.86S4.43,6,9.558,6s8.058,5.86,8.058,5.86-2.93,5.86-8.058,5.86S1.5,11.86,1.5,11.86Z",transform:"translate(0 -6)"}),(0,a.createElementVNode)("path",{class:"overview-icon-a tabIcon",d:"M18.131,15.815A2.315,2.315,0,1,1,15.815,13.5,2.315,2.315,0,0,1,18.131,15.815Z",transform:"translate(-6.258 -9.956)"})],-1),ot=[tt];function at(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",et,ot)}const nt={},lt=(0,X.A)(nt,[["render",at]]);var rt=lt;const st={xmlns:"http://www.w3.org/2000/svg",width:"19.728",height:"16.563",viewBox:"0 0 19.728 16.563",class:"feather-text feather-icon list-icon"},it=(0,a.createStaticVNode)('<g id="Icon_feather-list" data-name="Icon feather-list" transform="translate(1.001 1)"><path id="Path_6362" data-name="Path 6362" d="M23.66,9H12" transform="translate(-12.001 -9)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_6363" data-name="Path 6363" d="M23.66,18H12" transform="translate(-12.001 -10.719)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_6364" data-name="Path 6364" d="M23.66,27H12" transform="translate(-12.001 -12.438)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_6365" data-name="Path 6365" d="M4.5,9h0" transform="translate(13.227 -9)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path>
1<path id="Path_6366" data-name="Path 6366" d="M4.5,18h0" transform="translate(13.227 -10.719)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path><path id="Path_6367" data-name="Path 6367" d="M4.5,27h0" transform="translate(13.227 -12.438)" fill="none" stroke="#2c2a29" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" class="tabIcon"></path></g>',1),ct=[it];function dt(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",st,ct)}const ut={},mt=(0,X.A)(ut,[["render",dt]]);var pt=mt,ht=o(28462);const gt={key:0,class:"compareTable compareHeader"},ft={class:"tableHeader"},kt=["id"],Ct={class:"tableHeader"},bt={class:"tableHeaderRow"},vt=["colspan"],wt=["v-model"],yt={class:"feature-wrapper"},Vt={class:"feature-name"},St={class:"feature-options"},Et={key:0,class:"move-row"},Nt={key:0,class:"gray-line"},Bt={key:1},Pt={class:"tableBodyRow linkedScroll addPropertyRow"},Lt=(0,a.createElementVNode)("svg",{class:"svg-nav-close",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},[(0,a.createElementVNode)("defs"),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(6.5)"}),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(13 6.5) rotate(90)"})],-1);function xt(e,t,o,n,l,r){const s=(0,a.resolveComponent)("product-card"),i=(0,a.resolveComponent)("draggable"),c=(0,a.resolveComponent)("CloseIcon"),d=(0,a.resolveComponent)("Drag");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("div",{class:"tableContainer row",style:(0,a.normalizeStyle)({marginLeft:e.tableMargin&&!o.noMargin?e.tableMargin+"px":"0px"})},[r.hasProducts?((0,a.openBlock)(),(0,a.createElementBlock)("table",gt,[(0,a.createElementVNode)("thead",ft,[(0,a.createElementVNode)("tr",{class:"tableHeaderRow linkedScroll",onUpdate:t[0]||(t[0]=(...e)=>r.handleMoveColumn&&r.handleMoveColumn(...e))},[(0,a.createElementVNode)("th",{class:"defaultTableHeaderCell tableHeaderCell",style:(0,a.normalizeStyle)(r.featureStyles)},null,4),(0,a.createVNode)(i,{class:"draggable-container",list:r.headerDataComputed.products,"item-key":"code",disabled:e.isMobile||!o.canDrag},{item:(0,a.withCtx)(({element:t,index:n})=>[(0,a.createElementVNode)("th",{class:"tableHeaderCell productHeaderCell",style:(0,a.normalizeStyle)(r.featureValueStyles)},[((0,a.openBlock)(),(0,a.createBlock)(s,{id:n,productcode:t.code,producttitle:t.name,key:t.code,pdpurl:t.pdpUrl,canMove:!e.isMobile,onProductCardClose:r.onProductCardClose,sampleUrl:o.sampleUrl},null,8,["id","productcode","producttitle","pdpurl","canMove","onProductCardClose","sampleUrl"]))],4)]),_:1},8,["list","disabled"])],32)])])):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.tableSetsComputed,n=>((0,a.openBlock)(),(0,a.createElementBlock)("table",{class:"compareTable compareData",id:n.name+"Table",key:n.name},[(0,a.createElementVNode)("thead",Ct,[(0,a.createElementVNode)("tr",bt,[(0,a.createElementVNode)("th",{class:"propertySetHeaderCell",style:(0,a.normalizeStyle)(r.featureStyles),colspan:r.colSpan},[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(n.name),1)],12,vt),r.hasProducts?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(r.headerDataComputed.products,e=>((0,a.openBlock)(),(0,a.createElementBlock)("th",{style:(0,a.normalizeStyle)(r.featureValueStyles),key:e.productcode},null,4))),128)):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("tbody",{tag:"tbody",class:"tableBody",ref_for:!0,ref:n.name+"TableBody",onUpdate:t[2]||(t[2]=(...e)=>r.handleMoveRow&&r.handleMoveRow(...e)),"v-model":n.features},[(0,a.createVNode)(i,{class:"draggable-container",list:n.features,"item-key":"name",disabled:e.isMobile||!o.canDrag},{item:(0,a.withCtx)(({element:t})=>[(0,a.withDirectives)((0,a.createElementVNode)("tr",{class:"tableBodyRow linkedScroll",ref_for:!0,ref:t.name+n.name},[(0,a.createElementVNode)("td",{class:"tableBodyCell featureCell",style:(0,a.normalizeStyle)(r.featureStyles)},[(0,a.createElementVNode)("span",yt,[(0,a.createElementVNode)("span",Vt,(0,a.toDisplayString)(t.name),1),(0,a.createElementVNode)("span",St,[(0,a.withDirectives)((0,a.createVNode)(c,{onClick:(0,a.withModifiers)(e=>r.removeProperty(t),["prevent"])},null,8,["onClick"]),[[a.vShow,!e.isMobile]]),e.isMobile?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("span",Et,[(0,a.createVNode)(d)]))])])],4),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.values,e=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{class:"tableBodyCell featureValueCell",style:(0,a.normalizeStyle)(r.featureValueStyles),key:e+r.makeUniqueId("element",8)},["-"==e?((0,a.openBlock)(),(0,a.createElementBlock)("span",Nt)):((0,a.openBlock)(),(0,a.createElementBlock)("span",Bt,(0,a.toDisplayString)(e),1))],4))),128))],512),[[a.vShow,t.isVisible]])]),_:2},1032,["list","disabled"]),(0,a.createElementVNode)("tr",Pt,[(0,a.createElementVNode)("td",{class:"tableBodyCell addPropertyCell",style:(0,a.normalizeStyle)({minWidth:e.maxFeatureWidth?e.maxFeatureWidth+"px":"auto",marginLeft:e.leftColumnMargin?e.leftColumnMargin+"px":"0px"})},[(0,a.createElementVNode)("span",{class:"add-property",onClick:t[1]||(t[1]=e=>r.displayAddProperties())},[Lt,(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("productC
1ompare.addProperty")),1)])],4)])],40,wt)],8,kt))),128))],4)])}var Dt=o(43670),Mt=o(69093),It=o(61527),Tt=o.n(It),Ft=o(87373),At=o(32839),_t={name:"ReusableTable",props:{headerData:Object,tableSets:Array,sampleUrl:String,noMargin:Boolean,canDrag:{type:Boolean,default:!0}},components:{ProductCard:Dt.A,CloseIcon:ne.A,PlusSign:Mt.A,draggable:Tt(),Drag:Ft.A},computed:{headerDataComputed:function(){return this.headerData||{}},tableSetsComputed:function(){return this.tableSets},tableColumnCount:function(){return this.hasProducts()?this.headerDataComputed.products.length+1:0},featureStyles:function(){return this.hasProducts()?{minWidth:this.maxFeatureWidth?this.maxFeatureWidth+"px":"auto",width:this.maxFeatureWidth?this.maxFeatureWidth+"px":"auto",marginLeft:this.leftColumnMargin?this.leftColumnMargin+"px":"0px"}:{}},featureValueStyles:function(){return this.hasProducts()?{minWidth:this.featureValueWidth?this.featureValueWidth+"px":"auto",width:this.featureValueWidth?this.featureValueWidth+"px":"auto"}:{}},colSpan:function(){return this.hasProducts()?1:2}},watch:{tableSetsComputed:function(e,t){this.initStyles()}},data:function(){return{maxFeatureWidth:null,maxTableWidth:null,featureValueWidth:null,mainWidth:null,leftColumnMargin:0,tableMargin:0,isMobile:!1,isMobileCompareIcon:!1,isTablet:!1,initStylesSet:!1,messages:{addProperty:""}}},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},initStyles:function(){this.calculateFeatureWidth(),this.calculateFeatureValueWidth(),this.calculateMobileStyles(),this.equalizeCells()},calculateFeatureWidth:function(){this.maxFeatureWidth=190},calculateFeatureValueWidth:function(){var e=document.getElementsByClassName("tableContainer").innerWidth;this.hasProducts()?this.featureValueWidth=(e-this.maxFeatureWidth)/this.headerDataComputed.products.length:this.featureValueWidth=e-this.maxFeatureWidth},calculateMobileStyles:function(){var e=window.innerWidth;if(e<1280){this.isMobileCompareIcon=!0,this.isCompareIcon=!1;var t=window.matchMedia("(orientation:landscape)").matches;if(this.mainWidth=t?768:document.getElementById("main").offsetWidth,this.isMobile=!0,this.isTablet){var o=this.mainWidth/2;this.mainWidth+="px",this.maxFeatureWidth=o,this.featureValueWidth=o,this.tableMargin=o,this.leftColumnMargin=-1*o}else{o=e/2;this.maxFeatureWidth=o,this.featureValueWidth=o,this.mainWidth+="px",this.tableMargin=o,this.leftColumnMargin=-1*o-15}}else this.isMobile=!1,this.isMobileCompareIcon=!1,this.isCompareIcon=!0,this.tableMargin=0},removeProperty:function(e){e.isVisible=!1},setMobilePrintStyles:function(){this.isMobileCompareIcon=!1,this.calculateFeatureWidth(),this.calculateFeatureValueWidth(),this.mainWidth="100%",this.tableMargin=0},undoMobilePrintStyles:function(){this.isMobileCompareIcon=!0,this.mainWidth="100vw",this.calculateMobileStyles()},onProductCardClose:function(e){this.$emit("product-remove",e)},displayAddProperties:function(){this.$emit("displayAddProperties")},handleMoveRow:function(){},handleMoveColumn:function(e){this.$emit("product-reorder",e.oldIndex,e.newIndex)},hasProducts:function(){return this.headerDataComputed&&this.headerDataComputed.products},equalizeCells:function(){const e=this.$refs;e.length&&e.forEach(e=>{const t=e.querySelectorAll(".tableBodyCell");let o=[],a=0;t.length&&(t.forEach(e=>{o.push(e.clientHeight)}),a=Math.max(o.join()),t.forEach(e=>{e.style.height=a+"px"}))})},makeUniqueId:At.vL},mounted:function(){window.onresize=function(e){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){this.initStyles()}.bind(this),250)}.bind(this);const e=document.getElementsByClassName("addNewProduct")[0];e&&(e.style.right=-1*window.getComputedStyle(e).width)},updated:function(){this.initStylesSet||(this.initStyles(),this.initStylesSet=!0)}};const $t=(0,X.A)(_t,[["render",xt]]);var Ht=$t,Rt=o(33772);const Wt=["onclick"];function qt(e,t,o,n,l,r){const s=(0,a.resolveComponent)("Cart");return(0,a.openBlock)(),(0,a.createElementBlock)("button",{class:"order-sample-link",onclick:r.click},[(0,a.createVNode)(s),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("pdp.orderSample")),1)],8,Wt)}const Ut={xmlns:"http://www.w3.org/2000/svg",width:"14.828",height:"15",viewBox:"0 0 14.828 15",id:"cc"},Ot=(0,a.createElementVNode)("g",{transform:"translate(-999.376 -9)"},[(0,a.createElementVNode)("path",{class:"cart-a",d:"M13.238,30.619A.619.619,0,1,1,12.619,30,.619.619,0,0,1,13.238,30.619Z",transform:"translate(991.709 -8.238)"}),(0,a.createElementVNode)("path",{class:"cart-a",d:"M29.738,30.619A.619.619,0,1,1,29.119,30,.619.619,0,0,1,29.738,30.619Z",transform:"translate(982.019 -8.238)"}),(0,a.createElementVNode)("path",{class:"cart-b",d:"M1.5,1.5H3.976L5.635,9.789a1.238,1.238,0,0,0,1.238,1H12.89a1.238,1.238,0,0,0,1.238-1l.99-5.194H4.6",transform:"translate(997.876 8.5)"})],-1),zt=[Ot];function Zt(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",Ut,zt)}const Gt={},jt=(0,X.A)(Gt,[["render",Zt]]);var Kt=jt;function Qt(e){let t=e.toLowerCase().replaceAll(" ","-").replaceAll(/[^a-z0-9-]/g,"");return t}var Xt={props:{productName:String,webProductId:String},data(){return{}},computed:{locale(){return this.$store.state.browser.cookies["languageCode"]||"en-us"}},components:{Cart:Kt},methods:{getLabel:Jt,click(){let e={code:this.webProductId,title:this.productName,displayUrl:`/${this.locale}/pdp.${Qt(this.productName)}.${this.webProductId}.html?productCatalogFlag=1`};store.dispatch("sampleCart/fetchSampleOptionsFromSearch",e)}},computed:{sampleLink(){let e=this.$store.state?.user?.dccUserInfo?.data?.email||"";return`https://engage.dow.com/CropSolver-Sample?product=${encodeURIComponent(this.productName)}&csEmail=${e}`}}};function Jt(e){return window.Granite.I18n.get(e)}const Yt=(0,X.A)(Xt,[["render",qt]]);var eo=Yt,to=o(15311);const oo={class:"tech-content-container tds-sds-wrapper"},ao={class:"tech-content-columns"},no={id:"techContentTab"},lo={class:"tech-content"},ro={class:"tech-content--docs"},so={class:"tds-section",id:"technical-data-sheet"},io={class:"firstRow"},co={class:"section-title"},uo={class:"download-icon-container"},mo={key:1},po={class:"languageSvg"},ho={key:1},go={class:"tds-section",id:"safety-data-sheet"},fo={class:"section-title"},ko={key:1},Co={key:0,class:"tech-content-dropdown-container"},bo={class:"languageSvg dropdownSvg"},vo={class:"languageSvg dropdownSvg"};function wo(e,t,o,n,l,r){const s=(0,a.resolveComponent)("DownloadIcon"),i=(0,a.resolveComponent)("LoadingDots"),c=(0,a.resolveComponent)("GlobalIcon"),d=(0,a.resolveComponent)("SimpleDropdown"),u=(0,a.resolveComponent)("DocumentCard"),m=(0,a.resolveComponent)("Clickable"),p=(0,a.resolveComponent)("EmptyDocumentCard"),h=(0,a.resolveComponent)("QuadDotIcon"),g=(0,a.resolveComponent)("TruckIcon");return(0,a.openBlock)(),(0,a.createElementBlock)("div",oo,[(0,a.createElementVNode)("div",ao,[(0,a.createElementVNode)("div",no,[(0,a.createElementVNode)("div",lo,[(0,a.createElementVNode)("div",ro,[(0,a.createElementVNode)("div",so,[(0,a.createElementVNode)("div",io,[(0,a.createElementVNode)("h3",co,(0,a.toDisplayString)(r.technicalText),1),(0,a.createElementVNode)("div",uo,[(0,a.createElementVNode)("a",{tabindex:"0",onClick:t[0]||(t[0]=(0,a.withModifiers)((...e)=>r.downloadSelected&&r.downloadSelected(...e),["prevent"])),class:(0,a.normalizeClass)([{disabled:r.noDocumentsSelected},"download-button"])},[(0,a.createVNode)(s),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(r.downloadSelectedText),1)],2)])]),this.$store.state.techContent.isTDSLoading?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,loading:this.$store.state.techContent.isTDSLoading},null,8,["loading"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",mo,[r.tdsLanguages.length>2?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"language-dropdown",items:r.tdsLanguages,selectedOption:l.selectedLanguage,hasArrow:!0,onChange:t[1]||(t[1]=e=>r.selectTDSLanguage(e))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",po,[(0,a.createVNode)(c)])]),_:1},8,["items","selectedOption"])):(0,a.createCommentVNode)("",!0),r.tdsList.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",ho,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.tdsList,e=>((0,a.openBlock)(),(0,a.createBlock)(m,{onClick:t=>r.showDocViewerModal(e.pathLink,"tds",t),key:e.pathLink},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(u,{label:1==r.tdsList.length?"Technical Data Sheet":e.title,language:e.displayLanguage,pathLink:e.pathLink,isChecked:e.isChecked,"onUpdate:isChecked":t=>e.isChecked=t},null,8,["label","language","pathLink","isChecked","onUpdate:isChecked"])]),_:2},1032,["onClick"]))),128))])):(0,a.createCommentVNode)("",!0),0==r.tdsList.length?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,label:r.noTechDataSheetText},null,8,["label"])):(0,a.createCommentVNode)("",!0)]))]),(0,a.createElementVNode)("div",go,[(0,a.createElementVNode)("h3",fo,(0,a.toDisplayString)(r.sdsText),1),this.$store.state.techContent.isSDSLoading?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,loading:this.$store.state.techContent.isSDSLoading},null,8,["loading"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",ko,[0==l.isEccSystemDown?((0,a.openBlock)(),(0,a.createElementBlock)("div",Co,[r.tradeProducts.length>2?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,ref:"tdsDropdown",class:"language-dropdown tradeproduct-dropdown",items:r.tradeProducts,selectedOption:l.selectedSDSTradeProduct,hasArrow:!0,onChange:r.getSDSData},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",bo,[(0,a.createVNode)(h)])]),_:1},8,["items","selectedOption","onChange"])):(0,a.createCommentVNode)("",!0),r.sdsCountryList.length>2&&r.sdsCountryValueList.includes(this.selectedCountry)?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,class:"language-dropdown",items:r.sdsCountryList,selectedOption:l.selectedSDSCountry,hasArrow:!0,onChange:r.selectSDSCountry},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",vo,[(0,a.createVNode)(g)])]),_:1},8,["items","selectedOption","onChange"])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.sdsDocs,e=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:e.name,onClick:t=>r.showDocViewerModal(e.pathLink,"sds",t)},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(u,{label:r.sdsDocTitle,country:e.countryName,language:e.languageName,pathLink:e.pathLink,isChecked:e.isChecked,"onUpdate:isChecked":t=>e.isChecked=t},null,8,["label","country","language","pathLink","isChecked","onUpdate:isChecked"])]),_:2},1032,["onClick"]))),128)),(0==l.sdsDocs.length||r.tradeProducts.length<2)&&!l.isEccSystemDown?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,label:r.noSDSText},null,8,["label"])):"true"==l.isEccSystemDown?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,label:l.siteMaintenanceMessage},null,8,["label"])):(0,a.createCommentVNode)("",!0)]))])])])])])])}o(14603),o(47566),o(98721);var yo=o(20954);const Vo={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18.224",viewBox:"0 0 18 18.224"},So=(0,a.createElementVNode)("g",{id:"Group_5252","data-name":"Group 5252",transform:"translate(1 1.112)"},[(0,a.createElementVNode)("path",{id:"Path_14","data-name":"Path 14",d:"M19,11a8,8,0,1,1-8-8,8,8,0,0,1,8,8Z",transform:"translate(-3 -3)",fill:"none",stroke:"#e80c33","stroke-width":"2"}),(0,a.createElementVNode)("path",{id:"Path_15","data-name":"Path 15",d:"M3,18H19",transform:"translate(-3 -10.001)",fill:"none",stroke:"#e80c33","stroke-linejoin":"round","stroke-width":"1.5"}),(0,a.createElementVNode)("path",{id:"Path_16","data-name":"Path 16",d:"M15.2,3a12.24,12.24,0,0,1,3.2,8,12.24,12.24,0,0,1-3.2,8A12.24,12.24,0,0,1,12,11a12.24,12.24,0,0,1,3.2-8Z",transform:"translate(-7.201 -3)",fill:"none",stroke:"#e80c33","stroke-width":"1.5"})],-1),Eo=[So];function No(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",Vo,Eo)}const Bo={},Po=(0,X.A)(Bo,[["render",No]]);var Lo=Po;const xo={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},Do=(0,a.createStaticVNode)('<g id="quadDot" data-name="quadDot" transform="translate(-12 -9)"><g id="Ellipse_4" data-name="Ellipse 4" transform="translate(12 9)" fill="none" stroke="#e80c33" stroke-width="2"><circle cx="3.5" cy="3.5" r="3.5" stroke="none"></circle><circle cx="3.5" cy="3.5" r="2.5" fill="none"></circle></g><g id="Ellipse_7" data-name="Ellipse 7" transform="translate(12 18)" fill="none" stroke="#e80c33" stroke-width="2"><circle cx="3.5" cy="3.5" r="3.5" stroke="none"></circle><circle cx="3.5" cy="3.5" r="2.5" fill="none"></circle></g><g id="Ellipse_5" data-name="Ellipse 5" transform="translate(21 9)" fill="none" stroke="#e80c33" stroke-width="2"><circle cx="3.5" cy="3.5" r="3.5" stroke="none"></circle><circle cx="3.5" cy="3.5" r="2.5" fill="none"></circle></g><g id="Ellipse_6" data-name="Ellipse 6" transform="translate(21 18)" fill="none" stroke="#e80c33" stroke-width="2"><circle cx="3.5" cy="3.5" r="3.5" stroke="none"></circle><circle cx="3.5" cy="3.5" r="2.5" fill="none"></circle></g></g>',1),Mo=[Do];function Io(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",xo,Mo)}const To={},Fo=(0,X.A)(To,[["render",Io]]);var Ao=Fo;const _o={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15.091",viewBox:"0 0 18 15.091"},$o=(0,a.createStaticVNode)('<g id="Icon_feather-truck" data-name="Icon feather-truck" transform="translate(1 1)"><path id="Path_17" data-name="Path 17" d="M1.5,4.5H12.409v9.455H1.5Z" transform="translate(-1.5 -4.5)" fill="none" stroke="#e80c33" stroke-width="2"></path><path id="Path_18" data-name="Path 18" d="M24,12h2.909l2.182,2.182v3.636H24Z" transform="translate(-13.091 -8.364)" fill="none" stroke="#e80c33" stroke-width="2"></path><path id="Path_19" data-name="Path 19" d="M8.136,25.818A1.818,1.818,0,1,1,6.318,24a1.818,1.818,0,0,1,1.818,1.818Z" transform="translate(-3.045 -14.545)" fill="none" stroke="#e80c33" stroke-width="2"></path><path id="Path_20" data-name="Path 20" d="M27.636,25.818A1.818,1.818,0,1,1,25.818,24,1.818,1.818,0,0,1,27.636,25.818Z" transform="translate(-13.091 -14.545)" fill="none" stroke="#e80c33" stroke-width="2"></path></g>',1),Ho=[$o];function Ro(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",_o,Ho)}const Wo={},qo=(0,X.A)(Wo,[["render",Ro]]);var Uo=qo,Oo=o(79946),zo=o(97871);const Zo={class:"empty-document-card-container"},Go=["innerHTML"];function jo(e,t,o,n,l,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",Zo,[(0,a.createElementVNode)("span",{class:"document-card-text",innerHTML:o.label},null,8,Go)])}var Ko={props:{label:String}};const Qo=(0,X.A)(Ko,[["render",jo]]);var Xo=Qo;const Jo={class:"document-card-container"},Yo={class:"document-card-input"},ea={class:"document-card-pdf"},ta={class:"labelDiv"},oa={key:0,class:"document-card-label"},aa={key:1}
1,na=(0,a.createElementVNode)("span",{class:"document-card-divider"}," | ",-1),la={key:2},ra=(0,a.createElementVNode)("span",{class:"document-card-divider"}," | ",-1),sa={class:"document-card-checkbox"},ia=["href"];function ca(e,t,o,n,l,r){const s=(0,a.resolveComponent)("PdfIcon"),i=(0,a.resolveComponent)("CheckBox"),c=(0,a.resolveComponent)("ArrowIcon");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Jo,[(0,a.createElementVNode)("div",Yo,[(0,a.createElementVNode)("span",ea,[(0,a.createVNode)(s)]),(0,a.createElementVNode)("div",ta,[void 0!==o.label?((0,a.openBlock)(),(0,a.createElementBlock)("span",oa,(0,a.toDisplayString)(o.label),1)):(0,a.createCommentVNode)("",!0),void 0!==o.country?((0,a.openBlock)(),(0,a.createElementBlock)("span",aa,[na,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(o.country),1)])):(0,a.createCommentVNode)("",!0),void 0!==o.language?((0,a.openBlock)(),(0,a.createElementBlock)("span",la,[ra,(0,a.createElementVNode)("strong",null,(0,a.toDisplayString)(o.language),1)])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("span",sa,[(0,a.createVNode)(i,{modelValue:o.isChecked,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:isChecked",t)),label:""},null,8,["modelValue"])]),(0,a.createElementVNode)("span",{class:"document-card-arrow",href:o.pathLink},[(0,a.createVNode)(c)],8,ia)])])}const da={id:"pdf-icon-container"},ua=(0,a.createStaticVNode)('<svg xmlns="http://www.w3.org/2000/svg" width="35" height="22" viewBox="0 0 1 25"><g id="Icon_feather-file-text" data-name="Icon feather-file-text" transform="translate(-5 1)"><path id="Path_176" data-name="Path 176" d="M16.426,3H8.085A2.085,2.085,0,0,0,6,5.085V21.766a2.085,2.085,0,0,0,2.085,2.085H20.6a2.085,2.085,0,0,0,2.085-2.085V9.255Z" transform="translate(-6 -3)" fill="none" stroke="#2c2a29" stroke-width="1"></path><path id="Path_177" data-name="Path 177" d="M21,3V9.3h6.3" transform="translate(-10.619 -3)" fill="none" stroke="#2c2a29" stroke-width="1"></path><path id="Path_178" data-name="Path 178" d="M20.4,19.5H12" transform="translate(-7.86 -8.032)" fill="none" stroke="#2c2a29" stroke-linejoin="round" stroke-width="1"></path><path id="Path_179" data-name="Path 179" d="M20.4,25.5H12" transform="translate(-7.86 -9.862)" fill="none" stroke="#2c2a29" stroke-linejoin="round" stroke-width="1"></path><path id="Path_180" data-name="Path 180" d="M15.043,13.5H12" transform="translate(-7.834 -6.202)" fill="none" stroke="#2c2a29" stroke-width="1"></path></g><svg id="Group_5221" data-name="Group 5221" xmlns="http://www.w3.org/2000/svg" width="20" height="32" viewBox="0 -4 18 10"><rect id="Rectangle_139955" data-name="Rectangle 139955" width="15" height="8" rx="1" fill="#e80c33"></rect><text id="PDF" transform="translate(2 6)" fill="#fff" font-size="5" font-family="Arial-BoldMT, Arial" font-weight="700" letter-spacing="0.15em"><tspan x="0" y="0">PDF</tspan></text></svg></svg>',1),ma=[ua];function pa(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("span",da,ma)}const ha={},ga=(0,X.A)(ha,[["render",pa]]);var fa=ga,ka=o(499),Ca={components:{ArrowIcon:Je,PdfIcon:fa,CheckBox:ka.A},props:{contentType:String,isChecked:Boolean,label:String,country:String,language:String,pathLink:String}};const ba=(0,X.A)(Ca,[["render",ca]]);var va=ba;var wa={data(){return{docTypes:{SDS:"SDS",FDS:"FOOD_DRUG",PI:"PI"},selectedLanguage:this.$store.state.browser.cookies["languageCode"]||"en-us",selectedCountry:"US",selectedSSTradeProduct:"",selectedSDSTradeProduct:"",selectedSDSCountry:"",selectedFDSTradeProduct:"",selectedFDSCountry:"",sdsDocs:[],piDoc:{},isSSLoading:!1,showModal:!1,pdfSrc:"",isRelatedResourcesTracked:!1,isEccSystemDown:window.isSystemDown||!1,siteMaintenanceMessage:window.siteMaintenanceMessage||"",initialPageLoad:!1}},computed:{noDocumentsSelected(){return!(null!=this.tdsList&&this.tdsList.filter(e=>e.isChecked).length>0||null!=this.sdsDocs&&this.sdsDocs.filter(e=>e.isChecked).length>0)},technicalDataSheets(){return this.$store.state.techContent.technicalDataSheets},tdsList(){var e="en";return this.selectedLanguage.indexOf("-")&&(e=this.selectedLanguage.split("-")[0]),this.technicalDataSheets?this.technicalDataSheets.filter(t=>t.languageCode==e).sort(e=>e.pathLink):[]},tdsLanguages(){var e=[];for(var t of(e.push({text:this.getLabel("select.language"),value:""}),this.technicalDataSheets))e.some(e=>e.value==t.languageCode)||e.push({value:t.languageCode,text:t.displayLanguage});return e},technicalContentData(){return this.$store.getters["techContent/getTechnicalContentData"]},tradeProducts(){var e=[];
1if(e.push({text:this.getLabel("select.option"),value:""}),null!=this.technicalContentData.tradeProducts)for(var t of this.technicalContentData.tradeProducts)e.push({text:t.name,value:t.code});return e},sdsData(){return this.$store.state.techContent.sdsData},sdsCountryList(){var e=[];for(var t in e.push({value:"",text:this.getLabel("select.country")}),this.sdsData){var o=this.sdsData[t];e.some(e=>e.value==o.countryIsoCode)||e.push({value:o.countryIsoCode,text:o.country}),o.countryIsoCode&&o.countryIsoCode===this.selectedCountry&&(this.selectedSDSCountry=o.countryIsoCode)}return e},sdsCountryValueList(){var e=[];for(var t in e.push({value:""}),this.sdsData){var o=this.sdsData[t];e.some(e=>e.value==o.countryIsoCode)||e.push(o.countryIsoCode)}return e},technicalText:function(){return this.getLabel("technical.data.sheet")},sdsText(){return this.getLabel("safety.data.sheet.Title")},downloadSelectedText(){return this.getLabel("download.selected.documents")},sdsDocTitle(){return this.getLabel("safety.data.sheet.Title")},piText(){return this.getLabel("pi.product.ingredients.list")},noTechDataSheetText(){return this.getLabel("technical.datasheet.fail")+" <a href='"+this.technicalContentData.contactUsLink+"&inquiry=Lit'>"+this.getLabel("please.contact.dow")+"</a>"},noSDSText(){return this.selectedSDSCountry||this.tradeProducts.length<2||this.selectedSDSTradeProduct&&this.sdsCountryList.length<2||this.selectedSDSTradeProduct&&!this.sdsCountryList.includes(this.selectedCountry)?this.getLabel("SDS.not.found")+" <a href='"+this.technicalContentData.contactUsLink+"&inquiry=Lit'>"+this.getLabel("please.contact.dow")+"</a>":this.selectedSDSTradeProduct?this.getLabel("select.country"):this.getLabel("select.option")},noPIText(){return this.selectedSDSCountry||this.tradeProducts.length<2||this.selectedSDSTradeProduct&&this.sdsCountryList.length<2?this.getLabel("pi.not.available")+"<a href='"+this.technicalContentData.contactUsLink+"&inquiry=Lit'>"+this.getLabel("please.contact.dow")+"</a>":this.selectedSDSTradeProduct?this.getLabel("select.country"):this.getLabel("select.option")}},watch:{tdsLanguages(){this.tdsLanguages.some(e=>e.value===this.selectedLanguage)||(this.selectedLanguage="en-us")},selectedSDSCountry(e){this.selectSDSCountry(e);var t="";if(this.sdsCountryList)for(var o of this.sdsCountryList)if(o.value==e){t=o.text;break}this.initialPageLoad&&this.$store.dispatch("trackLink",{name:t,position:"pdp-sds-country-options"})},tradeProducts(){this.tradeProducts&&this.tradeProducts.length-1>1?this.selectedSSTradeProduct=this.selectedSDSTradeProduct=this.rdsSelectedOption=this.selectedFDSTradeProduct=this.tradeProducts[0].value:this.tradeProducts&&this.tradeProducts.length-1==1&&(this.selectedSSTradeProduct=this.selectedSDSTradeProduct=this.rdsSelectedOption=this.selectedFDSTradeProduct=this.tradeProducts[1].value,this.getSDSData(this.selectedSDSTradeProduct))}},props:{productCode:String},components:{DownloadIcon:yo.A,GlobalIcon:Lo,QuadDotIcon:Ao,TruckIcon:Uo,Clickable:ie,LoadingDots:Oo.A,EmptyDocumentCard:Xo,DocumentCard:va,SimpleDropdown:zo.A},methods:{randomId:ya,downloadSelected:La,selectTDSLanguage:Sa,getSDSData:Ea,selectSDSCountry:Na,selectSSTradeProduct:Pa,isoParse:xa,getLabel:Va,showDocViewerModal(e,t,o){const a=o.target.closest(".document-card-container"),n=a?.querySelectorAll(".document-card-checkbox, .document-card-checkbox *"),l=Array.from(n);if(o&&o.target&&!l?.includes(o.target)){window.sessionStorage.setItem("clickedDocType",t);let o=window.location.origin+"/"+this.selectedLanguage+"/"+e;window.open(o,"_blank").focus()}},getSelected(e){var t="",o={sds:"#safety-data-sheet",rds:"#regulatory-data-sheets",saleSpec:"#sales-spec",food_drug:"#food-contact-letter",pi:"#safety-data-sheet"},a=document.querySelector(`${o[e]} .tradeproduct-dropdown .dropdown-selected-text`);return a&&(t=a.innerText),t},trackDownload(e,t,o){var a;if(t)a=t;else{let e=this.getSelected(o);a=e||`${document.getElementsByClassName("product-header")[0].innerText}`}var n=e.split("docPath=")[1]||e,l=e;let r=[];"chemEquiv"!=o||0==productData.chemicalEquivalency.length?r.push({productID:this.productC
1ode}):productData.chemicalEquivalency.find(t=>t.pathLink==e)?.productIds.split(",").forEach(e=>{let t=e.split("/");r.push({productID:t[t.length-1]})}),this.$store.dispatch("assets/download",{products:r,id:n,name:a,type:o,url:l})},onDocumentViewerModalLoad(){const e=document.querySelector("iframe.pdf-modal-content").contentDocument,t=e.querySelector("iframe#document-iframe"),o=e.querySelector("div#document-iframe");t?t.onload=function(){e.querySelector(".documentViewerRedesign")&&e.querySelector(".document-viewer-modal").remove()}:o&&e.querySelector(".document-viewer-modal")&&e.querySelector(".document-viewer-modal").remove()}},mounted(){var e=this;this.$store.dispatch("techContent/fetchTradeProducts",this.productCode).then(function(){e.$store.dispatch("techContent/getTechnicalDataSheets",e.productCode)}),this.initialPageLoad=!0},created(){this.$store.dispatch("search/fetchSearchToken",{hub:"DowComMainSearch"}).then(e=>{this.$store.dispatch("techContent/fetchAllTechnicalContent",{productCode:this.productCode,type:"DowComMainSearch",org:e.data.org,token:e.data.token})}).catch(e=>console.log("error",e))},updated(){var e=this.$store;this.isRelatedResourcesTracked||(this.isRelatedResourcesTracked=!0,document.querySelectorAll(".tech-content-rel-res .iconLink a").forEach(function(t){var o=$(this).parents(".tech-content-rel-res .cta-card-overlay").first().children(".cta-card-text-description");t.addEventListener("click",t=>{e.dispatch("trackLink",{name:o.innerText,position:"pdp-related-resources-cta"})})}))}};function ya(){return""+(new Date).getTime()+Math.random()}function Va(e){return window.Granite.I18n.get(e)}function Sa(e){this.selectedLanguage=e;var t="";for(var o of this.tdsLanguages)if(o.value==e){t=o.text;break}this.initialPageLoad&&this.$store.dispatch("trackLink",{name:t,position:"pdp-tds-Language-options"})}function Ea(e){this.selectedSDSTradeProduct=e,this.selectedSDSCountry="",this.sdsDocs=[],this.piDoc={},this.$store.dispatch("techContent/getSDSData",{selected:e,productCode:this.productCode});var t="";for(var o of this.tradeProducts)if(o.value==e){t=o.text;break}this.initialPageLoad&&this.$store.dispatch("trackLink",{name:t,position:"pdp-sds-tradeproduct-options"})}function Na(e){for(var t in this.selectedSDSCountry=e,this.sdsDocs=[],this.sdsData){var o=this.sdsData[t];if(e==o.countryIsoCode)for(var a of o.documents)this.sdsDocs.push({language:a.language,languageName:a.languageName,countryName:o.countryName,isChecked:!1,pathLink:Ba(this.docTypes["SDS"],this.productCode,this.selectedSDSTradeProduct,o.countryIsoCode,a.language,a.recordNumber)})}}function Ba(e,t,o,a,n,l){var r="document-viewer.html?docType="+e+"&contentType="+e+"&product="+t+"&tradeProduct="+o;return a&&(r+="&selectedCountry="+a),n&&(r+="PI"==e?"&language=EN":"&selectedLanguage="+n),l&&(r+="&recordNumber="+l),r+="&useRequestPath=true",r}function Pa(e){this.selectedSSTradeProduct=e;var t="";for(var o of this.tradeProducts)if(o.value==e){t=o.text;break}this.initialPageLoad&&this.$store.dispatch("trackLink",{name:t,position:"pdp-ss-tradeproduct-options"})}function La(){var e=[];if(this.tdsList.filter(e=>e.isChecked).length>0){var t=this.tdsList.filter(e=>e.isChecked);t.forEach(function(e){e.docType="TDS"},this),e=e.concat(this.tdsList.filter(e=>e.isChecked))}if(this.sdsDocs.filter(e=>e.isChecked).length>0){t=this.sdsDocs.filter(e=>e.isChecked);t.forEach(function(e){e.title=document.getElementsByClassName("product-header")[0].innerText+"-"+this.sdsDocTitle+"-"+e.language,e.docType="SDS"},this),e=e.concat(t)}if(this.selectedSSTradeProduct&&this.isSaleSpecChecked&&(this.saleSpec.pathLink=this.saleSpec.SSlink,this.saleSpec.title=document.getElementsByClassName("product-header")[0].innerText+"-"+this.saleSpecText+"-"+this.saleSpecLanguage,this.saleSpec.docType="salesSpec",e.push(this.saleSpec)),e.length>0){var o=encodeURI("/.dow.download.doc.json"),a=new XMLHttpRequest,n=this,l=e[0].pathLink.replaceAll("document-viewer.html?docPath=","").replaceAll("&useRequestPath=true","");a.onreadystatechange=function(){var e;4===a.readyState&&200===a.status&&(e=document.createElement("a"),e.href=window.URL.createObjectURL(a.response),e.download=document.getElementsByClassName("product-header")[0].innerText+"-documents.zip",e.style.display="none",document.body.appendChild(e),e.click(),e.remove()),4===a.readyState&&403===a.status&&n.showDocViewerModal(l,"tds")},a.open("POST",o),a.setRequestHeader("Content-Type","application/json"),a.responseType="blob",a.send(JSON.stringify(e))}}function xa(e){return e&&e.includes("-")?e.split("-")[0]:e}const Da=(0,X.A)(wa,[["render",wo]]);var Ma=Da,Ia=o(28639),Ta={data(){return{selectedTab:"one",market:"Agriculture, Feed and Animal Care",imgSrc:this.$store.state.formulation.imagePath+"/product.jpg",tabLabels:{one:"overview",two:"properties.Title",three:"tds.and.sds"}}},computed:{propertySets(){let e=[],t={};return t["features"]=this.webProduct.properties,t.features.forEac
1h(e=>{e["isVisible"]=!0,"Boolean"===e.type&&(e.value="0"===e.value?this.getLabel("button.no.Title"):this.getLabel("button.yes.Title")),e["values"]=[e.value]}),e.push(t),e},contactUsLink(){let e=this.$store.state?.user?.dccUserInfo?.data?.email||"";return`https://engage.dow.com/CropSolver-Contact?csEmail=${e}`},locale(){return this.$store.state.browser.cookies["languageCode"]||"en-us"},webProduct(){return this.$store.getters["formulation/getWebProduct"]||{}},formulation(){return this.$store.getters["formulation/getFormulation"]||{}},productCode(){return this.webProduct.webProductId}},watch:{selectedTab(e,t){this.trackAnalytics()}},props:{},components:{Tabs:ze,RightArrow:Je,ProductBox:Ye.A,EyeIcon:rt,ListIcon:pt,DocumentIcon:ht.A,ReusableTable:Ht,Compare:Rt.A,OrderSample:eo,FavoriteIcon:to.A,TechContent:Ma},methods:{returnToFormulation:Fa,redirectToCompare:Aa,getLabel:_a,trackAnalytics:$a},mounted(){const e=document.getElementsByClassName("contact-sample-wrapper")[0];e.style.top=window.getComputedStyle(e).height,e.style.left="calc(100% - "+window.getComputedStyle(e).width+")";var t=this.$el.querySelector(".formulation-link");t&&t.focus();var o=this.$el.closest(".card");if(o){var a=o.querySelector("#close-modal-button .close-symbol");a&&a.setAttribute("tabindex","-1")}this.trackAnalytics()},unmounted(){this.$store.dispatch("techContent/resetTechContent")}};function Fa(){this.$emit("showModal",!1),this.$emit("returnToFormulation")}function Aa(){this.$emit("redirect-to-compare",this.webProduct.webProductId,this.market)}function _a(e){return window.Granite.I18n.get(e)}function $a(){let e=(0,Ia.L)(this.tabLabels[this.selectedTab],"en-us");window.adobeDataLayer.push({event:"contentsquare:apv",eventInfo:{pageId:"product__"+this.webProduct?.name+"__"+e?.toLowerCase()}})}const Ha=(0,X.A)(Ta,[["render",Me]]);var Ra=Ha;const Wa={class:"top-half"},qa={class:"top-left"},Ua={class:"header"},Oa={class:"header-text"},za={class:"details"},Za={class:"button-toolbar"},Ga={class:"printer-text"},ja={class:"top-right desktop-only"},Ka={key:0,class:"atom-image-container"},Qa=["src"],Xa=(0,a.createElementVNode)("br",null,null,-1),Ja={class:"table-ingredients"},Ya=(0,a.createElementVNode)("colgroup",null,[(0,a.createElementVNode)("col",{class:"tradeNameColumn"}),(0,a.createElementVNode)("col",{class:"wtColumn"}),(0,a.createElementVNode)("col",{class:"functionColumn"}),(0,a.createElementVNode)("col",{class:"desktop-only no-print viewProductColumn"}),(0,a.createElementVNode)("col",{class:"desktop-only no-print orderColumn"})],-1),en={class:"table-head"},tn={class:"desktop-only"},on={class:"mobile-only"},an={class:"desktop-only"},nn={class:"mobile-only"},ln=(0,a.createElementVNode)("th",{class:"desktop-only no-print"},null,-1),rn=(0,a.createElementVNode)("th",{class:"desktop-only no-print"},null,-1),sn={key:0,class:"desktop-only"},cn={key:1,class:"desktop-only"},dn={key:2,class:"mobile-only"},un={key:3,class:"mobile-only"},mn=["onClick"],pn={class:"wtDataCell"},hn={class:"desktop-only no-print"},gn={class:"eye-container"},fn={class:"desktop-only no-print"},kn={class:"cellContainer"},Cn={class:"mobile-only ingredientLabel"},bn={class:"ingredientTitle"},vn={key:0,class:"productTitle mobile-only"},wn={key:1,class:"mobile-only"},yn={class:"buttons"},Vn={class:"no-print"},Sn={class:"no-print"},En={class:"eye-container"},Nn={class:"functions"},Bn={class:"functionFormulation"},Pn={class:"functionTitle"},Ln={class:"wtPercentage"},xn={class:"wtTitle"},Dn={class:"wtDataCell"},Mn={class:"table-instructions"},In={class:"only-print"},Tn={class:"tab-print tab"},Fn={class:"table-instructions"},An=(0,a.createElementVNode)("br",null,null,-1),_n={class:"tab-print tab"},$n={class:"table-ingredients"},Hn=(0,a.createElementVNode)("colgroup",null,[(0,a.createElementVNode)("col",{class:"tradeNameColumn"}),(0,a.createElementVNode)("col",{class:"wtColumn"}),(0,a.createElementVNode)("col",{class:"functionColumn"}),(0,a.createElementVNode)("col",{class:"desktop-only no-print viewProductColumn"}),(0,a.createElementVNode)("col",{class:"desktop-only no-print orderColumn"})],-1),Rn={class:"table-head"},Wn={class:"desktop-only"},qn={class:"mobile-only"},Un={class:"desktop-only"},On={class:"mobile-only"},zn=(0,a.createElementVNode)("th",{class:"desktop-only no-print"},null,-1),Zn=(0,a.createElementVNode)("th",{class:"desktop-only no-print"},null,-1),Gn={key:0,class:"desktop-only"},jn={key:1,class:"desktop-only"},Kn={key:2,class:"mobile-only"},Qn={key:3,class:"mobile-only"},Xn=["onClick"],Jn={class:"wtDataCell"},Yn={class:"desktop-only no-print"},el={class:"eye-container"},tl={class:"desktop-only no-print"},ol=["innerHTML"];function al(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseBoxButton"),i=(0,a.resolveComponent)("FormulationIcon"),c=(0,a.resolveComponent)("PrintIcon"),d=(0,a.resolveComponent)("Clickable"),u=(0,a.resolveComponent)("DowIcon"),m=(0,a.resolveComponent)("Eye"),p=(0,a.resolveComponent)("OrderSample"),h=(0,a.resolveComponent)("TabsRed"),g=(0,a.resolveComponent)("CloseModal");return o.showModal?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0,class:"formulation-quickview",showModal:o.showModal,"onUpdate:showModal":t[3]||(t[3]=t=>e.$emit("update:showModal",t)),onBackToFormulation:r.returnToFormulationSelection},{close:(0,a.withCtx)(()=>[(0,a.createVNode)(s,{class:"no-print",tabindex:"-1"})]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",Wa,[(0,a.createElementVNode)("div",qa,[(0,a.createElementVNode)("div",Ua,[(0,a.createVNode)(i,{class:"formulation-icon"}),(0,a.createElementVNode)("div",Oa,(0,a.toDisplayString)(r.formulation.name),1)]),(0,a.createElementVNode)("div",za,[(0,a.createElementVNode)("ul",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.details,e=>((0,a.openBlock)(),(0,a.createElementBlock)("li",null,(0,a.toDisplayString)(e),1))),256))])]),(0,a.createElementVNode)("div",Za,[(0,a.createVNode)(d,{class:"no-print printer",onClick:t[0]||(t[0]=t=>e.$emit("print"))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(c)]),(0,a.createElementVNode)("span",Ga,(0,a.toDisplayString)(r.getLabel("print.label")),1)]),_:1})])]),(0,a.createElementVNode)("div",ja,[l.imgSrc&&!l.isImgError?((0,a.openBlock)(),(0,a.createElementBlock)("div",Ka,[(0,a.createElementVNode)("img",{class:"atom-image",src:l.imgSrc,onError:t[1]||(t[1]=e=>l.isImgError=!0)},null,40,Qa)])):(0,a.createCommentVNode)("",!0)])]),Xa,(0,a.createElementVNode)("div",null,[(0,a.createVNode)(h,{tabs:[r.ingredientsLabel,r.processingInstructionsLabel],selectedTab:l.selectedTab,"onUpdate:selectedTab":t[2]||(t[2]=e=>l.selectedTab=e),class:"no-print tabs"},{[r.contentSlot(r.ingredientsLabel)]:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",Ja,[(0,a.createElementVNode)("table",null,[Ya,(0,a.createElementVNode)("tr",en,[(0,a.createElementVNode)("th",null,[(0,a.createElementVNode)("div",tn,(0,a.toDisplayString)(r.getLabel("products.Title")),1),(0,a.createElementVNode)("div",on,(0,a.toDisplayString)(r.getLabel("ingredient.label")),1)]),(0,a.createElementVNode)("th",null,[(0,a.createElementVNode)("div",an,(0,a.toDisplayString)(r.getLabel("wt.label")),1),(0,a.createElementVNode)("div",nn,(0,a.toDisplayString)(r.getLabel("wt.label")),1)]),(0,a.createElementVNode)("th",null,(0,a.toDisplayString)(r.getLabel("function.label")),1),ln,rn]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.sortedBySequenceProp,e=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{class:"desktop-only",key:e.name},[(0,a.createElementVNode)("td",null,[null==e.webProductId?((0,a.openBlock)(),(0,a.createElementBlock)("div",sn,(0,a.toDisplayString)(e.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",cn,[(0,a.createVNode)(d,{onClick:t=>r.viewProduct(e),style:{display:"flex"}},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(u,{class:"dow-icon"})]),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.name),1)]),_:2},1032,["onClick"])])),null==e.webProductId?((0,a.openBlock)(),(0,a.createElementBlock)("div",dn,(0,a.toDisplayString)(e.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",un,[(0,a.createElementVNode)("a",{onClick:(0,a.withModifiers)(t=>r.viewProduct(e),["prevent"]),style:{display:"flex"}},[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(u,{class:"dow-icon"})]),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.name),1)],8,mn)]))]),(0,a.createElementVNode)("td",pn,(0,a.toDisplayString)(e.amount),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.category),1),(0,a.createElementVNode)("td",hn,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,onClick:t=>r.viewProduct(e)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",gn,[(0,a.createVNode)(m,{class:"eye"}),(0,a.createTextVNode)(" View Product ")])]),_:2},1032,["onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("td",fn,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,productName:e.name,webProductId:e.webProductId},null,8,["productName","webProductId"])):(0,a.createCommentVNode)("",!0)])]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.sortedBySequenceProp,e=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{class:"mobile-only no-print",key:e.name},[(0,a.createElementVNode)("td",kn,[(0,a.createElementVNode)("div",Cn,(0,a.toDisplayString)(r.getLabel("ingredient.label")),1),(0,a.createElementVNode)("div",bn,[null==e.webProductId?((0,a.openBlock)(),(0,a.createElementBlock)("div",vn,(0,a.toDisplayString)(e.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",wn,[(0,a.createVNode)(d,{onClick:t=>r.viewProduct(e)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(u,{class:"dow-icon"})]),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.name),1)]),_:2},1032,["onClick"])]))]),(0,a.createElementVNode)("div",yn,[(0,a.createElementVNode)("div",Vn,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,productName:e.name,webProductId:e.webProductId},null,8,["productName","webProductId"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Sn,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,onClick:t=>r.viewProduct(e)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",En,[(0,a.createVNode)(m,{class:"eye"}),(0,a.createTextVNode)(" View Product ")])]),_:2},1032,["onClick"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",Nn,[(0,a.createElementVNode)("div",Bn,[(0,a.createElementVNode)("div",Pn,(0,a.toDisplayString)(r.getLabel("function.label")),1),(0,a.createElementVNode)("div",null,(0,a.toDisplayString)(e.category),1)]),(0,a.createElementVNode)("div",Ln,[(0,a.createElementVNode)("div",xn,(0,a.toDisplayString)(r.getLabel("wt.label")),1),(0,a.createElementVNode)("div",Dn,(0,a.toDisplayString)(e.amount),1)])])])]))),128))])])]),[r.contentSlot(r.processingInstructionsLabel)]:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",Mn,[(0,a.createElementVNode)("table",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.processingInstructions,
1(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e},[(0,a.createElementVNode)("th",null,(0,a.toDisplayString)(r.getLabel("step.label"))+" "+(0,a.toDisplayString)(t+1)+": ",1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e),1)]))),128))])])]),_:2},1032,["tabs","selectedTab"]),(0,a.createElementVNode)("div",In,[(0,a.createElementVNode)("div",Tn,(0,a.toDisplayString)(r.processingInstructionsLabel),1),(0,a.createElementVNode)("div",Fn,[(0,a.createElementVNode)("table",null,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.processingInstructions,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e},[(0,a.createElementVNode)("th",null,(0,a.toDisplayString)(r.getLabel("step.label"))+" "+(0,a.toDisplayString)(t+1)+": ",1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e),1)]))),128))])]),An,(0,a.createElementVNode)("div",_n,(0,a.toDisplayString)(r.ingredientsLabel),1),(0,a.createElementVNode)("div",$n,[(0,a.createElementVNode)("table",null,[Hn,(0,a.createElementVNode)("tr",Rn,[(0,a.createElementVNode)("th",null,[(0,a.createElementVNode)("div",Wn,(0,a.toDisplayString)(r.getLabel("tradeName.label")),1),(0,a.createElementVNode)("div",qn,(0,a.toDisplayString)(r.getLabel("ingredient.label")),1)]),(0,a.createElementVNode)("th",null,[(0,a.createElementVNode)("div",Un,(0,a.toDisplayString)(r.getLabel("wt.label")),1),(0,a.createElementVNode)("div",On,(0,a.toDisplayString)(r.getLabel("wt.label")),1)]),(0,a.createElementVNode)("th",null,(0,a.toDisplayString)(r.getLabel("function.label")),1),zn,Zn]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.sortedBySequenceProp,e=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e.name},[(0,a.createElementVNode)("td",null,[null==e.webProductId?((0,a.openBlock)(),(0,a.createElementBlock)("div",Gn,(0,a.toDisplayString)(e.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",jn,[(0,a.createVNode)(d,{onClick:t=>r.viewProduct(e)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(u,{class:"dow-icon"})]),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.name),1)]),_:2},1032,["onClick"])])),null==e.webProductId?((0,a.openBlock)(),(0,a.createElementBlock)("div",Kn,(0,a.toDisplayString)(e.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",Qn,[(0,a.createElementVNode)("a",{onClick:(0,a.withModifiers)(t=>r.viewProduct(e),["prevent"])},[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(u,{class:"dow-icon"})]),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.name),1)],8,Xn)]))]),(0,a.createElementVNode)("td",Jn,(0,a.toDisplayString)(e.amount),1),(0,a.createElementVNode)("td",null,(0,a.toDisplayString)(e.category),1),(0,a.createElementVNode)("td",Yn,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,onClick:t=>r.viewProduct(e)},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",el,[(0,a.createVNode)(m,{class:"eye"}),(0,a.createTextVNode)(" View Product ")])]),_:2},1032,["onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("td",tl,[null!=e.webProductId?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,productName:e.name,webProductId:e.webProductId},null,8,["productName","webProductId"])):(0,a.createCommentVNode)("",!0)])]))),128))])])]),(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(["disclaimerLabel",{"print-only":l.selectedTab!=r.processingInstructionsLabel}]),innerHTML:r.disclaimerLanguage},null,10,ol)])]),_:1},8,["showModal","onBackToFormulation"])):(0,a.createCommentVNode)("",!0)}function nl(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseIcon"),i=(0,a.resolveComponent)("Clickable");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:"close-button-box",onClick:t[0]||(t[0]=t=>e.$emit("click",t))},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(s)]),_:1})}var ll={components:{CloseIcon:ne.A,Clickable:ie}};const rl=(0,X.A)(ll,[["render",nl]]);var sl=rl;const il={width:"54","aria-label":"formulation icon",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cl=(0,a.createStaticVNode)('<circle cx="27" cy="27" r="27" fill="#00B2A9"></circle><path d="M31.1351 31.341L26.2431 22.868C25.9156 22.3 25.7435 21.6557 25.7441 21V17.323" stroke="white" stroke-width="2" stroke-miterlimit="10"></path><path d="M21.511 17.323V21C21.5111 21.6548 21.3387 22.2981 21.011 22.865L15.327 32.714C15.1127 33.0854 14.9999 33.5066 15 33.9354C15.0001 34.3642 
115.113 34.7854 15.3274 35.1568C15.5419 35.5281 15.8503 35.8364 16.2216 36.0508C16.593 36.2651 17.0142 36.378 17.443 36.378H31.135" stroke="white" stroke-width="2" stroke-miterlimit="10"></path><path d="M18.6519 15H28.5359" stroke="white" stroke-width="2" stroke-miterlimit="10"></path><path d="M28.5928 19.072H38.4768" stroke="white" stroke-width="2" stroke-miterlimit="10"></path><path d="M35.9162 21.283V37.318C35.9227 37.6346 35.866 37.9493 35.7493 38.2437C35.6326 38.538 35.4584 38.8062 35.2368 39.0324C35.0152 39.2585 34.7507 39.4382 34.4588 39.5609C34.1669 39.6836 33.8534 39.7468 33.5367 39.7468C33.2201 39.7468 32.9066 39.6836 32.6147 39.5609C32.3228 39.4382 32.0583 39.2585 31.8367 39.0324C31.6151 38.8062 31.4408 38.538 31.3242 38.2437C31.2075 37.9493 31.1507 37.6346 31.1572 37.318V21.283" stroke="white" stroke-width="2" stroke-miterlimit="10"></path><path d="M17.707 30C18.8133 30.6068 20.0564 30.9204 21.318 30.911C23.651 30.691 23.731 28.852 25.872 28.255C27.1339 27.9575 28.4613 28.14 29.596 28.767" stroke="white" stroke-width="2" stroke-miterlimit="10"></path>',7),dl=[cl];function ul(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",il,dl)}const ml={},pl=(0,X.A)(ml,[["render",ul]]);
1var hl=pl;const gl={width:"37",height:"13",viewBox:"0 0 37 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fl=(0,a.createStaticVNode)('<path d="M18.5 0.74292L0 6.83092L18.5 12.9999L37 6.83092L18.5 0.74292Z" fill="#E80033"></path><path d="M18.506 4.95892C18.1781 4.92023 17.8457 4.94961 17.5296 5.04524C17.2136 5.14087 16.9207 5.30069 16.6693 5.51469C16.4178 5.72869 16.2132 5.99228 16.0683 6.28896C15.9234 6.58564 15.8412 6.90904 15.827 7.23892C15.833 8.65292 17.016 9.47192 18.486 9.46492C19.956 9.45792 21.156 8.65292 21.177 7.23892C21.1613 6.91024 21.0785 6.58825 20.9337 6.29281C20.7888 5.99736 20.585 5.73472 20.3347 5.52109C20.0844 5.30746 19.7931 5.14736 19.4785 5.05068C19.164 4.95399 18.833 4.92276 18.506 4.95892ZM18.486 8.31792C17.708 8.32792 17.075 7.91792 17.075 7.22692C17.075 6.55592 17.684 6.10192 18.499 6.10192C19.294 6.10192 19.927 6.55592 19.919 7.22692C19.902 7.92192 19.273 8.31792 18.485 8.31792" fill="white"></path><path d="M21.139 5.32792H23.406V5.62792H23.292C23.2379 5.63335 23.1862 5.65257 23.1417 5.68373C23.0972 5.7149 23.0615 5.75698 23.038 5.80592C23.0193 5.85287 23.0102 5.90311 23.0114 5.95364C23.0126 6.00416 23.0241 6.05392 23.045 6.09992L23.73 7.74592L24.663 5.32192H25.898L26.86 7.73192L27.573 6.01192C27.5844 5.97 27.5863 5.92606 27.5785 5.88332C27.5707 5.84058 27.5534 5.80012 27.528 5.76492C27.5038 5.72402 27.4697 5.6899 27.4288 5.66577C27.3878 5.64163 27.3415 5.62827 27.294 5.62692H27.159V5.32092H29.41V5.62692H29.241C29.1192 5.63069 29.0026 5.67745 28.912 5.75892C28.8183 5.82785 28.7464 5.92227 28.705 6.03092L27.605 8.70492C27.5841 8.74791 27.5727 8.79482 27.5713 8.84256C27.5699 8.89031 27.5787 8.93781 27.597 8.98192C27.6201 9.01553 27.6517 9.04245 27.6886 9.06C27.7255 9.07755 27.7663 9.08511 27.807 9.08192H27.969V9.36992H25.757V9.08192H25.905C25.9396 9.07803 25.9724 9.06481 26.0001 9.04367C26.0277 9.02253 26.0491 8.99428 26.062 8.96192C26.0773 8.92805 26.0842 8.89094 26.0819 8.85381C26.0797 8.81668 26.0683 8.78067 26.049 8.74892L25.249 6.82292L24.454 8.72292C24.4339 8.76207 24.4223 8.80501 24.4199 8.84893C24.4175 8.89286 24.4243 8.93681 24.44 8.97792C24.4567 9.00858 24.4808 9.03453 24.5102 9.05341C24.5395 9.07228 24.5732 9.08346 24.608 9.08592H24.708V9.37392H22.515V9.08592H22.633C22.6721 9.08793 22.7111 9.07978 22.7461 9.06226C22.7812 9.04473 22.8111 9.01844 22.833 8.98592C22.853 8.94288 22.8626 8.89568 22.8609 8.84822C22.8591 8.80076 22.8461 8.75439 22.823 8.71292L21.711 5.97992C21.6768 5.88403 21.6157 5.80001 21.535 5.73792C21.4616 5.67832 21.3713 5.64333 21.277 5.63792H21.144V5.33792" fill="white"></path><path d="M12.569 4.35291H9.15199V4.6459H9.30499C9.40284 4.65674 9.49448 4.69922 9.56598 4.7669C9.62641 4.82503 9.66222 4.90414 9.66599 4.9879V8.7099C9.67007 8.75432 9.66421 8.79909 9.64881 8.84095C9.63342 8.88282 9.60887 8.92072 9.57698 8.9519C9.54392 8.99176 9.50252 9.02388 9.4557 9.046C9.40887 9.06811 9.35777 9.07969 9.30598 9.0799H9.14398V9.37991H12.577C13.2341 9.35917 13.8574 9.08409 14.3156 8.61266C14.7738 8.14123 15.031 7.5103 15.033 6.85291C15.0089 6.2037 14.7426 5.58704 14.2865 5.12434C13.8305 4.66165 13.2178 4.38644 12.569 4.35291ZM12.521 8.2849H10.883V5.4219H12.521C13.302 5.4289 13.746 5.83691 13.814 6.84591C13.8327 7.02729 13.8132 7.21057 13.7568 7.38398C13.7005 7.55739 13.6084 7.71709 13.4867 7.85281C13.3649 7.98852 13.2161 8.09725 13.0498 8.17202C12.8834 8.24678 12.7033 8.28591 12.521 8.2869" fill="white"></path><path d="M29.411 11.8159C29.4096 11.9923 29.356 12.1643 29.2569 12.3103C29.1579 12.4563 29.0178 12.5697 28.8544 12.6361C28.691 12.7026 28.5116 12.7191 28.3388 12.6837C28.1659 12.6483 28.0075 12.5625 27.8834 12.4372C27.7593 12.3118 27.6751 12.1525 27.6414 11.9793C27.6077 11.8062 27.6261 11.6269 27.6942 11.4642C27.7623 11.3015 27.8771 11.1625 28.024 11.065C28.171 10.9674 28.3436 10.9155 28.52 10.9159C28.6377 10.916 28.7542 10.9395 28.8629 10.9849C28.9715 11.0302 29.0701 11.0967 29.1529 11.1804C29.2357 11.264 29.3012 11.3632 29.3455 11.4723C29.3898 11.5814 29.412 11.6982 29.411 11.8159ZM27.758 11.8159C27.7591 11.9659 27.8047 12.1121 27.8888 12.2363C27.973 12.3604 28.0919 12.4569 28.2308 12.5136C28.3697 12.5702 28.5222 12.5846 28.6691 12.5547C28.8161 12.5249 28.951 12.4522 29.0567 12.3459C29.1625 12.2396 29.2345 12.1043 29.2635 11.9572C29.2926 11.8101 29.2775 11.6576 29.2201 11.5191C29.1627 11.3805 29.0656 11.262 28.941 11.1786C28.8164 11.0951 28.6699 11.0503 28.52 11.0499C28.4195 11.0498 28.32 11.0695 28.2273 11.108C28.1345 11.1465 28.0503 11.203 27.9794 11.2742C27.9086 11.3454 27.8526 11.4299 27.8145 11.5229C27.7765 11.6159 27.7573 11.7155 27.758 11.8159ZM28.352 12.3329H28.186V11.3039H28.594C28.6302 11.3 28.6669 11.3037 28.7016 11.3149C28.7363 11.3261 28.7683 11.3444 28.7955 11.3687C28.8226 11.3931 28.8443 11.4228 28.8593 11.4561C28.8742 11.4894 28.8819 11.5255 28.882 11.5619C28.8794 11.6219 28.8554 11.6789 28.8142 11.7226C28.7731 11.7663 28.7177 11.7937 28.658 11.7999
1V11.8049C28.786 11.8199 28.831 11.8599 28.839 12.0679C28.8429 12.1591 28.8563 12.2495 28.879 12.3379H28.714C28.6816 12.2262 28.6674 12.1101 28.672 11.9939C28.6702 11.9758 28.6647 11.9583 28.6558 11.9424C28.647 11.9265 28.6349 11.9126 28.6205 11.9016C28.6061 11.8905 28.5895 11.8825 28.5719 11.8781C28.5543 11.8737 28.5359 11.873 28.518 11.8759H28.353L28.352 12.3329ZM29.411 11.2159H29.625C29.6462 11.2161 29.6672 11.2117 29.6866 11.2031C29.706 11.1944 29.7233 11.1817 29.7374 11.1658C29.7514 11.1498 29.7619 11.131 29.768 11.1107C29.7741 11.0904 29.7758 11.069 29.773 11.0479C29.7752 11.0275 29.7729 11.0069 29.7664 10.9875C29.7598 10.9681 29.7492 10.9503 29.7351 10.9353C29.721 10.9204 29.7039 10.9087 29.6849 10.9011C29.6659 10.8934 29.6454 10.8899 29.625 10.8909H28.353L29.411 11.2159Z" fill="#E80033"></path>',5),kl=[fl];function Cl(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",gl,kl)}const bl={},vl=(0,X.A)(bl,[["render",Cl]]);var wl=vl;const yl={class:"printer",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vl=(0,a.createElementVNode)("path",{d:"M4.24597 6.68V1H13.983V6.68",stroke:"#E80033","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Sl=(0,a.createElementVNode)("path",{d:"M4.246 13.9801H2.623C2.19307 13.9801 1.78071 13.8095 1.47643 13.5057C1.17214 13.202 1.00079 12.79 1 12.3601V8.30305C1 7.87261 1.17099 7.45979 1.47537 7.15542C1.77974 6.85105 2.19255 6.68005 2.623 6.68005H15.605C16.0354 6.68005 16.4483 6.85105 16.7526 7.15542C17.057 7.45979 17.228 7.87261 17.228 8.30305V12.3601C17.2272 12.79 17.0559 13.202 16.7516 13.5057C16.4473 13.8095 16.0349 13.9801 15.605 13.9801H13.982",stroke:"#E80033","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),El=(0,a.createElementVNode)("path",{d:"M4.24597 10.7371H13.983V17.2281H4.24597V10.7371Z",stroke:"#E80033","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Nl=[Vl,Sl,El];function Bl(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",yl,Nl)}const Pl={},Ll=(0,X.A)(Pl,[["render",Bl]]);var xl=Ll,Dl={props:{showModal:!1},data(){return{selectedTab:"",isImgError:!1,imgSrc:null,tabLabels:["ingredients.label","processInstructions.label"]}},watch:{ingredientsLabel(e,t){this.selectedTab==t&&(this.selectedTab=e)},processingInstructionsLabel(e,t){this.selectedTab==t&&(this.selectedTab=e)},activeIngredient(e,t){if(this.imgSrc=null,!this.activeIngredient)return null;var o=this.$store.state.formulation.imagePath+"/"+this.activeIngredient.mdmsId+".png";T.A.get(o).then(e=>{this.imgSrc=this.$store.state.formulation.imagePath+"/"+this.activeIngredient.mdmsId+".png"}).catch(e=>{this.imgSrc=this.$store.state.formulation.imagePath+"/active.jpg"})},showModal(e,t){e&&(this.selectedTab=this.ingredientsLabel,this.trackAnalytics())},selectedTab(e,t){e&&""!==t&&this.trackAnalytics()}},computed:{disclaimerLanguage(){return this.getLabel("disclaimer.label")},ingredientsLabel(){return this.getLabel("ingredients.label")},processingInstructionsLabel(){return this.getLabel("processInstructions.label")},formulation(){return this.$store.getters["formulation/getFormulation"]},ingredients(){return this.formulation?.ingredients},activeIngredient(){return this.ingredients?.find(e=>"active"==e.category.toLowerCase())},processingInstructions(){return this.formulation?.instructions},details(){return[this.formulation.category,this.getLabel("chemistry.type")+": "+this.$store.state.formulation.data.actives.find(e=>this.activeIngredient.mdmsId==e.mdmsId).chemistryType]},sortedBySequenceProp(){return this.ingredients?.sort(this.sortBySequence)}},components:{CloseModal:he,CloseBoxButton:sl,TabsRed:ze,FormulationIcon:hl,FormulationIcon:hl,Eye:rt,Clickable:ie,RightArrow:Je,OrderSample:eo,DowIcon:wl,PrintIcon:xl},methods:{contentSlot:He,tabSlot:$e,viewProduct(e){this.$emit("viewProduct",e.webProductId)},getLabel(e){return window.Granite.I18n.get(e)},returnToFormulationSelection(){this.$emit("return-to-formulation-selection")},sortBySequence(e,t){return e.sequence<t.sequence?-1:e.sequence>t.sequence?1:void 0},trackAnalytics(){let e=this.tabLabels.find(e=>this.getLabel(e)===this.selectedTab),t=(0,Ia.L)(e,"en-US")?.toLowerCase();window.adobeDataLayer.push({event:"contentsquare:apv",eventInfo:{pageId:"formulation__"+this.formulation?.name+"__"+t}})}}};const Ml=(0,X.A)(Dl,[["render",al]]);var Il=Ml;const Tl=["id"],Fl={class:"card-content"},Al={class:"card-row"},_l={class:"title-row"},$l={class:"card-title"},Hl={class:"active-ingredient-text"},Rl={class:"card-row"},Wl={class:"description-text"},ql=(0,a.createElementVNode)("a",{class:"arrow-container"},[(0,a.createElementVNode)("svg",{"aria-label":"arrow icon",width:"8",he
1ight:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,a.createElementVNode)("path",{d:"M1 1L6 6L1 11",stroke:"#E80033","stroke-width":"2"})])],-1);function Ul(e,t,o,n,l,r){const s=(0,a.resolveComponent)("FormulationIcon"),i=(0,a.resolveComponent)("Clickable");return(0,a.openBlock)(),(0,a.createBlock)(i,{onClick:t[0]||(t[0]=t=>e.$emit("formulationClick"))},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",{class:"formulation-card",id:"card"+o.formulationId,ref:o.formulationId},[(0,a.createElementVNode)("div",Fl,[(0,a.createElementVNode)("div",Al,[(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s)]),(0,a.createElementVNode)("div",_l,[(0,a.createElementVNode)("div",$l,(0,a.toDisplayString)(o.formulationName),1),(0,a.createElementVNode)("div",Hl,(0,a.toDisplayString)(o.activeIngredient),1)])]),(0,a.createElementVNode)("div",Rl,[(0,a.createElementVNode)("ul",Wl,[(0,a.createElementVNode)("li",null,(0,a.toDisplayString)(o.compositionCategory),1)])])]),ql],8,Tl)]),_:1})}var Ol={components:{FormulationIcon:hl,Clickable:ie},props:{formulationId:{type:String,required:!1},formulationName:{type:String,required:!1},activeIngredient:{type:String,required:!1},compositionCategory:{type:String,required:!1,default:!1}},computed:{},watch:{},methods:{}};const zl=(0,X.A)(Ol,[["render",Ul]]);var Zl=zl,Gl=o(47380),jl=o(31425),Kl=o(24520),Ql=o(67744);l["default"].registerModule("formulation",F);var Xl={components:{Modal:he,ProductQuickview:Ra,FormulationCard:Zl,SearchIcon:Gl.A,CloseIcon:ne.A,FormulationQuickview:Il,CloseBoxButton:sl,CheckBox:ka.A,SearchSamplePanel:Kl.D,SimpleDropdown:zo.A},data:function(){return{query:"",productModalDisplayed:!1,formulationModalDisplayed:!1,maxLogP:-1e8,minLogP:1e8,logPIncrement:1,maxMelting:-1e8,minMelting:1e8,meltingIncrement:1,maxSolubility:-1e8,minSolubility:1e8,solubilityIncrement:1,logP:null,melting:null,solubility:null,formulationResults:[],hasFaq:!1,selectedRegulations:[],selectedPesticides:["Fungicide","Insecticide","Herbicide"],pesticides:["Fungicide","Insecticide","Herbicide"],selectedFormulation:"",initialLoad:!0,regulationError:!1,pesticideError:!1,formulationTypes:[{text:this.getLabel("select.option"),value:""},{text:"Capsule suspension (CS)",value:"Capsule suspension"},{text:"Emulsifiable concentrate (EC)",value:"Emulsifiable concentrate"},{text:"Emulsion in water (EW)",value:"Emulsion in water"},{text:"Microemulsion (ME)",value:"Microemulsion"},{text:"Oil dispersible (OD)",value:"Oil dispersible"},{text:"Soluble liquid (SL)",value:"Soluble liquid"},{text:"Suspension concentrate (SC)",value:"Suspension concentrate"},{text:"Suspoemulsion (SE)",value:"Suspoemulsion"},{text:"Water dispersible granule (WG)",value:"Water dispersible granule"},{text:"Wettable powder (WP) ",value:"Wettable powder"}]}},methods:{getLabel:tr,compareProducts:nr,displayProductModal:lr,search:dr,_getActiveIngredientMatches:pr,_getFormulationMatches:hr,resetSearch:mr,returnToFormulation:ir,returnToFormulationSelection:cr,closeProductModal:rr,closeFormulation:sr,calculateMinMax:ar,sliderRelease:or,printFormulationModal:fr,updateFilters:Yl,formulationSelected:er,filterByFormulation:gr,sortFormulations:ur,trapFocusToModal:kr,setCidCookie:Jl},watch:{activeIngredients(e,t){this.$store.commit("formulation/setFilteredFormulations")},formulations(e,t){!0===this.initialLoad&&(this.initialLoad=!1,this.search(""))},formulationModalDisplayed(e,t){if(e)this.$nextTick(function(){let e=this.$el.querySelector(".formulation-quickview");e&&e.addEventListener("keydown",t=>{this.trapFocusToModal(t,e)})});else{let e=this.$el.querySelector(".formulation-quickview");e&&e.removeEventListener("keydown",this.trapFocusToModal)}},productModalDisplayed(e,t){if(e)this.$nextTick(function(){let e=this.$el.querySelector(".product-modal");e&&e.addEventListener("keydown",t=>{this.trapFocusToModal(t,e)})});else{let e=this.$el.querySelector(".product-modal");e&&e.removeEventListener("keydown",this.trapFocusToModal)}}},computed:{pesticideFilter:function(){return this.$store.state.formulation.pesticideFilter},activeIngredients:function(){let e=[],t=this.$store.getters["formulation/getAllActives"];if(t)for(const[o,a]of Object.entries(t))this.pesticideFilter.some(e=>a.materialTypeFullPath.toLowerCase().includes(e.toLowerCase()))&&e.push(a);return e},formulations:function(){return this.$store.getters["formulation/getFilteredFormulations"]},webProducts:function(){return this.$store.state.formulation.data.webProducts},defaultMarketCode:function(){return this.$store.state.formulation.defaultMarketCode},defaultSubmarketCode:function(){return this.$store.state.formulation.defaultSubmarketCode}},created(){this.resetSearch(),this.setCidCookie(),this.$store.commit("formulation/setPesticideFilter",["fungicide","insecticide","herbicide"])}};function Jl(){let e="cid=WEB:Dow:12468:202209_DIS_Global_BAC_Crop_Solver:AFA:Global:na:na:na:na:na:DIS:BAC:a229206b-b53a-ed11-9db0-002248296333";(0,Ql.TV)("cropElqQueryString",e)}function Yl(){this.$store.commit("formulation/setRegulationFilter",this.selectedRegulations),this.$store.commit("formulation/setPesticideFilter",this.selectedPesticides),this.$store.commit("formulation/setFilteredFormulations"),this.search(this.query)}function er(e){this.selectedFormulation=e,this.search(this.query)}function tr(e){return window.Granite.I18n.get(e)}function or(e,t){t==this.getLabel("water.solubility")?this.solubility=e:t==this.getLabel("log.p")?this.logP=e:this.melting=e}function ar(e){var t=this;
1e.forEach(e=>{e.properties.forEach(e=>{e.name.toLowerCase().includes("log p")?(t.maxLogP<parseFloat(e.value)&&(t.maxLogP=Math.ceil(parseFloat(e.value))),t.minLogP>parseFloat(e.value)&&(t.minLogP=Math.floor(parseFloat(e.value)))):e.name.toLowerCase().includes("water solubility")?(t.maxSolubility<parseFloat(e.value)&&(t.maxSolubility=Math.ceil(parseFloat(e.value))),t.minSolubility>parseFloat(e.value)&&(t.minSolubility=Math.floor(parseFloat(e.value)))):e.name.toLowerCase().includes("melting point")&&(t.maxMelting<parseFloat(e.value)&&(t.maxMelting=Math.ceil(parseFloat(e.value))),t.minMelting>parseFloat(e.value)&&(t.minMelting=Math.floor(parseFloat(e.value))))})}),this.logPIncrement=(this.maxLogP-this.minLogP)/100,this.meltingIncrement=(this.maxMelting-this.minMelting)/100,this.solubilityIncrement=(this.maxSolubility-this.minSolubility)/100}function nr(e,t){window.location.origin;for(var o="/.dow.product.compareProducts.json",a=[e],n=t,l=[],r=0;r<a.length;r++){if(""==a[r])return;l.push({code:a[r]})}JSON.stringify(l);var s={productCodes:l,mktName:n,productCompareUrl:o};this.$store.commit("comparison/setInitialProduct",e),this.$store.dispatch("comparison/fetchComparisonData",s),this.$emit("nextPage")}function lr(e){this.$store.dispatch("formulation/setWebProductId",e),this.formulationModalDisplayed=!1,this.productModalDisplayed=!0}function rr(e){this.$store.dispatch("formulation/setWebProductId",null),this.productModalDisplayed=e,e||this.$nextTick(function(){let e=this.$el.querySelector("#card"+this.$store.state.formulation.formulationId);if(e){let t=e.closest(".clickable");t&&t.focus()}})}function sr(e){e||this.$nextTick(function(){let e=this.$el.querySelector("#card"+this.$store.state.formulation.formulationId);if(e){let t=e.closest(".clickable");t&&t.focus()}})}function ir(){this.$store.dispatch("formulation/setWebProductId",null),this.productModalDisplayed=!1,this.formulationModalDisplayed=!0}function cr(){this.productModalDisplayed=!1,this.formulationModalDisplayed=!1}function dr(e,t=!1){if(t)return this.formulationResults=this._getFormulationMatches(this._getActiveIngredientMatches(""));var o=this.formulations;o=this._getFormulationMatches(this._getActiveIngredientMatches(e)),""!==this.selectedFormulation&&(o=this.filterByFormulation(o)),this.formulationResults=this.sortFormulations(o),(0,jl.i)({searchTerm:e||"*",searchPage:"formulation-compass",searchCount:this.formulationResults.length,searchFilters:{regulation:this.selectedRegulations,pesticide:this.selectedPesticides,type:this.selectedFormulation}})}function ur(e){var t=e.sort(function(e,t){var o=e.name.toUpperCase(),a=t.name.toUpperCase();return o<a?-1:o>a?1:0});return t}function mr(){this.query="",this.search(this.query)}function pr(e){e=e.toString().toLowerCase();let t=[];for(const[o,a]of Object.entries(this.activeIngredients)){let o=a.mdmsId+" "+a.name+" "+a.alternateTerms.join(" ");o=o.toLowerCase(),o.includes(e)&&t.push(a.mdmsId)}return t}function hr(e){let t=[];for(const[o,a]of Object.entries(this.formulations))for(const[n,l]of Object.entries(a.ingredients))if(e.includes(l.mdmsId)){a.activeIngredient=l.name,t.push(a);break}return t}function gr(e){let t=[];return e.forEach(e=>{this.selectedFormulation.toLowerCase()===e.category.toLowerCase()&&t.push(e)}),t}function fr(){this.$el.classList.add("formulation-quickview-print"),window.print(),this.$el.classList.remove("formulation-quickview-print")}function kr(e,t){const o='#close-modal-button:not([disabled]):not([tabindex="-1"]), .printer.clickable:not([disabled]):not([tabindex="-1"]), .tabs-container .clickable:not([disabled]):not([tabindex="-1"]), .tabs-component tr.desktop-only .clickable:not([disabled]):not([tabindex="-1"]):not(.only-print), .tabs-component tr.desktop-only a.order-sample-link:not([disabled]):not([tabindex="-1"]), .contact-sample-wrapper a:not([disabled]):not([tabindex="-1"]), .compare-wrapper:not([disabled]):not([tabindex="-1"]), a.formulation-link:not([disabled]):not([tabindex="-1"]), div.fav-icon:not([disabled]):not([tabindex="-1"])';let a;if(!t)return;a=t.querySelectorAll(o);const n=a[0],l=a[a.length-1];let r="Tab"===e.key||9===e.keyCode;r&&(e.shiftKey?document.activeElement===n&&(l.focus(),e.preventDefault()):document.activeElement===l&&(n.focus(),e.preventDefault()))}const Cr=(0,X.A)(Xl,[["render",I]]);var br=Cr;const vr={class:"cmp-formulationcompass__productcompare"},wr={key:0,id:"buttonRow",class:"buttonBar"},yr={class:"saveLabel"},Vr={class:"product-comparison"}
1,Sr={class:"productCompareTitle"},Er={key:0,id:"buttonRow",class:"buttonBar"},Nr={class:"saveLabel"},Br={id:"main"},Pr={class:"compare-messages"},Lr=["innerHTML"],xr={class:"plusSignSVG"},Dr={id:"currentlyComparing",class:"addNewProduct"},Mr=["innerHTML"],Ir={key:0},Tr={key:1,class:"table-loading"};function Fr(e,t,o,n,l,r){const s=(0,a.resolveComponent)("Refresh"),i=(0,a.resolveComponent)("SaveIcon"),c=(0,a.resolveComponent)("DownArrow"),d=(0,a.resolveComponent)("PlusSign"),u=(0,a.resolveComponent)("reusable-table"),m=(0,a.resolveComponent)("mobile-table"),p=(0,a.resolveComponent)("DrawerMenu"),h=(0,a.resolveComponent)("LoadingDots"),g=(0,a.resolveComponent)("SearchSamplePanel");return(0,a.openBlock)(),(0,a.createElementBlock)("div",vr,[e.isHandHeld?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",wr,[(0,a.createElementVNode)("span",{class:"startOver",type:"button",onClick:t[0]||(t[0]=(...e)=>r.startOver&&r.startOver(...e))},[(0,a.createVNode)(s),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(r.getLabel("start.again")),1)]),(0,a.createElementVNode)("span",{class:"saveButton",onClick:t[1]||(t[1]=(...e)=>r.print&&r.print(...e))},[(0,a.createVNode)(i),(0,a.createElementVNode)("span",yr,(0,a.toDisplayString)(r.getLabel("button.save.Title")),1),(0,a.createElementVNode)("span",null,[(0,a.createVNode)(c)])])])),(0,a.createElementVNode)("div",Vr,[(0,a.createElementVNode)("span",Sr,(0,a.toDisplayString)(r.getLabel("productCompare.title")),1),e.isHandHeld?((0,a.openBlock)(),(0,a.createElementBlock)("div",Er,[(0,a.createElementVNode)("span",{class:"startOver",type:"button",onClick:t[2]||(t[2]=(...e)=>r.startOver&&r.startOver(...e))},[(0,a.createVNode)(s),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(r.getLabel("start.again")),1)]),(0,a.createElementVNode)("span",{class:"saveButton",onClick:t[3]||(t[3]=(...e)=>r.print&&r.print(...e))},[(0,a.createVNode)(i),(0,a.createElementVNode)("span",Nr,(0,a.toDisplayString)(r.getLabel("button.save.Title")),1),(0,a.createElementVNode)("span",null,[(0,a.createVNode)(c)])])])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Br,[(0,a.createElementVNode)("div",Pr,[(0,a.createElementVNode)("div",{id:"addProducts",class:"addNewProduct",onClick:t[4]||(t[4]=(...e)=>r.showAddProductPanel&&r.showAddProductPanel(...e))},[(0,a.createElementVNode)("span",{class:"addProductsText",innerHTML:r.getLabel("product.compare.add.items")},null,8,Lr),(0,a.createElementVNode)("span",xr,[(0,a.createVNode)(d)])]),(0,a.createElementVNode)("div",Dr,[(0,a.createElementVNode)("span",{class:"addProductsText",innerHTML:r.currentlyComparingLabel},null,8,Mr)])]),r.comparisonData?((0,a.openBlock)(),(0,a.createElementBlock)("div",Ir,[e.isHandHeld?((0,a.openBlock)(),(0,a.createBlock)(m,{key:1,"header-data":r.comparisonData,"table-sets":r.propertySets,onDisplayAddProperties:r.displayAddPropertiesPanel,onDisplayAddProducts:r.displayAddProductsPanel,onProductRemove:r.removeProduct,onProductReorder:r.reorderProducts,sampleUrl:r.sampleLink},null,8,["header-data","table-sets","onDisplayAddProperties","onDisplayAddProducts","onProductRemove","onProductReorder","sampleUrl"])):((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"header-data":r.comparisonData,"table-sets":r.propertySets,onDisplayAddProperties:r.displayAddPropertiesPanel,onDisplayAddProducts:r.displayAddProductsPanel,onProductRemove:r.removeProduct,onProductReorder:r.reorderProducts,sampleUrl:r.sampleLink},null,8,["header-data","table-sets","onDisplayAddProperties","onDisplayAddProducts","onProductRemove","onProductReorder","sampleUrl"]))])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{drawerComponent:e.propertyPanel,drawerVisible:e.drawerVisible,"additional-content":r.propertySets,onCloseDrawer:r.onCloseDrawer,onCheckedChanged:r.updateProperties},null,8,["drawerComponent","drawerVisible","additional-content","onCloseDrawer","onCheckedChanged"]),(0,a.createVNode)(p,{drawerComponent:e.sidePanel,drawerVisible:e.addProductsVisible,onCloseDrawer:r.onCloseAddProduct,"additional-content":r.productCount},null,8,["drawerComponent","drawerVisible","onCloseDrawer","additional-content"]),e.loading?((0,a.openBlock)(),(0,a.createElementBlock)("div",Tr,[(0,a.createVNode)(h,{loading:e.loading},null,8,["loading"])])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(g,{class:"formulation-sample-panel",defaultMarketCode:r.defaultMarketCode,defaultSubmarketCode:r.defaultSubmarketCode,currentPage:"crop-solver/formulation-finder",parentPageId:"cropSolver"},null,8,["defaultMarketCode","defaultSubmarketCode"])])}var Ar=o(95289);
1const _r={id:"side-panel"},$r={class:"closeButton"},Hr={class:"title"},Rr={className:"search-selected-section"},Wr=["innerHTML"],qr={key:1,class:"add-product-message"},Ur={className:"search-section"},Or={className:"results-section column"},zr={class:"recomendedTitle"},Zr={class:"button-wrapper"};function Gr(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseIcon"),i=(0,a.resolveComponent)("CloseBoxButton"),c=(0,a.resolveComponent)("CheckBox"),d=(0,a.resolveComponent)("SearchBox"),u=(0,a.resolveComponent)("ResultCheckList");return(0,a.openBlock)(),(0,a.createElementBlock)("div",_r,[(0,a.createVNode)(s,{class:"search__close desktop-only","aria-label":"clear search",onClick:r.onCloseDrawer},null,8,["onClick"]),(0,a.createElementVNode)("div",$r,[(0,a.createVNode)(i,{class:"mobile-only",onClick:r.onCloseDrawer,"aria-label":"clear search"},null,8,["onClick"])]),(0,a.createElementVNode)("div",Hr,(0,a.toDisplayString)(r.getLabel("productCompare.addProducts")),1),(0,a.createElementVNode)("div",Rr,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.selectedProducts,e=>((0,a.openBlock)(),(0,a.createBlock)(c,{label:e.title,value:e.raw.permanentid,modelValue:r.selectedProductIds,"onUpdate:modelValue":[t[0]||(t[0]=e=>r.selectedProductIds=e),r.updateProducts],key:e.raw.permanentid,class:"checkboxResults"},null,8,["label","value","modelValue","onUpdate:modelValue"]))),128))]),e.selectedProducts.length+this.additionalContent>1&&e.selectedProducts.length+this.additionalContent!=5?((0,a.openBlock)(),(0,a.createElementBlock)("span",{key:0,class:"add-product-message",innerHTML:r.addProductMessage},null,8,Wr)):(0,a.createCommentVNode)("",!0),e.selectedProducts.length+this.additionalContent==5?((0,a.openBlock)(),(0,a.createElementBlock)("span",qr,(0,a.toDisplayString)(r.getLabel("maximum.products")),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ur,[(0,a.createVNode)(d,{initSearch:!0,initEngine:!0,searchHub:e.searchHub,customFilter:e.customFilter},null,8,["searchHub","customFilter"])]),(0,a.createElementVNode)("div",Or,[(0,a.createElementVNode)("div",zr,(0,a.toDisplayString)(r.getLabel("recommended.products")),1),(0,a.createVNode)(u,{disableSelection:r.disableSelection,itemToRemove:e.itemToRemove,onResultSelected:r.addProduct},null,8,["disableSelection","itemToRemove","onResultSelected"])]),(0,a.createElementVNode)("div",Zr,[(0,a.createElementVNode)("button",{class:"updateBtn btn-primary",onClick:t[1]||(t[1]=(...e)=>r.onCloseDrawer&&r.onCloseDrawer(...e))}," UPDATE COMPARISON ")])])}const jr={class:"_checklist"};function Kr(e,t,o,n,l,r){const s=(0,a.resolveComponent)("checkbox");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jr,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.items,(t,n)=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:n+r.randomId(),value:o.checkedItems.indexOf(t)>-1,label:void 0===o.labelFunction?t:o.labelFunction(t),onInput:o=>e.$emit("checked-changed",{item:t,isChecked:o})},null,8,["value","label","onInput"]))),128))])}var Qr={name:"Checklist",components:{Checkbox:ka.A},props:{items:{type:Array,required:!0},checkedItems:{type:Array,required:!0},labelFunction:Function},methods:{createFilterLabel:Xr,itemsChecked:Yr,randomId:Jr},mounted:function(){}};function Xr(e){return e.value+" ("+e.count+")"}function Jr(){return""+(new Date).getTime()+Math.random()}function Yr(e){var t=e.values.filter(function(e){return e.selected});return t}const es=(0,X.A)(Qr,[["render",Kr]]);var ts=es;const os={key:0,className:"search-box"},as={class:"searchbox_container"},ns={key:0,class:"suggestion_list"},ls=["onClick"];function rs(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseIcon"),i=(0,a.resolveComponent)("SearchIcon");return r.state?((0,a.openBlock)(),(0,a.createElementBlock)("div",os,[(0,a.createElementVNode)("div",as,[(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>r.state.value=e),onChange:t[1]||(t[1]=e=>r.updateText(e.target.value)),onKeyup:t[2]||(t[2]=(0,a.withKeys)(e=>r.submit(),["enter"])),placeholder:"Search",class:"searchbox_input"},null,544),[[a.vModelText,r.state.value]]),(0,a.createElementVNode)("button",{class:"closeButton",onClick:t[3]||(t[3]=(...e)=>r.clearSearch&&r.clearSearch(...e))},[(0,a.createVNode)(s,{class:"search__close","aria-label":"clear search"})]),(0,a.createElementVNode)("button",{class:"searchButton",onClick:t[4]||(t[4]=(...e)=>r.submit&&r.submit(...e))},[(0,a.createVNode)(i,{class:"search__icon","aria-label":"submit search"})])]),r.state&&r.state.suggestions.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("ul",ns,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.state.suggestions,t=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:t.rawValue,class:"suggestion",onClick:()=>e.controller.selectSuggestion(t.rawValue)},(0,a.toDisplayString)(t.rawValue),9,ls))),128))])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0)}var ss=o(70506),is={props:{initEngine:Boolean,initSearch:Boolean,searchHub:String,customFilter:String},data:function(){return{controller:null,count:0}},components:{SearchIcon:Gl.A,CloseIcon:ne.A},computed:{searchEngine(){return this.$store.state.search.engine},state(){return this.count,this.controller?.state}},methods:{updateText(e){this.controller.updateText(e),this.controller.subscribe(()=>this.count++)},submit(){this.controller.submit()},clearSearch(){this.controller.clear()}},watch:{searchEngine(e,t){this.initEngine||(this.controller=(0,ss.Er)(this.searchEngine))}}
1,created(){if(this.initEngine){var e={hub:this.searchHub,customFilter:this.customFilter};this.$store.dispatch("search/fetchSearchToken",e).then(function(){this.$store.dispatch("search/updateEngine").then(function(){this.controller=(0,ss.Er)(this.searchEngine),this.initSearch&&this.controller.submit()}.bind(this))}.bind(this))}}};const cs=(0,X.A)(is,[["render",rs]]);var ds=cs;const us={key:0,class:"resultlist_container"};function ms(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CheckBox");return r.state?((0,a.openBlock)(),(0,a.createElementBlock)("div",us,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.results,o=>((0,a.openBlock)(),(0,a.createBlock)(s,{label:o.title,value:o.raw.permanentid,modelValue:e.selectedResults,"onUpdate:modelValue":t[0]||(t[0]=t=>e.selectedResults=t),key:o.uniqueId,id:o.raw.permanentid},null,8,["label","value","modelValue","id"]))),128))])):(0,a.createCommentVNode)("",!0)}var ps={props:{itemToRemove:String,disableSelection:Boolean},data:function(){return{controller:null,count:0,selectedResults:[],emitResults:[]}},components:{CheckBox:ka.A},computed:{searchEngine(){return this.$store.state.search.engine},state(){return this.count,this.controller?.state},results(){return this.state.results.filter(e=>!this.selectedResults.includes(e.raw.permanentid))}},methods:{updateDisplay(){this.state.results.forEach(e=>{var t=e.raw.permanentid,o=document.getElementById(t);this.selectedResults.indexOf(t)>-1&&o&&(o.style.display="none")})}},watch:{searchEngine(e,t){e&&(this.controller=(0,ss.Y4)(this.searchEngine),this.controller.subscribe(()=>this.count++))},state(e,t){this.$emit("resultsDisplayed",this.state.results.length>0)},disableSelection(e,t){e?this.state.results.forEach(e=>{var t=e.raw.permanentid,o=document.getElementById(t);o&&(o.querySelector("input").disabled=!0,o.classList.add("disabled"),o.querySelector("span").classList.add("disabled"))}):this.state.results.forEach(e=>{var t=e.raw.permanentid,o=document.getElementById(t);o&&(o.querySelector("input").disabled=!1,o.classList.remove("disabled"),o.querySelector("span").classList.remove("disabled"))})},itemToRemove(e,t){if(e){var o=this.selectedResults.indexOf(e);this.selectedResults.splice(o,1);var a=document.getElementById(e);a&&(a.style.display="block")}},selectedResults(e,t){var o=this.emitResults;this.emitResults=[],this.state.results.forEach(e=>{this.selectedResults.forEach(t=>{e.raw.permanentid==t&&this.emitResults.push(e)})}),o.forEach(e=>{var t=this.emitResults.filter(t=>t.raw.permanentid==e.raw.permanentid);0==t.length&&this.emitResults.push(e)}),this.updateDisplay(),this.$emit("resultSelected",this.emitResults)}}};const hs=(0,X.A)(ps,[["render",ms]]);var gs=hs,fs={name:"SidePanel",props:["additionalContent"],data:function(){return{selectedProducts:[],itemToRemove:null,close:!1,searchHub:"DowComMainSearch",customFilter:'@source=Product @dow_market_hierarchy==("Agriculture, Feed and Animal Care|Crop Solutions")'}},components:{CloseBoxButton:sl,checklist:ts,CloseIcon:ne.A,SearchBox:ds,ResultCheckList:gs,CheckBox:ka.A},computed:{addProductMessage(){return this.getLabel("add.results")?this.getLabel("add.results").replace("{0}",5-(this.selectedProducts.length+this.additionalContent)):"add.results"},selectedProductIds(){return this.selectedProducts.map(e=>e.raw.permanentid)},disableSelection(){return this.selectedProducts.length+this.additionalContent==5}},watch:{},methods:{addProduct(e){this.selectedProducts=e},updateProducts(e){if(e)for(var t=0;t<this.selectedProducts.length;t++)-1==e.indexOf(this.selectedProducts[t].raw.permanentid)&&(this.itemToRemove=this.selectedProducts[t].raw.permanentid,this.selectedProducts.splice(t,1))},getLabel:function(e){return window.Granite.I18n.get(e)},getProperties:function(e){return e.filter(function(e){return null!=e.name&&""!=e.name})},getChecklistItems:function(e){var t=this.additionalContent.filter(function(t){return t.name==e})[0];return t.features.map(function(e){return e.name}).filter(function(e){return null!=e&&""!=e})},getChecklistCheckedItems:function(e){var t=this.additionalContent.filter(function(t){return t.name==e})[0];return t.features.filter(function(e){return e.isVisible}).map(function(e){return e.name}).filter(function(e){return null!=e&&""!=e})},onCloseDrawer:function(){this.$store.commit("search/removeEngine"),this.$emit("close-drawer",this.selectedProductIds)}},created:function(){}};const ks=(0,X.A)(fs,[["render",Gr]]);var Cs=ks;const bs={key:0,class:"compareTable compareHeader"},vs={class:"tableHeader"},ws=["id"],ys={class:"tableHeader"},Vs={class:"tableHeaderRow"},Ss=["colspan"],Es=["v-model"],Ns={class:"feature-wrapper"},Bs={class:"feature-name"},Ps={class:"feature-options"},Ls={key:0,class:"move-row"},xs={key:0,class:"gray-line"},Ds={key:1},Ms={class:"tableBodyRow linkedScroll addPropertyRow"},Is=(0,a.createElementVNode)("svg",{class:"svg-nav-close",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},[(0,a.createElementVNode)("defs"),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(6.5)"}),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(13 6.5) rotate(90)"})],-1);function Ts(e,t,o,n,l,r){const s=(0,a.resolveComponent)("product-card"),i=(0,a.resolveComponent)("draggable"),c=(0,a.resolveComponent)("CloseIcon"),d=(0,a.resolveComponent)("Drag");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("div",{class:"tableContainer row",style:(0,a.normalizeStyle)({marginLeft:e.tableMargin&&!o.noMargin?e.tableMargin+"px":"0px"})},[r.hasProducts?((0,a.openBlock)(),(0,a.createElementBlock)("table",bs,[(0,a.createElementVNode)("thead",vs,[(0,a.createElementVNode)("tr",{class:"tableHeaderRow linkedScroll",onUpdate:t[0]||(t[0]=(...e)=>r.handleMoveColumn&&r.handleMoveColumn(...e))},[(0,a.createElementVNode)("th",{class:"defaultTableHeaderCell tableHeaderCell",style:(0,a.normalizeStyle)(r.featureStyles)},null,4),(0,a.createVNode)(i,{class:"draggable-container",list:r.headerDataComputed.products,"item-key":"code",disabled:e.isMobile||!o.canDrag},{item:(0,a.withCtx)(({element:t,index:n})=>[(0,a.createElementVNode)("th",{class:"tableHeaderCell productHeaderCell",style:(0,a.normalizeStyle)(r.featureValueStyles)},[((0,a.openBlock)(),(0,a.createBlock)(s,{id:n,productcode:t.code,producttitle:t.name,key:t.code,pdpurl:t.pdpUrl,canMove:!e.isMobile,onProductCardClose:r.onProductCardClose,sampleUrl:o.sampleUrl},null,8,["id","productcode","producttitle","pdpurl","canMove","onProductCardClose","sampleUrl"]))],4)]),_:1},8,["list","disabled"])],32)])])):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.tableSetsComputed,n=>((0,a.openBlock)(),(0,a.createElementBlock)("table",{class:"compareTable compareData",key:n,id:n.name+"Table"},[(0,a.createElementVNode)("thead",ys,[(0,a.createElementVNode)("tr",Vs,[(0,a.createElementVNode)("th",{class:"propertySetHeaderCell",style:(0,a.normalizeStyle)(r.featureStyles),colspan:r.colSpan},[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(n.name),1)],12,Ss),r.hasProducts?((0,a.openBlock)(),(0,a.createElementBlock)("ul",{key:0,style:(0,a.normalizeStyle)(r.featureValueStyles)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.headerDataComputed.products,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("th",{key:t}
1))),128))],4)):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("tbody",{tag:"tbody",class:"tableBody",ref_for:!0,ref:n.name+"TableBody",onUpdate:t[2]||(t[2]=(...e)=>r.handleMoveRow&&r.handleMoveRow(...e)),"v-model":n.features},[(0,a.createVNode)(i,{class:"draggable-container",list:n.features,"item-key":"name",disabled:e.isMobile||!o.canDrag},{item:(0,a.withCtx)(({element:t})=>[(0,a.withDirectives)((0,a.createElementVNode)("tr",{class:"tableBodyRow linkedScroll",ref_for:!0,ref:t.name+n.name},[(0,a.createElementVNode)("td",{class:"tableBodyCell featureCell",style:(0,a.normalizeStyle)(r.featureStyles)},[(0,a.createElementVNode)("span",Ns,[(0,a.createElementVNode)("span",Bs,(0,a.toDisplayString)(t.name),1),(0,a.createElementVNode)("span",Ps,[(0,a.withDirectives)((0,a.createVNode)(c,{onClick:e=>r.removeProperty(t)},null,8,["onClick"]),[[a.vShow,!e.isMobile]]),e.isMobile?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("span",Ls,[(0,a.createVNode)(d)]))])])],4),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.values,e=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{class:"tableBodyCell featureValueCell",style:(0,a.normalizeStyle)(r.featureValueStyles),key:e+r.makeUniqueId("element",8)},["-"==e?((0,a.openBlock)(),(0,a.createElementBlock)("span",xs)):((0,a.openBlock)(),(0,a.createElementBlock)("span",Ds,(0,a.toDisplayString)(e),1))],4))),128))],512),[[a.vShow,t.isVisible]])]),_:2},1032,["list","disabled"]),(0,a.createElementVNode)("tr",Ms,[(0,a.createElementVNode)("td",{class:"tableBodyCell addPropertyCell",style:(0,a.normalizeStyle)({minWidth:e.maxFeatureWidth?e.maxFeatureWidth+"px":"auto",marginLeft:e.leftColumnMargin?e.leftColumnMargin+"px":"0px"})},[(0,a.createElementVNode)("span",{class:"add-property",onClick:t[1]||(t[1]=e=>r.displayAddProperties())},[Is,(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("productCompare.addProperty")),1)])],4)])],40,Es)],8,ws))),128))],4)])}const Fs={class:"productCard"},As={class:"productCard-nav card-row"},_s={class:"svg-nav_find_products",xmlns:"http://www.w3.org/2000/svg",width:"19.93",height:"21.974",viewBox:"0 0 19.93 21.974"},$s=(0,a.createElementVNode)("defs",null,null,-1),Hs={transform:"translate(1 1.031)"},Rs={class:"close-icon-box"},Ws={key:0,class:"move-column"},qs={class:"productCard-title-wrapper"},Us={class:"productCard-title"},Os={class:"card-row"},zs={class:"card-row"},Zs={class:"card-row"};function Gs(e,t,o,n,l,r){const s=(0,a.resolveComponent)("CloseIcon"),i=(0,a.resolveComponent)("Drag"),c=(0,a.resolveComponent)("ViewProduct"),d=(0,a.resolveComponent)("favoriteIcon"),u=(0,a.resolveComponent)("SampleAndBuy");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Fs,[(0,a.createElementVNode)("div",As,[((0,a.openBlock)(),(0,a.createElementBlock)("svg",_s,[$s,(0,a.createElementVNode)("g",Hs,[(0,a.createElementVNode)("path",{style:(0,a.normalizeStyle)({stroke:o.stroke}),d:"M22.43,16.941V8.975a1.991,1.991,0,0,0-1-1.723L14.461,3.27a1.993,1.993,0,0,0-1.992,0L5.5,7.253a1.991,1.991,0,0,0-1,1.723v7.966a1.991,1.991,0,0,0,1,1.723l6.973,3.983a1.993,1.993,0,0,0,1.992,0l6.973-3.983a1.991,1.991,0,0,0,1-1.723Z",transform:"translate(-4.5 -3.003)"},null,4),(0,a.createElementVNode)("path",{style:(0,a.normalizeStyle)({stroke:o.stroke}),d:"M4.9,10.44l8.671,5.5,8.671-5.5",transform:"translate(-4.611 -5.655)"},null,4),(0,a.createElementVNode)("path",{style:(0,a.normalizeStyle)({stroke:o.stroke}),d:"M18,28.973V18",transform:"translate(-9.035 -8.973)"},null,4)])])),(0,a.createElementVNode)("div",Rs,[(0,a.createVNode)(s,{onKeydownEnter:t[0]||(t[0]=t=>e.$emit("product-card-close",o.id)),onClick:t[1]||(t[1]=t=>e.$emit("product-card-close",o.id))})]),o.canMove?((0,a.openBlock)(),(0,a.createElementBlock)("span",Ws,[(0,a.createVNode)(i)])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",qs,[(0,a.createElementVNode)("span",Us,(0,a.toDisplayString)(o.producttitle),1)]),(0,a.createElementVNode)("div",Os,[(0,a.createVNode)(c,{pdpurl:o.pdpurl},null,8,["pdpurl"])]),(0,a.createElementVNode)("div",zs,[(0,a.createVNode)(d,{itemId:o.productcode},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.getLabel("text.favorite")),1)]),_:1},8,["itemId"])]),(0,a.createElementVNode)("div",Zs,[(0,a.createVNode)(u,{"sample-url":r.getSampleOptionsURL(),productName:o.producttitle,webProductId:o.productcode,"buy-url":r.getBuyOptionsURL()},null,8,["sample-url","productName","webProductId","buy-url"])])])}var js=o(57100);const Ks={class:"SampleAndBuy"},Qs=(0,a.createStaticVNode)('<div class="icon-left"><svg xmlns="http://www.w3.org/2000/svg" width="14.828" height="15" viewBox="0 0 14.828 15" id="cc"><g transform="translate(-999.376 -9)"><path class="cart-a" d="M13.238,30.619A.619.619,0,1,1,12.619,30,.619.619,0,0,1,13.238,30.619Z" transform="translate(991.709 -8.238)"></path><path class="cart-a" d="M29.738,30.619A.619.619,0,1,1,29.119,30,.619.619,0,0,1,29.738,30.619Z" transform="translate(982.019 -8.238)"></path><path class="cart-b" d="M1.5,1.5H3.976L5.635,9.789a1.238,1.238,0,0,0,1.238,1H12.89a1.238,1.238,0,0,0,1.238-1l.99-5.194H4.6" transform="translate(997.876 8.5)"></path></g></svg></div>',1),Xs={class:"button-title"},Js=(0,a.createElementVNode)("div",{class:"icon-right"},[(0,a.createElementVNode)("svg",{class:"options-arrow",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"6","stroke-width":"2",viewBox:"0 0 7.769 5.299"},[(0,a.createElementVNode)("defs"),(0,a.createElementVNode)("path",{d:"M0,3.177,3.177,0,6.354,3.177",transform:"translate(7.062 3.884) rotate(180)"})])],-1),Ys={class:"SampleAndBuy-options"},ei={class:"link-wrapper"},ti=(0,a.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16.254",height:"16.104",viewBox:"0 0 16.254 16.104"},[(0,a.createElementVNode)("defs"),(0,a.createElementVNode)("g",{transform:"translate(-2 -2)"},[(0,a.createElementVNode)("path",{d:"M16.679,11.4,11.4,16.672a1.472,1.472,0,0,1-2.082,0L3,10.359V3h7.359l6.321,6.321A1.472,1.472,0,0,1,16.679,11.4Z"}),(0,a.createElementVNode)("path",{d:"M10.5,10.5h0",transform:"translate(-3.821 -3.821)"})])],-1),oi={class:"SampleAndBuy-text"},ai={class:"link-wrapper"},ni=(0,a.createStaticVNode)('<svg xmlns="http://www.w3.org/2000/svg" width="14.828" height="15" viewBox="0 0 14.828 15" id="utility-bar-cart-svg"><g transform="translate(-999.376 -9)"><path class="cart-a" d="M13.238,30.619A.619.619,0,1,1,12.619,30,.619.619,0,0,1,13.238,30.619Z" transform="translate(991.709 -8.238)"></path><path class="cart-a" d="M29.738,30.619A.619.619,0,1,1,29.119,30,.619.619,0,0,1,29.738,30.619Z" transform="translate(982.019 -8.238)"></path><path class="cart-b" d="M1.5,1.5H3.976L5.635,9.789a1.238,1.238,0,0,0,1.238,1H12.89a1.238,1.238,0,0,0,1.238-1l.99-5.194H4.6" transform="translate(997.876 8.5)"></path></g></svg>',1),li=["href"],ri={class:"SampleAndBuy-text"};function si(e,t,o,n,l,r){const s=(0,a.resolveComponent)("Clickable");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ks,[(0,a.createElementVNode)("div",{tabindex:"0",class:"SampleAndBuy-Button",onKeydown:t[0]||(t[0]=(0,a.withKeys)(e=>r.toggleOptions(),["enter"])),onClick:t[1]||(t[1]=e=>r.toggleOptions())},[Qs,(0,a.createElementVNode)("div",Xs,(0,a.toDisplayString)(r.getLabel("view.sampleandbuy")),1),Js],32),(0,a.createElementVNode)("div",Ys,[(0,a.createElementVNode)("div",ei,[ti,(0,a.createVNode)(s,{onClick:t[2]||(t[2]=e=>r.sampleOption())},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("span",oi,(0,a.toDisplayString)(r.getLabel("pdp.sampleOptions")),1)]),_:1})]),(0,a.createElementVNode)("div",ai,[ni,(0,a.createElementVNode)("a",{href:o.buyUrl,onClick:t[3]||(t[3]=e=>r.buyingOption()),target:"_blank"},[(0,a.createElementVNode)("span",ri,(0,a.toDisplayString)(r.getLabel("buying.options.Title")),1)],8,li)])])])}var ii={name:"SampleAndBuy",components:{Clickable:ie},props:{sampleUrl:String,buyUrl:String,componentName:{type:String,default:"not set"},webProductId:String,productName:String},data:function(){return{optionsVisible:!1}},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},toggleOptions:function(){void 0===this.optionsVisible&&(this.optionsVisible=!1),this.optionsVisible?this.hideOptions():this.showOptions()},showOptions:function(){var e=this.$el.querySelector(".SampleAndBuy-options"),t=this.$el.querySelector(".options-arrow");e.style.display="inline-block",t.style.transform="rotate(180deg)",this.optionsVisible=!0},hideOptions:function(){var e=this.$el.querySelector(".SampleAndBuy-options"),t=this.$el.querySelector(".options-arrow");e.style.display="none",t.style.transform="rotate(0deg)",this.optionsVisible=!1},buyingOption:function(){shared.trackLink("Buying Option Button",this.componentName)},sampleOption:function(){let e={code:this.webProductId,title:this.productName,displayUrl:this.buyUrl};store.dispatch("sampleCart/fetchSampleOptionsFromSearch",e)}}};const ci=(0,X.A)(ii,[["render",si]]);var di=ci;const ui={width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mi=(0,a.createStaticVNode)('<g clip-path="url(#clip0_2969_12528)"><path d="M5.08138 7.81158L5.08107 7.18957H1.19069L2.98069 5.39988L2.54092 4.95996L0 7.50057L2.54061 10.041L2.98038 9.60127L1.19069 7.81158H5.08138Z"></path><path d="M7.18957 1.19069V5.08107H7.81158V1.19069L9.60127 2.98038L10.041 2.54061L7.50057 0L4.95996 2.54061L5.39988 2.98038L7.18957 1.19069Z"></path><path d="M12.4596 4.95996L12.0198 5.39988L13.8095 7.18957H9.91895V7.81158H13.8095L12.0198 9.60127L12.4596 10.041L15 7.50057L12.4596 4.95996Z"></path><path d="M7.81158 13.8093V9.91895H7.18957V13.8093L5.39988 12.0196L4.95996 12.4596L7.50057 15L10.041 12.4596L9.60127 12.0196L7.81158 13.8093Z"></path></g><defs><clipPath id="clip0_2969_12528"><rect width="15" height="15" fill="white"></rect></clipPath></defs>',2),pi=[mi];function hi(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",ui,pi)}const gi={},fi=(0,X.A)(gi,[["render",hi]]);var ki=fi,Ci={name:"ProductCard",components:{ViewProduct:js.A,CloseIcon:ne.A,favoriteIcon:to.A,SampleAndBuy:di,Drag:ki},props:{id:Number,productcode:String,producttitle:String,pdpurl:String,sampleUrl:String,buyUrl:String,canMove:Boolean,stroke:String},data:function(){return{}},computed:{},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},getSampleOptionsURL:function(){return this.sampleUrl},getBuyOptionsURL:function(){return this.pdpurl+"#buying-options"}}};const bi=(0,X.A)(Ci,[["render",Gs]]);var vi=bi,wi=o(46388),yi={name:"ReusableTable",props:{headerData:Object,tableSets:Array,sampleUrl:String,noMargin:Boolean,canDrag:{type:Boolean,default:!0}},components:{ProductCard:vi,CloseIcon:ne.A,PlusSign:wi.A,draggable:Tt(),Drag:ki},computed:{headerDataComputed:function(){return this.headerData||{}},tableSetsComputed:function(){return this.tableSets},tableColumnCount:function(){return this.hasProducts()?this.headerDataComputed.products.length+1:0},featureStyles:function(){return this.hasProducts()?{minWidth:this.maxFeatureWidth?this.maxFeatureWidth+"px":"auto",width:this.maxFeatureWidth?this.maxFeatureWidth+"px":"auto",marginLeft:this.leftColumnMargin?this.leftColumnMargin+"px":"0px"}:{}},featureValueStyles:function(){return this.hasProducts()?{minWidth:this.featureValueWidth?this.featureValueWidth+"px":"auto",width:this.featureValueWidth?this.featureValueWidth+"px":"auto"}:{}},colSpan:function(){return this.hasProducts()?1:2}},watch:{tableSetsComputed:function(e,t){this.initStyles()}},data:function(){return{maxFeatureWidth:null,maxTableWidth:null,featureValueWidth:null,mainWidth:null,leftColumnMargin:0,tableMargin:0,isMobile:!1,isMobileCompareIcon:!1,isTablet:!1,initStylesSet:!1,messages:{addProperty:""}}},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},initStyles:function(){this.calculateFeatureWidth(),this.calculateFeatureValueWidth(),this.calculateMobileStyles(),this.equalizeCells()},calculateFeatureWidth:function(){this.maxFeatureWidth=190},calculateFeatureValueWidth:function(){var e=document.getElementsByClassName("tableContainer").innerWidth;this.hasProducts()?this.featureValueWidth=(e-this.maxFeatureWidth)/this.headerDataComputed.products.length:this.featureValueWidth=e-this.maxFeatureWidth},calculateMobileStyles:function(){var e=window.innerWidth;if(e<1280){this.isMobileCompareIcon=!0,this.isCompareIcon=!1;var t=window.matchMedia("(orientation:landscape)").matches;if(this.mainWidth=t?768:document.getElementById("main").offsetWidth,this.isMobile=!0,this.isTablet){var o=this.mainWidth/2;this.mainWidth+="px",this.maxFeatureWidth=o,this.featureValueWidth=o,this.tableMargin=o,this.leftColumnMargin=-1*o}else{o=e/2;this.maxFeatureWidth=o,this.featureValueWidth=o,this.mainWidth+="px",this.tableMargin=o,this.leftColumnMargin=-1*o-15}}else this.isMobile=!1,this.isMobileCompareIcon=!1,this.isCompareIcon=!0,this.tableMargin=0},removeProperty:function(e){e.isVisible=!1},setMobilePrintStyles:function(){this.isMobileCompareIcon=!1,this.calculateFeatureWidth(),this.calculateFeatureValueWidth(),this.mainWidth="100%",this.tableMargin=0},undoMobilePrintStyles:function(){this.isMobileCompareIcon=!0,this.mainWidth="100vw",this.calculateMobileStyles()},onProductCardClose:function(e){this.$emit("product-remove",e)},displayAddProperties:function(){this.$emit("displayAddProperties")},handleMoveRow:function(){},handleMoveColumn:function(e){this.$emit("product-reorder",e.oldIndex,e.newIndex)},hasProducts:function(){return this.headerDataComputed&&this.headerDataComputed.products},equalizeCells:function(){const e=this.$refs;
1e.length&&e.forEach(e=>{const t=e.querySelectorAll(".tableBodyCell");let o=[],a=0;t.length&&(t.forEach(e=>{o.push(e.clientHeight)}),a=Math.max(o.join()),t.forEach(e=>{e.style.height=a+"px"}))})},makeUniqueId:At.vL},mounted:function(){window.onresize=function(e){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){this.initStyles()}.bind(this),250)}.bind(this);const e=document.getElementsByClassName("addNewProduct")[0];e&&(e.style.right=-1*window.getComputedStyle(e).width)},updated:function(){this.initStylesSet||(this.initStyles(),this.initStylesSet=!0)}};const Vi=(0,X.A)(yi,[["render",Ts]]);var Si=Vi;const Ei={class:"mobileTable"},Ni={class:"mobileTable__header"},Bi={class:"mobileTable__carousel",ref:"productsCarousel"},Pi=["onClick"],Li={class:"mobileTable__actions"},xi=(0,a.createElementVNode)("svg",{class:"svg-nav-close",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},[(0,a.createElementVNode)("defs"),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(6.5)"}),(0,a.createElementVNode)("line",{y2:"13",transform:"translate(13 6.5) rotate(90)"})],-1),Di={class:"mobileTable__info"},Mi=["innerHTML"],Ii={class:"mobileTable__body"},Ti=["id"],Fi={class:"properties-table__heading",colspan:"2"},Ai=["v-model"],_i={class:"properties-table__label"},$i={class:"properties-table__label__wrap"},Hi={class:"properties-table__label__text"},Ri={class:"properties-table__label__close"},Wi={class:"properties-table__label__move"},qi={key:0,class:"gray-line"},Ui={key:1};function Oi(e,t,o,n,l,r){const s=(0,a.resolveComponent)("product-card"),i=(0,a.resolveComponent)("DragIcon"),c=(0,a.resolveComponent)("CloseIcon"),d=(0,a.resolveComponent)("draggable");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ei,[(0,a.createElementVNode)("div",Ni,[(0,a.createElementVNode)("div",Bi,[r.hasProducts?((0,a.openBlock)(),(0,a.createElementBlock)("ul",{key:0,class:"mobileTable__c
1arousel__wrap",style:(0,a.normalizeStyle)({"-webkit-transform":"translateX("+(-1*e.slideWidth*e.activeProduct-5*e.slideWidth/100)+"px)","-ms-transform":"translateX("+(-1*e.slideWidth*e.activeProduct-5*e.slideWidth/100)+"px)",transform:"translateX("+(-1*e.slideWidth*e.activeProduct-5*e.slideWidth/100)+"px)"})},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.headerData?.products,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:n,class:(0,a.normalizeClass)(["mobileTable__carousel-item",{active:n===e.activeProduct,previous:e.activeProduct===n+1,next:e.activeProduct===n-1}]),onClick:e=>r.setActiveProduct(n),ref_for:!0,ref:"slide",style:(0,a.normalizeStyle)({"-webkit-box-flex":"0","-ms-flex":"0 0 "+e.slideWidth+"px",flex:"0 0 "+e.slideWidth+"px"})},[((0,a.openBlock)(),(0,a.createBlock)(s,{id:n,productcode:t.code,producttitle:t.name,key:t.code,pdpurl:t.pdpUrl,canMove:!1,sampleUrl:o.sampleUrl,onProductCardClose:r.onProductCardClose},null,8,["id","productcode","producttitle","pdpurl","sampleUrl","onProductCardClose"]))],14,Pi))),128))],4)):(0,a.createCommentVNode)("",!0)],512)]),(0,a.createElementVNode)("div",Li,[(0,a.createElementVNode)("button",{type:"button",class:"mobileTable__add-property",onClick:t[0]||(t[0]=e=>r.displayAddProperties())},[xi,(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(r.getLabel("productCompare.addProperty")),1)]),(0,a.createElementVNode)("div",Di,[(0,a.createVNode)(i),(0,a.createElementVNode)("span",{class:"mobileTable__info-text",innerHTML:r.getLabel("product.compare.move.rows")},null,8,Mi)])]),(0,a.createElementVNode)("div",Ii,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.tableSetsComputed,n=>((0,a.openBlock)(),(0,a.createElementBlock)("table",{class:"properties-table",id:n.name+"Table",key:n},[(0,a.createElementVNode)("thead",null,[(0,a.createElementVNode)("tr",null,[(0,a.createElementVNode)("th",Fi,[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(n.name),1)])])]),(0,a.createElementVNode)("tbody",{tag:"",ref_for:!0,ref:n.name+"TableBody",onUpdate:t[1]||(t[1]=(...e)=>r.handleMoveRow&&r.handleMoveRow(...e)),"v-model":n.features},[(0,a.createVNode)(d,{class:"draggable-container","item-key":"name",list:n.features,disabled:!o.canDrag},{item:(0,a.withCtx)(({element:t})=>[(0,a.withDirectives)((0,a.createElementVNode)("tr",{class:"properties-table__row",ref_for:!0,ref:t.name+n.name},[(0,a.createElementVNode)("td",_i,[(0,a.createElementVNode)("span",$i,[(0,a.createElementVNode)("span",Hi,(0,a.toDisplayString)(t.name),1),(0,a.createElementVNode)("span",Ri,[(0,a.createVNode)(c,{onClick:e=>r.removeProperty(t)},null,8,["onClick"])]),(0,a.createElementVNode)("span",Wi,[(0,a.createVNode)(i)])])]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.values,(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[o===e.activeProduct?((0,a.openBlock)(),(0,a.createElementBlock)("td",{key:o,class:"properties-table__value"},["-"==t?((0,a.openBlock)(),(0,a.createElementBlock)("span",qi)):((0,a.openBlock)(),(0,a.createElementBlock)("span",Ui,(0,a.toDisplayString)(t),1))])):(0,a.createCommentVNode)("",!0)],64))),256))],512),[[a.vShow,t.isVisible]])]),_:2},1032,["list","disabled"])],40,Ai)],8,Ti))),128))])])}const zi={width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zi=(0,a.createStaticVNode)('<g clip-path="url(#clip0_2966_12202)"><path d="M5.58138 7.81158L5.58107 7.18957H1.69069L3.48069 5.39988L3.04092 4.95996L0.5 7.50057L3.04061 10.041L3.48038 9.60127L1.69069 7.81158H5.58138Z" fill="#232323"></path><path d="M7.68859 1.19069V5.08107H8.3106V1.19069L10.1003 2.98038L10.5401 2.54061L7.9996 0L5.45898 2.54061L5.8989 2.98038L7.68859 1.19069Z" fill="#232323"></path><path d="M12.9586 4.95996L12.5188 5.39988L14.3085 7.18957H10.418V7.81158H14.3085L12.5188 9.60127L12.9586 10.041L15.499 7.50057L12.9586 4.95996Z" fill="#232323"></path><path d="M8.3106 13.8093V9.91895H7.68859V13.8093L5.8989 12.0196L5.45898 12.4596L7.9996 15L10.5401 12.4596L10.1003 12.0196L8.3106 13.8093Z" fill="#232323"></path></g><defs><clipPath id="clip0_2966_12202"><rect width="15" height="15" fill="white" transform="translate(0.5)"></rect></clipPath></defs>',2),Gi=[Zi];function ji(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",zi,Gi)}const Ki={},Qi=(0,X.A)(Ki,[["render",ji]]);var Xi=Qi,Ji=o(57241),Yi=o.n(Ji),ec={name:"MobileTable",props:{headerData:Object,tableSets:Array,sampleUrl:String,noMargin:Boolean,canDrag:{type:Boolean,default:!0}},components:{ProductCard:vi,CloseIcon:ne.A,PlusSign:wi.A,draggable:Tt(),DragIcon:Xi},computed:{headerDataComputed:function(){return this.headerData||{}},tableSetsComputed:function(){return this.tableSets},availableSlides(){return this.headerData?.products?.length<=this.maxSlides?this.headerData?.products?.length:this.maxSlides}},data:function(){return{maxFeatureWidth:null,maxTableWidth:null,featureValueWidth:null,mainWidth:null,leftColumnMargin:0,tableMargin:0,isMobile:!1,isMobileCompareIcon:!1,isTablet:!1,initStylesSet:!1,messages:{addProperty:""},activeProduct:0,slideWidth:260,maxSlides:5}},methods:{getLabel:function(e){return window.Granite.I18n.get(e)},removeProperty:function(e){e.isVisible=!1},onProductCardClose:function(e){this.$emit("product-remove",e)},displayAddProperties:function(){this.$emit("displayAddProperties")},handleMoveRow:function(){},handleMoveColumn:function(e){this.$emit("product-reorder",e.oldIndex,e.newIndex)},hasProducts:function(){return this.headerDataComputed&&this.headerDataComputed.products}
1,setActiveProduct(e){this.activeProduct=e},goToSlide(e){return!(this.activeProduct===this.availableSlides-1&&"left"===e||0==this.activeProduct&&this.activeProduct<=this.availableSlides-1&&"right"===e)&&("left"==e?(this.activeProduct<this.availableSlides&&(this.activeProduct+=1),!1):"right"==e?(this.activeProduct>0&&(this.activeProduct-=1),!1):void 0)}},mounted:function(){const e=document.getElementsByClassName("addNewProduct")[0];e&&(e.style.right=-1*window.getComputedStyle(e).width);const t=this;Yi()(t.$refs.productsCarousel,function(e){"left"!=e&&"right"!=e||t.goToSlide(e)})}};const tc=(0,X.A)(ec,[["render",Oi]]);var oc=tc,ac=o(43466),nc=o(9450);const lc={width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rc=(0,a.createElementVNode)("path",{d:"M14.3609 15.8419H2.89191C2.67672 15.8419 2.46364 15.7995 2.26484 15.7172C2.06604 15.6348 1.88543 15.514 1.73331 15.3618C1.5812 15.2096 1.46056 15.0289 1.3783 14.8301C1.29605 14.6312 1.25378 14.4181 1.25391 14.2029V2.73395C1.25391 2.51884 1.29627 2.30584 1.37859 2.10711C1.46091 1.90838 1.58156 1.72781 1.73367 1.57571C2.04085 1.26852 2.45748 1.09595 2.89191 1.09595H11.9039L16.0039 5.19595V14.2069C16.0035 14.4222 15.9607 14.6353 15.8779 14.834C15.7951 15.0327 15.6739 15.2132 15.5213 15.365C15.3687 15.5169 15.1877 15.6372 14.9886 15.719C14.7895 15.8008 14.5762 15.8426 14.3609 15.8419Z",stroke:"#E80033","stroke-width":"2"},null,-1),sc=(0,a.createElementVNode)("path",{d:"M12.7228 15.842V9.28796H4.53076V15.842",stroke:"#E80033","stroke-width":"2"},null,-1),ic=(0,a.createElementVNode)("path",{d:"M4.53076 1.09595V5.19595H11.0848",stroke:"#E80033","stroke-width":"2"},null,-1),cc=[rc,sc,ic];function dc(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",lc,cc)}const uc={},mc=(0,X.A)(uc,[["render",dc]]);var pc=mc,hc=o(87696),gc=o(31811),fc={data:function(){return{products:[],pagePrefix:null,isExpand:!1,isCollapse:!0,logoVisible:!1,isCompareIcon:!0,isMobile:!1,tableData:null,drawerVisible:!1,addProductsVisible:!1,propertyPanel:Ar.A,sidePanel:Cs,pendingProperties:[],isHandHeld:!1,loading:!0}},components:{reusableTable:Si,mobileTable:oc,DrawerMenu:ac.A,propertyPanel:Ar.A,sidePanel:Cs,Refresh:nc.A,SaveIcon:pc,DownArrow:hc.A,PlusSign:wi.A,Drag:ki,LoadingDots:gc.A,SearchSamplePanel:Kl.D},computed:{comparisonData:function(){return this.$store.getters["comparison/getComparisonData"]},propertySets:function(){return this.$store.getters["comparison/getPropertySets"]},tableColumnCount:function(){return this.products.length+1},maxProducts(){return 5==this.products.length},productCount(){return this.products.length},sampleLink(){let e=this.$store.state?.user?.dccUserInfo?.data?.email||"";return`https://engage.dow.com/CropSolver-Sample?product=${encodeURIComponent(this.productName)}&csEmail=${e}`},currentlyComparingLabel(){return this.getLabel("product.compare.currently.comparing").replace("{0}",this.productCount)},defaultMarketCode:function(){return this.$store.state.formulation.defaultMarketCode},defaultSubmarketCode:function(){return this.$store.state.formulation.defaultSubmarketCode}},watch:{comparisonData:function(e,t){this.init()},maxProducts(e,t){e?document.getElementById("addProducts").classList.add("addNewProductDisabled"):document.getElementById("addProducts").classList.remove("addNewProductDisabled")}},methods:{startOver(){delete this.$store.state.comparison.comparisonData.products,this.$emit("startOver")},updateProperties:function(e){this.propertySets.forEach(t=>{if(e instanceof Map){let o=e.get(t.name);t.features.forEach(e=>{e.isVisible=o.includes(e.name)})}})},onCloseDrawer:function(){this.drawerVisible=!1,this.pendingProperties.forEach(function(e){e.property.isVisible=e.isChecked}),this.pendingProperties=[]},onCloseAddProduct:function(e){e&&e.length>0&&(this.products.forEach(t=>{var o=e.filter(e=>e==t.code);0==o.length&&e.push(t.code)}),this.$store.dispatch("comparison/fetchData",e)),this.addProductsVisible=!1},showAddProductPanel(){this.maxProducts||(this.addProductsVisible=!0)},getLabel:function(e){return window.Granite.I18n.get(e)?window.Granite.I18n.get(e):e},removeProduct:function(e){if(this.products.length>
12){this.products.splice(e,1),this.propertySets.forEach(function(t){t.features.forEach(function(t){t.values.splice(e,1)}.bind(this))}.bind(this));var t=this.comparisonData;t.products.splice(e,1),this.$store.commit("comparison/setComparisonData",t),this.init()}else $("#productCountModal").modal("show")},reorderProducts:function(e,t){var o=e,a=t;this.propertySets.forEach(e=>{e.features.forEach(e=>{var t=e.values[o];e.values[o]=e.values[a],e.values[a]=t})})},print:function(){window.print()},displayAddPropertiesPanel:function(){this.drawerVisible=!0},displayAddProductsPanel:function(){this.drawerVisible=!0},expandAndCollapseFeatures:function(e){var t=e+"TableBody",o="collapseValues"+e,a="expandValues"+e;this.isCollapse?(this.$refs[t][0].hidden=!0,this.$refs[o][0].hidden=!0,this.$refs[a][0].hidden=!1,this.isCollapse=!1,this.isExpand=!0):(this.$refs[t][0].hidden=!1,this.$refs[o][0].hidden=!1,this.$refs[a][0].hidden=!0,this.isExpand=!1,this.isCollapse=!0)},showAndApplyFilters:function(e){var t="filterContainer"+e,o="filterButton"+e,a=this.$refs[o][0].firstChild.innerHTML;a==Granite.I18n.getI18nMessage("productCompare.compareFilter")?(this.$refs[o][0].firstChild.innerText=Granite.I18n.getI18nMessage("button.apply.Title"),this.$refs[t][0].hidden=!1):(this.$refs[o][0].firstChild.innerText=Granite.I18n.getI18nMessage("productCompare.compareFilter"),this.$refs[t][0].hidden=!0,this.applyFilters(e))},init:function(){this.loading=!0;var e=null!=this.comparisonData?this.comparisonData.products:null;if(this.products=[],null!=e){for(var t=0;t<e.length;t++)this.products.push(e[t]);this.loading=!1}},getQueryParams:function(e){var t,o=location.search,a=[],n=/[?&]?([^=]+)=([^&]*)/g;while(t=n.exec(o))decodeURIComponent(t[1])==e&&a.push(decodeURIComponent(t[2]));return a},checkHandheld:function(){var e=this;!0===window.matchMedia("only screen and (max-width: 1180px)").matches?e.isHandHeld=!0:e.isHandHeld=!1}},created:function(){var e=this;e.checkHandheld(),addEventListener("resize",function(t){e.checkHandheld()}),e.addProductsVisible=!0}};const kc=(0,X.A)(fc,[["render",Fr]]);var Cc=kc;const bc="embeddableProperties";var vc={extends:r.Ay,store:l["default"],components:{FormulationSelection:br,ProductCompare:Cc},data:function(){return{isFormulationSearch:!0,isProductCompare:!1}},methods:{nextPage:wc,previousPage:yc,startOver:Vc,resetData:Sc},created(){this.$store.dispatch("formulation/fetchData",this.embeddableProperties.model),this.$store.state.formulation.imagePath=this.embeddableProperties.images,this.$store.state.formulation.defaultMarketCode=this.embeddableProperties.defaultMarketCode,this.$store.state.formulation.defaultSubmarketCode=this.embeddableProperties.defaultSubmarketCode},computed:{embeddableProperties:{get(){return this["components/dataLayer"](this.cmpId)[bc]},set(e){this.cmpUpdate({[bc]:e})}}}};function wc(){this.isFormulationSearch&&(this.isFormulationSearch=!1,this.isProductCompare=!0)}function yc(){this.resetData(),this.isFormulationSearch=!0,this.isProductCompare=!1}function Vc(){this.resetData(),this.isFormulationSearch=!0,this.isProductCompare=!1}function Sc(){this.$store.commit("formulation/setRegulationFilter",null),this.$store.commit("formulation/setPesticideFilter",["fungicide","insecticide","herbicide"])}const Ec=(0,X.A)(vc,[["render",n]]);var Nc=Ec}}]);
2//# sourceMappingURL=clientlib-dependencies/resources/formulation-compass.cc74bc6e7a754a1f.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.