PageSourceSearch

https://63pokupki.ru/public/client-front/js/5860.eaedfda8.js

js 63pokupki.ru collected 2026-10-01 11:57:00 UTC 15,722 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkclient_front"]=self["webpackChunkclient_front"]||[]).push([[5860],{13479:function(t,e,r){r.r(e),r.d(e,{default:function(){return y}});var i=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"modal is-visible",class:{"is-app":t.$isApp,"is-org":t.isOrgRate,"is-org_app":t.$isApp&&t.isOrgRate,"is-org_app-org":t.$isApp&&t.$isShowNewMenuManagement&&t.isOrgRate}},[e("div",{staticClass:"modal-hide-content"},[e("div",{staticClass:"modal-content",class:{"modal-content_app-org":t.$isApp&&t.$isShowNewMenuManagement}},[e("div",{staticClass:"modal-close",on:{click:t.fClose}},[e("i",{staticClass:"ds-icon icon-close"})]),t.isOrgRate&&t.$hasAccessToOldUI?e("div",{staticClass:"org"},[e("div",{staticClass:"title org-title"},[t._v(" Понравилась ли вам работа организатора? ")]),e("div",{staticClass:"rate-block"},[e("div",{staticClass:"rate-list"},t._l(5,function(r){return e("star-item",{key:r,attrs:{nIndex:r,nRate:t.nRateOrg},on:{fClick:t.fSetRateOrg}})}),1),t.nRateOrg?e("div",{staticClass:"rate-text"},[t._v(" "+t._s(t.oRateText[t.nRateOrg])+" ")]):t._e()]),t.nRateOrg&&t.nRateOrg<4?e("div",{staticClass:"comment"},[e("textarea",{ref:"textareaOrg",staticClass:"comment-textarea",attrs:{maxlength:"1001",rows:"3",placeholder:"Расскажите, что Вам не понравилось в работе организатора"},domProps:{value:t.sOrgDesc},on:{input:function(e){return t.fInputOrgDesc(e.target.value)}}}),e("div",{staticClass:"comment-error"},[t._v(" "+t._s(t.sOrgError)+" ")])]):t._e()]):t._e(),e("div",{staticClass:"item"},[e("div",{staticClass:"title item-title"},[t._v(" Оцените товар ")]),e("div",{staticClass:"item-element"},[e("div",{staticClass:"item-img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.fGetItemImgUrl256(),expression:"fGetItemImgUrl256()"}],attrs:{alt:t.vItem.item_name}})]),e("div",{staticClass:"item-name"},[t._v(" "+t._s(t.sItemName)+" ")])]),e("div",{staticClass:"rate-block"},[e("div",{staticClass:"rate-list"},t._l(5,function(r){return e("star-item",{key:r,attrs:{nIndex:r,nRate:t.nRateItem},on:{fClick:t.fSetRateItem}})}),1),t.nRateItem?e("div",{staticClass:"rate-text"},[t._v(" "+t._s(t.oRateText[t.nRateItem])+" ")]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.nRateItem,expression:"nRateItem"}],staticClass:"comment"},[e("div",{staticClass:"comment-title"},[t._v(" Оставить отзыв ")]),e("textarea",{ref:"textareaItem",staticClass:"comment-textarea",attrs:{maxlength:"1001",rows:"1"},domProps:{value:t.sItemDesc},on:{input:function(e){return t.fInputItemDesc(e.target.value)}}}),e("div",{staticClass:"comment-error"},[t._v(" "+t._s(t.sItemError)+" ")]),e("div",{staticClass:"file-title"},[t._v(" Добавьте фото ")]),e("div",{staticClass:"review-img__files"},[e("input",{staticClass:"review-img__input",attrs:{type:"file",accept:"image/png, image/jpeg, image/jpg",id:"add-img-for-review"},on:{input:t.fInputReviewFile}}),t.aFiles.length<t.nMaxCountFiles&&!t.isLoadingImg?e("label",{staticClass:"review-img_add",attrs:{for:"add-img-for-review",title:"Прикрепить файл"}},[e("svg",{attrs:{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.2308 18.4615H2.76923C2.03478 18.4615 1.33042 18.1715 0.811089 17.6552C0.291757 17.1388 0 16.4386 0 15.7084V8.36658C0 8.12318 0.0972524 7.88976 0.270363 7.71765C0.443473 7.54554 0.678262 7.44886 0.923077 7.44886C1.16789 7.44886 1.40268 7.54554 1.57579 7.71765C1.7489 7.88976 1.84615 8.12318 1.84615 8.36658V15.7084C1.84615 15.9518 1.94341 16.1852 2.11652 16.3573C2.28963 16.5294 2.52442 16.6261 2.76923 16.6261H21.2308C21.4756 16.6261 21.7104 16.5294 21.8835 16.3573C22.0566 16.1852 22.1538 15.9518 22.1538 15.7084V6.22522C22.1538 5.98183 22.0566 5.7484 21.8835 5.5763C21.7104 5.40419 21.4756 5.3075 21.2308 5.3075H16.6154C16.4047 5.30829 16.2001 5.23741 16.0356 5.10664C15.871 4.97588 15.7564 4.79308 15.7108 4.58862L15.2892 2.56963C15.2471 2.36438 15.1356 2.17964 14.9733 2.04608C14.811 1.91253 14.6076 1.8382 14.3969 1.83545H9.97846C9.77054 1.83542 9.56869 1.90518 9.40563 2.03343C9.24256 2.16169 9.12782 2.34092 9.08 2.54209L8.59077 4.60391C8.53405 4.84082 8.385 5.04562 8.1764 5.17327C7.96781 5.30091 7.71675 5.34095 7.47846 5.28456C7.24018 5.22817 7.03418 5.07998 6.90579 4.8726C6.7774 4.66521 6.73713 4.41561 6.79385 4.1787L7.28923 2.11688C7.43305 1.51494 7.77661 0.978706 8.26449 0.594655C8.75238 0.210603 9.35616 0.00112394 9.97846 0H14.3969C15.0357 1.40016e-05 15.6549 0.219612 16.1495 0.621581C16.6441 1.02355 16.9837 1.58316 17.1108 2.2056L17.3692 3.47205H21.2308C21.9652 3.47205 22.6696 3.76212 23.1889 4.27844C23.7082 4.79476 24 5.49504 24 6.22522V15.7084C24 16.4386 23.7082 17.1388 23.1889 17.6552C22.6696 18.1715 21.9652 18.4615 21.2308 18.4615ZM11.9044 15.3718C10.9916 15.3718 10.0993 15.1027 9.34028 14.5985C8.58128 14.0943 7.98972 13.3776 7.64039 12.5392C7.29106 11.7007 7.19966 10.7781 7.37775 9.88801C7.55583 8.9979 7.99541 8.18029 8.64088 7.53856C9.28635 6.89683 10.1087 6.4598 11.004 6.28275C11.8993 6.1057 12.8273 6.19657 13.6707 6.54387C14.514 6.89117 15.2349 7.47931 15.742 8.2339C16.2491 8.98849 16.5198 9.87566 16.5198 10.7832C16.5198 12.0002 16.0336 13.1673 15.168 14.0278C14.3025 14.8884 13.1285 15.3718 11.9044 15.3718ZM11.9044 8.03003C11.3567 8.03003 10.8213 8.1915 10.3659 8.49402C9.91055 8.79655 9.55561 9.22653 9.34601 9.72961C9.13642 10.2327 9.08158 10.7863 9.18843 11.3203C9.29528 11.8544 9.55902 12.3449 9.94631 12.73C10.3336 13.115 10.827 13.3772 11.3642 13.4835C11.9014 13.5897 12.4582 13.5352 12.9642 13.3268C13.4702 13.1184 13.9027 12.7655 14.207 12.3128C14.5113 11.86 14.6737 11.3277 14.6737 10.7832C14.6737 10.053 14.3819 9.35273 13.8626 8.83642C13.3433 8.3201 12.6389 8.03003 11.9044 8.03003ZM17.4426 8.03003H20.2118C20.4567 8.03003 20.6914 7.93334 20.8646 7.76123C21.0377 7.58913 21.1349 7.3557 21.1349 7.1123C21.1349 6.86891 21.0377 6.63548 20.8646 6.46338C20.6914 6.29127 20.4567 6.19458 20.2118 6.19458H17.4426C17.1978 6.19458 16.963 6.29127 16.7899 6.46338C16.6168 6.63548 16.5195 6.86891 16.5195 7.1123C16.5195 7.3557 16.6168 7.58913 16.7899 7.76123C16.963 7.93334 17.1978 8.03003 17.4426 8.03003ZM1.53906 5.30749H0.923
1077C0.678262 5.30749 0.443473 5.2108 0.270363 5.0387C0.0972524 4.86659 0 4.63316 0 4.38977C0 4.14637 0.0972524 3.91295 0.270363 3.74084C0.443473 3.56873 0.678262 3.47205 0.923077 3.47205H1.53906V2.86035C1.53906 2.61696 1.63631 2.38353 1.80943 2.21142C1.98254 2.03932 2.21732 1.94263 2.46214 1.94263C2.70695 1.94263 2.94174 2.03932 3.11485 2.21142C3.28796 2.38353 3.38522 2.61696 3.38522 2.86035V3.47205H4C4.24481 3.47205 4.4796 3.56873 4.65271 3.74084C4.82582 3.91295 4.92308 4.14637 4.92308 4.38977C4.92308 4.63316 4.82582 4.86659 4.65271 5.0387C4.4796 5.2108 4.24481 5.30749 4 5.30749H3.38522V5.91943C3.38522 6.16282 3.28796 6.39625 3.11485 6.56836C2.94174 6.74046 2.70695 6.83715 2.46214 6.83715C2.21732 6.83715 1.98254 6.74046 1.80943 6.56836C1.63631 6.39625 1.53906 6.16282 1.53906 5.91943V5.30749Z",fill:"#1D1E1F","fill-opacity":"0.8"}})])]):t._e(),t.isLoadingImg?e("div",{staticClass:"spinner-wrapper"},[t._m(0)]):t._e(),e("div",{staticClass:"review-img__files-list"},t._l(t.aFiles,function(r,i){return e("div",{key:r.id,staticClass:"review-img__file"},[e("img",{staticClass:"review-img__picture",attrs:{src:r.base64,alt:r.file.name}}),e("button",{staticClass:"review-img__delete-file",attrs:{type:"button",title:"Удалить фото"},on:{click:function(e){return t.fRemoveFile(i)}}},[t._v(" х ")])])}),0)])])]),e("div",{staticClass:"footer"},[e("button",{staticClass:"rate-button",class:{"rate-button-disabled":!t.nRateItem||t.sItemError||t.sOrgError},on:{click:function(e){return t.fRate()}}},[e("div",{staticClass:"rate-button-text"},[t._v("Отправить")])]),e("div",{staticClass:"btn-back"},[e("span",{staticClass:"btn-back-text",on:{click:t.fClose}},[t._v("Напомнить позже")])])])])]),e("div",{staticClass:"modal__bg"})])},s=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])])}],a=(r(50746),r(49456),r(31635)),n=r(19951),o=r(36599),l=r(92402),c=r(87759),d=r(26261),u=r(21403),m=function(){function t(){this.ALLOW_MAX_FILE_SIZE=31457280}return t.prototype.fWait=function(t){return void 0===t&&(t=0),new Promise(function(e){setTimeout(function(){e()},t)})},t.prototype.fGetBase64=function(t){return new Promise(function(e){var r=new FileReader;
1r.readAsDataURL(t),r.onload=function(){e(r.result)}})},t.prototype.fGetBase64ByCanvas=function(t,e){void 0===e&&(e=.8),document.body.append(t);var r=t.toDataURL("image/jpeg",e);return document.body.removeChild(t),r},t.prototype.fCompressImage=function(t,e){return void 0===e&&(e=.8),(0,a.__awaiter)(this,void 0,void 0,function(){var r,i,s;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return r=document.createElement("img"),r.src=t,[4,this.fWait(1e3)];case 1:return a.sent(),i=document.createElement("canvas"),r.width>2048?(i.width=2048,i.height=2048*r.height/r.width):(i.width=r.width,i.height=r.height),i.getContext("2d").drawImage(r,0,0,i.width,i.height),s=this.fGetBase64ByCanvas(i,e),i.remove(),r.remove(),[2,s]}})})},t.prototype.fUploadFileWithCompress=function(t,e){return void 0===e&&(e=.8),(0,a.__awaiter)(this,void 0,Promise,function(){var r,i,s;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return r=t.type.split("/")[0],[4,this.fGetBase64(t)];case 1:return i=a.sent(),s="image"===r,s?[4,this.fCompressImage(i,e)]:[3,3];case 2:i=a.sent(),a.label=3;case 3:return[2,{sBase64:i,isBig:!s&&t.size>this.ALLOW_MAX_FILE_SIZE}]}})})},t}(),C=new m,g=C,f=r(17791),_=window,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nRateOrg=0,e.sOrgDesc="",e.sOrgError="",e.nRateItem=0,e.sItemDesc="",e.sItemError="",e.nMaxCountFiles=3,e.nStartedTextAreaHeightOrg=0,e.nStartedTextAreaHeightItem=0,e.oRateText={5:"Отлично!",4:"Хорошо",3:"Нормально",2:"Плохо",1:"Никуда не годится"},e}return(0,a.__extends)(e,t),Object.defineProperty(e.prototype,"aFiles",{get:function(){return c.gCartCtrl.list.post_files},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoadingImg",{get:function(){return c.gCartCtrl.status.is_loading_img},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vItem",{get:function(){return c.gCartCtrl.ix.items[c.gCartCtrl.status.modal_rate_form_item_id]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idInvoice",{get:function(){var t,e;return null!==(e=null===(t=c.gCartCtrl.ix.invoices_by_purchase_id[this.vOrder.purchase_id])||void 0===t?void 0:t.invoice_id)&&void 0!==e?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sItemName",{get:function(){return this.vItem.item_name.length>70?this.vItem.item_name.slice(0,70)+"...":this.vItem.item_name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vOrder",{get:function(){return c.gCartCtrl.ix.orders_by_order_id[c.gCartCtrl.status.modal_rate_form_order_id]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isHaveOrgRate",{get:function(){return Boolean(c.gCartCtrl.ix.org_reviews[this.idInvoice])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOrgRate",{get:function(){var t=this.vOrder.order_state===u.P2.issuedUZ;return t&&!this.isHaveOrgRate},enumerable:!1,configurable:!0}),e.prototype.fTextareaShowItem=function(t){var e=this;t&&!this.nStartedTextAreaHeightItem&&this.$nextTick(function(){e.nStartedTextAreaHeightItem=e.$refs.textareaItem.scrollHeight})},e.prototype.fTextareaShowOrg=function(t){var e=this;t&&!this.nStartedTextAreaHeightOrg&&this.$nextTick(function(){e.nStartedTextAreaHeightOrg=e.$refs.textareaOrg.scrollHeight})},e.prototype.fGetDescFieldError=function(t){var e="",r=t.match(/xn--|\.+(uz|com|рф|com|net|org|su|biz)|([a-z,A-Z,0-9])+\.ru/gim);if(t.length>1e3&&(e="Максимальная длина не более 1000 символов"),r&&r.length)for(var i=0;i<r.length;i++){var s=r[i],a=/(63pokupki|max\.ru)/i.test(s);a||(e="Ой, кажется это ссылка на сторонний ресурс")}return e},e.prototype.fInputItemDesc=function(t){this.sItemDesc=t,this.sItemError=this.fGetDescFieldError(t),this.fAutoResizeTextarea(this.$refs.textareaItem,this.nStartedTextAreaHeightItem)},e.prototype.fAutoResizeTextarea=function(t,e){t.style.height=e+"px",this.$nextTick(function(){t.style.height=t.scrollHeight+"px"})},e.prototype.fInputOrgDesc=function(t){this.sOrgDesc=t,this.sOrgError=this.fGetDescFieldError(t),this.fAutoResizeTextarea(this.$refs.textareaOrg,this.nStartedTextAreaHeightOrg)},e.prototype.fSendClaim=function(){var t,e={text:this.sOrgDesc,claim_type:f.Ct.rating_org,url:"/cart#/".concat("archive"===this.$route.name?"archive/":"","?userId=").concat(c.gCartCtrl.status.user_id,"&q=").concat(this.vOrder.invoice_id),item_id:c.gCartCtrl.status.modal_rate_form_item_id,org_id:null===(t=c.gCartCtrl.ix.purchases_by_purchase_id[this.vOrder.purchase_id])||void 0===t?void 0:t.org_user_id};c.gCartCtrl.fCreateClaim(e)},e.prototype.fGetItemImgUrl256=function(){var t=c.gCartCtrl.ix.item_imgs[this.vItem.item_id]||[],e=t[0]?t[0].filename:"";return e?d.G.fItemImageUrlx256(e):r(78863)},e.prototype.fSetRateOrg=function(t){this.nRateOrg=this.nRateOrg===t?0:t},e.prototype.fSetRateItem=function(t){this.nRateItem=this.nRateItem===t?0:t},e.prototype.fInputReviewFile=function(t){return(0,a.__awaiter)(this,void 0,void 0,function(){var e,r;return(0,a.__generator)(this,function(i){switch(i.label){case 0:return e=t.target.files[0],[4,g.fUploadFileWithCompress(e)];case 1:return r=i.sent().sBase64,c.gCartCtrl.fUploadPostFile({file:e,base64:r}),[2]}})})}
1,e.prototype.fRemoveFile=function(t){this.aFiles.splice(t,1)},e.prototype.fClose=function(){},e.prototype.fRateOrg=function(){var t=c.gCartCtrl.ix.purchases_by_purchase_id[c.gCartCtrl.status.modal_rate_form_purchase_id];c.gCartCtrl.fAddOrgRating({org_user_id:t.org_user_id,invoice_id:this.idInvoice,purchase_id:c.gCartCtrl.status.modal_rate_form_purchase_id,stock_id:t.stock_id,rating_value:this.nRateOrg})},e.prototype.fRateItem=function(){c.gCartCtrl.ix.order_reviews[c.gCartCtrl.status.modal_rate_form_order_id]={rating:this.nRateItem,text:this.sItemDesc},c.gCartCtrl.ix.order_reviews=(0,a.__assign)({},c.gCartCtrl.ix.order_reviews),c.gCartCtrl.fCreateReview({title:"",text:this.sItemDesc,order_id:c.gCartCtrl.status.modal_rate_form_order_id,rating:this.nRateItem,post_file_id_list:this.aFiles.map(function(t){return t.id})})},e.prototype.fRate=function(){this.nRateOrg&&this.fRateOrg(),this.sOrgDesc&&this.fSendClaim(),this.nRateItem&&this.fRateItem(),this.fClose(),c.gCartCtrl.status.modal_success_rate=!0},e.prototype.mounted=function(){document.body.classList.add("disable-scroll");var t=c.gCartCtrl.ix.order_reviews[c.gCartCtrl.status.modal_rate_form_order_id];t&&(this.nRateItem=t.rating,this.sItemDesc=t.text),c.gCartCtrl.list.post_files=[],this.$vmq.xs&&_.jivo_destroy&&_.jivo_destroy()},e.prototype.destroyed=function(){document.body.classList.remove("disable-scroll"),this.$vmq.xs&&_.jivo_init&&_.jivo_init()},(0,a.__decorate)([(0,l.ox)("nRateItem")],e.prototype,"fTextareaShowItem",null),(0,a.__decorate)([(0,l.ox)("nRateOrg")],e.prototype,"fTextareaShowOrg",null),(0,a.__decorate)([(0,l.O5)("close")],e.prototype,"fClose",null),e=(0,a.__decorate)([o.Ay],e),e}(n.A),v=p,h=v,I=r(81656),x=(0,I.A)(h,i,s,!1,null,"3ef11f1c",null),y=x.exports}}]);

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.