PageSourceSearch

https://www.hornetsfanshop.com/mm5/themes/genesis/branches/product…/dist/5530.a8f5d1769848ffbd287c.chunk.js

js hornetsfanshop.com collected 2026-10-06 15:23:14 UTC 6,780 bytes, 2 lines download raw bytes

1(self.webpackChunk_mvps_genesis_quickstart_theme=self.webpackChunk_mvps_genesis_quickstart_theme||[]).push([[5530],{1841:()=>{},5530:(t,e,a)=>{"use strict";a.d(e,{default:()=>h});var s=function(){var t=this,e=t._self._c;return e("form",{attrs:{id:"hot-market-form",method:"post"}},[e("input",{attrs:{type:"hidden",name:"Action",value:"save"}}),t._v(" "),e("input",{attrs:{id:"js-hot-markets-active",type:"hidden",name:"activeHotMarkets",value:"[]"}}),t._v(" "),e("div",{staticClass:"g-layout g-layout--column"},[e("div",{staticClass:"g-hot-markets-lists g-layout__item u-width-12"},[e("DualSelects",{attrs:{leftLabel:"Available Hot Markets",rightLabel:"Active Hot Markets",leftData:t.availableHotMarkets,rightData:t.activeHotMarkets},on:{cleanupData:t.updateHotMarketData}})],1),t._v(" "),e("button",{staticClass:"g-button g-button-primary",attrs:{id:"js-hot-market-button__save"},on:{click:function(e){return e.preventDefault(),t.saveHotMarkets.apply(null,arguments)}}},[t._v("Save")])])])};s._withStripped=!0;var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"g-layout g-layout--column g-layout--row--l",attrs:{id:"o-dual-selects"}},[e("div",{staticClass:"g-layout__item u-width-5--l"},[e("div",{staticClass:"g-layout g-layout--column dual-selects-list",attrs:{id:"js-dual-selects--left"}},[e("label",{staticClass:"g-layout__item g-form-label"},[t._v(t._s(t.leftLabel))]),t._v(" "),e("div",{staticClass:"g-layout__item"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.leftSelectedData,expression:"leftSelectedData"}],staticClass:"g-form-select__list",attrs:{multiple:"",name:"availableItems"},on:{dblclick:t.moveRight,change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.leftSelectedData=e.target.multiple?a:a[0]}}},t._l(t.leftData,(function(a,s){return e("option",{key:a.value,attrs:{"data-name":a.label},domProps:{value:s}},[t._v(t._s(a.label))])})),0)])])]),t._v(" "),e("div",{staticClass:"g-layout__item u-width-2--l g-control-group dual-selects-buttons"},[e("button",{staticClass:"g-button g-button-primary g-button--small g-control-group__button dual-selects-button__left",attrs:{"aria-label":"Remove from Hot Market"},on:{click:function(e){return e.preventDefault(),t.moveLeft.apply(null,arguments)}}}),t._v(" "),e("button",{staticClass:"g-button g-button-primary g-button--small g-control-group__button dual-selects-button__right",attrs:{"aria-label":"Add to Hot Market"},on:{click:function(e){return e.preventDefault(),t.moveRight.apply(null,arguments)}}})]),t._v(" "),e("div",{staticClass:"g-layout__item u-width-5-l"},[e("div",{staticClass:"g-layout g-layout--column dual-selects-list",attrs:{id:"js-dual-selects--right"}},[e("label",{staticClass:"g-layout__item g-form-label"},[t._v(t._s(t.rightLabel))]),t._v(" "),e("div",{staticClass:"g-layout__item"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.rightSelectedData,expression:"rightSelectedData"}],staticClass:"g-form-select__list",attrs:{multiple:"",name:"selectedItems"},on:{dblclick:t.moveLeft,change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.rightSelectedData=e.target.multiple?a:a[0]}}},t._l(t.rightData,(function(a,s){return e("option",{key:a.value,attrs:{"data-name":a.label},domProps:{value:s}},[t._v(t._s(a.label))])})),0)])])])])};l._withStripped=!0;const i={data:()=>({leftSelectedData:[],rightSelectedData:[]}),props:{leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0},leftData:{type:Array,required:!0},rightData:{type:Array,required:!0}},methods:{moveLeft(t){if(!this.rightSelectedData.length)return;let e=this.rightSelectedData.map((t=>this.rightData[t]));this.leftData.push(...e);for(let t=this.rightSelectedData.length;t>0;t--){let t=this.rightSelectedData;this.rightData.splice(t,1),this.rightSelectedData.pop()}this.$emit("cleanupData")},moveRight(t){if(!this.leftSelectedData.length)return;let e=this.leftSelectedData.map((t=>this.leftData[t]));this.rightData.push(...e);for(let t=this.leftSelectedData.length;t>0;t--){let t=this.leftSelectedData;this.leftData.splice(t,1),this.leftSelectedData.pop()}this.$emit("cleanupData")}}};a(9995);var r=a(2495);const o=(0,r.A)(i,l,[],!1,null,"c84bca48",null).exports,n=mivaJS.HotMarkets,c=mivaJS.ActiveHotMarkets;function u(t){return Object.values(t.reduce(((t,e)=>(t[e.value]=t[e.value]||e,t)),{}))}function v(t,e){return t.label<e.label?-1:t.label>e.label?1:0}const d={data:()=>({availableHotMarkets:n,activeHotMarkets:c}),components:{DualSelects:o},methods:{updateHotMarketData(){this.availableHotMarkets=u(this.availableHotMarkets),this.availableHotMarkets.sort(v),this.activeHotMarkets=u(this.activeHotMarkets),this.activeHotMarkets.sort(v)},saveHotMarkets(){const t=document.forms["hot-market-form"];t.elements["js-hot-markets-active"].value=JSON.stringify(this.activeHotMarkets),sessionStorage.removeItem("currentActiveHotMarkets"),sessionStorage.removeItem("availableHotMarkets"),sessionStorage.removeItem("activeHotMarkets"),t.submit()}},created(){const t=sessionStorage.getItem("availableHotMarkets"),e=sessionStorage.getItem("activeHotMarkets");t?this.availableHotMarkets=JSON.parse(t):sessionStorage.setItem("availableHotMarkets",JSON.stringify(this.availableHotMarkets)),e?this.activeHotMarkets=JSON.parse(e):sessionStorage.setItem("currentActiveHotMarkets",JSON.stringify(this.activeHotMarkets))},watch:{availableHotMarkets(t){sessionStorage.setItem("availableHotMarkets",JSON.stringify(t))},activeHotMarkets(t){sessionStorage.setItem("activeHotMarkets",JSON.stringify(t))}}};const h=(0,r.A)(d,s,[],!1,null,null,null).exports},2495:(t,e,a)=>{"use strict";function s(t,e,a,s,l,i,r,o){var n,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),s&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),r?(n=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),l&&l.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=n):l&&(n=o?function(){l.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:l),n)if(c.functional){c._injectStyles=n;var u=c.render;c.render=function(t,e){return n.call(e),u(t,e)}}else{var v=c.beforeCreate;c.beforeCreate=v?[].concat(v,n):[n]}return{exports:t,options:c}}a.d(e,{A:()=>s})},9995:(t,e,a)=>{var s=a(1841);s.__esModule&&(s=s.default),"string"==typeof s&&(s=[[t.id,s,""]]),s.locals&&(t.exports=s.locals);(0,a(8665).A)("f122899e",s,!1,{})}}]);
2//# sourceMappingURL=5530.a8f5d1769848ffbd287c.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.