1(self.webpackChunk=self.webpackChunk||[]).push([[689],{2996:function(t,e,a){"use strict";var i=a(4015),s=a.n(i),n=a(3645),r=a.n(n)()(s());r.push([t.id,".lds-ellipsis[data-v-5bffd575]{display:inline-block;position:relative;width:64px;height:64px}.lds-ellipsis div[data-v-5bffd575]{position:absolute;top:27px;width:11px;height:11px;border-radius:50%;background:#222f39;-webkit-animation-timing-function:cubic-bezier(0,1,1,0);animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div[data-v-5bffd575]:first-child{left:6px;-webkit-animation:lds-ellipsis1-data-v-5bffd575 .6s infinite;animation:lds-ellipsis1-data-v-5bffd575 .6s infinite}.lds-ellipsis div[data-v-5bffd575]:nth-child(2){left:6px;-webkit-animation:lds-ellipsis2-data-v-5bffd575 .6s infinite;animation:lds-ellipsis2-data-v-5bffd575 .6s infinite}.lds-ellipsis div[data-v-5bffd575]:nth-child(3){left:26px;-webkit-animation:lds-ellipsis2-data-v-5bffd575 .6s infinite;animation:lds-ellipsis2-data-v-5bffd575 .6s infinite}.lds-ellipsis div[data-v-5bffd575]:nth-child(4){left:45px;-webkit-animation:lds-ellipsis3-data-v-5bffd575 .6s infinite;animation:lds-ellipsis3-data-v-5bffd575 .6s infinite}@-webkit-keyframes lds-ellipsis1-data-v-5bffd575{0%{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes lds-ellipsis1-data-v-5bffd575{0%{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes lds-ellipsis3-data-v-5bffd575{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(0);transform:scale(0)}}@keyframes lds-ellipsis3-data-v-5bffd575{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(0);transform:scale(0)}}@-webkit-keyframes lds-ellipsis2-data-v-5bffd575{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(19px);transform:translate(19px)}}@keyframes lds-ellipsis2-data-v-5bffd575{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(19px);transform:translate(19px)}}","",{version:3,sources:["webpack://./resources/js/components/front/vue/AuctionsList/Loader.vue"],names:[],mappings:"AAgBA,+BACI,oBAAA,CACA,iBAAA,CACA,UAAA,CACA,WAfJ,CAiBA,mCACI,iBAAA,CACA,QAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,kBAAA,CACA,uDAAA,CAAA,+CAdJ,CAgBA,+CACI,QAAA,CACA,4DAAA,CAAA,oDAbJ,CAeA,gDACI,QAAA,CACA,4DAAA,CAAA,oDAZJ,CAcA,gDACI,SAAA,CACA,4DAAA,CAAA,oDAXJ,CAaA,gDACI,SAAA,CACA,4DAAA,CAAA,oDAVJ,CAYA,iDACI,GACI,0BAAA,CAAA,kBATN,CAWE,GACI,0BAAA,CAAA,kBATN,CACF,CAGA,yCACI,GACI,0BAAA,CAAA,kBATN,CAWE,GACI,0BAAA,CAAA,kBATN,CACF,CAWA,iDACI,GACI,0BAAA,CAAA,kBATN,CAWE,GACI,0BAAA,CAAA,kBATN,CACF,CAGA,yCACI,GACI,0BAAA,CAAA,kBATN,CAWE,GACI,0BAAA,CAAA,kBATN,CACF,CAWA,iDACI,GACI,8BAAA,CAAA,sBATN,CAWE,GACI,iCAAA,CAAA,yBATN,CACF,CAGA,yCACI,GACI,8BAAA,CAAA,sBATN,CAWE,GACI,iCAAA,CAAA,yBATN,CACF",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.lds-ellipsis {\n display: inline-block;\n position: relative;\n width: 64px;\n height: 64px;\n}\n.lds-ellipsis div {\n position: absolute;\n top: 27px;\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: #222f39;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n.lds-ellipsis div:nth-child(1) {\n left: 6px;\n animation: lds-ellipsis1 0.6s infinite;\n}\n.lds-ellipsis div:nth-child(2) {\n left: 6px;\n animation: lds-ellipsis2 0.6s infinite;\n}\n.lds-ellipsis div:nth-child(3) {\n left: 26px;\n animation: lds-ellipsis2 0.6s infinite;\n}\n.lds-ellipsis div:nth-child(4) {\n left: 45px;\n animation: lds-ellipsis3 0.6s infinite;\n}\n@keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n}\n@keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(19px, 0);\n }\n}\n"],sourceRoot:""}]),e.Z=r},9957:function(t,e,a){"use strict";a.d(e,{Z:function(){return o}});var i={name:"Loader"},s=a(3379),n=a.n(s),r=a(2996),l={insert:"head",singleton:!1},o=(n()(r.Z,l),r.Z.locals,(0,a(1900).Z)(i,(function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lds-ellipsis"},[a("div"),t._v(" "),a("div"),t._v(" "),a("div"),t._v(" "),a("div")])}
1],!1,null,"5bffd575",null).exports)},8319:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return A}});var i=a(381),s=a.n(i),n=a(8727),r=a(3361),l=a(791),o=a(2498),f=(a(4004),{name:"QualifiedFoal",components:{PedigreeView:n.default,QualifiedFoalScore:r.Z,NodeLoader:o.Z},props:{foal:{type:Object,require:!0},locale:{type:String,default:"en"}},data:function(){return{isMore:!1,isPedigreeLoaded:!1,isfoalBreederOwnerLoaded:!1,loading:!1,breeder:null,owner:null,foalBreederOwner:{breeder:{},owner:{}}}},mixins:[l.F],mounted:function(){},computed:{organizationTitles:function(){return["Company","Breeder community"]},foalDateOfBirth:function(){return s().utc(this.foal.date_of_birth).locale(this.locale).format("DD.MM.YYYY")},foalDetails:function(){return[this.foalDateOfBirth,this.$options.filters.trans("javascript.horse_registration.".concat(this.foal.sex.toLowerCase())),this.$options.filters.trans("javascript.horse_registration.".concat(this.foal.type.toLowerCase())),this.$options.filters.trans("javascript.horse_registration.".concat(this.foal.discipline.toLowerCase()))].join(" | ")},foalV:function(){return this.foal.V_name},foalMV:function(){return this.foal.MV_name},foalMMV:function(){return this.foal.MMV_name},foalV_MV_MMV:function(){var t=[];return this.foalV&&t.push(this.foalV),this.foalMV&&t.push(this.foalMV),this.foalMMV&&t.push(this.foalMMV),t.join(" | ")}},methods:{getFoalBreederOwner:function(){var t,e,a=this.foal.registered_as;return"owner and breeder"===a?(t=this.foal.user,e=this.foal.user):"not owner and not breeder"===a?(t=this.breeder,e=this.owner):"owner"===a?(t=this.breeder,e=this.foal.user):"breeder"===a&&(t=this.foal.user,e=this.owner),{breeder:t,owner:e}},showMoreOrLess:function(){this.isMore=!this.isMore,this.isMore&&(this.isPedigreeLoaded||this.loadPedigree(),this.isfoalBreederOwnerLoaded||this.loadBreederAndOwner())},loadBreederAndOwner:function(){var t=this;this.loading=!0,axios.get(route("get.breeder-owner",{horseRegistration:this.foal.id})).then((function(e){t.breeder=e.data.breeder,t.owner=e.data.owner,t.foalBreederOwner=t.getFoalBreederOwner(),t.isfoalBreederOwnerLoaded=!0})).finally((function(){t.loading=!1}))},loadPedigree:function(){var t=this,e=route("championship.pedigree",this.foal.id);this.loading=!0,axios.get(e).then((function(e){var a=e.data;a&&(t.pedigreeStructure=t.merge(t.pedigreeStructure,a),t.isPedigreeLoaded=!0)})).finally((function(){t.loading=!1}))}}}),d=a(1900);function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){u(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function u(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var v={name:"QualifiedFoals",components:{QualifiedFoal:(0,d.Z)(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"foal-wrap content-box"},[a("div",{staticClass:"d-flex flex-md-row flex-column justify-space-between mb-3 align-items-start"},[a("div",{staticClass:"d-flex align-items-start"},[t.foal.catalogue_number?a("div",{staticClass:"cat-number"},[t._v("\n "+t._s(t.foal.catalogue_number)+"\n ")]):t._e(),t._v(" "),a("h3",{staticClass:"mb-0"},[t.foal.horse_name?a("span",[t._v("\n "+t._s(t.foal.horse_name)+" |\n ")]):t._e(),t._v("\n "+t._s(t.foal.life_id_prefix)+" "+t._s(t.foal.life_id)+"\n\n "),a("br"),t._v(" "),a("small",{staticClass:"font-weight-lighter"},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.by"))+"\n "+t._s(t.foalV_MV_MMV)+"\n ")])])]),t._v(" "),a("div",[a("h5",{staticClass:"gray-box d-inline-block"},[t._v("\n "+t._s(t.foalDetails)+"\n ")])])]),t._v(" "),a("div",{staticClass:"form-row d-flex border-0 mt-0 border-top"},[a("div",{staticClass:"col-12",attrs:{"data-role":"accordion","data-one-frame":"false","data-show-active":"true"}},[a("div",{staticClass:"frame",class:{active:t.isMore}},[a("div",{staticClass:"content"},[a("section",{staticClass:"mt-0"},[a("div",{staticClass:"d-sm-flex flex-grow-1 w-100 pt-3 border-top"},[a("div",{staticClass:"card border-0 flex-grow-1 mb-sm-0 mb-3"},[a("div",{staticClass:"d-flex flex-column"},[a("div",{staticStyle:{"min-width":"75px"}},[a("h4",[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.owner"))+"\n ")])]),t._v(" "),a("div",{},[a("h5",{staticClass:"font-weight-normal"},[t.loading?a("NodeLoader"):t._e(),t._v(" "),t._v("\n "+t._s(t.foalBreederOwner.owner.fullname)+"\n ")],1),t._v(" "),a("h5",{staticClass:"font-weight-normal"},[t.loading?a("NodeLoader"):t._e(),t._v(" "),t._v("\n "+t._s(t.foalBreederOwner.owner.zip)+" "+t._s(t.foalBreederOwner.owner.city)+"\n ")],1)])])]),t._v(" "),a("div",{staticClass:"card border-0 flex-grow-1"},[a("div",{staticClass:"d-flex flex-column"},[a("div",{staticStyle:{"min-width":"75px"}},[a("h4",[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.breeder"))+"\n ")])]),t._v(" "),a("div",{},[a("h5",{staticClass:"font-weight-normal"},[t.loading?a("NodeLoader"):t._e(),t._v(" "),t._v("\n "+t._s(t.foalBreederOwner.breeder.fullname)+"\n ")],1),t._v(" "),a("h5",{staticClass:"font-weight-normal"},[t.loading?a("NodeLoader"):t._e(),t._v(" "),t._v("\n "+t._s(t.foalBreederOwner.breeder.zip)+" "+t._s(t.foalBreederOwner.breeder.city)+"\n ")],1)])])]),t._v(" "),a("div",{staticClass:"flex-grow-1"},[a("h4",[a("strong",[t._v(t._s(t._f("trans")("javascript.horse_registration.qualified_foal_event")))])]),t._v(" "),a("p",{staticClass:"mb-0"},[t._v("\n "+t._s(t.foal.current_event.translated_name)+"\n ")])])]),t._v(" "),a("div",{staticClass:"lot-detail content-box px-0",attrs:{id:"pedigree-view"}},[a("pedigree-view",{ref:"horse-pedigree",attrs:{pedigrees:t.pedigreeStructure,loading:t.loading,"show-
1horse-link":""}})],1)])]),t._v(" "),a("div",{staticClass:"frame-footer mt-4 bg-unset"},[a("a",{staticClass:"readMore",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showMoreOrLess(e)}}},[t.isMore?a("span",[t._v(t._s(t._f("trans")("javascript.horse_registration.show_less")))]):a("span",[t._v(t._s(t._f("trans")("javascript.horse_registration.show_more")))]),t._v(" "),a("i",{staticClass:"show-more-icon fa fa-chevron-down"})])])])])])])}),[],!1,null,null,null).exports,Loader:a(9957).Z},props:{foals:{type:Object,require:!0},qualificationEvents:{type:Array,require:!0},locale:{type:String,default:"en"}},data:function(){return{displayedFoalsData:{},displayedFoals:[],page:1,loaderState:!1,filteredFoals:[],totalFilter:0,totalData:0,qualificationEvent:"all",type:"all",discipline:"all",sex:"all",userHasSelected:!1}},watch:{qualificationEvent:function(){this.filterFoals()},type:function(){this.filterFoals()},discipline:function(){this.filterFoals()},sex:function(){this.filterFoals()}},mounted:function(){jQuery(".filter-mobile-trigger").click((function(){jQuery(".listing-filter-wrap .filters").toggleClass("opened")})),this.displayedFoalsData=this.foals,this.displayedFoals=this.foals.data.map((function(t){return p(p({},t),{},{current_event:t.events.sort((function(t){return-t.id}))[0]})})),this.totalFilter=this.foals.data.length,this.totalData=this.foals.total},methods:{scrollToTop:function(){window.scrollTo(0,400)},filterFoals:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.page=e,this.loaderState=!0,axios.get(route("championship-qualified-foal-fetch"),{params:{page:e,qualificationEvent:"all"===this.qualificationEvent?null:this.qualificationEvent,type:"all"===this.type?null:this.type,discipline:"all"===this.discipline?null:this.discipline,sex:"all"===this.sex?null:this.sex}}).then((function(e){t.loaderState=!1,t.displayedFoalsData=e.data,t.displayedFoals=e.data.data.map((function(t){return p(p({},t),{},{current_event:t.events.sort((function(t){return-t.id}))[0]})})),t.totalFilter=e.data.data.length,t.totalData=e.data.total})).catch((function(t){console.log(t)})).finally((function(){t.scrollToTop()}))}}},A=(0,d.Z)(v,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"foals-wrap-outer"},[a("h2",[t._v(t._s(t._f("trans")("javascript.horse_registration.qualified_foals")))]),t._v(" "),a("div",{staticClass:"listing-filter-wrap"},[a("div",{staticClass:"filter-mobile-trigger"},[a("button",[t._v(t._s(t._f("trans")("javascript.horse_registration.filter")))])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-3 col-md-12"},[a("h5",{staticClass:"filter-info mt-3"},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.filter_count",{count:t.totalFilter,total:t.totalData}))+"\n ")])]),t._v(" "),a("div",{staticClass:"col-lg-9 col-md-12"},[a("div",{staticClass:"filters flex-wrap"},[a("form",{staticClass:"w-sm-50 w-100"},[a("fieldset",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.qualificationEvent,expression:"qualificationEvent"}],staticClass:"form-control white-bg",attrs:{name:"qualification",id:"qualification","data-role":"select","data-filter":"false"},on:{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.qualificationEvent=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"all"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.all"))+"\n ")]),t._v(" "),t._l(t.qualificationEvents,(function(e){return a("option",{key:e.id,domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])}))],2),t._v(" "),a("label",{staticClass:"form-control-placeholder",attrs:{for:"qualification"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.qualification"))+"\n ")])])]),t._v(" "),a("form",[a("fieldset",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.type,expression:"type"}],staticClass:"form-control white-bg",attrs:{name:"type",id:"type","data-role":"select","data-filter":"false"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.type=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"all"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.all"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Warmblood"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.warmblood"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Pony"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.pony"))+"\n ")])]),t._v(" "),a("label",{staticClass:"form-control-placeholder",attrs:{for:"type"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.type"))+"\n ")])])]),t._v(" "),a("form",[a("fieldset",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.discipline,expression:"discipline"}],staticClass:"form-control white-bg",attrs:{name:"discipline",id:"discipline","data-role":"select","data-filter":"false"},on:{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.discipline=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"all"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.all"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Dressage"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.dressage"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Jumping"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.jumping"))+"\n ")])]),t._v(" "),a("label",{staticClass:"form-control-placeholder",attrs:{for:"discipline"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.discipline"))+"\n ")])])]),t._v(" "),a("form",[a("fieldset",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.sex,expression:"sex"}],staticClass:"form-control white-bg",attrs:{name:"sex",id:"sex","data-role":"select","data-filter":"false"},on:{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.sex=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"all"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.all"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Colt"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.colt"))+"\n ")]),t._v(" "),a("option",{attrs:{value:"Filly"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.filly"))+"\n ")])]),t._v(" "),a("label",{staticClass:"form-control-placeholder",attrs:{for:"sex"}},[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.sex"))+"\n ")])])])])])])]),t._v(" "),t.displayedFoals.length>0?a("div",{staticClass:"foals-wrap d-flex flex-column gap-xs"},t._l(t.displayedFoals,(function(e){return a("qualified-foal",{key:e.id,attrs:{foal:e,locale:t.locale}})})),1):a("div",[a("div",{staticClass:"foal-wrap content-box"},[t.userHasSelected?a("div",[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.results_not_yet_available"))+"\n ")]):a("div",[t._v("\n "+t._s(t._f("trans")("javascript.horse_registration.currently_no_foals_are_qualified"))+"\n ")])])]),t._v(" "),a("div",{staticClass:"d-flex flex-column justify-content-center align-items-center mt-3"},[t.loaderState?a("loader"):t._e(),t._v(" "),a("pagination",{attrs:{data:t.displayedFoalsData},on:{"pagination-change-page":t.filterFoals}})],1)])}),[],!1,null,null,null).exports}}]); 2//# sourceMappingURL=qualified-foals.js.map?id=8165b0f0c194ba092db4
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.