PageSourceSearch

https://oak-center-cinema-indy-consumer.netlify.app/js/permission-…s-Customer-RefundPaidOrders-vue.cead4efb.js

js oak-center-cinema-indy-consumer.netlify.app collected 2026-10-03 11:14:27 UTC 4,135 bytes, 1 lines download raw bytes

1"use strict";(globalThis["webpackChunkindy_frontend"]=globalThis["webpackChunkindy_frontend"]||[]).push([[34374],{7926:(e,t,s)=>{s.d(t,{default:()=>U});var n=s(35542),o=s(48907),l=s(33877);const d={class:"q-my-md"},i={class:"text-h7 q-my-sm text-center"},a={key:0,class:"q-pl-lg q-py-sm q-bg-grey-2"};function r(e,t,s,r,u,_){const c=(0,n.g2)("q-select"),m=(0,n.g2)("i18n-t"),f=(0,n.g2)("q-radio"),S=(0,n.g2)("q-input");return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",i,(0,o.v_)(e.$t("refundPolicy")),1),(0,n.bF)(m,{tag:"div",keypath:"allowRefundsSelectOptions"},{selectOptions:(0,n.k6)((()=>[(0,n.bF)(c,{class:"inline-block q-mx-sm",modelValue:u.selectedCutoffStrategy,"onUpdate:modelValue":t[0]||(t[0]=e=>u.selectedCutoffStrategy=e),options:_.cutoffStrategyOptions,"map-options":"","emit-value":"",dense:""},null,8,["modelValue","options"])])),_:1}),u.selectedCutoffStrategy===e.REFUND_CUTOFF_STRATEGIES.UNTIL?((0,n.uX)(),(0,n.CE)("div",a,[(0,n.bF)(f,{modelValue:u.selectedDaysType,"onUpdate:modelValue":t[1]||(t[1]=e=>u.selectedDaysType=e),class:"row q-mb-md",val:e.CUTOFF_DAYS_TYPES.SAME_BUSINESS_DAY,dense:""},{default:(0,n.k6)((()=>[(0,n.eW)((0,o.v_)(e.$t(e.CUTOFF_DAYS_TYPES.SAME_BUSINESS_DAY)),1)])),_:1},8,["modelValue","val"]),(0,n.bF)(f,{modelValue:u.selectedDaysType,"onUpdate:modelValue":t[4]||(t[4]=e=>u.selectedDaysType=e),class:"row q-mb-md",val:e.CUTOFF_DAYS_TYPES.CUSTOM_DAYS_LATER,dense:""},{default:(0,n.k6)((()=>[(0,n.bF)(S,{modelValue:s.rolePermission.conditionsRequirements.refund_cutoff_days,"onUpdate:modelValue":t[2]||(t[2]=e=>s.rolePermission.conditionsRequirements.refund_cutoff_days=e),modelModifiers:{number:!0},class:"inline-block q-mr-sm until-days-number-input",type:"number",min:"1",max:"90",step:"1",dense:"","hide-bottom-space":"",disable:u.selectedDaysType!==e.CUTOFF_DAYS_TYPES.CUSTOM_DAYS_LATER,rules:[t=>e.$_.isFinite(t)||e.$t("form.errors.required"),t=>t>=1||e.$t("form.errors.cannotBeLessThanAmount",{amount:1})],onClick:t[3]||(t[3]=(0,l.D$)((()=>{}),["stop"]))},null,8,["modelValue","disable","rules"]),(0,n.eW)(" "+(0,o.v_)(e.$t(e.CUTOFF_DAYS_TYPES.CUSTOM_DAYS_LATER)),1)])),_:1},8,["modelValue","val"])])):(0,n.Q3)("",!0)])}s(55016),s(83270);const u=Object.freeze({enable_refund_cutoff_time:!1,refund_cutoff_days:0}),c=Object.freeze({ANYTIME:"anytime",UNTIL:"until"}),m=Object.freeze({SAME_BUSINESS_DAY:"sameBusinessDay",CUSTOM_DAYS_LATER:"customDaysLater"}),f={name:"RefundPaidOrders",props:{rolePermission:{type:Object,required:!0}},data(){const{enable_refund_cutoff_time:e,refund_cutoff_days:t}=this.rolePermission.conditionsRequirements;let s,n;return s=e?c.UNTIL:c.ANYTIME,n=t>0?m.CUSTOM_DAYS_LATER:m.SAME_BUSINESS_DAY,{selectedCutoffStrategy:s,selectedDaysType:n}},created(){_.extend(this,{REFUND_CUTOFF_STRATEGIES:c,CUTOFF_DAYS_TYPES:m}),_.defaults(this.rolePermission.conditionsRequirements,u)},watch:{selectedCutoffStrategy:{handler(e){e===c.UNTIL?this.rolePermission.conditionsRequirements.enable_refund_cutoff_time=!0:this.rolePermission.conditionsRequirements.enable_refund_cutoff_time=!1}},selectedDaysType:{handler(e){e===m.SAME_BUSINESS_DAY&&(this.rolePermission.conditionsRequirements.refund_cutoff_days=0)}}},computed:{cutoffStrategyOptions(){return _.map(_.values(c),(e=>({label:this.$t(e),value:e})))}},i18n:{messages:{en:{refundPolicy:"Refund Policy",allowRefundsSelectOptions:"Allow refunds {selectOptions}",[c.ANYTIME]:"anytime",[c.UNTIL]:"until...",[m.SAME_BUSINESS_DAY]:"The end of the business day of the event or item delivery.",[m.CUSTOM_DAYS_LATER]:"days after the event or item delivery (end of business day)."},es:{refundPolicy:"Política de Reembolso",allowRefundsSelectOptions:"Permitir reembolsos {selectOptions}",[c.ANYTIME]:"en cualquier momento",[c.UNTIL]:"hasta...",[m.SAME_BUSINESS_DAY]:"El final del día hábil del evento o entrega del artículo.",[m.CUSTOM_DAYS_LATER]:"días después del evento o entrega del artículo (final del día hábil)."}}}};var S=s(12467),T=s(81088),y=s(64458),A=s(28302),p=s(36112),E=s.n(p);const b=(0,S.A)(f,[["render",r],["__scopeId","data-v-df6906ec"]]),U=b;
1E()(f,"components",{QSelect:T.A,QRadio:y.A,QInput:A.A})}}]);

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.