PageSourceSearch

https://baza.store/js/3331.3cddbe3d.js

js baza.store collected 2026-10-02 02:08:52 UTC 14,833 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkbaza_frontend"]=self["webpackChunkbaza_frontend"]||[]).push([[3331],{18047:function(e,t,i){i.d(t,{Z:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"radio-wrapper"},[t("label",{class:{"radio-item":!0,"radio-item--disabled":e.disabled},attrs:{for:e.id}},[t("input",{staticClass:"radio radio-item__radio",attrs:{id:e.id,disabled:e.disabled,name:e.name,type:"radio"},domProps:{checked:e.checked,value:e.value},on:{change:t=>e.$emit("input",t.target.value)}}),e.label?t("span",{staticClass:"radio-item__label"},[e._v(e._s(e.label))]):e._e()]),e.disabled&&e.disabledHint?t("span",{staticClass:"radio-hint"},[t("i",{staticClass:"icon icon-info radio-hint__icon"}),t("span",[e._v(e._s(e.disabledHint))])]):e._e()])},r=[],o={name:"Radio",props:{id:String,value:[String,Number],label:String,name:String,checked:Boolean,disabled:Boolean,disabledHint:{type:String,required:!1}}},n=o,a=i(43736),l=(0,a.Z)(n,s,r,!1,null,"72070bc0",null),d=l.exports},4726:function(e,t,i){i.d(t,{Z:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"selectOptions",staticClass:"select-field",class:{"select-field--disabled":e.disabled||!e.options.length}},[e.label?t("label",{staticClass:"select-field__label",attrs:{for:"id"}},[e._v(e._s(e.label))]):e._e(),t("div",{staticClass:"input input--gray",class:{"select-field--expanded":e.selectExpanded,"input--error":e.error}},[e.selectExpanded?e._e():t("p",{staticClass:"select-field__select-fielded-option",on:{click:function(t){e.selectExpanded=!e.selectExpanded}}},[e.selectedOption?t("span",[e._t("default",(function(){return[e._v(" "+e._s(e.selectedOption.name)+" ")]}),{optionDetails:e.selectedOption})],2):t("span",[e._v(" "+e._s(e.placeholder)+" ")])]),e.selectExpanded?t("p",{staticClass:"select-field__select-fielded-option"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.helper,expression:"helper"}],ref:"input",staticClass:"select-field__input",attrs:{id:"id",type:"text"},domProps:{value:e.helper},on:{input:[function(t){t.target.composing||(e.helper=t.target.value)},function(t){return e.$emit("text-input",t.target.value)}]}})]):e._e(),t("img",{staticClass:"select-field__icon",attrs:{src:i(35520),alt:""},on:{click:function(t){e.selectExpanded=!e.selectExpanded}}}),e.options.length?t("div",{class:["select-field__options",e.selectExpanded&&"select-field__options--expanded"]},e._l(e.filteredOptions,(function(i){return t("div",{key:i.id,staticClass:"select-field__option",on:{click:function(t){return e.select(i.id)}}},[e._t("default",(function(){return[e._v(" "+e._s(i.name)+" ")]}),{optionDetails:i}
1)],2)})),0):e._e()])])},r=[],o={name:"SelectField",emits:["input","text-input"],props:{options:{type:Array},value:[Number,String],label:String,placeholder:{type:String,default:"Выбери из списка"},error:{default:!1,type:Boolean},disabled:{type:Boolean,required:!1,disabled:!1}},data(){return{selectExpanded:!1,helper:""}},computed:{selectedOption(){if(this.value)return this.options.find((e=>e.id===this.value))},filteredOptions(){return this.options.filter((e=>!this.helper.length||e.name.toLowerCase().includes(this.helper.toLowerCase())))},optionsEl(){return this.$refs.selectOptions.querySelector(".select-field__options")},clientRect(){return this.$refs.selectOptions.getBoundingClientRect()}},watch:{selectExpanded(){const e=window.innerHeight-this.clientRect.bottom,t=300,i=this.optionsEl.scrollHeight<t?this.optionsEl.scrollHeight:t;e<i?(this.optionsEl.style.top="initial",this.optionsEl.style.bottom="100%"):(this.optionsEl.style.bottom="initial",this.optionsEl.style.top="100%")}},methods:{select(e){this.selectExpanded=!1,this.$emit("input",e)}}},n=o,a=i(43736),l=(0,a.Z)(n,s,r,!1,null,"3ac352b8",null),d=l.exports},23331:function(e,t,i){i.r(t),i.d(t,{default:function(){return y}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"term-condition"},[e.isExporter?[t("p",{staticClass:"term-condition__section-title"},[e._v(" "+e._s(e.$t("Delivery terms"))+" ")]),t("div",{staticClass:"term-condition__exporter"},[t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-md-6"},[t("span",{staticClass:"typeahead-label"},[e._v(e._s(e.$t("Country")))]),t("vue-bootstrap-typeahead",{attrs:{"input-class":"location-search",data:e.countries,serializer:e=>e.name,placeholder:e.$t("Start typing the country name")},on:{hit:function(t){e.country=t}}}),t("p",[e._v(" "+e._s(e.$t("CurrentCountryOfDelivery",[e.currentDeliveryCountry?e.currentDeliveryCountry:e.$t("Country not specified")]))+" ")])],1),t("div",{staticClass:"form-group col-md-6"},[t("span",{staticClass:"typeahead-label"},[e._v(e._s(e.$t("City")))]),t("vue-bootstrap-typeahead",{attrs:{"input-class":"location-search",data:e.cities,serializer:e=>e.qual_name,placeholder:e.$t("Start typing the city name"),"max-matches":50},on:{hit:function(t){e.city=t}}}),t("p",[e._v(" "+e._s(e.$t("CurrentCityOfDelivery",[e.currentDeliveryCity?e.currentDeliveryCity:e.$t("City not specified")]))+" ")])],1)]),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-sm-6"},[t("Select",{staticClass:"edit-product__field edit-product__field--package",attrs:{options:e.$options.INCOTERMS,label:e.$t("Incoterms 2020"),placeholder:e.$t("Select from the list")},model:{value:e.incotermsType,callback:function(t){e.incotermsType=t},expression:"incotermsType"}})],1)])])]:[e.isBuyer?[t("div",{staticClass:"term-condition__payment"},[t("p",{staticClass:"term-condition__section-title"},[e._v(" "+e._s(e.$t("Payment terms"))+" ")]),t("div",{staticClass:"term-condition__triggers"},e._l(e.paymentTypes,(function(i){return t("RadioNew",{key:i.value,staticClass:"term-condition__trigger",attrs:{label:i.text,value:i.value,checked:i.value===e.paymentMethod},on:{input:t=>e.paymentMethod=t}})})),1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.paymentMethod===e.$options.PAYMENT_TYPE.CASHLESS,expression:"paymentMethod === $options.PAYMENT_TYPE.CASHLESS"}]},[t("div",{staticClass:"term-condition__description"},[t("p",[e._v(" "+e._s(e.$t("You can choose payment with a delay of up to {0} days",[e.currentUser.profile.deferred_payment_days]))+" ")]),t("router-link",{attrs:{to:{name:"finance"}}},[e._v(" "+e._s(e.$t("Request a credit limit"))+" ")])],1),t("Input",{staticClass:"term-condition__delay-input",attrs:{label:`${e.$t("Payment delay")}:`,description:e.$t("Days"),max:e.currentUser.profile.deferred_payment_days,error:e.paymentDelay>e.currentUser.profile.deferred_payment_days,type:"number",color:"gray"},model:{value:e.paymentDelay,callback:function(t){e.paymentDelay=e._n(t)},expression:"paymentDelay"}})],1)])]:e._e(),t("p",{staticClass:"term-condition__section-title"},[e._v(" "+e._s(e.$t("Delivery terms"))+" ")]),t("div",{staticClass:"term-condition__triggers"},e._l(e.deliveryTypes,(function(i){return t("RadioNew",{key:i.value,staticClass:"term-condition__trigger",attrs:{label:i.text,value:i.value,checked:i.value===e.deliveryMethod},on:{input:t=>e.deliveryMethod=t}})})),1),t("div",{directives:[{name:"show",rawName:"v-show",value:"delivery"===e.deliveryMethod,expression:"deliveryMethod === 'delivery'"}],staticClass:"term-condition__delivery"},[t("div",{staticClass:"term-condition-section term-condition__warehouse"},[e.isBuyer?t("p",{staticClass:"term-condition__lead"},[e._v(" "+e._s(e.$t("Choose delivery address"))+" ")]):t("p",[e._v(" "+e._s(e.isSystemSeller?e.$t("selectDeliveryWarehouseForSystemSeller"):e.$t("selectDeliveryWarehouseForSeller"))+" ")]),t("Select",{staticClass:"term-condition__select",attrs:{options:e.deliveryWarehouseOptions,placeholder:e.isBuyer?e.$t("Choose one of your delivery addresses"):e.isSystemSeller?e.$t("Choose one of your warehouses"):e.$t("selectDeliveryWarehouseForSellerPlaceholder"),value:e.selectedWarehouseId,disabled:!e.deliveryWarehouseOptions.length},on:{input:e.setWarehouse}}),e.deliveryMethodMatches("delivery")&&e.currentWarehouse?t("p",{staticClass:"term-condition__text"},[e._v(" "+e._s(e.$t("Current"))+": "),t("span",[e._v(e._s(e.currentWarehouse))])]):e._e(
1),e.isBuyer&&!e.userWarehouseOptions.length?t("p",{staticClass:"term-condition__warning-text"},[e._v(" "+e._s(e.$t("You have no delivery addresses added yet"))+" ")]):e._e()],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:"pickup"===e.deliveryMethod,expression:"deliveryMethod === 'pickup'"}],staticClass:"term-condition__pickup"},[e.isSystemSeller?e._e():t("div",{staticClass:"term-condition-section term-condition__warehouse"},[t("p",{staticClass:"term-condition__lead"},[e._v(" "+e._s(e.isBuyer?e.$t("Choose the distribution center for shipment at own expense:"):e.$t("selectPickupWarehouseForSeller"))+" ")]),t("Select",{staticClass:"term-condition__select",attrs:{options:e.pickupWarehouseOptions,placeholder:e.isBuyer?e.$t("Select DC"):e.$t("selectPickupWarehouseForSellerPlaceholder"),value:e.selectedWarehouseId,disabled:!e.pickupWarehouseOptions.length},on:{input:e.setWarehouse}}),e.deliveryMethodMatches("pickup")&&e.currentWarehouse?t("p",{staticClass:"term-condition__text"},[e._v(" "+e._s(e.isBuyer?e.$t("Current DC"):e.$t("Current warehouse"))+": "),t("span",[e._v(e._s(e.currentWarehouse))])]):e._e()],1)])],e.isSeller||e.isExporter?t("div",{staticClass:"term-condition__limit"},[t("p",{staticClass:"term-condition__lead term-condition__limit-title pt-4"},[t("span",[e._v(" "+e._s(e.$t("Order limit"))+" ")]),t("img",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:e.$t("The maximum amount for which you are willing to accept an order"),expression:"$t('The maximum amount for which you are willing to accept an order')",modifiers:{hover:!0,top:!0}}],attrs:{src:i(24764),alt:e.$t("Info")}})]),t("Input",{staticClass:"term-condition__input",attrs:{color:"gray",type:"number",min:0,placeholder:e.$t("Enter order limit"),description:e.$t("units.currencies.RUB"),error:e.orderLimit<0},model:{value:e.orderLimit,callback:function(t){e.orderLimit=e._n(t)},expression:"orderLimit"}})],1):e._e()],2)},r=[],o=i(90408),n=i(4726),a=i(28465),l=i(18047),d=i(25859),c={INCOTERMS:a.HB,PAYMENT_TYPE:a.V_,name:"ProfileTermCondition",i18n:{messages:{ru:{selectPickupWarehouseForSeller:"Выбрать склад для самовывоза Базой",selectDeliveryWarehouseForSeller:"Выбрать склад Базы для доставки",selectDeliveryWarehouseForSystemSeller:"Выберите ваш склад для доставки",selectPickupWarehouseForSellerPlaceholder:"Выберите один из ваших складов",selectDeliveryWarehouseForSellerPlaceholder:"Выберите один из складов Базы",pickupByBaza:"Самовывоз Базой",deliveryToBaza:"Доставка на склад Базы"},en:{selectPickupWarehouseForSeller:"Choose one of your warehouses for pickup by BAZA",selectDeliveryWarehouseForSeller:"Choose one of BAZA's warehouses for delivery by you",selectDeliveryWarehouseForSystemSeller:"Choose your warehouse address for delivery",selectPickupWarehouseForSellerPlaceholder:"Choose one of your warehouses",selectDeliveryWarehouseForSellerPlaceholder:"Choose one of BAZA's warehouses",pickupByBaza:"Pickup by BAZA",deliveryToBaza:"Delivery to BAZA's warehouse"}}},components:{RadioNew:l.Z,Select:n.Z,Input:d.Z},data:()=>({country:null,city:null,address:null,deliveryMethod:null,obtainMethod:null,paymentMethod:null,paymentDelay:0,warehouseAddress:null,selectedWarehouseId:null,incotermsType:null,orderLimit:0}),computed:{...(0,o.rn)("user",["currentUser"]),...(0,o.rn)("misc",["cities","countries"]),...(0,o.rn)("profile",["bazaWarehouses"]),...(0,o.Se)("user",["isBuyer","isExporter","isSeller","isSystemSeller"]),canHavePickup(){return this.isBuyer||this.isSystemSeller},deliveryTypes(){const e={text:this.$t("Delivery"),value:a.Yp.DELIVERY},t={text:this.$t("Pickup"),value:a.Yp.PICKUP};return this.canHavePickup?[e,t]:[e]},paymentTypes(){return[{text:this.$t("Secure payment"),value:a.V_.CASH},{text:this.$t("Delayed payment"),value:a.V_.CASHLESS}]},termCondition(){return this.currentUser.profile.term_condition},currentDeliveryCountry(){return this.termCondition?.incoterms_country?.name},currentDeliveryCity(){return this.termCondition?.incoterms_city?.name},currentWarehouse(){const e=this.termCondition?.warehouse_address;return e?"ru"===this.currentUser.language?`${e.city.country_name}, ${e.city.name}, ${e.address}`:`${e.address}, ${e.city.name}, ${e.city.country_name}`:null},userWarehouseOptions(){const e=this.currentUser.profile?.organization.warehouse_addresses||[];return e.map((e=>({name:"ru"===this.currentUser.language?`${e.city.country_name}, ${e.city.name}, ${e.address}`:`${e.address}, ${e.city.name}, ${e.city.country_name}`,id:e.id})))},distributionCenterOptions(){return this.bazaWarehouses.map((e=>({name:`${e.city.country_name}, ${e.city.name}, ${e.address}`,id:e.id})))},deliveryWarehouseOptions(){return this.isBuyer||this.isSystemSeller?this.userWarehouseOptions:this.distributionCenterOptions},pickupWarehouseOptions(){return this.isBuyer?this.distributionCenterOptions:this.userWarehouseOptions},summary(){const e={delivery_method:this.deliveryMethod,obtain_method:this.obtainMethod,payment_method:this.paymentMethod,payment_delay:Math.floor(this.paymentDelay),address:this.address,order_limit:this.orderLimit};return this.warehouseAddress&&(e.warehouse_address=this.warehouseAddress),this.country&&(e.incoterms_country=this.country.id||this.country),this.city&&(e.incoterms_city=this.city.id||this.city),this.incotermsType&&(e.incoterms_type=this.incotermsType),e}},watch:{paymentMethod(){this.paymentMethod===a.V_.CASH&&(this.paymentDelay=0)},deliveryMethod(){this.termCondition&&(this.deliveryMethod!==this.termCondition.delivery_method?this.warehouseAddress=null:this.warehouseAddress=this.selectedWarehouseId||this.termCondition.warehouse_address)},summary(){this.$emit("update",this.summary)},country(){this.$store.dispatch("misc/loadCities",{country:this.country?.id||this.country})}},created(){this.setTermConditionData()},methods:{setTermConditionData(){const e=this.currentUser.profile,t=e.term_condition;t&&(this.deliveryMethod=this.canHavePickup?t.delivery_method:a.Yp.DELIVERY,this.obtainMethod=t.obtain_method,this.paymentMethod=t.payment_method,this.paymentDelay=t.payment_delay,this.warehouseAddress=t.warehouse_address,this.address=t.address,this.orderLimit=e.order_limit),this.isExporter&&(this.country=t.incoterms_country?.id||null,this.city=t.incoterms_city?.id||null,this.incotermsType=t.incoterms_type)},setWarehouse(e){this.selectedWarehouseId=e,this.warehouseAddress=e},deliveryMethodMatches(e){return this.termCondition?.delivery_method===e}}},u=c,p=i(43736),h=(0,p.Z)(u,s,r,!1,null,"76eb1816",null),y=h.exports}}]);
2//# sourceMappingURL=3331.3cddbe3d.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.