"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app_screens_confirmationModal_ConfirmationModal_tsx"],{39419:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var i=n(3493),o=n(11381),c=n(99346);class l extends o.Z{constructor(){super(...arguments),this.allowSidebar=!1}static _template(){const{screenWidth:t,screenHeight:e}=c.default;return{Column:{type:i.sg,gap:"xxxl",fixedWidth:t,fixedHeight:e,align:"center",verticalAlign:"middle",Title:{type:i.ij,textAlign:"center",fontName:"display3",colorName:"textDefault"},Description:{type:i.ij,textAlign:"center",fontName:"body1",colorName:"textPrimary",wordWrapWidth:1096,wordWrap:!0},ActionsRow:{type:i.X2,gap:"xl",ConfirmationButton:{type:i.XM},CancelButton:{type:i.XM}}}}}async _init(){const{title:t,description:e,confirmIcon:n,confirmLabel:i,cancelIcon:o,cancelLabel:c,confirmButtonStyle:l,cancelButtonStyle:s}=this.initialData||{};this._title.content=t,this._description.content=e,this._confirmButton.icon=n,this._confirmButton.label=i,this._cancelButton.icon=o,this._cancelButton.label=c,l&&(this._confirmButton.style=l),s&&(this._cancelButton.style=s),this._confirmButton.onPress=()=>{this.result={confirmed:!0,isBack:!1},this._modal.closeCurrent()},this._cancelButton.onPress=()=>{this.result={confirmed:!1,isBack:!1},this._modal.closeCurrent()}}_getFocused(){return this.tag("Column")}_handleBack(){return this.result={confirmed:!1,isBack:!0},this._modal.closeCurrent(),!0}get _title(){return this.tag("Column.Title")}get _description(){return this.tag("Column.Description")}get _confirmButton(){return this.tag("Column.ActionsRow.ConfirmationButton")}get _cancelButton(){return this.tag("Column.ActionsRow.CancelButton")}}}}]);