PageSourceSearch

https://sun.store/_nuxt/CHjS0s4v.js

js sun.store collected 2026-10-07 08:26:06 UTC 5,179 bytes, 1 lines download raw bytes

1!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"b2c15146c1706e3e80ddb344ba7c870920cbe237"}}catch(e){}}();try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(a=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="81484e7d-6bb4-4765-b3c6-a38c2cf7f243",e._sentryDebugIdIdentifier="sentry-dbid-81484e7d-6bb4-4765-b3c6-a38c2cf7f243")}catch(e){}var e,a;import{_ as t}from"./Cvss8Wgs.js";import{bR as s,fB as o,gb as r,f_ as u,ge as l,eg as n,fK as i,fA as d,e0 as p,bE as c,bA as f,bN as m,f0 as v,gp as y,bM as b,eS as h,b5 as _,bC as w,bB as g,b4 as j,A as k,ee as E,fw as x,ea as A}from"./FpoLhaSh.js";import{_ as C}from"./DLIjkN4K.js";import{_ as D,a as I}from"./BNfRG8U8.js";import{_ as O}from"./CgjR5igu.js";import{_ as R}from"./CtGdzw_-.js";import{u as T}from"./BSzZNzXS.js";import{v as U}from"./DY-2xQUN.js";import{V as N}from"./C6UavxXS.js";import"./DDU5wcG5.js";import"./DYbwqkou.js";import"./DQJHjpQh.js";import"./BCN1VV85.js";import"./CrT2JRIh.js";import"./Bs5jnNEY.js";import"./ByU-PWvS.js";import"./DaqyyfTf.js";import"./CDcKfNjO.js";import"./fGhehdKB.js";import"./DOH8ZHjH.js";import"./lfR0h8Ol.js";import"./DOQ5BK5x.js";import"./DNM_NjGY.js";const W={class:"warehouse-update-container"},F={class:"warehouse-update-container__actions"},q={key:0,class:"warehouse-update-container__button"},P=s({__name:"index",setup(e){const a=T(),s=n(!1),P=o().t,S=r(),L=n(!1);A("isPhoneNumberValid",L);const B=n({name:"",email:"",contactName:"",phoneNumber:"",isDefault:!1}),M=n({city:"",postCode:"",street:"",additionalInformation:"",country:{name:"",value:""}}),V=n(),Y=n(),K=e=>{V.value=e},$=e=>{Y.value=e},z=async()=>{try{await U(X),s.value=!0}catch(e){a?.error(e.message)}},G=n(),H=u(),J=H.currentRoute.value.params.warehouseID,Q=l(),X=n(),Z=n(H.currentRoute.value.query.type);(async e=>{try{if(Z.value)return void(G.value=await k.fetchSingleWarehouse(+J));G.value=await Q.getWarehouse(+J,e),(()=>{if(!G.value)return;const e={user_id:S.getUser?.id,user_type:"seller",warehouse_name:G.value.name,warehouse_country:G.value.address?.country,warehouse_city:G.value.address?.city,pick_up:G.value.incoterms.filter((e=>e.value)).map((e=>({name:e.name,price:e.price.toFixed(2)}))),delivery_to:G.value.countries.filter((e=>e.value)).map((e=>e.countryCode))};x()?.pushParamsToDataLayer(e)})()}catch{G.value=null}})();const ee=i(),ae=async()=>{se.update=!0;try{if(await U(X),!L.value)throw new Error("Phone number is not valid");if(!te())throw new Error("You must select at least one delivery option");const e=Object.keys(Y.value).filter((e=>Y.value[e])),t={...B.value,address:{...M.value,country:M.value.country?.value},countries:e};await Q.updateWarehouse(+J,t),await Promise.all(Object.keys(V.value).map((async e=>{const a={...V.value[e],name:V.value[e].name.toUpperCase(),value:V.value[e].value,overrideWarehouse:!1};await k.updateincoterms(+J,a)}))),await Q.getWarehouse(+J,!0),a?.success(P("success.warehouse_updated")),Z||H.push(ee("/panel/warehouses"))}catch(e){a?.error(e.message)}se.update=!1},te=()=>{let e=!1;return Y.value&&Object.keys(Y.value).forEach((a=>{Y.value[a]&&(e=!0)})),V.value&&!Array.isArray(V.value)?Object.keys(V.value).forEach((a=>{V.value[a].value&&(e=!0)})):V.value?.forEach((a=>{a.value&&(e=!0)})),e},se=E({update:!1});return d({meta:[{key:"robots",name:"robots",content:"noindex, nofollow"}]}),(e,a)=>{const o=t,r=_,u=C,l=j,n=D,i=I,d=O,k=R;return p(),c("div",W,[f("div",F,[m(o,{url:v(ee)(v(H).currentRoute.value.query.type?`/panel/users/${v(H).currentRoute.value.query.type}?tab=warehouses`:"/panel/warehouses"),text:v(P)("pages.update.back_to_warehouses")},null,8,["url","text"]),v(G)?(p(),c("div",q,[m(r,{loading:v(se).update,onClick:z},{default:y((()=>[b(h(v(P)("pages.update.save_warehouse")),1)])),_:1},8,["loading"])])):w("",!0)]),m(N,{ref_key:"form",ref:X,class:"warehouse-update-container__form"},{default:y((()=>[v(G)?(p(),g(l,{key:0,title:v(P)("pages.update.warehouse_address")},{default:y((()=>[m(u,{warehouse:v(G),isDisabled:!0,onUpdateWarehouseForm:a[0]||(a[0]=e=>B.value=e),onUpdateAddressForm:a[1]||(a[1]=e=>M.value=e)},null,8,["warehouse"])])),_:1},8,["title"])):w("",!0),v(G)?(p(),g(l,{key:1,title:v(P)("pages.update.available_pickup_options")},{default:y((()=>[m(n,{canEdit:"",warehouse:v(G),"onUpdate:pickupForm":K},null,8,["warehouse"])])),_:1},8,["title"])):w("",!0),v(G)?(p(),g(l,{key:2,title:v(P)("pages.update.send_to_delivery_ddp")},{default:y((()=>[m(i,{warehouse:v(G),"onUpdate:deliveryForm":$},null,8,["warehouse"])])),_:1},8,["title"])):w("",!0)])),_:1},512),null===v(G)?(p(),g(l,{key:0},{default:y((()=>[m(d)])),_:1})):w("",!0),v(G)?(p(),g(k,{key:1,isOpen:v(s),genericTitle:"",text:v(P)("pages.update.update_this_warehouse"),buttonAction:v(P)("pages.update.yes_update_warehouse"),buttonCancel:v(P)("pages.update.no_go_back"),function:ae,onClose:a[2]||(a[2]=e=>s.value=!1)},null,8,["isOpen","text","buttonAction","buttonCancel"])):w("",!0)])}}}
vendor: 24 bytes, line 1
1);export{P 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.