PageSourceSearch

https://static.chotot.com/storage/CT_WEB_GDS_ADLISTING_CDN/2da5545…/static/chunks/5558.89981609948b9c25.js

js chotot.com collected 2026-09-24 10:24:56 UTC 5,369 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5558,739],{80739:function(e,t,r){r.r(t),r.d(t,{buildAdViewUrl:function(){return m},getAdViewCategoryUrl:function(){return h},getCategoryUrl:function(){return f}});const n=["category","area_name","region_name","list_id"],a=["u","h","u,h"],i={"quan-thu-duc-thanh-pho-thu-duc":"quan-thu-duc","quan-2-thanh-pho-thu-duc":"quan-2","quan-9-thanh-pho-thu-duc":"quan-9"},o={"xe-co":"xe","o-to":"oto","nha-o":"nha-dat"},c={label:"T\u1ea5t c\u1ea3 danh m\u1ee5c",value:0,route:"mua-ban",id:0,paramType:"a"},s={label:"Vi\u1ec7c l\xe0m",value:0,route:"viec-lam",id:0,paramType:"a"},u={label:"T\u1ea5t c\u1ea3 b\u1ea5t \u0111\u1ed9ng s\u1ea3n",value:1e3,route:"thue-bat-dong-san",name:"T\u1ea5t c\u1ea3 b\u1ea5t \u0111\u1ed9ng s\u1ea3n",id:1e3,paramType:""},l=e=>"2"===e,d=(e,t,r)=>{if(Number.isNaN(e))return t?0:(e=>{switch(e){case"2":return 2e3;case"3":return 1e3;case"4":return 13e3;default:return 0}})(r);const n=parseInt(e,10);return 1e3*Math.floor(n/1e3)};function p(e){return function(e){var t=e;return t?t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.toLowerCase()).replace(/\u0300|\u0323.|\u0384|\u0303|\u0309/g,"")).replace(/\xe0|\xe1|\u1ea1|\u1ea3|\xe3|\xe2|\u1ea7|\u1ea5|\u1ead|\u1ea9|\u1eab|\u0103|\u1eb1|\u1eaf|\u1eb7|\u1eb3|\u1eb5/g,"a")).replace(/\xe8|\xe9|\u1eb9|\u1ebb|\u1ebd|\xea|\u1ec1|\u1ebf|\u1ec7|\u1ec3|\u1ec5/g,"e")).replace(/\xec|\xed|\u1ecb|\u1ec9|\u0129/g,"i")).replace(/\xf2|\xf3|\u1ecd|\u1ecf|\xf5|\xf4|\u1ed3|\u1ed1|\u1ed9|\u1ed5|\u1ed7|\u01a1|\u1edd|\u1edb|\u1ee3|\u1edf|\u1ee1/g,"o")).replace(/\xf9|\xfa|\u1ee5|\u1ee7|\u0169|\u01b0|\u1eeb|\u1ee9|\u1ef1|\u1eed|\u1eef/g,"u")).replace(/\u1ef3|\xfd|\u1ef5|\u1ef7|\u1ef9/g,"y")).replace(/\u0111/g,"d")).replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-")).replace(/[^a-z0-9\-]/g,"")).replace(/-+-/g,"-")).replace(/^\-+|\-+$/g,""):""}(e)}const g=e=>o[e]?o[e]:e,y=({adType:e,categoryID:t})=>e?(e=>a.includes(e))(e)?"thue":1030!==parseInt(t,10)?"mua-ban":"sang-nhuong":"mua-ban",f=({id:e="0",label:t="",value:r,name:n,adType:a,friendly_name:i,route:o,name_url:c,siteId:s})=>{if(!c||(e=>"3"===e)(s)){const c=(e||r||"0").toString(),u=(({categoryId:e,siteId:t})=>{const r=d(e,!1,t);return 6e3!==r&&13e3!==r})({categoryId:c,siteId:s}),l=(({textName:e,friendlyName:t,siteId:r})=>t?g(t):e?g(p(e.replace(/-.*/g,"").replace(/\([^)]*\)/,""))):(e=>{switch(e){case"2":return"xe";case"3":return"bat-dong-san";default:return""}})(r))({textName:t||n||"",friendlyName:o||i||"",siteId:s}
1);return u?`${y({adType:a,categoryID:c})}${l?`-${l}`:""}`:l}return l(s)?c.replace("o-to","oto"):c};function h({categoryId:e=0,categoryType:t="s",allCategoriesFollowId:r,isServerSide:n=!1,siteId:a}){var i,o;const p=l(a),g=(e=>"4"===e)(a)?s:c,y="s"===t?g:u;if(0===e||function(e){const t=typeof e;return(null!==e&&"object"===t||"function"===t)&&0===Object.keys(e).length||!e}(r))return y;const h=p&&!n,m=d(e.toString(),!1,a),b=h?r:null==r?void 0:r.entities[m.toString()];if(!l(a)&&null!=b&&b.id&&parseInt(b.id,10)===e)return f({adType:t,siteId:a});const I=null!=(o=(h?b:null==(i=b.subCategories)?void 0:i.entities)[e])?o:{};return f({...I,adType:t,siteId:a})}function m({adInfo:e,siteId:t,allCategoriesFollowId:r,isSimilarAd:a=!1,isSticky:o=!1,isShop:c=!1,isServerSide:s=!1}){let u,l="";const d=n,g=Array.isArray(e.special_display_images)&&e.special_display_images.length>0;return d.forEach((n=>{if(e[n])switch(n){case"region_name":l=`${l}-${p(e[n]||"")}`;break;case"area_name":{const t=p(e[n]);l=`${l}-${i[t]?i[t]:t}`;break}case"category":{const a=h({categoryId:e[n]||0,categoryType:e.type,siteId:t,allCategoriesFollowId:r,isServerSide:s});l="string"==typeof a?`${l}/${a}`:`${l}/${a.route}`;break}default:l=`${l}/${e[n]}`}else u=`/${e.list_id}.htm`})),l=`${l}.htm`,a?l+=`#px=SR-similarad-[PO-${e.adIndex||1}][PL-bottom]`:o?l+=`#px=SR-stickyad-[PO-${e.adIndex||1}][PL-top]`:g?l+=`#px=SR-special_display_ad-[PO-${e.adIndex||1}][PL-default]`:c&&(l+=`#px=SR-shop-[PO-${e.adIndex||1}][PL-default]`),u||l}},34416:function(e,t,r){r.d(t,{Ps:function(){return l},Qw:function(){return d}});var n=r(74783),a=r(69800),i=r.n(a);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const s="userHistoryParam",u={make_lead:4,save_ad:3,ad_view:2,listing_page:1};function l(){let{source:e,params:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=u[e];if(!r)return;const n=Object.fromEntries(Object.entries(t).map((e=>{let[t,r]=e;return[t,String(null!==r&&void 0!==r?r:"")]})));if(0===Object.keys(n).length)return;let a={};try{a=JSON.parse(i().get(s)||"{}")}catch(l){a={}}const o=Number(a._priority)||0;r<o||i().set(s,JSON.stringify(c({_source:e,_priority:r},n)))}function d(e){if(!e||"string"!==typeof e)return{min:"",max:""};const[t="",r=""]=e.split("-"),n=e=>"*"===e?"":e;return{min:n(t),max:n(r)}}}}]);

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.