function init(c)local k=c.Frame local A=c._Maid A:Mark((k:GetPropertyChangedSignal("\084\101\120\116")):Connect(function()local A=c._MaskType local o=(A:Process(k.Text)):sub(1,c._MaxLength)k.Text=o end))A:Mark(k.FocusLost:Connect(function()local A=c._MaskType if not A:Verify(k.Text)then k.Text=A.Default end end))end


function init(self)
	local frame = self.Frame
	local maid = self._Maid

	maid:Mark(frame:GetPropertyChangedSignal("Text"):Connect(function()
		local mask = self._MaskType
		local result = mask:Process(frame.Text):sub(1, self._MaxLength)
		frame.Text = result
	end))
	
	maid:Mark(frame.FocusLost:Connect(function()
		local mask = self._MaskType
		if (not mask:Verify(frame.Text)) then
			frame.Text = mask.Default
		end
	end))
end
