PageSourceSearch

https://merch.fixthel8.com/s/ps-fix-us/J_H2Sf1p.js

js fixthel8.com collected 2026-10-06 04:57:03 UTC 7,442 bytes, 1 lines download raw bytes

1import{q as J,u as K,ag as Q,d as X,e as d,B as Y,b as Z,a as ss,r as h,w as es,D as ts,p as j,s as b,c as n,f as s,h as t,G as c,g as k,t as o,H as v,y as m,n as p,l as os,L as as,o as l}from"./J0DG4uHJ.js";import{a as rs,F as ns,E as ls}from"./BEZ0r1oH.js";import{c as ds,a as I,g as cs}from"./CLPUje9K.js";import{u as is}from"./-2aG5X2N.js";import{_ as us}from"./DlAUqK2U.js";import"./Cpj98o6Y.js";const ms={class:"w-full max-w-md"},ps={class:"update-password-card card bg-white shadow-2xl"},_s={class:"card-body"},fs={key:0,class:"update-password-success-state text-center"},ws={class:"text-2xl font-bold text-gray-800 mb-4"},gs={class:"text-gray-600 mb-8"},hs={key:0,class:"text-center mt-4"},bs={class:"text-xs text-gray-500"},xs=["href"],ks={key:1,class:"update-password-form-section"},vs={class:"text-center mb-8"},ys={class:"text-3xl font-bold text-gray-800 mb-2"},$s={class:"flex justify-center mb-6"},Ls=["src"],Cs={class:"font-semibold text-gray-800 truncate"},Ss={class:"text-gray-600"},qs=["onSubmit"],Bs={class:"update-password-new-password-field form-control"},js={class:"label"},Is={class:"label-text font-medium"},Ps={class:"update-password-confirm-password-field form-control"},Es={class:"label"},Hs={class:"label-text font-medium"},Ns={class:"form-control"},Us=["disabled"],Fs={key:0,class:"loading loading-spinner loading-sm"},Ms={class:"text-center"},Ts={key:0,class:"text-center mt-4"},Ds={class:"text-xs text-gray-500"},Vs=["href"],zs={__name:"update-password",setup(Rs){const{t:r}=J();K({title:"Update Password"});const P=ds({password:I().required("Password is required").min(8,"Password must be at least 8 characters"),password_confirmation:I().required("Password confirmation is required").oneOf([cs("password")],"Passwords must match")}),E=Q(),y=X(),i=d(()=>y.shopInfo),_=is(),H=Y(),{getSignInLogoUrl:N,isBrandingLoaded:U}=Z(),{public:{shopName:F}}=ss(),f=h(!0),w=h(!1),x=d(()=>y.signUpBackground),M=d(()=>x.value?"bg-cover bg-center bg-no-repeat":"bg-gradient-to-br from-blue-50 to-indigo-100"),T=d(()=>x.value?{backgroundImage:`url(${x.value})`}:{}),D=e=>{const a=e.target,u=a.naturalWidth/a.naturalHeight;w.value=u>=.9&&u<=1.1,f.value=!1},V=e=>{e.target.src="/logo.png",f.value=!1,w.value=!0},z=d(()=>{const e="transition-all duration-200";return w.value?`square-customer-logo ${e}`:`rectangle-customer-logo ${e}`}),R=d(()=>{const e="flex items-center justify-center px-4 py-3 bg-gradient-to-r from-gray-50 to-gray-100 border border-gray-200 rounded-lg shadow-sm";return w.value?`min-h-[64px] min-w-[100px] sm:min-h-[80px] sm:min-w-[120px] md:min-h-[96px] md:min-w-[140px] text-sm sm:text-base md:text-lg ${e}`:`h-12 min-w-[150px] max-w-[200px] sm:h-16 sm:min-w-[180px] sm:max-w-[220px] md:h-20 md:min-w-[200px] md:max-w-[250px] text-sm sm:text-base md:text-lg ${e}`});es(()=>{U.value&&setTimeout(()=>{f.value=!1},100)});const g=h(!1),$=h(!1),L=d(()=>H.query.token||"");ts(()=>{L.value||(_.add({title:r("customer.invalid_request"),description:r("customer.token_required"),color:"red"}),j(b("/customer/login")))});async function A(e){g.value=!0;try{const a=await E.updatePassword({token:L.value,password:e.password,password_confirmation:e.password_confirmation});a.success?($.value=!0,_.add({title:r("customer.password_updated"),description:r("customer.password_updated_description"),color:"green",timeout:8e3}),setTimeout(()=>{j(b("/customer/login"))},2e3)):_.add({title:r("customer.update_failed"),description:a.errors?.message||r("customer.failed_update_password"),color:"red"})}catch{_.add({title:r("common.error"),description:r("customer.update_failed"),color:"red"})}finally{g.value=!1}}return(e,a)=>{const u=as,C=ns,S=ls,G=rs;return l(),n("div",{class:p(["update-password-page min-h-screen flex items-center justify-center p-4",t(M)]),style:os(t(T))},[s("div",ms,[s("div",ps,[s("div",_s,[t($)?(l(),n("div",fs,[a[0]||(a[0]=s("div",{class:"flex justify-center mb-6"},[s("div",{class:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center"},[s("svg",{class:"w-8 h-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})])])],-1)),s("h1",ws,o(e.$t("customer.password_updated")),1),s("p",gs,o(e.$t("customer.password_updated_description")),1),c(u,{to:("suffixLink"in e?e.suffixLink:t(b))("/customer/login"),
1class:"update-password-continue-button btn w-full bg-fullworks-cta-background hover:bg-fullworks-cta-background/90 text-fullworks-cta-text border-fullworks-cta-background hover:border-fullworks-cta-background/90 cursor-pointer"},{default:v(()=>[m(o(e.$t("customer.continue_to_login")),1)]),_:1},8,["to"]),t(i).contact_email?(l(),n("div",hs,[s("p",bs,[m(o(e.$t("customer.need_help"))+" ",1),s("a",{href:`mailto:${t(i).contact_email}`,class:"link link-primary"},o(t(i).contact_email),9,xs)])])):k("",!0)])):(l(),n("div",ks,[s("div",vs,[a[1]||(a[1]=s("div",{class:"flex justify-center mb-4"},[s("div",{class:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center"},[s("svg",{class:"w-8 h-8 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-3.586l4.293-4.293A6 6 0 0115 7z"})])])],-1)),s("h1",ys,o(e.$t("customer.update_password")),1),s("div",$s,[t(f)?(l(),n("div",{key:1,class:p(t(R))},[s("span",Cs,o(t(F)),1)],2)):(l(),n("img",{key:0,class:p(t(z)),src:t(N)(),alt:"shop logo",onLoad:D,onError:V},null,42,Ls))]),s("p",Ss,o(e.$t("customer.enter_new_password_below")),1)]),c(G,{"validation-schema":t(P),as:"div"},{default:v(({handleSubmit:O,errors:q,isSubmitting:B})=>[s("form",{class:"update-password-form space-y-6",onSubmit:W=>O(W,A)},[s("div",Bs,[s("label",js,[s("span",Is,o(e.$t("customer.new_password")),1)]),c(C,{name:"password",type:"password",placeholder:e.$t("customer.enter_your_new_password"),class:p(["input input-bordered w-full",{"input-error":q.password}])},null,8,["placeholder","class"]),c(S,{name:"password",class:"label-text-alt text-error mt-1"})]),s("div",Ps,[s("label",Es,[s("span",Hs,o(e.$t("common.confirm_password")),1)]),c(C,{name:"password_confirmation",type:"password",placeholder:e.$t("customer.confirm_your_new_password"),class:p(["input input-bordered w-full",{"input-error":q.password_confirmation}])},null,8,["placeholder","class"]),c(S,{name:"password_confirmation",class:"label-text-alt text-error mt-1"})]),s("div",Ns,[s("button",{type:"submit",class:"update-password-submit-button btn w-full bg-fullworks-cta-background hover:bg-fullworks-cta-background/90 text-fullworks-cta-text border-fullworks-cta-background hover:border-fullworks-cta-background/90 cursor-pointer disabled:cursor-not-allowed",disabled:B||t(g)},[B||t(g)?(l(),n("span",Fs)):k("",!0),m(" "+o(e.$t("customer.update_password_button")),1)],8,Us)]),s("div",Ms,[c(u,{to:("suffixLink"in e?e.suffixLink:t(b))("/customer/login"),class:"update-password-login-link link link-primary text-sm"},{default:v(()=>[m(o(e.$t("customer.back_to_login")),1)]),_:1},8,["to"])])],40,qs)]),_:1},8,["validation-schema"]),t(i).contact_email?(l(),n("div",Ts,[s("p",Ds,[m(o(e.$t("customer.need_help"))+" ",1),s("a",{href:`mailto:${t(i).contact_email}`,class:"link link-primary"},o(t(i).contact_email),9,Vs)])])):k("",!0)]))])])])],6)}}},Qs=us(zs,[["__scopeId","data-v-93291849"]]);export{Qs 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.