PageSourceSearch

https://ricc.photo/build/assets/WallpaperConflictModal-ZezO1pKA.js

js ricc.photo collected 2026-10-09 21:47:58 UTC 2,420 bytes, 1 lines download raw bytes

1import{_,R as h}from"./app-C8NPgYO_.js";import{_ as y}from"./index-B_5lTofX.js";import{W as w,V as g,J as c,l as C,p as x,q as p,F as m,L as u,M as r,G as v}from"./index-DpK32h4I.js";import{e as B}from"./eventBus-E5P-NQ8u.js";import"./DialogTitle.vue_vue_type_script_setup_true_lang-BgTa_f5-.js";import"./utils-D7Qi8t57.js";import"./check-D5Znux5K.js";const O={name:"WallpaperConflictModal",components:{ResponsiveModal:h,Button:y},props:{open:{type:Boolean,default:!1},conflictType:{type:String,default:"layout"}},emits:["update:open","confirmed","dismissed"],data(){return{isOpen:this.open,loading:!1}},computed:{title(){var e,t,o,a;return this.conflictType==="layout"?(t=(e=this.$t("themes"))==null?void 0:e.wallpaper)==null?void 0:t.update_layout_title:(a=(o=this.$t("themes"))==null?void 0:o.wallpaper)==null?void 0:a.update_wallpaper_title},description(){var e,t,o,a;return this.conflictType==="layout"?(t=(e=this.$t("themes"))==null?void 0:e.wallpaper)==null?void 0:t.update_layout_description:(a=(o=this.$t("themes"))==null?void 0:o.wallpaper)==null?void 0:a.update_wallpaper_description}},watch:{open(e){this.isOpen=e},isOpen(e){e||this.$emit("update:open",!1)}},methods:{dismiss(){this.isOpen=!1,this.$emit("dismissed")},async confirm(){this.loading=!0;try{this.conflictType==="layout"?await new Promise((e,t)=>{w.post(route("themes.layout.update"),{layout:"classic"},{onSuccess:e,onError:t})}):(await g.post(route("wallpaper.update"),{wallpaper_type:null,wallpaper_settings:null}),B.emit("reload-preview")),this.isOpen=!1,this.$emit("confirmed")}catch(e){console.error("Conflict resolution failed",e)}finally{this.loading=!1}}}},k={class:"text-sm text-muted-foreground"};function M(e,t,o,a,l,n){const d=c("Button"),f=c("ResponsiveModal");return x(),C(f,{open:l.isOpen,"onUpdate:open":t[0]||(t[0]=s=>l.isOpen=s),title:n.title,"show-cancel":!1},{body:p(()=>[v("div",k,r(n.description),1)]),footer:p(()=>[m(d,{variant:"outline",class:"flex-1",onClick:n.dismiss,disabled:l.loading},{default:p(()=>{var s,i;return[u(r((i=(s=e.$t("themes"))==null?void 0:s.wallpaper)==null?void 0:i.not_right_now),1)]}),_:1},8,["onClick","disabled"]),m(d,{class:"flex-1",onClick:n.confirm,disabled:l.loading},{default:p(()=>{var s,i;return[u(r((i=(s=e.$t("themes"))==null?void 0:s.wallpaper)==null?void 0:i.yes_please),1)]}),_:1},8,["onClick","disabled"])]),_:1},8,["open","title"])}const W=_(O,[["render",M]]);export{W 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.