PageSourceSearch

https://xaytoam.vn/build/assets/BannerContractorDetail-BlmW4W1m.js

js xaytoam.vn collected 2026-10-09 01:56:10 UTC 10,302 bytes, 1 lines download raw bytes

1import{N as _,J as g,a0 as w,M as $,r as p,a as I,L as t,A as i,R as l,Z as d,Y as B}from"./index-erkf4wHD.js";import{_ as M}from"./TagImageContractor.vue_vue_type_script_setup_true_lang-D4gqj5mG.js";import{_ as v}from"./WishListIcon-D4BBQo5D.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as P}from"./Eye.vue_vue_type_script_setup_true_lang-CMqOch47.js";import{_ as S}from"./RateStar-CiUTLJVe.js";import"./VerifiedStatusTag-CQ432L7e.js";import"./constant-uLR86v5J.js";const A={},N={width:"28px",height:"27px",viewBox:"0 0 28 27",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function j(u,n){return g(),_("svg",N,n[0]||(n[0]=[w('<g id="spDetail" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="SP_Profile" transform="translate(-1453, -472)"><g id="info" transform="translate(350, 387)"><g id="feedback" transform="translate(1050, 85)"><g id="Group-23" transform="translate(53, 0)"><polyline id="Path-2" fill="#FFAA00" points="25.1946915 22.5175207 7.28870579 22.5175207 2.43247078 26.1695595 1.37666214 24.4926159 1.37666214 2.59887334 3.66327607 1.28890356 23.1251071 1.28890356 25.6581348 4.35799648 25.6581348 21.288217"></polyline><g id="Group-10" fill-rule="nonzero"><path d="M1.52868527,26.8236373 C0.599079922,26.4219421 -0.00205399806,25.5052959 0,24.4926159 L0,4.35799648 C-0.00223457953,3.20296127 0.455030049,2.09446505 1.27097226,1.27693849 C2.08691447,0.459411921 3.19452157,0 4.34955896,0 L22.6767922,0 C23.8318296,0 24.9394367,0.459411921 25.7553789,1.27693849 C26.5713211,2.09446505 27.0285858,3.20296127 27.0263512,4.35799648 L27.0263512,19.0197831 C27.0263512,21.4219736 25.0789828,23.3693338 22.6767922,23.3693338 L10.7683135,23.3693338 C10.388161,23.3693338 10.0799865,23.0611594 10.0799865,22.6810069 C10.0799865,22.3008544 10.388161,21.9926799 10.7683135,21.9926799 L22.6767922,21.9926799 C23.4674934,21.9926799 24.2258096,21.6785751 24.7849198,21.1194649 C25.3440299,20.5603547 25.6581348,19.8020386 25.6581348,19.0113374 L25.6581348,4.35799648 C25.6581348,2.71144645 24.3233423,1.37665393 22.6767922,1.37665393 L4.34955896,1.37665393 C2.70630816,1.38130905 1.37665555,2.71473909 1.37666214,4.35799648 L1.37666214,24.4926159 C1.37406346,24.9516005 1.64496304,25.3680677 2.06559825,25.5517512 C2.48623347,25.7354347 2.97583881,25.6510657 3.31073422,25.3371888 L6.62990596,22.178486 C6.90744059,21.9102802 7.34985058,21.9178428 7.61805632,22.1953774 C7.88626206,22.4729121 7.8786995,22.9153221 7.60116486,23.1835278 L4.22287302,26.3337849 C3.48769742,26.9893163 2.44755668,27.1784328 1.52868527,26.8236373 L1.52868527,26.8236373 Z" id="Path"></path><path d="M15.092527,16.1904637 L13.5131756,15.5316968 L11.9338242,16.1904637 C11.4173031,16.4041298 10.8268149,16.3336179 10.3751289,16.0043354 C9.9234429,15.6750528 9.67565232,15.1344531 9.721043,14.5773293 L9.8646204,12.8881834 L8.74978409,11.5959868 C8.3877974,11.1715832 8.27217731,10.589646 8.44443301,10.0590984 C8.61668872,9.52855088 9.0521033,9.12552103 9.59435705,8.99470204 L11.283503,8.59775275 L12.1703046,7.13664152 C12.4620274,6.66061071 12.980205,6.37042288 13.5385128,6.37042288 C14.0968205,6.37042288 14.6149982,6.66061071 14.906721,7.13664152 L15.7935226,8.59775275 L17.4826685,8.99470204 C18.0249223,9.12552103 18.4603369,9.52855088 18.6325926,10.0590984 C18.8048483,10.589646 18.6892282,11.1715832 18.3272415,11.5959868 L17.2124052,12.8881834 L17.3559826,14.5773293 C17.4012193,15.1571611 17.1340886,15.7171699 16.654987,16.0468863 C16.2010135,16.3805851 15.5997128,16.4358397 15.092527,16.1904637 Z M13.5131756,14.0959227 C13.6029273,14.0954757 13.6918898,14.1126943 13.7749932,14.1465971 L15.6161623,14.9151585 C15.6891445,14.9444962 15.7720941,14.9341496 15.8356334,14.887783 C15.8991728,14.8414165 15.9343302,14.7655769 15.9286543,14.6871238 L15.7766311,12.6685944 C15.7596286,12.4849551 15.8174916,12.3022299 15.9371,12.1618506 L17.2377424,10.650065 C17.290165,10.5900077 17.3074191,10.5069346 17.2832482,10.4309689 C17.2590773,10.3550032 17.1969909,10.2971748 17.1195021,10.2784529 L15.2023215,9.84772073 C15.0224545,9.80595671 14.8671091,9.69325515 14.7715893,9.53522873 L13.7327646,7.84608281 C13.6885724,7.78243211 13.6160006,7.74446987 13.5385128,7.74446987 C13.461025,7.74446987 13.3884532,7.78243211 13.344261,7.84608281 L12.3054363,9.53522873 C12.2099165,9.69325515 12.0545711,9.80595671 11.874704,9.84772073 L9.93218624,10.3037901 C9.85469748,10.322512 9.79261103,10.3803404 9.76844014,10.4563061 C9.74426924,10.5322718 9.76152338,10.6153449 9.81394602,10.6754022 L11.1145884,12.1871878 C11.2341968,12.327567 11.2920598,12.5102923 11.2750572,12.6939316 L11.1145884,14.6871238 C11.1081592,14.7662553 11.1433498,14.8430348 11.2074914,14.8898213 C11.27
158686,14.9273843 11.3587032,14.9273843 11.4270804,14.8898213 L13.2682494,14.1212599 C13.347687,14.0980698 13.4306731,14.0894851 13.5131756,14.0959227 L13.5131756,14.0959227 Z" id="Shape" fill="#FFFFFF"></path></g></g></g></g></g></g>',1)]))}const x=f(A,[["render",j]]),V={},q={width:"25px",height:"25px",viewBox:"0 0 25 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function R(u,n){return g(),_("svg",q,n[0]||(n[0]=[w('<g id="spDetail" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="SP_Profile" transform="translate(-1545, -473)"><g id="info" transform="translate(350, 387)"><g id="Group-16" transform="translate(1150, 86)"><g id="share" transform="translate(45, 0)"><rect id="Rectangle" fill="#152764" x="0" y="0" width="25" height="25" rx="12.5"></rect><path d="M15.4257812,14.7265625 C14.5573926,14.7265625 13.7921582,15.1537402 13.3115137,15.8033691 L9.15595703,13.6755078 C9.22495117,13.4403418 9.2734375,13.1966211 9.2734375,12.9394531 C9.2734375,12.5906445 9.20192383,12.2590332 9.07837891,11.9540234 L13.4273535,9.33699219 C13.9113379,9.905 14.6227246,10.2734375 15.4257812,10.2734375 C16.8797559,10.2734375 18.0625,9.09069336 18.0625,7.63671875 C18.0625,6.18274414 16.8797559,5 15.4257812,5 C13.9718066,5 12.7890625,6.18274414 12.7890625,7.63671875 C12.7890625,7.97178711 12.8580566,8.28962891 12.9725195,8.58470703 L8.6105957,11.2094141 C8.12702148,10.6582812 7.42588867,10.3027344 6.63671875,10.3027344 C5.18274414,10.3027344 4,11.4854785 4,12.9394531 C4,14.3934277 5.18274414,15.5761719 6.63671875,15.5761719 C7.51943359,15.5761719 8.29758789,15.1364551 8.77641602,14.4685742 L12.918291,16.5895215 C12.842002,16.835791 12.7890625,17.0922852 12.7890625,17.3632812 C12.7890625,18.8172559 13.9718066,20 15.4257812,20 C16.8797559,20 18.0625,18.8172559 18.0625,17.3632812 C18.0625,15.9093066 16.8797559,14.7265625 15.4257812,14.7265625 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path></g></g></g></g></g>',1)]))}const L=f(V,[["render",R]]),D={class:"contractor-detail-banner-wrapper"},Z={class:"contractor-detail-banner"},E={class:"main-img-wrapper"},G=["src"],T={class:"d-flex flex-column d-md-none banner-action"},z={class:"description"},Y={class:"container-xl px-4"},J={class:"d-flex"},H={class:"col-12 col-md-9 d-flex"},K={class:"logo p-2"},O=["src"],Q={class:"meta h-100 d-flex flex-column"},U={class:"h-50 d-flex align-items-center"},W={class:"contractor-name"},X={class:"rate h-50 d-flex align-items-center gap-2"},t1={class:"text-nomal text-black text-rate"},e1={class:"d-none d-md-inline-block"},s1={class:"tag-contractor"},o1={class:"d-flex align-items-center me-1 text-nomal text-black ms-0 ms-md-0"},n1={class:"m-0"},a1={class:"col-md-3 d-none d-md-block"},i1={class:"h-50 d-flex align-items-center justify-content-end"},r1={class:"h-50 d-flex align-items-center justify-content-end gap-4"},l1={class:"d-flex gap-1"},c1={class:"d-flex gap-1"},d1={class:"d-flex gap-1"},m1={class:"w-100 d-flex gap-4 justify-content-center d-md-none"},p1={__name:"BannerContractorDetail",setup(u){const{provider:n}=$().props,C=p(n.banners_img),b=o=>new Promise(e=>{const r=new Image;r.src=o,r.onload=()=>e(!0),r.onerror=()=>e(!1)}),k=async()=>{await b(n.banners_img)||(C.value="/imgs/banner_default.png")},c=p(null);let a=p(n.evaluations.length);const{projects:F,evaluations:y}=n,h=y.filter(o=>{const e=F.find(r=>r.id===o.project_id);return console.log(e),!o.deleted_at&&e&&e.is_published===1});a=h.length;let s={support:0,quality:0,speed:0,cost:0,average:0};h.forEach(o=>{!o.deleted_at&&o.project_id&&(s.support+=o.rate_support,s.quality+=o.rate_quality,s.speed+=o.rate_speed,s.cost+=o.rate_cost)}),a&&(s.average=((s.support+s.quality+s.speed+s.cost)/(4*a)).toFixed(1),s.support=(s.support/a).toFixed(1),s.quality=(s.quality/a).toFixed(1),s.speed=(s.speed/a).toFixed(1),s.cost=(s.cost/a).toFixed(1));const m=()=>{if(a>0){if(typeof localStorage>"u")return;const o=s.average,e=a;o!==null?(c.value=o,localStorage.removeItem("ratesAverage")):setTimeout(m,5e3),e!==null?(a.value=e,localStorage.removeItem("ratesNumber")):setTimeout(m,5e3)}};return I(async()=>
1{await k(),m()}),(o,e)=>(g(),_("div",D,[t("div",Z,[t("div",E,[t("img",{class:"main-img",src:C.value,alt:""},null,8,G),t("div",T,[i(v),i(x),i(L)])]),t("div",z,[t("div",Y,[t("div",J,[t("div",H,[t("div",K,[t("img",{src:l(n).logo_img,alt:""},null,8,O)]),t("div",Q,[t("div",U,[t("span",W,d(l(n).name),1)]),t("div",X,[i(S,{"max-point":5,point:c.value?Math.round(c.value):0},null,8,["point"]),t("span",t1,[t("span",e1,"("+d(c.value)+"/5)",1),B(" "+d(l(a))+" đánh giá ",1)]),t("div",s1,[i(M,{status:l(n).status},null,8,["status"])]),t("div",o1,[i(P,{color:"#000",class:"me-1"}),t("p",n1,d(l(n).view_count),1)])])])]),t("div",a1,[t("div",i1,[t("button",{class:"btn-common btn-red",onClick:e[0]||(e[0]=r=>o.$emit("openAppointmentContractorModal"))}," Đặt lịch tư vấn ")]),t("div",r1,[t("div",l1,[e[2]||(e[2]=t("span",{class:"text-black action-item"},"Yêu thích",-1)),i(v,{class:"icon"})]),t("div",c1,[e[3]||(e[3]=t("span",{class:"text-black action-item"},"Đánh giá",-1)),i(x,{class:"icon"})]),t("div",d1,[e[4]||(e[4]=t("span",{class:"text-black action-item"},"Chia sẻ",-1)),i(L,{class:"icon"})])])])])])])]),t("div",m1,[e[5]||(e[5]=t("button",{class:"btn-common btn-white"},"Báo giá nhanh",-1)),t("button",{class:"btn-common btn-red",onClick:e[1]||(e[1]=r=>o.$emit("openAppointmentContractorModal"))}," Đặt lịch tư vấn ")])]))}},L1=f(p1,[["__scopeId","data-v-39156b71"]]);export{L1 as default};

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.