1import{_ as ae}from"./client-only.f3ab23a1.js";import{b_ as ie,_ as M,k as U,o as p,a as V,w as h,b as i,$ as oe,b3 as J,c as _,e as s,V as z,t as n,d as f,F as T,r as D,n as K,p as le,h as ce}from"./entry.8caca9db.js";import{_ as Y}from"./index.042b40e8.js";import{r as Z,q as R}from"./VDataTable.6e4cf55c.js";import{V as Q}from"./VAutocomplete.1c08501a.js";import{V as w}from"./VChip.ffd4e37e.js";import{V as ee}from"./VSelect.6df4bf46.js";import{V as C}from"./VBtn.b870324c.js";import{u as de}from"./index.0f990383.js";const ue={setup(){return{mapboxkey:ie().public.MAP_BOX_KEY}},props:{mapCenter:{required:!1,default:()=>[106.8503381,-6.2554159],type:Array}}};function me(e,t,g,v,a,r){const d=U("mapbox-map"),c=ae;return p(),V(c,null,{default:h(()=>[i(d,{"auto-resize":"","map-style":"streets-v11","access-token":v.mapboxkey,zoom:15,center:g.mapCenter},{default:h(()=>[oe(e.$slots,"map-marker",{},void 0,!0)]),_:3},8,["access-token","center"])]),_:3})}const te=M(ue,[["render",me],["__scopeId","data-v-b70e27a1"]]);var he=typeof global=="object"&&global&&global.Object===Object&&global;const pe=he;var ge=typeof self=="object"&&self&&self.Object===Object&&self,fe=pe||ge||Function("return this")();const se=fe;var _e=se.Symbol;const B=_e;var re=Object.prototype,be=re.hasOwnProperty,Pe=re.toString,O=B?B.toStringTag:void 0;function ve(e){var t=be.call(e,O),g=e[O];try{e[O]=void 0;var v=!0}catch{}var a=Pe.call(e);return v&&(t?e[O]=g:delete e[O]),a}var ye=Object.prototype,ke=ye.toString;function xe(e){return ke.call(e)}var Ie="[object Null]",Ae="[object Undefined]",G=B?B.toStringTag:void 0;function $e(e){return e==null?e===void 0?Ae:Ie:G&&G in Object(e)?ve(e):xe(e)}function Fe(e){return e!=null&&typeof e=="object"}var Le="[object Symbol]";function Se(e){return typeof e=="symbol"||Fe(e)&&$e(e)==Le}var Te=/\s/;function Ne(e){for(var t=e.length;t--&&Te.test(e.charAt(t)););return t}var Ce=/^\s+/;function we(e){return e&&e.slice(0,Ne(e)+1).replace(Ce,"")}function E(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var q=0/0,De=/^[-+]0x[0-9a-f]+$/i,je=/^0b[01]+$/i,Oe=/^0o[0-7]+$/i,Me=parseInt;function X(e){if(typeof e=="number")return e;if(Se(e))return q;if(E(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=E(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=we(e);var g=je.test(e);return g||Oe.test(e)?Me(e.slice(2),g?2:8):De.test(e)?q:+e}var Ve=function(){return se.Date.now()};const H=Ve;var ze="Expected a function",Re=Math.max,Be=Math.min;function ne(e,t,g){var v,a,r,d,c,k,o=0,l=!1,u=!1,b=!0;if(typeof e!="function")throw new TypeError(ze);t=X(t)||0,E(g)&&(l=!!g.leading,u="maxWait"in g,r=u?Re(X(g.maxWait)||0,t):r,b="trailing"in g?!!g.trailing:b);function y(m){var N=v,j=a;return v=a=void 0,o=m,d=e.apply(j,N),d}function A(m){return o=m,c=setTimeout(P,t),l?y(m):d}function $(m){var N=m-k,j=m-o,W=t-N;return u?Be(W,r-j):W}function x(m){var N=m-k,j=m-o;return k===void 0||N>=t||N<0||u&&j>=r}function P(){var m=H();if(x(m))return I(m);c=setTimeout(P,$(m))}function I(m){return c=void 0,b&&v?y(m):(v=a=void 0,d)}function L(){c!==void 0&&clearTimeout(c),o=0,v=k=a=c=void 0}function S(){return c===void 0?d:I(H())}function F(){var m=H(),N=x(m);if(v=arguments,a=this,k=m,N){if(c===void 0)return A(k);if(u)return clearTimeout(c),c=setTimeout(P,t),y(k)}return c===void 0&&(c=setTimeout(P,t)),d}return F.cancel=L,F.flush=S,F}const He={setup(){const{width:e,height:t}=J();return{width:e,height:t}},components:{VDataTable:Z},computed:{markerLatLng(){var e,t;return this.marker?{lat:(e=this.marker)==null?void 0:e.lat,lng:(t=this.marker)==null?void 0:t.lon}:null},mergedItems(){return this.$stores.product.mergedItems.length?this.$stores.product.mergedItems:[]},products(){return this.$stores.product.items||[]},bpDistance(){return this.$stores.product.bpDistance},bpDistanceLatLon(){return this.$stores.product.bpDistanceLatLon},addressList(){return this.$stores.map.addressList},mapCenter(){var e,t;return[(e=this.marker)==null?void 0:e.lon,(t=this.marker)==null?void 0:t.lat]},tableHeaders(){return[{title:"Mutu"},{title:"NFA (Rp)"},{title:"FA (Rp)"}]},totalPages(){return Math.ceil(this.mergedItems.length/this.itemsPerPage)},paginatedItems(){const e=(this.currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.mergedItems.slice(e,t)},startIndex(){return(this.currentPage-1)*this.itemsPerPage},endIndex(){return Math.min(this.startIndex+this.itemsPerPage,this.mergedItems.length)},slumpItems(){return[{label:"0",value:0},{label:"2 ± 2cm",value:2},{label:"4 ± 2cm",value:4},{label:"6 ± 2cm",value:6},{label:"8 ± 2cm",value:8},{label:"10 ± 2cm",value:10},{label:"12 ± 2cm",value:12},{label:"14 ± 2cm",value:14},{label:"16 ± 2cm",value:16},{label:"18 ± 2cm",value:18},{label:"20 ± 2cm",value:20}]}},watch:{searchInput:ne(function(e,t){e!==t&&(console.log(e),this.getPlace())},500),async selectedAddress(e){if(e){this.addressList.find(g=>g.place_id===e);const t=await this.getPlaceDetail(e.place_id);t&&(this.marker.lat=(t==null?void 0:t.lat)||"",this.marker.lon=(t==null?void 0:t.lon)||"")}},markerLatLng(e){e&&this.$stores.product.getBatchingPlantsLatLng({lat:e.lat,lon:e.lng})},activeChoice(e){e=="loco"?(this.$stores.product.getBatchingPlantsLatLng({lat:-6.2780881,lon:106.5960327}),this.marker={lon:106.774124,lat:-6.121435}):this.marker={lon:106.774124,lat:-6.121435}}},data(){return{choices:{franco:{title:"FRANCO",description:"Termasuk pengiriman, diantarkan langsung ke lokasi proyek Anda"},loco:{title:"LOCO",description:"Tanpa pengeriman, ambil beton langsung di batching plant kami"}},activeChoice:"franco",marker:null,searchInput:"",selectedAddress:void 0,selectedSlump:0,isFindAddress:!1,marker:{lon:106.774124,lat:-6.121435},currentPage:1,itemsPerPage:4}},mounted(){this.getProducts(),this.$stores.product.getBatchingPlantsLatLng({lat:-6.2780881,lon:106.5960327})},methods:{onSearch(e){this.searchInput=e},async getPlace(){this.isFindAddress=!0;try{await this.$stores.map.getPlaces(this.searchInput)}catch(e){console.error(e)}finally{this.isFindAddress=!1}},async getPlaceDetail(e){try{return await this.$stores.map.getPlaceDetail(e)}catch(t){console.error(t)}},async getProducts(){try{return console.log("Jalan Saat mounted"),await this.$stores.product.getProducts({lat:this.marker.lat,lon:this.marker.lon})}catch(e){console.error(e)}},goToPreviousPage(){this.currentPage>1&&(this.currentPage-=1)},goToNextPage(){this.currentPage<this.totalPages&&(this.currentPage+=1)}}},Ee=e=>(le("data-v-38773c1f"),e=e(),ce(),e),Ue={class:"b-price-list-mobile"},We={class:"flex rounded-md h-full relative"},Ge={class:"absolute w-full flex flex-col justify-between p-2 h-full"},qe={class:"w-full"},Xe={class:"price-list-action"},Je={class:"rounded-lg overflow-hidden"},Ke={class:"bg-[#ffcd06] h-full w-[50px] right-0 flex items-center justify-center"},Ye={class:"bg-white w-full p-3 mb-8 rounded-lg"},Ze={class:"header-container"},Qe={class:"text-center"},et={class:"text-center text-[#546881]"},tt={class:"selection-container"},st=["onClick"],rt={class:"flex-1 rounded-md table-container"},nt={class:"text-left",style:{"background-color":"#f4f4f4"}},at={class:"text-right",style:{"background-color":"#f4f4f4"}},it={class:"text-right",style:{"background-color":"#f4f4f4"}},ot={style:{border:"none"}},lt={class:"text-right",style:{border:"none"}},ct={class:"text-right",style:{border:"none"}},dt={class:"flex justify-between my-3"},ut={class:"w-[200px]"},mt={class:"pagination-controll"},ht={class:"counter"},pt={class:"flex gap-3 items-center"},gt={class:"page px-3 py-1 rounded-md"},ft={class:"flex-1 rounded-md table-container"},_t=Ee(()=>s("th",{class:"text-left",style:{"background-color":"#f4f4f4"}},"Mutu",-1)),bt={class:"text-right",style:{"background-color":"#f4f4f4"}},Pt={class:"text-right",style:{"background-color":"#f4f4f4"}},vt={style:{border:"none"}},yt={class:"text-right",style:{border:"none"}},kt={class:"text-right",style:{border:"none"}},xt={class:"pagination-controll"},It={class:"counter"},At={class:"flex gap-3 items-center"},$t={class:"page px-3 py-1 rounded-md"};function Ft(e,t,g,v,a,r){const d=U("mapbox-marker"),c=te,k=Y;return p(),_(T,null,[s("div",Ue,[s("div",We,[i(c,{scrollZoom:!1,center:r.mapCenter,style:{height:"700px"}},{"map-marker":h(()=>[i(d,{"lng-lat":r.mapCenter,draggable:!1},null,8,["lng-lat"])]),_:1},8,["center"])]),s("div",Ge,[s("div",qe,[s("div",Xe,[s("div",Je,[i(Q,{modelValue:a.selectedAddress,"onUpdate:modelValue":t[0]||(t[0]=o=>a.selectedAddress=o),flat:"","hide-details":"",variant:"solo","item-title":"description","return-object":"",loading:a.isFindAddress,items:r.addressList,"onUpdate:search":r.onSearch},{"prepend-inner":h(()=>[i(z,{color:"primary",icon:"mdi-map-marker-outline"})]),"append-inner":h(()=>[s("div",Ke,[i(z,{color:"white",icon:"mdi-magnify"})])]),_:1},8,["modelValue","loading","items","onUpdate:search"])])])]),s("div",Ye,[s("div",Ze,[
1s("h1",Qe,[s("span",null,n(e.$t("HomePage.PriceList.Heading")),1),f(n(e.$t("HomePage.PriceList.Sub")),1)]),s("h2",et,n(e.$t("HomePage.PriceList.Text")),1)]),s("div",tt,[(p(!0),_(T,null,D(a.choices,(o,l)=>(p(),_("div",{key:l,class:K(["selection-button",{active:a.activeChoice===l}]),onClick:u=>a.activeChoice=l},n(o.title),11,st))),128))]),a.activeChoice==="franco"?(p(),_(T,{key:0},[s("div",rt,[i(R,{density:"compact","fixed-header":""},{default:h(()=>[s("thead",null,[s("tr",null,[s("th",nt,n(e.$t("Table.Mutu")),1),s("th",at,[i(w,{class:"variant",color:"green",size:"small"},{default:h(()=>[f(" NFA ")]),_:1}),f(" (Rp) ")]),s("th",it,[i(w,{class:"variant",color:"blue",size:"small"},{default:h(()=>[f(" FA ")]),_:1}),f(" (Rp) ")])])]),s("tbody",null,[(p(!0),_(T,null,D(r.paginatedItems,o=>{var l,u,b,y,A,$,x,P,I,L,S,F;return p(),_("tr",{key:o.displayName},[s("td",ot,n(((l=o.NFA)==null?void 0:l.displayName)||((u=o.FA)==null?void 0:u.displayName)),1),s("td",lt,n((y=(b=o.NFA)==null?void 0:b.Price)!=null&&y.price?e.$format.price((($=(A=o.NFA)==null?void 0:A.Price)==null?void 0:$.price)+((x=r.bpDistance)==null?void 0:x.additionalPrice)+(a.selectedSlump>12?Math.floor((a.selectedSlump-12)/2)*15e3:0),{prefix:""}):"-"),1),s("td",ct,n((I=(P=o.FA)==null?void 0:P.Price)!=null&&I.price?e.$format.price(((S=(L=o.FA)==null?void 0:L.Price)==null?void 0:S.price)+((F=r.bpDistance)==null?void 0:F.additionalPrice)+(a.selectedSlump>12?Math.floor((a.selectedSlump-12)/2)*15e3:0),{prefix:""}):"-"),1)])}),128))])]),_:1})]),s("div",dt,[s("div",ut,[i(ee,{modelValue:a.selectedSlump,"onUpdate:modelValue":t[1]||(t[1]=o=>a.selectedSlump=o),"hide-details":"",variant:"solo",label:"Slump",items:r.slumpItems,"item-title":"label","item-value":"value"},null,8,["modelValue","items"])]),s("div",null,[i(C,{color:"primary",rounded:"lg",size:"small",style:{height:"100%"},to:"/signin"},{default:h(()=>[f(n(e.$t("Buttons.OrderNow")),1)]),_:1})])]),s("div",mt,[s("p",ht,n(e.$t("Pagination.Menampilkan"))+" "+n(r.startIndex+1)+" "+n(e.$t("Pagination.Hingga"))+" "+n(r.endIndex)+" "+n(e.$t("Pagination.Dari"))+" "+n(r.mergedItems.length)+" "+n(e.$t("Pagination.Entri")),1),s("div",pt,[i(C,{icon:"mdi-chevron-left",size:"small",variant:"text",onClick:r.goToPreviousPage,disabled:a.currentPage===1},null,8,["onClick","disabled"]),s("div",gt,n(a.currentPage),1),i(C,{icon:"mdi-chevron-right",size:"small",variant:"text",onClick:r.goToNextPage,disabled:a.currentPage===r.totalPages},null,8,["onClick","disabled"])])])],64)):(p(),_(T,{key:1},[s("div",ft,[i(R,{density:"compact","fixed-header":""},{default:h(()=>[s("thead",null,[s("tr",null,[_t,s("th",bt,[i(w,{class:"variant",color:"green",size:"small"},{default:h(()=>[f(" NFA ")]),_:1}),f(" (Rp) ")]),s("th",Pt,[i(w,{class:"variant",color:"blue",size:"small"},{default:h(()=>[f(" FA ")]),_:1}),f(" (Rp) ")])])]),s("tbody",null,[(p(!0),_(T,null,D(r.paginatedItems,o=>{var l,u,b,y,A,$,x,P,I,L,S,F;return p(),_("tr",{key:o.displayName},[s("td",vt,n(((l=o.NFA)==null?void 0:l.displayName)||((u=o.FA)==null?void 0:u.displayName)),1),s("td",yt,n((y=(b=o.NFA)==null?void 0:b.Price)!=null&&y.price?e.$format.price((($=(A=o.NFA)==null?void 0:A.Price)==null?void 0:$.price)+((x=r.bpDistance)==null?void 0:x.additionalPrice),{prefix:""}):"-"),1),s("td",kt,n((I=(P=o.FA)==null?void 0:P.Price)!=null&&I.price?e.$format.price(((S=(L=o.FA)==null?void 0:L.Price)==null?void 0:S.price)+((F=r.bpDistance)==null?void 0:F.additionalPrice),{prefix:""}):"-"),1)])}),128))])]),_:1})]),s("div",xt,[s("p",It,n(e.$t("Pagination.Menampilkan"))+" "+n(r.startIndex+1)+" "+n(e.$t("Pagination.Hingga"))+" "+n(r.endIndex)+" "+n(e.$t("Pagination.Dari"))+" "+n(r.mergedItems.length)+" "+n(e.$t("Pagination.Entri")),1),s("div",At,[i(C,{icon:"mdi-chevron-left",size:"x-small",variant:"text",onClick:r.goToPreviousPage,disabled:a.currentPage===1},null,8,["onClick","disabled"]),s("div",$t,n(a.currentPage),1),i(C,{icon:"mdi-chevron-right",size:"x-small",variant:"text",onClick:r.goToNextPage,disabled:a.currentPage===r.totalPages},null,8,["onClick","disabled"])])])],64))])])]),i(k)],64)}const Lt=M(He,[["render",Ft],["__scopeId","data-v-38773c1f"]]),St={data(){return{}},computed:{mergedItems(){return this.$stores.product.mergedItems.length?this.$stores.product.mergedItems:null},products(){return this.$stores.product.items||[]},bpDistance(){return this.$stores.product.bpDistance}}},Tt=s("th",{class:"text-left",style:{"background-color":"#f4f4f4"}},"Mutu",-1),Nt={class:"text-right",style:{"background-color":"#f4f4f4"}}
1,Ct={class:"text-right",style:{"background-color":"#f4f4f4"}},wt={style:{border:"none"}},Dt={class:"text-right",style:{border:"none"}},jt={class:"text-right",style:{border:"none"}};function Ot(e,t,g,v,a,r){return p(),V(R,{class:"product-list-table",density:"compact","fixed-header":""},{default:h(()=>[s("thead",null,[s("tr",null,[Tt,s("th",Nt,[i(w,{class:"variant",color:"green",size:"small"},{default:h(()=>[f(" NFA ")]),_:1}),f(" (Rp) ")]),s("th",Ct,[i(w,{class:"variant",color:"blue",size:"small"},{default:h(()=>[f(" FA ")]),_:1}),f(" (Rp) ")])])]),s("tbody",null,[(p(!0),_(T,null,D(r.mergedItems,d=>{var c,k,o,l,u,b,y,A,$,x,P,I;return p(),_("tr",{key:d.displayName},[s("td",wt,n(((c=d.NFA)==null?void 0:c.displayName)||((k=d.FA)==null?void 0:k.displayName)),1),s("td",Dt,n((l=(o=d.NFA)==null?void 0:o.Price)!=null&&l.price?e.$format.price(((b=(u=d.NFA)==null?void 0:u.Price)==null?void 0:b.price)+((y=r.bpDistance)==null?void 0:y.additionalPrice),{prefix:""}):"-"),1),s("td",jt,n(($=(A=d.FA)==null?void 0:A.Price)!=null&&$.price?e.$format.price(((P=(x=d.FA)==null?void 0:x.Price)==null?void 0:P.price)+((I=r.bpDistance)==null?void 0:I.additionalPrice),{prefix:""}):"-"),1)])}),128))])]),_:1})}const Mt=M(St,[["render",Ot]]);const Vt={setup(){const{width:e,height:t}=J();return{width:e,height:t}},components:{VDataTable:Z},computed:{markerLatLng(){var e,t;return this.marker?{lat:(e=this.marker)==null?void 0:e.lat,lng:(t=this.marker)==null?void 0:t.lon}:null},mergedItems(){return this.$stores.product.mergedItems.length?this.$stores.product.mergedItems:[]},products(){return this.$stores.product.items||[]},bpDistance(){return this.$stores.product.bpDistance},bpDistanceLatLon(){return this.$stores.product.bpDistanceLatLon},addressList(){return this.$stores.map.addressList},mapCenter(){var e,t;return[(e=this.marker)==null?void 0:e.lon,(t=this.marker)==null?void 0:t.lat]},tableHeaders(){return[{title:"Mutu"},{title:"NFA (Rp)"},{title:"FA (Rp)"}]},totalPages(){return Math.ceil(this.mergedItems.length/this.itemsPerPage)},paginatedItems(){const e=(this.currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage;return this.mergedItems.slice(e,t)},startIndex(){return(this.currentPage-1)*this.itemsPerPage},endIndex(){return Math.min(this.startIndex+this.itemsPerPage,this.mergedItems.length)},slumpItems(){return[{label:"0",value:0},{label:"2 ± 2cm",value:2},{label:"4 ± 2cm",value:4},{label:"6 ± 2cm",value:6},{label:"8 ± 2cm",value:8},{label:"10 ± 2cm",value:10},{label:"12 ± 2cm",value:12},{label:"14 ± 2cm",value:14},{label:"16 ± 2cm",value:16},{label:"18 ± 2cm",value:18},{label:"20 ± 2cm",value:20}]}},watch:{searchInput:ne(function(e,t){e!==t&&(console.log(e),this.getPlace())},500),async selectedAddress(e){if(e){this.addressList.find(g=>g.place_id===e);const t=await this.getPlaceDetail(e.place_id);t&&(this.marker.lat=(t==null?void 0:t.lat)||"",this.marker.lon=(t==null?void 0:t.lon)||"")}},markerLatLng(e){e&&this.$stores.product.getBatchingPlantsLatLng({lat:e.lat,lon:e.lng})},activeChoice(e){e=="loco"?(this.$stores.product.getBatchingPlantsLatLng({lat:-6.2780881,lon:106.5960327}),this.marker={lon:106.774124,lat:-6.121435}):this.marker={lon:106.774124,lat:-6.121435}}},data(){return{choices:{franco:{title:"FRANCO",description:"Termasuk pengiriman, diantarkan langsung ke lokasi proyek Anda"},loco:{title:"LOCO",description:"Tanpa pengeriman, ambil beton langsung di batching plant kami"}},activeChoice:"franco",marker:null,searchInput:"",selectedAddress:void 0,selectedSlump:void 0,isFindAddress:!1,marker:{lon:106.774124,lat:-6.121435},currentPage:1,itemsPerPage:10}},mounted(){this.getProducts(),this.$stores.product.getBatchingPlantsLatLng({lat:-6.2780881,lon:106.5960327})},methods:{onSearch(e){this.searchInput=e},async getPlace(){this.isFindAddress=!0;try{await this.$stores.map.getPlaces(this.searchInput)}catch(e){console.error(e)}finally{this.isFindAddress=!1}},async getPlaceDetail(e){try{return await this.$stores.map.getPlaceDetail(e)}catch(t){console.error(t)}},async getProducts(){try{return await this.$stores.product.getProducts({lat:this.marker.lat,lon:this.marker.lon})}catch(e){console.error(e)}},goToPreviousPage(){this.currentPage>1&&(this.currentPage-=1)},goToNextPage(){this.currentPage<this.totalPages&&(this.currentPage+=1)}}},zt={class:"b-price-list-dekstop auto-size"},Rt={class:"header-container"},Bt={class:"text-center"},Ht={class:"text-center text-[#546881]"},Et={class:"flex items-center justify-center"},Ut={class:"selection-container"},Wt=["onClick"],Gt={key:0,class:"flex gap-6 flex-col h-full"},qt={class:"price-list-action"},Xt={class:"flex-1 overflow-hidden"},Jt={class:"bg-[#ffcd06] h-full w-[50px] right-0 flex items-center justify-center"},Kt={class:"flex-1 flex justify-end gap-3"},Yt={class:"w-[200px]"},Zt={class:"price-list-content"},Qt={class:"flex-1 flex rounded-md overflow-hidden"},es={class:"flex flex-col flex-1 gap-4"},ts={class:"rounded-md table-container bg-white"},ss={class:"text-left",style:{"background-color":"#f4f4f4"}},rs={class:"text-right",style:{"background-color":"#f4f4f4"}},ns={class:"text-right",style:{"background-color":"#f4f4f4"}},as={style:{border:"none"}},is={class:"text-right",style:{border:"none"}},os={class:"text-right",style:{border:"none"}},ls={class:"pagination-controll"},cs={class:"counter"},ds={class:"flex gap-3 items-center"},us={class:"page px-3 py-1 rounded-md"},ms={key:1},hs={class:"table-container"};function ps(e,t,g,v,a,r){const d=U("mapbox-marker"),c=te,k=Mt,o=Y;return p(),_("div",zt,[s("div",Rt,[s("h1",Bt,[s("span",null,n(e.$t("HomePage.PriceList.Heading")),1),f(n(e.$t("HomePage.PriceList.Sub")),1)]),s("h2",Ht,n(e.$t("HomePage.PriceList.Text")),1)]),s("div",Et,[s("div",Ut,[(p(!0),_(T,null,D(a.choices,(l,u)=>(p(),_("div",{key:u,class:K(["selection-button",{active:a.activeChoice===u}]),onClick:b=>a.activeChoice=u}
1,n(l.title),11,Wt))),128))])]),a.activeChoice==="franco"?(p(),_("div",Gt,[s("div",qt,[s("div",Xt,[i(Q,{modelValue:a.selectedAddress,"onUpdate:modelValue":t[0]||(t[0]=l=>a.selectedAddress=l),flat:"","hide-details":"",variant:"outlined","item-title":"description","return-object":"",loading:a.isFindAddress,items:r.addressList,"onUpdate:search":r.onSearch},{"prepend-inner":h(()=>[i(z,{color:"primary",icon:"mdi-map-marker-outline"})]),"append-inner":h(()=>[s("div",Jt,[i(z,{color:"white",icon:"mdi-magnify"})])]),_:1},8,["modelValue","loading","items","onUpdate:search"])]),s("div",Kt,[s("div",Yt,[i(ee,{modelValue:a.selectedSlump,"onUpdate:modelValue":t[1]||(t[1]=l=>a.selectedSlump=l),"hide-details":"",variant:"outlined",flat:"",label:"Slump",items:r.slumpItems,"item-title":"label","item-value":"value"},null,8,["modelValue","items"])]),i(C,{color:"primary",rounded:"lg",style:{height:"100%"},to:"/signin"},{default:h(()=>[f(n(e.$t("Buttons.OrderNow")),1)]),_:1})])]),s("div",Zt,[s("div",Qt,[i(c,{center:r.mapCenter},{"map-marker":h(()=>[i(d,{"lng-lat":r.mapCenter,draggable:!0},null,8,["lng-lat"])]),_:1},8,["center"])]),s("div",es,[s("div",ts,[i(R,{density:"compact","fixed-header":""},{default:h(()=>[s("thead",null,[s("tr",null,[s("th",ss,n(e.$t("Table.Mutu")),1),s("th",rs,[i(w,{class:"variant",color:"green",size:"small"},{default:h(()=>[f(" NFA ")]),_:1}),f(" (Rp) ")]),s("th",ns,[i(w,{class:"variant",color:"blue",size:"small"},{default:h(()=>[f(" FA ")]),_:1}),f(" (Rp) ")])])]),s("tbody",null,[(p(!0),_(T,null,D(r.paginatedItems,l=>{var u,b,y,A,$,x,P,I,L,S,F,m;return p(),_("tr",{key:l.displayName},[s("td",as,n(((u=l.NFA)==null?void 0:u.displayName)||((b=l.FA)==null?void 0:b.displayName)),1),s("td",is,n((A=(y=l.NFA)==null?void 0:y.Price)!=null&&A.price?e.$format.price(((x=($=l.NFA)==null?void 0:$.Price)==null?void 0:x.price)+((P=r.bpDistance)==null?void 0:P.additionalPrice)+(a.selectedSlump>12?Math.floor((a.selectedSlump-12)/2)*15e3:0),{prefix:""}):"-"),1),s("td",os,n((L=(I=l.FA)==null?void 0:I.Price)!=null&&L.price?e.$format.price(((F=(S=l.FA)==null?void 0:S.Price)==null?void 0:F.price)+((m=r.bpDistance)==null?void 0:m.additionalPrice)+(a.selectedSlump>12?Math.floor((a.selectedSlump-12)/2)*15e3:0),{prefix:""}):"-"),1)])}),128))])]),_:1})]),s("div",ls,[s("p",cs,n(e.$t("Pagination.Menampilkan"))+" "+n(r.startIndex+1)+" "+n(e.$t("Pagination.Hingga"))+" "+n(r.endIndex)+" "+n(e.$t("Pagination.Dari"))+" "+n(r.mergedItems.length)+" "+n(e.$t("Pagination.Entri")),1),s("div",ds,[i(C,{icon:"mdi-chevron-left",size:"small",variant:"text",onClick:r.goToPreviousPage,disabled:a.currentPage===1},null,8,["onClick","disabled"]),s("div",us,n(a.currentPage),1),i(C,{icon:"mdi-chevron-right",size:"small",variant:"text",onClick:r.goToNextPage,disabled:a.currentPage===r.totalPages},null,8,["onClick","disabled"])])])])])])):(p(),_("div",ms,[s("div",hs,[i(k)])])),i(o)])}const gs=M(Vt,[["render",ps],["__scopeId","data-v-55704c71"]]),fs={setup(){const{width:e,height:t}=de();return{width:e,height:t}}};function _s(e,t,g,v,a,r){const d=Lt,c=gs;return v.width<960?(p(),V(d,{key:0})):(p(),V(c,{key:1}))}const Fs=M(fs,[["render",_s]]);export{Fs as _};
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.